0

I was trying to convert a caption-embedded .mp4 file into a .ts file. Only command found after some search was this which uses FFmpeg:

ffmpeg -i 1559066401592889640.mp4 -c copy -bsf h264_mp4toannexb 1559066401592889640.ts

But when running, I get this error:

Codec 'ac3' (86019) is not supported by the bitstream filter 'h264_mp4toannexb'.

What is going wrong? How to fix it? I'm using latest FFmpeg:

ffmpeg version N-93649-gd0ca749adb Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.3.1 (GCC) 20190414
3

a) -bsf h264_mp4toannexb applies the filter to all output streams but it has to be applied to only video streams.

b) In any case, newer versions of ffmpeg, like the one you have, will automatically apply bitstream filters so you don't need to.

Use

ffmpeg -i 1559066401592889640.mp4 -c copy 1559066401592889640.ts
| improve this answer | |
  • 1
    Quick and simple. Thanks! – Tina J Jun 13 '19 at 20:50
  • I'm facing a problem. Once I convert the .mp4 file to .ts, the caption looks different. Look at 00:34", you see GARBLED CAPTION INSERTED in the original. But that's not there in the converted ts. What's happening? Here is the sample .mp4 file: dropbox.com/s/697c7tuqgkc0bv0/test.mp4?dl=0 – Tina J Jun 16 '19 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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