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?.



1 Answer 1


This seemed to work for me...

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

  • 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. Nov 5, 2015 at 7:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.