On Wed, Oct 26, 2016 at 04:49:42 -0700, dariusz w wrote:
> ffmpeg -i input.mp4 -c copy -bsf:v h264_mp4toannex output.ts
This filter is called "h264_mp4toannexb" (note the last letter). In
recent ffmpeg releases and with latest git, it is automatically
inserted, you don't need to do so anymore.
> outpu.ts plays fine in vlc etc. but output.ts isn't compatibilie with
> hardware decoders. pcr is rare in output.ts.
Which hardware decoder are you referring to? What is "pcr"?
You should show us the (proper) command line, and the command's full
uncut console output, so that we can get an idea what has gone wrong.
In the meantime, please ensure that you are testing this with latest
git (if possible, else latest release).
There is nothing "stable" about 3.1.5 (see for example #5909),
on the contrary, it contains more known bugs and less features
than current FFmpeg.
> I have found that this command:
> ./ffmpeg -debug info -i input.mp4 -c copy -muxrate 7000k output.ts
> remux *.ts and I see that pcr period is fine for hw decoder.
> [mpegts @ 0x3579ea0] muxrate 7000000, pcr every 93 pkts,
> sdt every 2327, pat/pmt every 465 pkts
> so maybe I should use muxrate everytime?
If it solves your issue, this is likely a good idea.
This sounds like ticket #5750, btw.