[FFmpeg-user] Getting crazy with video conversion

Lou lou at lrcd.com
Sat Feb 11 19:16:41 CET 2012


On Sat, Feb 11, 2012 at 07:02:54PM +0100, aple ex wrote:
> 
> 
> 
> > From: oleber at gmail.com
> > Date: Sat, 11 Feb 2012 18:04:30 +0100
> > To: ffmpeg-user at ffmpeg.org
> > Subject: [FFmpeg-user] Getting crazy with video conversion
> > 
> > I got a video file like:
> > 
> > 
> > 
> > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.3, Copyright (c) 2000-2009
> > Fabrice Bellard, et al.
> >   configuration: --extra-version=4:0.5.1-1ubuntu1.3 --prefix=/usr
> > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
> > --enable-libgsm --enable-libschroedinger --enable-libspeex
> > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
> > --disable-stripping --disable-vhook --enable-runtime-cpudetect
> > --enable-gpl --enable-postproc --enable-swscale --enable-x11grab
> > --enable-libdc1394 --enable-shared --disable-static
> >   libavutil     49.15. 0 / 49.15. 0
> >   libavcodec    52.20. 1 / 52.20. 1
> >   libavformat   52.31. 0 / 52.31. 0
> >   libavdevice   52. 1. 0 / 52. 1. 0
> >   libavfilter    0. 4. 0 /  0. 4. 0
> >   libswscale     0. 7. 1 /  0. 7. 1
> >   libpostproc   51. 2. 0 / 51. 2. 0
> >   built on Dec 21 2011 18:37:21, gcc: 4.4.3
> > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x87e4a60]multiple edit list entries, a/v
> > desync might occur, patch welcome
> > 
> > Seems stream 0 codec frame rate differs from container frame rate:
> > 47.95 (48000/1001) -> 23.98 (24000/1001)
> > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01 The Skank Reflex Analysis (HD).m4v':
> >   Duration: 00:21:32.80, start: 0.000000, bitrate: 4412 kb/s
> >     Stream #0.0(eng): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR
> > 16:9, 23.98 tbr, 23.98 tbn, 47.95 tbc
> >     Stream #0.1(rus): Audio: aac, 48000 Hz, stereo, s16
> >     Stream #0.2(eng): Audio: aac, 48000 Hz, stereo, s16
> >     Stream #0.3(rus): Subtitle: tx3g / 0x67337874, PAR 1:9 DAR 16:9
> >     Stream #0.4(eng): Subtitle: tx3g / 0x67337874, PAR 1:9 DAR 16:9
> > At least one output file must be specified
> > 
> > 
> > 
> > I would like to get this video in English with an acceptable video quality.
> > 
> > 
> > Can someone tell me how to do it with ffmpeg please?
> > 
> > Best Regards
> > MArcos
> 
> First you should update your ffmpeg version,and yes I think it's possible to have a video with only english audio if I understand correctly (if ot tell me)
> Regards. 		 	   		  

Although I do support usage of recent FFmpeg I know this isn't always a
reality, and not everyone knows how to do this. Although this is an
outdated version it can probably still do what is requested. I don't
have access to my Ubuntu Lucid VM, I didn't get to test this, and my 0.5
syntax memory is fading, but a good starting example may be: 

ffmpeg -i input -vcodec copy -acodec copy -map 0:0 -map 0:2 output.mp4

It will simply "copy and paste" the desired video and audio streams. No
re-encoding so it won't lose any quality.


More information about the ffmpeg-user mailing list