ffmpeg与输出编解码器ID不兼容

时间:2017-12-28 09:43:58

标签: ffmpeg

尝试使用以下命令创建短划线段:

./ffmpeg -y -err_detect careful -analyzeduration 8000000 -probesize 4000000 -rtbufsize 300000 -flush_packets 0  -fflags +genpts+discardcorrupt -f mpegts -i  Sample.ts -c copy -f dash -window_size 40 -min_seg_duration 8000000 -use_timeline 1 -use_template 1 live.mpd

但我得到以下错误:

[mp4 @ 0x3fc0280] Tag [27][0][0][0] incompatible with output codec id '28' (avc1)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input

ffmpeg release / 3.4。 dashenc.c在

commit 1b8ef01f04ab2210a26b59d3a1a62daed52ce88a

而不是破折号如果我使用mp4则没有问题。

我们是否需要强制转码?

0 个答案:

没有答案