Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd August 2010, 20:26   #1  |  Link
ltd82
Registered User
 
Join Date: Dec 2008
Posts: 6
Cannot find codec matching selected -vo and video format 0x10000002

Hello there guru's

I need some help with mplayer, I'm a windows user in process of migration to ubuntu 10.04. Go slow on me

Here is a command I'm trying
Code:
mplayer ./source.mpg -af resample=48000:0:0,volnorm=1:0.25 -ao pcm:file=./source.mpg_temp.wav -vc dummy -vo null
The above command is a part of a script i'm trying to write.

Here is the error I'm getting in the log file just after the above is executed and my output is without sound.
Code:
Cannot find codec matching selected -vo and video format 0x10000002.
Can someone please take me through to diagnose this problem ?
ltd82 is offline   Reply With Quote
Old 23rd August 2010, 21:39   #2  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by ltd82 View Post
Here is the error I'm getting in the log file just after the above is executed and my output is without sound.
Code:
Cannot find codec matching selected -vo and video format 0x10000002.
That's caused by the forced "dummy" codec, which doesn't really exist in MPlayer. It shouldn't affect audio output though.

Try this instead:
Quote:
mplayer ./source.mpg -af resample=48000:0:0,volnorm=1:0.25 -ao pcm:fast:file=./source.mpg_temp.wav -vc null -vo null
Does mplayer play back audio from your file if you don't use -ao pcm?
nm is offline   Reply With Quote
Old 24th August 2010, 06:01   #3  |  Link
ltd82
Registered User
 
Join Date: Dec 2008
Posts: 6
Quote:
Originally Posted by nm View Post
Try this instead:
Ok i changed to

Code:
mplayer ./source.mpg -af resample=48000:0:0,volnorm=1:0.25 -ao pcm:fast:file=./source.mpg_temp.wav -vc null -vo null
Now the error is this
Code:
           ************************************************
           **** 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 it's not slow. I'm sure about this.

Code:
root@ubuntu:~# cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Extreme CPU Q9300  @ 2.53GHz
stepping	: 10
cpu MHz		: 1600.000
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 4
Quote:
Originally Posted by nm View Post
Does mplayer play back audio from your file if you don't use -ao pcm?
mplayer source.mpg plays the file just fine.

Any other recommendations ?
ltd82 is offline   Reply With Quote
Old 24th August 2010, 12:01   #4  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by ltd82 View Post
Now the error is this
Code:
           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************
No it's not slow. I'm sure about this.
This error message is due to losing A/V sync because of the -ao pcm:fast parameter. Again, the error can be completely ignored when dumping audio.

The question is, did it produce an audio file or not?


Quote:
Originally Posted by ltd82 View Post
mplayer source.mpg plays the file just fine.
Can you hear the audio with this command:

Code:
mplayer ./source.mpg -af resample=48000:0:0,volnorm=1:0.25 -vc null -vo null
nm is offline   Reply With Quote
Old 24th August 2010, 16:46   #5  |  Link
ltd82
Registered User
 
Join Date: Dec 2008
Posts: 6
Quote:
Originally Posted by nm View Post
This error message is due to losing A/V sync because of the -ao pcm:fast parameter. Again, the error can be completely ignored when dumping audio.

The question is, did it produce an audio file or not?
yes I have source.mpg_temp.wav created and it plays fine. But the final output file doesn't have audio.

Here are the next commands being executed.

Code:
neroAacEnc -br 48000 -he -if ./source.mpg_temp.wav -of ./source.mpg_temp.mp4
MP4Box -add source.mpg_temp.264#video:fps=25.000 source.mpg.m4v
MP4Box -add source.mpg_temp.mp4#audio source.mpg.m4v
MP4Box -inter 500 -itags album=na:artist=na:comment=na:created=na:name=na -lang Hindi source.mpg.m4v
It could be a problem with one of these commands ?

Quote:
Can you hear the audio with this command:

Code:
mplayer ./source.mpg -af resample=48000:0:0,volnorm=1:0.25 -vc null -vo null
Yes I can hear the audio and here is the output if this may help.
Code:
junaid@ubuntu:~/Desktop/conversion/new$ mplayer ./source.mpg -af resample=48000:0:0,volnorm=1:0.25 -vc null -vo null
MPlayer SVN-r32011-4.4.3 (C) 2000-2010 MPlayer Team

Playing ./source.mpg.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  6000.0 kbps (750.0 kbyte/s)
==========================================================================
Forced video codec: null
Opening video decoder: [null] Null video decoder
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 720x576 => 720x576 Planar YV12 
Selected video codec: [null] vfm: null (NULL codec (no decoding!))
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A:  12.6 V:  12.6 A-V:  0.005 ct: -0.267 311/311  0%  0%  0.7% 0 0 


MPlayer interrupted by signal 2 in module: sleep_timer
A:  12.6 V:  12.6 A-V:  0.004 ct: -0.267 312/312  0%  0%  0.7% 0 0 

Exiting... (Quit)
ltd82 is offline   Reply With Quote
Old 24th August 2010, 18:20   #6  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by ltd82 View Post
yes I have source.mpg_temp.wav created and it plays fine. But the final output file doesn't have audio.

Here are the next commands being executed.

Code:
neroAacEnc -br 48000 -he -if ./source.mpg_temp.wav -of ./source.mpg_temp.mp4
MP4Box -add source.mpg_temp.264#video:fps=25.000 source.mpg.m4v
MP4Box -add source.mpg_temp.mp4#audio source.mpg.m4v
MP4Box -inter 500 -itags album=na:artist=na:comment=na:created=na:name=na -lang Hindi source.mpg.m4v
It could be a problem with one of these commands ?
Yes, the problem is either in those steps or in the player that you use for playing back the final file.

I couldn't reproduce the issue though; both audio and video played back fine when using your commands.

Let's take one step at a time:
1. Can you hear audio when playing back the source.mpg_temp.mp4 file produced by neroAacEnc? If not, the problem is there.
2. If the AAC MP4 file is fine but the resulting M4V isn't, what does MPlayer print to the terminal when you try playing the M4V file?
nm is offline   Reply With Quote
Old 28th August 2010, 00:22   #7  |  Link
ltd82
Registered User
 
Join Date: Dec 2008
Posts: 6
I tried that but couldn't fix the gpac problem but ffmpeg did the trick.

Thanx a lot for the help, really appreciate it.
ltd82 is offline   Reply With Quote
Reply

Tags
mplayer, ubuntu


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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:48.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.