[MPlayer-users] Can't frontend mplayer?

SMuelas smuelas at mecanica.upm.es
Mon Dec 3 18:28:40 CET 2001


I have tried your test and it works wonderfully. I attach my log file as
you to be able to see what it launches. I have tried changing "null" by
a video mode and the film begin immediately    :-)
Please, if you take the time to make a nice GUI to launch the program,
don't forget to tell me. I have enough with this absurdity of PNG thing.



On Mon, 2001-12-03 at 17:53, Lewin A.R.W. Edwards wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html &
>  http://gcc.gnu.org/gcc-2.96.html if you still have questions or problems]
> 
> Hallo!
> 
> I'm developing a multimedia frontend program, and I wanted to be able to 
> let the user use mplayer (if installed) as one of the backends. However I 
> can't seem to build a commandline and call mplayer from within my own 
> program! For example, this simple program:
> 
> #include <stdlib.h>
> 
> int main(int argc, char *argv[])
> {
> system("/usr/local/bin/mplayer -vo null -quiet -framedrop 
> /mymediafiles/fred.mpg >/test.log");
> return 0;
> }
> 
> Examining test.log (from the above) shows that mplayer parses the mpg file 
> OK and gets as far as starting to play, but crashes everything (the 
> keyboard is locked up, and I can't Ctrl-Alt-Backspace out of X, can't 
> switch to another terminal, but the OS is still running underneath - I can 
> connect via ftp). If I run mplayer from an xterm with the identical command 
> line it works fine!
> 
> Can someone try the above program, of course replacing the path with some 
> video file on your own system, and see if it is possible? Or maybe offer 
> some suggestion as to why it behaves so strangely? :)
> 
> 
> _______________________________________________
> RTFM!!!  http://www.MPlayerHQ.hu/DOCS
> Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
> 
-- 
Santiago Muelas (Depto. de Mecánica)         
http://w3.mecanica.upm.es/~smuelas
ETSI de Caminos, Canales y Puertos (U.P.M)    smuelas at mecanica.upm.es
Dr.Aranguren s/n - Ciudad Universitaria       Tf. 91 336 6659
MADRID 28040
-------------- next part --------------


MPlayer CVS-011130-20:35(C) 2000-2001 Arpad Gereoffy (see DOCS!)

CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville
Testing OS support for SSE... yes.
Testing OS support for SSE unmasked exceptions... yes.
Tests of OS support for SSE passed.
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/smuelas/.mplayer/codecs.conf: 18 audio & 40 video codecs
Font /home/smuelas/.mplayer/font/font.desc loaded successfully! (206 chars)
Using usleep() timing
Playing /mnt/cdrom1/mejor1.avi
Detected AVI file format!
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
VIDEO:  [DIV3]  512x272  24bpp  25.00 fps  1042.7 kbps (127.3 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:512x272  fps:25.00  ftime:=0.0400
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
mp3lib: Processor ID: 683
mp3lib: Using Pentium-MMX optimized decore.
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 16000->192000
Detected video codec: [divxds] drv:4 (DivX ;-) (MS MPEG-4 v3))
fs seg 0x4003a000
Loading DLL: 'divx_c32.ax'
Using DirectShow codec: divx_c32.ax
Decoder is capable of YUV output ( flags 0x1 )
m_bIsDivX=1
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 512x272 => 512x272 Packed YUY2 
AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:   4/4  (8192 bytes/frag)  free:  32768
Start playing...
*** free_stream() called ***


More information about the MPlayer-users mailing list