[MPlayer-users] MPlayer-users Digest, Vol 41, Issue 43

Anmol Ranka Anmol_Ranka at mindtree.com
Mon May 21 08:25:26 CEST 2007


Hi,

How can I obtain the file descriptor of Mplayer?

Please ignore the "DISCLAIMER' attached to this mail. Sorry for it.

Regards,
Anmol

-----Original Message-----
From: mplayer-users-bounces at mplayerhq.hu on behalf of
mplayer-users-request at mplayerhq.hu
Sent: Thu 5/17/2007 3:24 AM
To: mplayer-users at mplayerhq.hu
Subject: MPlayer-users Digest, Vol 41, Issue 43
 
Send MPlayer-users mailing list submissions to
	mplayer-users at mplayerhq.hu

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
or, via email, send a message with subject or body 'help' to
	mplayer-users-request at mplayerhq.hu

You can reach the person managing the list at
	mplayer-users-owner at mplayerhq.hu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MPlayer-users digest..."


Today's Topics:

   1. Re: mplayer audio and OS audio (Joey Parrish)
   2. Re: MediaControl via Mplayer (Joey Parrish)
   3. Re: trouble loading theora codec (RC)
   4. Re: trouble loading theora codec (Tom Poe)
   5. Re: trying to pipe mencoder to ffmpeg2theora (RC)
   6. Re: trying to pipe mencoder to ffmpeg2theora (Nico Sabbi)
   7. Re: trouble loading theora codec (RC)
   8. Re: trouble loading theora codec (Tom Poe)


----------------------------------------------------------------------

Message: 1
Date: Wed, 16 May 2007 14:45:23 -0500
From: "Joey Parrish" <joey.parrish at gmail.com>
Subject: Re: [MPlayer-users] mplayer audio and OS audio
To: "MPlayer usage questions, feature requests,	bug reports"
	<mplayer-users at mplayerhq.hu>
Message-ID:
	<ee03aea90705161245v78041243ie53771bf0863f17b at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 5/16/07, Dominik 'Rathann' Mierzejewski <dominik at rangers.eu.org> wrote:
> It's unreasonable to expect that we would make MPlayer use software volume
> control by default to appease just one person.

He should just use his mplayer config file to set software volume
control.  That's one of the nice things about mplayer.  Simple config
file let's you customize your own defaults, saves you typing later.

--Joey


------------------------------

Message: 2
Date: Wed, 16 May 2007 14:48:11 -0500
From: "Joey Parrish" <joey.parrish at gmail.com>
Subject: Re: [MPlayer-users] MediaControl via Mplayer
To: "MPlayer usage questions, feature requests,	bug reports"
	<mplayer-users at mplayerhq.hu>
Message-ID:
	<ee03aea90705161248u229749c6p1fd08e2e92b2296d at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 5/16/07, Anmol Ranka <Anmol_Ranka at mindtree.com> wrote:
> Hi All,
>
> Thanks Carl for the reply. I could control Mplayer through console by
> following the steps mentioned in the url
> <http://svn.mplayerhq.hu/mplayer/trunk/DOCS/tech/slave.txt?view=markup>.
>
> I have few more doubts regarding how to achieve the same programmatically:
>
> 1) Through my program can I use the API 'system' to send command to
Mplayer.
> Ex -- If I want to pause the currently running movie , can I use
> system(pause).

You misunderstand.  You must run mplayer from your app such that you
can write to a file descriptor which represent's mplayer's stdin.  So
not system(pause), but write(mplayer_fd, "pause", 6).

> 2) Are the commands like 'get_file_name', 'get_meta_album', 'volume',
'mute'
> etc are API exposed by some library?

No.  Sorry.

--Joey


------------------------------

Message: 3
Date: Wed, 16 May 2007 13:01:20 -0700
From: RC <rcooley at spamcop.net>
Subject: Re: [MPlayer-users] trouble loading theora codec
To: "MPlayer usage questions, feature requests, bug reports"
	<mplayer-users at mplayerhq.hu>
Message-ID: <20070516130120.2e0d6299.rcooley at spamcop.net>
Content-Type: text/plain; charset=US-ASCII

On Wed, 16 May 2007 00:14:23 -0500
Tom Poe <tompoe at fngi.net> wrote:

> I got the following message, and wonder if I'm missing a codec??  If
> so,  what codec?

You really need to post the full MPlayer output, not just what you think
is important.

> Playing summit07_eben1.ogg.
> ID_VIDEO_ID=0
> [Ogg] stream 0: video (Theora v3.2.0), -vid 0
> ID_AUDIO_ID=0
> [Ogg] stream 1: audio (Vorbis), -aid 0

Ogg/Vorbis/Theora.  With old releases of MPlayer, you need
libtheora/libvorbis.  With newer releases, ffmpeg's built-in support
works fine...  Try with -demuxer lavf and see if it works.

