View previous topic :: View next topic |
Author |
Message |
Spanik l33t
Joined: 12 Dec 2003 Posts: 940 Location: Belgium
|
Posted: Thu May 27, 2010 8:21 am Post subject: how to check which codecs/settings used in a container? |
|
|
I'm trying to prepare files to put on one of those multimedia players. But I can't find the correct combination and settings of containers, codecs and their settings.
The files I start with come from a pvr application. They are .mpg (video mpeg-2 and audio mpeg-2). I can load and play those files fine with xine. After edit I save them and I can play the result in xine. But after moving the file to the multimedia box they have troubles. Now after I edit them I can choose from so many settings that testing them all is not an option. The easiest would be to just copy the old settings.
How can you find out what settings wre used on a .mpg? Stuff like which audio codec at what bitrate, which video codec at what bitrate and framerate, frame size etc. Or are there some settings that should be "universal"? _________________ Expert in non-working solutions |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Thu May 27, 2010 11:07 am Post subject: |
|
|
MPlayer will display lots of info when invoked in a terminal window. |
|
Back to top |
|
|
bobspencer123 Guru
Joined: 19 Dec 2005 Posts: 544
|
Posted: Thu May 27, 2010 11:39 am Post subject: |
|
|
mplayer will do this:
Code: |
midentify some-video.avi
|
ffmpeg too:
Code: |
ffmpeg -i some-video.avi
|
or my personal favorite mediainfo which has an ebuild in bugzilla. This one gives the best, imho, information in the most succinct and ready to use way. _________________ Increasingly becoming a 2 channel audio nut! |
|
Back to top |
|
|
M Guru
Joined: 12 Dec 2006 Posts: 432
|
Posted: Thu May 27, 2010 11:44 am Post subject: |
|
|
midentify from MPlayer can help you with this
Code: |
midentify Alice\ in\ Wonderland.mp4 | egrep "FORMAT|CODEC"
ID_VIDEO_FORMAT=H264
ID_AUDIO_FORMAT=MP4A
ID_VIDEO_CODEC=ffh264
ID_AUDIO_CODEC=ffaac
|
|
|
Back to top |
|
|
|