OT: extracting codec info from an mpeg video file Solved!

Nigel Ridley nigel at prayingforisrael.net
Thu Aug 6 13:29:55 UTC 2009


Paul Rumelhart wrote:
> Nigel Ridley wrote:
>> Sorry for the OT questions.
>> I have managed to find on the web a short video clip with a .mpg file extension which plays on an 
>> Artech Portable DVD Player :-) I now would like to be able to find out how the said file is built 
>> ie. what do I have to do to replicate its make-up.
>> Any cmd line suggestions? I did look through the man pages for ffmpeg but no joy and I also 
>> scoured the web but again no joy :-(
>>
>> TIA
>>
>> Blessings,
>>
>> Nigel
>>
>>   
> I'm not sure what all you need, but I find running mplayer with the 
> -identify switch gives a lot of information.  Run it from command-line 
> (it will launch a gui to show the video), then exit the video and look 
> at the information it output.
> 
> Paul
> 
> 

Thanks for the tip.
I actually managed to get things working using ffmpeg.
For those that are interested in doing something similar:

ffmpeg -i input_file_name.flv -sameq output_file_name.mpg

For Batch Converting:
for i in *.flv; do ffmpeg -i "$i" -sameq "${i%flv}mpg"; done

Blessings,

Nigel





More information about the kubuntu-users mailing list