[FFmpeg-user] loosing something when converting from MP4 to TS

Moritz Barsnick barsnick at gmx.net
Thu May 22 13:45:26 CEST 2014


On Tue, May 20, 2014 at 19:11:39 +0200, Guido Holz wrote:
> I do
>     ffmpeg.exe -y  -i test.mp4  -an -vf yadif=1 -r 25  -refs 4 -qmin 4 -codec h264 tmp.mp4
>     ffmpeg.exe -y -i tmp.mp4 -vcodec libx264 -preset fast -profile main -tune film -vf scale=iw/4:ih/4 tmp_mobile.mp4
>     ffmpeg -y -i tmp.mp4 -c copy -bsf:v h264_mp4toannexb test.ts
>     ffmpeg -y -i tmp_mobile.mp4 -c copy -bsf:v h264_mp4toannexb test_mobile.ts

(A lot of steps here. Too many. ;-))

> but after, the ts-files are shorter than the test.mp4

How do you know? Does playing them terminate before the expected end?

I can't reproduce. Both the conversion process and the inspection of the
resulting files gives the same length and 79 frames.

Moritz


More information about the ffmpeg-user mailing list