Of course, you might just have a buggy build.


------------------------------

Message: 4
Date: Wed, 16 May 2007 15:08:42 -0500
From: Tom Poe <tompoe at fngi.net>
Subject: Re: [MPlayer-users] trouble loading theora codec
To: "MPlayer usage questions, feature requests,	bug reports"
	<mplayer-users at mplayerhq.hu>
Message-ID: <464B64CA.5090804 at fngi.net>
Content-Type: text/plain; charset="iso-8859-1"

RC wrote:
> On Wed, 16 May 2007 00:14:23 -0500
> Tom Poe <tompoe at fngi.net> wrote:
>
>   
>> I got the following message, and wonder if I'm missing a codec??  If
>> so,  what codec?
>>     
>
> You really need to post the full MPlayer output, not just what you think
> is important.
>
>   
>> Playing summit07_eben1.ogg.
>> ID_VIDEO_ID=0
>> [Ogg] stream 0: video (Theora v3.2.0), -vid 0
>> ID_AUDIO_ID=0
>> [Ogg] stream 1: audio (Vorbis), -aid 0
>>     
>
> Ogg/Vorbis/Theora.  With old releases of MPlayer, you need
> libtheora/libvorbis.  With newer releases, ffmpeg's built-in support
> works fine...  Try with -demuxer lavf and see if it works.
>
> Of course, you might just have a buggy build.
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
>   
[tom at localhost temp]$ mplayer -demuxer lavf summit07_eben1.ogg
MPlayer SVN-r22817 rpm.livna.org (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, 
Model: 8, Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
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 summit07_eben1.ogg.
libavformat file format detected.
[theora @ 0x8686320]Theora bitstream version 30200
[theora @ 0x8686320]584 bits left in packet 81
[theora @ 0x8686320]7 bits left in packet 82
VIDEO:  [theo]  720x480  0bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[theora @ 0x8686320]Theora bitstream version 30200
[theora @ 0x8686320]584 bits left in packet 81
[theora @ 0x8686320]7 bits left in packet 82
Selected video codec: [fftheora] vfm: ffmpeg (FFmpeg Theora)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 111.5 kbit/7.90% (ratio: 13940->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.37:1 - prescaling to correct movie aspect.
VO: [xv] 720x480 => 720x526 Planar YV12
A:   3.9 V:   1.6 A-V:  2.284 ct: -0.035  51/ 51 184% 17% 15.9% 50 0

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the 
lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

No bind found for key ''.                         7% 13% 15.9% 265 0
A:  25.1 V:  10.1 A-V: 14.978 ct: -0.039 305/305 185% 13% 15.6% 304 0

MPlayer interrupted by signal 2 in module: decode_video
- - -
And, this is output when video can't continue
Too many video packets in the buffer: (1705 in 8391802 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
A: 112.0 V:  55.1 A-V: 56.911 ct:  0.592 1652/1652 176% 12% 11.7% 1461 0
Too many video packets in the buffer: (1705 in 8390860 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
A: 112.1 V:  55.1 A-V: 57.005 ct:  0.596 1653/1653 176% 12% 11.7% 1461 0
Too many video packets in the buffer: (1705 in 8390049 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.


MPlayer interrupted by signal 2 in module: decode_video
- - -

I'm running FC5.  Can't remember if I used yum to install, or not.
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tompoe.vcf
Type: text/x-vcard
Size: 340 bytes
Desc: not available
Url :
http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20070516/737080
a4/attachment-0001.vcf 

------------------------------

Message: 5
Date: Wed, 16 May 2007 13:21:02 -0700
From: RC <rcooley at spamcop.net>
Subject: Re: [MPlayer-users] trying to pipe mencoder to ffmpeg2theora
To: reduzierer at yahoo.de,	"MPlayer usage questions, feature requests,
	bug reports"	<mplayer-users at mplayerhq.hu>
Message-ID: <20070516132102.39955950.rcooley at spamcop.net>
Content-Type: text/plain; charset=US-ASCII

On Wed, 16 May 2007 15:25:41 +0200
Roman Haefeli <reduzierer at yahoo.de> wrote: 
 
> the only program i know to encode theora is ffmpeg2theora.

There are several others.  ffmpeg2theora is quite new actually. 
encoder_example in libtheora-(ver)/tools/ works fine.

> ffmpeg2theora cannot acces my audio-device. mencoder can access
> everything (v4l and alsa), but there is noway to pipe the stream in a
> format, that is understood by ffmpeg2theora. 

Atilla said to try mencoder with an output format other than AVI for
ffmpeg2theora.

Though, probably the bigger problem is that MPlayer/mencoder has never
been able to supress all of it's own status output to stdout.  You
really need to use a fifo instead.


------------------------------

Message: 6
Date: Wed, 16 May 2007 22:31:52 +0200
From: Nico Sabbi <nicola_sabbi at fastwebnet.it>
Subject: Re: [MPlayer-users] trying to pipe mencoder to ffmpeg2theora
To: "MPlayer usage questions, feature requests,	bug reports"
	<mplayer-users at mplayerhq.hu>
Message-ID: <464B6A38.20209 at fastwebnet.it>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Roman Haefeli wrote:
> hello
> 
> i'd like to be able to pipe the stdout of mencoder to stdin of
> ffmpeg2theora, but i troubles to bring the output of mencoder into a
> form, that is understood by ffmpeg2theora.
> 
> i tried the following:
> 
> mencoder tv:// -tv
> driver=v4l:device=/dev/video1:width=320:height=240:fps\=25:immediatemode
> \=0:adevice\=hw.1:amode\=0:alsa:audiorate\=44100:forceaudio \
> -oac pcm -af resample=22050 -ovc lavc -lavcopts vcodec=ffvhuff \
> -o /dev/stdout | \
> ffmpeg2theora -x 320 -y 240 -V 400 -a 1 -H 22050 -c 1 -o file.ogg -


stdout is seriously polluted, so

mkfifo /tmp/pipe
mencoder -o /tmp/pipe ...
ffmpeg2theora -x 320 -y 240 -V 400 -a 1 -H 22050 -c 1 -o file.ogg 
/tmp/pipe


------------------------------

Message: 7
Date: Wed, 16 May 2007 13:27:58 -0700
From: RC <rcooley at spamcop.net>
Subject: Re: [MPlayer-users] trouble loading theora codec
To: "MPlayer usage questions, feature requests, bug reports"
	<mplayer-users at mplayerhq.hu>
Message-ID: <20070516132758.55bc7f58.rcooley at spamcop.net>
Content-Type: text/plain; charset=US-ASCII

On Wed, 16 May 2007 15:08:42 -0500
Tom Poe <tompoe at fngi.net> wrote:

> VO: [xv] 720x480 => 720x526 Planar YV12
> A:   3.9 V:   1.6 A-V:  2.284 ct: -0.035  51/ 51 184% 17% 15.9% 50 0
> 
>            ************************************************
>            **** Your system is too SLOW to play this!  ****
>            ************************************************
> 

Your system probably is too slow to play it.  On2's codecs are
ridiculously CPU-intensive at resolutions above 320x240 or so (whatever
resolution can fit in your CPU cache, I believe).

Try adding -framedrop, or you can encode to another format that your
system can play in realtime.


------------------------------

Message: 8
Date: Wed, 16 May 2007 16:46:49 -0500
From: Tom Poe <tompoe at fngi.net>
Subject: Re: [MPlayer-users] trouble loading theora codec
To: "MPlayer usage questions, feature requests,	bug reports"
	<mplayer-users at mplayerhq.hu>
Message-ID: <464B7BC9.90602 at fngi.net>
Content-Type: text/plain; charset="iso-8859-1"

RC wrote:
> On Wed, 16 May 2007 15:08:42 -0500
> Tom Poe <tompoe at fngi.net> wrote:
>
>   
>> VO: [xv] 720x480 => 720x526 Planar YV12
>> A:   3.9 V:   1.6 A-V:  2.284 ct: -0.035  51/ 51 184% 17% 15.9% 50 0
>>
>>            ************************************************
>>            **** Your system is too SLOW to play this!  ****
>>            ************************************************
>>
>>     
>
> Your system probably is too slow to play it.  On2's codecs are
> ridiculously CPU-intensive at resolutions above 320x240 or so (whatever
> resolution can fit in your CPU cache, I believe).
>
> Try adding -framedrop, or you can encode to another format that your
> system can play in realtime.
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
>   
$> mencoder summit07_eben1.ogg -oac mp3lame -ovc lavc -ofps 30 -vf 
scale=320:240 -o summit1.mpg

Thanks, much, RC.  I used the command above (found it on 
http://nlindblad.org/2007/01/28/screencasting-and-youtube-compliant-encoding/

)
and the file plays just fine on my old system.

I also tried the following command to simply rescale to smaller video 
frame size:
$ mencoder summit07_eben1.ogg -oac lavc -ovc lavc -ofps 30 -vf 
scale=320:240 -o summit2.ogg

That did not work much better than the original.
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tompoe.vcf
Type: text/x-vcard
Size: 340 bytes
Desc: not available
Url :
http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20070516/f41d44
ca/attachment.vcf 

------------------------------

_______________________________________________
MPlayer-users mailing list
MPlayer-users at mplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

End of MPlayer-users Digest, Vol 41, Issue 43
*********************************************



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return  e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.  Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.



More information about the MPlayer-users mailing list