Errors in converting mp4 to ts with FFmpeg 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
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