Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to check which codecs/settings used in a container?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Spanik
l33t
l33t


Joined: 12 Dec 2003
Posts: 940
Location: Belgium

PostPosted: Thu May 27, 2010 8:21 am    Post subject: how to check which codecs/settings used in a container? Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu May 27, 2010 11:07 am    Post subject: Reply with quote

MPlayer will display lots of info when invoked in a terminal window.
Back to top
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Thu May 27, 2010 11:39 am    Post subject: Reply with quote

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
View user's profile Send private message
M
Guru
Guru


Joined: 12 Dec 2006
Posts: 432

PostPosted: Thu May 27, 2010 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum