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

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 24th August 2010, 19:49   #7  |  Link
ltd82
Registered User
 
Join Date: Dec 2008
Posts: 6
Quote:
Originally Posted by nm View Post
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.
Yeps it plays fine and I can hear the audio.
Quote:
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?
I will update this in few mins.

Last edited by ltd82; 24th August 2010 at 20:05.
ltd82 is offline   Reply With Quote
Old 25th August 2010, 00:19   #8  |  Link
ltd82
Registered User
 
Join Date: Dec 2008
Posts: 6
Quote:
Originally Posted by nm View Post
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?
Ok so I tried this and here are the results.

Code:
mplayer source.mpg.m4v
MPlayer SVN-r32011-4.4.3 (C) 2000-2010 MPlayer Team

Playing source.mpg.m4v.
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
VIDEO:  [H264]  576x432  24bpp  25.000 fps  593.0 kbps (72.4 kbyte/s)
Clip info:
 major_brand: M4V 
 minor_version: 0
 compatible_brands: isomavc1M4V mp42
 album: na
 artist: na
 comment: na
 date: na
 title: na
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 576x432 => 576x432 Planar YV12 
V:  19.0   0/  0  8%  5%  0.0% 0 0 

Exiting... (Quit)
Since there is no sound so the problem seems to be coming from this command
Code:
MP4Box -add source.mpg_temp.264#video:fps=25.000 source.mpg.m4v
MP4Box -add source.mpg_temp.mp4#audio source.mpg.m4v
So far i have been looking at the log file which was generated by the script but when i looked at the terminal where script was running I figured the problem is here when MP4Box is adding the sound to the video.
Code:
Setting up iTunes/iPod file...
Forcing AVC/H264 SAR to 1:1...
Saving to source.mpg.m4v: 0.500 secs Interleaving
*** buffer overflow detected ***: MP4Box terminated     
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0xbbd390]
/lib/tls/i686/cmov/libc.so.6(+0xe12ca)[0xbbc2ca]
/usr/local/lib/libgpac.so(chpl_New+0x42)[0xe0ec62]
/usr/local/lib/libgpac.so(+0x1dcd5d)[0xe27d5d]
/usr/local/lib/libgpac.so(udta_Read+0x4a)[0xe129ba]
/usr/local/lib/libgpac.so(+0x1dce99)[0xe27e99]
/usr/local/lib/libgpac.so(gf_isom_read_box_list+0x27)[0xe28317]
/usr/local/lib/libgpac.so(moov_Read+0x20)[0xe09e90]
/usr/local/lib/libgpac.so(+0x1dce99)[0xe27e99]
/usr/local/lib/libgpac.so(gf_isom_parse_root_box+0x3a)[0xe2841a]
/usr/local/lib/libgpac.so(gf_isom_parse_movie_boxes+0x7d)[0xe2f31d]
/usr/local/lib/libgpac.so(gf_isom_open_file+0xd1)[0xe2f691]
/usr/local/lib/libgpac.so(gf_media_import+0xb33)[0xeb77b3]
MP4Box[0x8061fa7]
MP4Box[0x804f477]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xaf1bd6]
MP4Box[0x804d261]
I'm using a ubuntu 32bit. Google didn't came up with a fix for 32bit ubuntu i saw a couple of fixes for 64bit though. Any help on this ?
ltd82 is offline   Reply With Quote
Old 25th August 2010, 10:57   #9  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by ltd82 View Post
So far i have been looking at the log file which was generated by the script but when i looked at the terminal where script was running I figured the problem is here when MP4Box is adding the sound to the video.
Code:
Setting up iTunes/iPod file...
Forcing AVC/H264 SAR to 1:1...
Saving to source.mpg.m4v: 0.500 secs Interleaving
*** buffer overflow detected ***: MP4Box terminated     
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0xbbd390]
/lib/tls/i686/cmov/libc.so.6(+0xe12ca)[0xbbc2ca]
/usr/local/lib/libgpac.so(chpl_New+0x42)[0xe0ec62]
/usr/local/lib/libgpac.so(+0x1dcd5d)[0xe27d5d]
/usr/local/lib/libgpac.so(udta_Read+0x4a)[0xe129ba]
/usr/local/lib/libgpac.so(+0x1dce99)[0xe27e99]
/usr/local/lib/libgpac.so(gf_isom_read_box_list+0x27)[0xe28317]
/usr/local/lib/libgpac.so(moov_Read+0x20)[0xe09e90]
/usr/local/lib/libgpac.so(+0x1dce99)[0xe27e99]
/usr/local/lib/libgpac.so(gf_isom_parse_root_box+0x3a)[0xe2841a]
/usr/local/lib/libgpac.so(gf_isom_parse_movie_boxes+0x7d)[0xe2f31d]
/usr/local/lib/libgpac.so(gf_isom_open_file+0xd1)[0xe2f691]
/usr/local/lib/libgpac.so(gf_media_import+0xb33)[0xeb77b3]
MP4Box[0x8061fa7]
MP4Box[0x804f477]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xaf1bd6]
MP4Box[0x804d261]
I'm using a ubuntu 32bit. Google didn't came up with a fix for 32bit ubuntu i saw a couple of fixes for 64bit though. Any help on this ?
Hmm. This bug should have been fixed since Ubuntu 9.10, and I don't have problems with gpac 0.4.5-0.3ubuntu6 in 64-bit 10.04. Which gpac version are you using?

You could try to build gpac yourself. There are some instructions here: http://ubuntuforums.org/showthread.php?t=1215281


Or mux with ffmpeg:
Code:
ffmpeg -i input.264 -i input.mp4 -vcodec copy -acodec copy output.mp4
If you don't need MP4 for hardware player compatibility, I'd suggest using MKV. Mkvtoolnix has had an order of magnitude less issues than MP4Box and GPAC.

Last edited by nm; 25th August 2010 at 11:00.
nm is offline   Reply With Quote
Old 28th August 2010, 00:22   #10  |  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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 15:20.


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