<p>This seemed to work for me...</p>

<p>ffmpeg -i "video.mp4" -vcodec copy -bsf:v hevc_mp4toannexb -f mpegts output_file.ts</p>

CC BY-SA 3.0
2015-11-05T07:49:17.567Z
Is really necessary add that filter? Also i tried it with an h264 stream that require the h264 version:
[mpegts @ 03fefac0] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_
mp4toannexb)
If i do it on windows it says he can't find the hevc_mp4toannexb filter.
user3450548
CC BY-SA 3.0
2015-11-05T04:18:49.203Z
2015-11-05T04:18:49.203Z
troyBORGq
<p>I'm trying to convert a HEVC bit stream to MPEG-2 TS using ffmpeg. However I can't seem to perform the task without a wrapper such as mp4. Here is the command I was trying.</p>

<p>ffmpeg -i hevcBitstream.hevc -vcodec copy -acodec copy -vbsf h264_mp4toannexb output_file.ts</p>

<p>What seems to be the problem with this?.</p>

<p>Thanks.</p>

CC BY-SA 3.0
2015-02-10T13:31:45.187Z
Related: http://superuser.com/questions/678897/extract-hevc-bitstream-with-ffmpeg
Vi.
CC BY-SA 3.0
2015-11-05T09:39:21.207Z
Another related, see comment with ffmpeg syntax: http://video.stackexchange.com/a/16643/1871
Gyan
<ffmpeg>
HEVC binary to MPEG 2TS
userDtrm
# HEVC binary to MPEG 2TS

(Asked by: username_0 on 2014-08-27)

I'm trying to convert a HEVC bit stream to MPEG-2 TS using ffmpeg. However I can't seem to perform the task without a wrapper such as mp4. Here is the command I was trying.

ffmpeg -i hevcBitstream.hevc -vcodec copy -acodec copy -vbsf h264\_mp4toannexb output\_file.ts

What seems to be the problem with this?.

Thanks.

**Tags:** ffmpeg

> **Comments:**
> **username_1**: Related: http://superuser.com/questions/678897/extract-hevc-bitstream-with-ffmpeg  
> **username_2**: Another related, see comment with ffmpeg syntax: http://video.stackexchange.com/a/16643/1871  

---

## 1 answers

### Answer by username_3 on 2015-11-05. Score: 1

This seemed to work for me...

ffmpeg -i "video.mp4" -vcodec copy -bsf:v hevc\_mp4toannexb -f mpegts output\_file.ts

> **Comments:**
> **username_4**: Is really necessary add that filter? Also i tried it with an h264 stream that require the h264 version: [mpegts @ 03fefac0] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_ mp4toannexb) If i do it on windows it says he can't find the hevc_mp4toannexb filter.  

---

