LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2009, 06:31 AM   #1
Accinson
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Rep: Reputation: 6
Using mplayer in a program


Hello,
i am using mplayer to play some videoclips in a program i'm writing.
I have just changed the development pc and some problems have arisen,but they also helped me to find out a thing i didn't know:if mplayer fails to play a file for some reason,it will still return a zero exit code,meaning it closed successfully.

To give some more detail,i get the following output:
Code:
MPlayer dev-SVN-r27514-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E4600  @ 2.40GHz (Family: 6, Model: 15, Stepping: 13)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing testVideo.log.
Ogg stream 0 is of an unknown type
[Ogg] stream 1: video (Theora v3.2.0), -vid 0
Ogg file format detected.
VIDEO:  [theo]  1600x1200  24bpp  15.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[theora @ 0x86d2fb0]Missing extradata!
Could not open codec.
VDecoder init failed :(
Opening video decoder: [theora] Theora/VP3
VDec: vo config request - 1600 x 1200 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 1600x1200 => 1600x1200 Planar YV12 
Source image dimensions are too high: 1600x1200 (maximum is 1920x1088)
FATAL: Cannot initialize video driver.
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x6F656874.
Read DOCS/HTML/en/codecs.html!
==========================================================================


Exiting... (End of file)
Is there some way to know if the playback was successful or not?
I have tried on their mailing list before,but it doesn't seem to work....
 
Old 03-31-2009, 12:08 PM   #2
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 44
I looked through the source briefly and it appears that for that condition you should be able to make the program exit with an other-than-zero status with some fairly simple code changes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mplayer build: configure finds ALSA, but mplayer doesn't galle Linux - Software 5 10-13-2007 07:14 PM
Mplayer codecs - running 32bit mplayer on 64bit OS sleepyrob Linux - Software 2 08-12-2006 06:08 AM
In Kubuntu I have compiled MPlayer and it works fine, MPlayer Plug-in is not working kickass331 Linux - Newbie 10 08-11-2006 10:12 PM
need program to output vidcaps (can mplayer do it?) bamsesbilledbog Linux - Software 2 03-11-2006 11:23 AM
how to recompile a installed program(mplayer) erik Linux - Software 3 01-12-2005 01:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration