You are not logged in.
I'm trying to get maplyer mplayer/mencoder to just show me what streams are available in a file. There's a lot of useful info reported when I start a file simply typing mplayer file name but I can't find the option to a) display specific info and b) not to start playing the file. Any help?
Last edited by chochem (2008-09-22 18:36:53)
Offline
show logs
Offline
I'm sorry? I can start mplayer playing and then inspect a log? I don't quite follow you...
Offline
We need to see what mplayer actually outputs.
Offline
Oh, okay. Here's starting an OGM file with two audio tracks and one embedded subititle stream:
[mads@BENWAY Miyazaki]$ mplayer princess\ mononoke.ogm
MPlayer 1.0rc2-4.3.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 2.00GHz (Family: 6, Model: 13, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
115 audio & 237 video codecs
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 princess mononoke.ogm.
[Ogg] stream 0: video (FOURCC XVID), -vid 0
[Ogg] stream 1: audio (Vorbis), -aid 0
[Ogg] stream 2: audio (Vorbis), -aid 1
[Ogg] stream 3: subtitles (SRT-like text subtitles), -sid 0
Ogg file format detected.
VIDEO: [XVID] 640x336 12bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
Clip info:
Name: Princess Mononoke
Software: Made with BeSweet v1.5b28
Encoder URL: http://DSPguru.doom9.org
Language: English[eng]
==========================================================================
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
[Ogg] Language for -sid 0 is '-slang "English[eng]"'
Demuxer info Language changed to English[eng]
AUDIO: 48000 Hz, 2 ch, s16le, 120.0 kbit/7.81% (ratio: 15000->192000)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 336 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.90:1 - prescaling to correct movie aspect.
VO: [xv] 640x336 => 640x336 Planar YV12
A: 2.0 V: 2.0 A-V: -0.000 ct: -0.028 52/ 52 3% 0% 0.4% 0 0 99%
Exiting... (Quit)
There isn't really a problem with the playback and all I Have to do is stop it, go back over the output and add "-aid 1" and "-sid 0" as arguments and everything plays nciely. It 's just that I'd like to script it for ease of use.
Offline
Not a script but some short cut keys that are good:
- To change subtitles j
- To switch audio track #
Offline
Is this an mplayer build from svn?
Offline
Ah, yes.. The audio switching didn't work with the OGM file but I can see now that it works with stuff like matroska.
Offline
Is this an mplayer build from svn?
No, from the extra repos.
EDIT: Hang on, this is weird. Yaourt says I've got two versions installed, the one from extra AND the one from the AUR both reported as being 1.0rc2-6...
Last edited by chochem (2008-09-22 13:24:46)
Offline
I'm sorry? I can start mplayer playing and then inspect a log? I don't quite follow you...
hmm now you should say I'm sorry:)
try to change video output driver:
$mplayer -vo help
Offline
A very hackish way to get the only info:
mplayer -endpos 0 <YOUR_MOVIE>
The endpos switch tells Mplayer how long to play for. With this switch, it will start and stop immediately.
Offline
Thanks everybody... Kind of a silly request, really but hey. Mashing skottish's and piotrk's suggestions together, I came up with:
mplayer -endpos 0 -vo null -ao null <file name>
which cancels all outputs and stops 'playing' immidiately. Still, seems strange that you have to hack your way to this....
Offline