[FFmpeg-user] Get the codec used

Rossana Guerra guerra.rossana at gmail.com
Thu May 24 09:24:44 CEST 2012


2012/5/24 Rossana Guerra <guerra.rossana at gmail.com>

>
> 2012/5/24 Carl Eugen Hoyos <cehoyos at ag.or.at>
>
>> Rossana Guerra <guerra.rossana <at> gmail.com> writes:
>>
>> > Hello, I'd like to get te codec being used by an avi file.
>> > I thought it was with the -i option, but it wasn't i used this option
>> > with twi .AVI that have different codec and I don't see the difference.
>>
>> (Command line and complete, uncut console output missing.)
>> ffmpeg -i is supposed to give you many informations about the input
>> file, including the codec used to encode.
>>
>> Carl Eugen
>>
>
> Hi Carl, this is the output for the following files: video3.avi and
> video1.avi
>
>  ffmpeg -i  video3.avi
>
> [mp3 @ 0x25f9c00] Header missing
>
> Seems stream 0 codec frame rate differs from container frame rate:
> 30000.00 (30000/1) -> 29.97 (30000/1001)
> Input #0, avi, from 'video3.avi':
>   Metadata:
>     encoder         : VirtualDubMod 1.5.10.1 (build 2366/release)
>   Duration: 00:34:10.71, start: 0.000000, bitrate: 1179 kb/s
>     Stream #0.0: Video: mpeg4, yuv420p, 720x400 [PAR 1:1 DAR 9:5], 29.97
> fps, 29.97 tbr, 29.97 tbn, 30k tbc
>     Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
> At least one output file must be specified
>
>
> ffmpeg -i  video1.avi
>
> Seems stream 0 codec frame rate differs from container frame rate:
> 30000.00 (30000/1) -> 23.98 (24000/1001)
> Input #0, avi, from 'video1.avi':
>   Metadata:
>     encoder         : VirtualDubMod 1.5.10.1 (build 2366/release)
>   Duration: 00:23:18.52, start: 0.000000, bitrate: 1308 kb/s
>     Stream #0.0: Video: mpeg4, yuv420p, 720x400 [PAR 1:1 DAR 9:5], 23.98
> fps, 23.98 tbr, 23.98 tbn, 30k tbc
>     Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
> At least one output file must be specified
>
>
> However if I try to concatenate them with mencoder it doesn't allow due to
> differents codecs.
>
> Thanks for your help.
>
> Rossana
>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
> Gabri, thanjs but it must be a console application, I am running ffmpeg
and mencoder from a script.

Regards

Rossana


More information about the ffmpeg-user mailing list