[FFmpeg-user] Converting MPEG 2 issues

rava77 at gmx.de rava77 at gmx.de
Fri Apr 6 07:50:39 EEST 2018


> Gesendet: Dienstag, 03. April 2018 um 23:07 Uhr
> Von: "Moritz Barsnick" <barsnick at gmx.net>

ffmpeg -probesize 100000000 -analyzeduration 100000000 -i capture_V0.mpg indeed is able to show the audio info. The two wanted streams appear like so:

    Stream #0:4[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
    Stream #0:5[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s

# ffmpeg -hide_banner -y  -probesize 100000000 -analyzeduration 100000000  -ss 1:15.500 -i capture_V0.mpg -map 0:v -map 0:a:0 -map 0:a:1  -vf yadif -t 30 capture_V1_30s.mkv

works as it should, the resulting 30 seconds clip has both audio tracks I want to keep.

And adding some crop together with the conversion also works.

The final command line is:

ffmpeg -hide_banner -y -probesize 100000000 -analyzeduration 100000000 -ss 1:15.500 -i capture_V0.mpg -map 0:v -map 0:a:0 -map 0:a:1 -vf yadif,crop=692:530:14:23 -t 30 capture_V1_30s_crop.mkv

Seems, I can switch on the " -v error " (to speed up the conversion, should have thought of leaving it away for getting to the source of the error when posting my question) and do the full converion.

Thanks a lot, Moritz!

Cheers


More information about the ffmpeg-user mailing list