Video File Encoding Format Information


You have a video file, you know it’s an mpeg file as it has .mpg at the end of the file name, but as mpg is only the video file container you need to understand more about the file like bitrare, dimensions.

Method 1 – ffmpeg

There is nothing like a good swiss army knife and when it comes to video ffmpeg certainly makes the mark.

to find out information about a video file enter

ffmpeg -i <filename>

Example:

ffmpeg -i ‘Ian Hislop Goes off the Rails (DVD).mpg’

Input #0, mpeg, from ‘Ian Hislop Goes off the Rails (DVD).mpg’:

Duration: 01:01:45.16, start: 0.200000, bitrate: 4273 kb/s

Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720×576 [PAR 64:45 DAR 16:9], 8000 kb/s, 25 tbr, 90k tbn, 50 tbc

Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s

Method 2 – exiftool

Unlike ffmpeg, it is not installed by default in Kubuntu so you will need to install it by entering:

sudo apt-get install libimage-exiftool-perl

to find out information about a video file enter

exiftool <filename>

Example:

exiftool ‘Ian Hislop Goes off the Rails (DVD).mpg’

ExifTool Version Number : 7.82

File Name : Ian Hislop Goes off the Rails (DVD).mpg

Directory : .

File Size : 1888 MB

File Modification Date/Time : 2008:10:05 15:19:55+01:00

File Type : MPEG

MIME Type : video/mpeg

Image Width : 720

Image Height : 576

Aspect Ratio : 16:9, 625 line, PAL

Frame Rate : 25 fps

Video Bitrate : 8000000

MPEG Audio Version : 1

Audio Layer : 2

Audio Bitrate : 256000

Sample Rate : 48000

Channel Mode : Stereo

Mode Extension : Bands 4-31

Copyright Flag : True

Original Media : True

Emphasis : None

Duration : 31:58 (approx)

Image Size : 720×576

Regardless of the type of video file you have, the above information can then be used for re-encoding video.

=-=-=-=-=
Powered by Bilbo Blogger

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s