How to determine which codec a video is encoded in

Dotan Cohen dotancohen at gmail.com
Mon Jul 5 19:23:19 UTC 2010


On 5 July 2010 19:36, James Bensley <jwbensley at gmail.com> wrote:
> Just paly it in VLC or SMplayer/Mplayer and look at the codec details there?
>

For some reason, a late VLC does not give that information for me:

✈dcl:toDesktop$ vlc d02-001.3gp
VLC media player 1.0.2 Goldeneye
[0x9bf9768] main libvlc: Running vlc with the default interface. Use
'cvlc' to use vlc without interface.
[0xb7408c28] pulse audio output: No. of Audio Channels: 1
[0xb7408c28] pulse audio output error: Failed to connect to server:
Connection refused
[0xb7408c28] pulse audio output error: Pulse initialization failed
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::begin: Paint device returned engine == 0, type: 1


Mplayer does have it, if one already knows what to look for, but if
there is an easier way to get that info (there is, simply "file") then
I do prefer that:

✈dcl:toDesktop$ mplayer d02-001.3gp
MPlayer SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing d02-001.3gp.
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [mp4v]  640x480  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 8000 Hz, 1 ch, s16le, 0.0 kbit/0.00% (ratio: 0->16000)
Selected audio codec: [ffamrnb] afm: ffmpeg (AMR Narrowband)
==========================================================================
[pulse] working around probably broken pause functionality,
        see http://www.pulseaudio.org/ticket/440
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar YV12


Thanks!

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com




More information about the ubuntu-users mailing list