[FFmpeg-user] converting 1080 to 720 mpeg2

Ian Evans dheianevans at gmail.com
Thu Mar 1 08:05:08 CET 2012


On Wed, Feb 29, 2012 at 5:18 PM, Andy Sheen <sheen.andy at googlemail.com> wrote:
>> This is old, please try current git head.
> Teehee... I've been waiting for that.
>
> And change all the syntax... There should be no issues with map x:y -
> it's been there for yonks and always worked when I've needed it -
> except when I needed to demux 0:24 and it only mapped 0:20. The only
> problem was the new ffmpeg introduced a 100ms delay in the audio but
> you can work around that too ;).
>
> Try a -map 0:0 infront of the video decode (after the -f filetype...) first.

Okay...updated to the latest from git tonight. Ran this command line:

ffmpeg -i 1662_20120226204000.mpg -t 00:5:00.000 -f mpegts -map 0:0
-vcodec mpeg2video -qscale 2  -vf 'yadif=1,scale=1280:720'  -r
60000/1001 -map 0:1 -acodec copy -map 0:2 -acodec copy
video-01.mpeg.ts

Here's the info of the test file it generated:

ffmpeg version N-38403-gd2101bf Copyright (c) 2000-2012 the FFmpeg developers
built on Feb 29 2012 23:37:15 with gcc 4.4.5
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvorbis --enable-libx264
--enable-nonfree --enable-version3 --enable-x11grab
libavutil      51. 41.100 / 51. 41.100
libavcodec     54.  4.100 / 54.  4.100
libavformat    54.  2.100 / 54.  2.100
libavdevice    53.  4.100 / 53.  4.100
libavfilter     2. 62.101 /  2. 62.101
libswscale      2.  1.100 /  2.  1.100
libswresample   0.  7.100 /  0.  7.100
libpostproc    52.  0.100 / 52.  0.100
Input #0, mpegts, from 'video-01.mpeg.ts':
Duration: 00:04:59.98, start: 1.400000, bitrate: 24036 kb/s
Program 1
Metadata:
service_name    : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 104857 kb/s, 59.96 fps, 59.94
tbr, 90k tbn, 119.88 tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
5.1(side), s16, 384 kb/s
Stream #0:2[0x102]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
stereo, s16, 128 kb/s

So am I ready to cat it to the 720 file? What step occurs after that?

Thanks to everyone for the help.


More information about the ffmpeg-user mailing list