[FFmpeg-user] Convert to H.264

Josu Lazkano josu.lazkano at gmail.com
Thu Dec 13 17:33:46 CET 2012


Hello all, I am trying to convert a video file to H.264 and AAC. This
is the source video format:

# mediainfo summer.avi
General
Complete name                            : summer.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 641 MiB
Duration                                 : 50mn 43s
Overall bit rate                         : 1 766 Kbps
Writing application                      : VirtualDubMod 1.5.10.2
(build 2540/release)
Writing library                          : VirtualDubMod build 2540/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple at L5
Format settings, BVOP                    : 2
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 50mn 43s
Bit rate                                 : 1 628 Kbps
Width                                    : 704 pixels
Height                                   : 528 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.175
Stream size                              : 591 MiB (92%)
Writing library                          : XviD 1.2.1 (UTC 2008-12-04)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 50mn 43s
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 46.4 MiB (7%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 40 ms (1.00 video frame)
Interleave, preload duration             : 504 ms


I read that I need "libx264" vcodec, but I want to get same aspect
ratio and I don't know which parameters use.

I want H.264 to play with VDPAU profile, could you help with the command?

Best regards.

--
Josu Lazkano


More information about the ffmpeg-user mailing list