You are not logged in.

#1 2008-09-22 12:24:00

chochem
Member
From: Denmark
Registered: 2008-03-02
Posts: 176
Website

[solved] mplayer - don't play, only show info?

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

#2 2008-09-22 12:25:57

piotrk
Member
From: Raciążek/Poland
Registered: 2008-09-16
Posts: 52
Website

Re: [solved] mplayer - don't play, only show info?

show logs smile

Offline

#3 2008-09-22 12:38:31

chochem
Member
From: Denmark
Registered: 2008-03-02
Posts: 176
Website

Re: [solved] mplayer - don't play, only show info?

I'm sorry? I can start mplayer playing and then inspect a log? I don't quite follow you...   neutral

Offline

#4 2008-09-22 12:39:24

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: [solved] mplayer - don't play, only show info?

We need to see what mplayer actually outputs.

Offline

#5 2008-09-22 12:48:28

chochem
Member
From: Denmark
Registered: 2008-03-02
Posts: 176
Website

Re: [solved] mplayer - don't play, only show info?

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

#6 2008-09-22 12:58:33

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: [solved] mplayer - don't play, only show info?

Not a script but some short cut keys that are good:

- To change subtitles j
- To switch audio track #

Offline

#7 2008-09-22 13:02:35

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved] mplayer - don't play, only show info?

Is this an mplayer build from svn?

Offline

#8 2008-09-22 13:04:22

chochem
Member
From: Denmark
Registered: 2008-03-02
Posts: 176
Website

Re: [solved] mplayer - don't play, only show info?

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

#9 2008-09-22 13:20:40

chochem
Member
From: Denmark
Registered: 2008-03-02
Posts: 176
Website

Re: [solved] mplayer - don't play, only show info?

Army wrote:

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

#10 2008-09-22 14:04:03

piotrk
Member
From: Raciążek/Poland
Registered: 2008-09-16
Posts: 52
Website

Re: [solved] mplayer - don't play, only show info?

chochem wrote:

I'm sorry? I can start mplayer playing and then inspect a log? I don't quite follow you...   neutral

hmm now you should say I'm sorry:)

try to change video output driver:

$mplayer -vo help

Offline

#11 2008-09-22 15:59:35

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [solved] mplayer - don't play, only show info?

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

#12 2008-09-22 18:36:27

chochem
Member
From: Denmark
Registered: 2008-03-02
Posts: 176
Website

Re: [solved] mplayer - don't play, only show info?

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

Board footer

Powered by FluxBB