Kodi Community Forum

Full Version: no audio on mpeg-2 files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've searched... really I have. I have had other issues resolved by serching and everything has been great, so please... if I missed my answer on this one, I am truly sorry.

I am using Creatives Digital VCR program to record my TV programs. It comes bundled with a converter to make it;s propritary video files mpeg-2 files.

When I stream these mepg-2 files to XBMC via smb, I get no audio, crisp clean wonderful video, but no audio.

I would assume there is an issue with the audio codec, my log file says so (you can see for yourself below) but I DO NOT know exactly how the Creative converter encodes the audio.

If I load the Creative mpg file into say, Nero, and export it out as an mpg file... I get audio and video, no trouble... except that it;s the second time to convert the file and genarally takes a long time to do so.

Am I just screwed using Creative, or is there some new codec I don;t have?

Oh yeah... I am using the August 29th build of XBMC on a softmoded box... And the same issue occurs whether streaming, or if the file has been ftp'ed and played form the Xbox hdd.

Thanks guys!

-Jeremy

Log file follows (network identifiers deleted for secruity purposes)

Sorry it's not from boot to end of playback, that was too many characters, hoefully this is enough for you!

12:15:03 M: 39272448 DEBUG: CPlayerCoreFactor::GetPlayers(smb://****/mpg/Untitled (SP) 4544dfca.mpg)
12:15:03 M: 38748160 INFO: mplayer play:smb://****/mpg/Untitled (SP) 4544dfca.mpg cachesize:2048
12:15:03 M: 38748160 DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://****/mpg
12:15:03 M: 32378880 DEBUG: msg: set audio functions called
12:15:03 M: 32378880 DEBUG: msg: done
12:15:03 M: 32378880 INFO: Using -subcp enca:__:CP1252 to detect the subtitle charset
12:15:03 M: 32378880 INFO: Flipping bi-directional subtitles disabled
12:15:03 M: 32378880 DEBUG: msg: mplayer_init()
12:15:03 M: 32378880 DEBUG: msg: enable mplayer osd
12:15:03 M: 32378880 DEBUG: msg: MPlayer dev-CVS-060924-20:59 © 2000-2004 MPlayer Team
12:15:03 M: 32378880 DEBUG: msg: CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville
12:15:03 M: 32378880 DEBUG: msg: (Family: 6, Stepping: 10)
12:15:03 M: 32378880 DEBUG: msg: Detected cache-line size is 32 bytes
12:15:03 M: 32378880 DEBUG: msg: CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
12:15:03 M: 32378880 DEBUG: msg: Compiled for x86 CPU with extensions:
12:15:03 M: 32378880 DEBUG: msg: MMX
12:15:03 M: 32378880 DEBUG: msg: MMX2
12:15:03 M: 32378880 DEBUG: msg: SSE
12:15:03 M: 32378880 DEBUG: msg:
12:15:03 M: 32366592 DEBUG: msg:
12:15:03 M: 32374784 DEBUG: msg: Creating config file: Q:\system\players\mplayer\config
12:15:03 M: 32362496 DEBUG: msg:
12:15:03 M: 32079872 DEBUG: msg: 88 audio & 199 video codecs
12:15:03 M: 32043008 DEBUG: msg: mplayer_open_file(smb://****/mpg/Untitled (SP) 4544dfca.mpg)
12:15:03 M: 32043008 INFO: Stating file smb://****/mpg/Untitled (SP) 4544dfca.mpg.conf
12:15:03 M: 32043008 INFO: Stating file Q:\system\players\mplayer\Untitled (SP) 4544dfca.mpg.conf
12:15:03 M: 32043008 DEBUG: msg: Playing smb://****/mpg/Untitled (SP) 4544dfca.mpg.
12:15:03 M: 32043008 DEBUG: msg: find subtitles
12:15:03 M: 32043008 DEBUG: msg: auto open Z:\subtitle
12:15:03 M: 32043008 DEBUG: msg: protocol:smb
12:15:03 M: 32043008 DEBUG: msg: use standard file for protocol:smb
12:15:03 M: 32043008 DEBUG: msg: Option stream url: This URL doesn't have a hostname part.
12:15:03 M: 29372416 DEBUG: msg:
Cache fill: 0.00% (0 bytes)
12:15:03 M: 29372416 DEBUG: msg:
Cache fill: 12.50% (262144 bytes)
12:15:03 M: 29372416 DEBUG: msg: demux_open(00BE4010,0,-1,-1,-1)
12:15:03 M: 29327360 DEBUG: msg: MPEG-PS file format detected.
12:15:03 M: 28274688 DEBUG: msg: VIDEO: MPEG2 640x480 (aspect 2) 29.970 fps 10000.0 kbps (1250.0 kbyte/s)
12:15:03 M: 28274688 DEBUG: msg: Starting lookup for subs
12:15:03 M: 28274688 DEBUG: msg: Global Subsize: 0 - VOBSUB: -1, DEMUX: -1, SUBS: -1
12:15:03 M: 28274688 DEBUG: msg: Global Subpos : -1
12:15:03 M: 28274688 DEBUG: msg: ==========================================================================
12:15:03 M: 28274688 DEBUG: msg: Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
12:15:04 M: 22245376 DEBUG: msg: ADecoder init failed :(
12:15:04 M: 22323200 DEBUG: msg: ADecoder init failed :(
12:15:04 M: 22323200 DEBUG: msg: Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
12:15:04 M: 21913600 DEBUG: msg: Unknown/missing audio format -> no sound
12:15:04 M: 22130688 DEBUG: msg: ADecoder init failed :(
12:15:04 M: 22130688 DEBUG: msg: Requested audio codec family [mad] (afm=libmad) not available.
Enable it at compilation.
12:15:04 M: 22130688 DEBUG: msg: Cannot find codec for audio format 0x50.
12:15:04 M: 22130688 DEBUG: msg: Read DOCS/HTML/en/codecs.html!
12:15:04 M: 22130688 DEBUG: msg: ==========================================================================
12:15:04 M: 22130688 DEBUG: CXBoxRenderManager::PreInit - Selected RGB-Renderer
12:15:04 M: 21622784 DEBUG: msg: ==========================================================================
12:15:04 M: 21622784 DEBUG: msg: Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
12:15:04 M: 21622784 DEBUG: msg: VDec: vo config request - 640 x 480 (preferred csp: Mpeg PES)
12:15:04 M: 21622784 DEBUG: msg: Could not find matching colorspace - retrying with -vf scale...
12:15:04 M: 21622784 DEBUG: msg: Opening video filter: [scale]
12:15:04 M: 21622784 DEBUG: msg: The selected video_out device is incompatible with this codec.
12:15:04 M: 21622784 DEBUG: msg: VDecoder init failed :(
12:15:04 M: 21622784 DEBUG: msg: Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
12:15:04 M: 20369408 DEBUG: msg: Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
12:15:04 M: 20369408 DEBUG: msg: ==========================================================================
12:15:04 M: 20369408 DEBUG: msg: Audio: no sound
12:15:04 M: 20369408 DEBUG: msg: Starting playback...
12:15:04 M: 20369408 DEBUG: msg: mplayer_open_file(smb://****/mpg/Untitled (SP) 4544dfca.mpg) done 1.0000
12:15:04 M: 19845120 DEBUG: Playback has started
12:15:04 M: 19886080 DEBUG: msg: VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
12:15:04 M: 19886080 DEBUG: msg: VDec: using Planar YV12 as output csp (no 0)
12:15:04 M: 20410368 DEBUG: msg: Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
12:15:04 M: 20410368 DEBUG: msg: VO: [directx] 640x480 => 640x480 Planar YV12
12:15:04 M: 20410368 NOTICE: Display resolution AUTO : NTSC 4:3 (4)
12:15:04 M: 19918848 DEBUG: Created YV12 texture 0
12:15:04 M: 19427328 DEBUG: Created YV12 texture 1
12:15:04 M: 18964480 DEBUG: Activating window ID: 12005
12:15:04 M: 18964480 DEBUG: Checking if window ID 12005 is locked.
12:15:04 M: 24035328 DEBUG: Deleted YV12 texture 1
12:15:04 M: 24035328 INFO: Loading skin file: VideoFullscreen.xml
12:15:04 M: 24035328 INFO: Loading skin file: VideoOSD.xml
12:15:04 M: 23437312 INFO: Loading skin file: VideoOSDSettings.xml
12:15:04 M: 22728704 INFO: Loading skin file: VideoOSDSettings.xml
12:15:05 M: 22269952 DEBUG: CGUIFontTTF::Load Scaled size of font Q:\Media\Fonts\Arial.ttf (28): width = 76, height = 39
12:15:05 M: 21778432 DEBUG: msg: FFRW:normal play
12:15:05 M: 21774336 DEBUG: CGUIInfoManager::SetCurrentMovie(smb://****/mpg/Untitled (SP) 4544dfca.mpg)
12:15:05 M: 20807680 DEBUG: CVideoDatabase::GetMovieInfo(smb://****/mpg/Untitled (SP) 4544dfca.mpg), query = select * from movie join path on movie.idPath = path.idPath join movieinfo on movie.idMovie = movieinfo.idMovie join files on movie.idMovie = files.idMovie where (path.strPath like 'smb://****/mpg' and files.strFileName like '/Untitled (SP) 4544dfca.mpg') or path.strPath like 'stack://smb://****/mpg'
12:15:16 M: 26505216 DEBUG: msg: mplayer_close_file()
12:15:16 M: 26603520 DEBUG: msg:
12:15:16 M: 26603520 DEBUG: msg: uninit_player
12:15:16 M: 33447936 DEBUG: Deleted YV12 texture 0
12:15:16 M: 33697792 DEBUG: msg: uninit_player - done
12:15:16 M: 33697792 DEBUG: Freeing FS segment @ 0xa835c0
12:15:16 M: 33697792 DEBUG: Playback has finished
i deleted all your dups... next time please only post once.
can you post a sample of the the format?
Reagrding the mulitple posts, When I clicked to submit the post, I kept getting an invlaid link error... in IE and Firefox... And the posts didn't show up on the forum either. I am sorry about that!

Currently at work, can not post sample at the moment... HOWEVER... when I highlight the file and click with the white button and choose to play it with the DVD player... the file plays no trouble with the audio what so ever.

So I have been searching for an answer to a new qusetion, making the dvd player the default player for mpeg-2 files!

I'll post a sample later tonight!
They use different decoders. There's an application called MPEGID which will identify the types of MPEG streams in an mpeg file. Google it. You can download a demo version. Post its output here as well.
First... Thank you so much for helping out here... Especially after such a rocky start with that mulitple post thing!

Anyway... here is the ifo provided from MPEGID:

File: E:/Videos/Test103006.mpg
Type: MPEG-2 Program Stream
File Size: 3013 KB
Duration: 4 sec
Program Mux Rate: 5536000 bps
ES - MPEG Layer II Audio
stream_id: 0xC0
Layer: 2
Bit Rate: 384000 bps
Sample Rate: 32000 sps
ES - MPEG-2 Video
stream_id: 0xE0
Profile: Main
Level: Main
Bit Rate: 10000000 bps
Frame Rate: 29.97 fps
Resolution: 640 x 480
Aspect Ratio: 3:4

I'm gonna guess that bit rate is what's might be hanging up the codecs in XBMC...

My moderate knowledge of audio files tells me that's an odd looking bit rate, but I could be wrong.

And now I am gonna let my noob flag fly, cause I can;t seem to find a way to upload a file... I should read up on that, huh?
Good. I figured that it would be MP2 audio based on this message in your log. This confirms it.

Quote:12:15:04 M: 22130688 DEBUG: msg: Requested audio codec family [mad] (afm=libmad) not available. Enable it at compilation.

It seems our mplayer.dll is missing an mpeg layer-2 decoder.
that is odd cause it does include one in libavcodec, could you provide a sample of that file?

btw, did you try it in dvdplayer?
yeah, he says it works with the dvdplayer. its not suprising as it actually uses libmad.dll.
Did I discover a bug? Neat! Well... not really neat exactly.. but i feel honored to contirbute to the betterment of such a wonderful piece of software!

I can't post a sample of the file type, as I do not have permission to upload files. Says so in the posting rules down in the corner there!

And yes... It does work in the DVD player. That's the workaround I have been using, and I am quite happy with it. My concern though, is the rest of my family. Making it as easy as possible for them to use it too... especially my 5 year old daughter and the kids shows she misses while at school! She's smart though, she'll figure it out!

Thanks agian for ALL of your help, notably you kragh3d. In the weeks leading up to my asking this question, i've seen you helping out a ton of folks and I appreciate your willingness to help out. You have my utmost respect!
no problem... its what these boards are for... read the wiki page below. in there someplace are instructions on how to provide a sample.

http://www.xboxmediacenter.com/wiki/inde...Bug_Report
I shoulda just posted it to my site to begin with. Duh!

Anyway, you can get a 3 meg, 5 second sample file of the mpg's that are giving me trouble here:

http://members.cox.net/boardopboy/Test103006.mpg

I would suggest a "right click > save as" method of retriving the file

Also... I misquoted my build in my OP, it;s actuall the Septmemer 29th T3CH build.

For S's and G's, I did as the bug report wiki instructed and tested the file in MPlayer for WIndows, and the same no audio issue occurs.

Thanks again, and I will probably post a new, realted, question (in a new thread) that I can't seem to find an answer thru the search feature for. So look for it! Hopefully you can help me out there!
hmm. i get no sound in vlc 0.8.5, mplayer 1.0pre6 win32, or mplayer 1.0rc1 win32. so i decided to demux the audio into a seperate .mp2 file. foobar played it with no issue. i then tried to play the same mp2 file in mplayer 1.0pre6 win32, and got similar errors:

Quote:Playing C:\Test103006.mp2.
libavformat file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
ADecoder init failed Sad
ADecoder init failed Sad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
ADecoder init failed Sad
Requested audio codec family [mad] (afm=libmad) not available.
Enable it at compilation.