LinuxMCE Forums

General => Users => Topic started by: Itsik on February 24, 2008, 07:29:38 am

Title: DivX movies dont play AC3 Passthru
Post by: Itsik on February 24, 2008, 07:29:38 am
I'm playing DVD movies in AC3/DTS Passthru with no problem what so ever. But for some reason DivX movies play only in analog stereo altough on Vista they play in AC3/DTS Passthru just fine.
Any idea what might be causing it and how to fix it ?

Thnx
Itsik
Title: Re: DivX movies dont play AC3 Passthru
Post by: Itsik on February 25, 2008, 06:48:14 am
anyone  ???
Title: Re: DivX movies dont play AC3 Passthru
Post by: kir on February 25, 2008, 12:58:50 pm
Do you have a small sample so I can take a look into? I would suggest you to use Konsole and KDE Desktop to track the log of xine player in this case, can you do this? Basically you need to go to KDE desktop, stop linuxmce, then:

1) edit file /home/linuxmce/.xine/config
and find there parameter "audio.output.speaker_arrangement" and set it to "Pass Through"

2) run your sample in console with
$ xine --verbose=255 /path/to/sample

Then check if it uses the PassThrough now and provide log here for start.
Title: Re: DivX movies dont play AC3 Passthru
Post by: kir on February 26, 2008, 07:19:31 pm
anyone  ???

Can you please do the following on any of your DivXs that doesn't work with SPDIF? Run the command:

#/opt/pluto-ffmpeg/bin/ffmpeg -i /path/to/my.divx

and post here the output.
Title: Re: DivX movies dont play AC3 Passthru
Post by: Itsik on February 26, 2008, 07:22:10 pm
I'll do it once I get back home in a couple of hours ...
Title: Re: DivX movies dont play AC3 Passthru
Post by: Itsik on February 26, 2008, 09:16:08 pm
I'm a total noob to linux so please bare with me ...

it gives me "unrecognized option '-i/home/public/data/other/internal' "
Title: Re: DivX movies dont play AC3 Passthru
Post by: kir on February 26, 2008, 09:19:57 pm
I'm a total noob to linux so please bare with me ...

it gives me "unrecognized option '-i/home/public/data/other/internal' "

np. first, you should put space between "-i" and file name. second - if your path to video contains spaces, enclose the full name into quotes like "/tmp/my file has spaces in it"
Title: Re: DivX movies dont play AC3 Passthru
Post by: Itsik on February 26, 2008, 09:59:03 pm
It gives me info on the codec versions ... could you tell me what exactly do you need or how can I copy and paste the content of the terminal (I opened it with ctl+alt+F2 ... )

Thnx
Itsik
Title: Re: DivX movies dont play AC3 Passthru
Post by: kir on February 26, 2008, 10:14:30 pm
It gives me info on the codec versions ... could you tell me what exactly do you need or how can I copy and paste the content of the terminal (I opened it with ctl+alt+F2 ... )

Thnx
Itsik

Yes, I am interested in the codecs versions - codec, sampling rate, etc. so just copy output here. There is possibility that properties of AC3 stream in DVDs and in DivXs are different and you are getting the problems because of this.
Title: Re: DivX movies dont play AC3 Passthru
Post by: Itsik on February 26, 2008, 10:26:10 pm
ok ... here goes ..:

FFmpeg version SVN-r19403, Copyright (c) 2000-2007 Fabrice Bellard, et al,
Configuration: --prefix=/opt/pluto-ffmpeg
libavutil version: 49.5.0
libavcodec version: 51.42.0
libavformat version: 51.12.2
built on Jan 15 2008 04:32:06, gcc: 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2
16ubuntu2)
Title: Re: DivX movies dont play AC3 Passthru
Post by: kir on February 26, 2008, 10:30:33 pm
Hmm.. it seems there is no info about tracks at all. Can you wrap it into "code" blocks? And be sure you include the last block. It should be like:

Code: [Select]
$ ffmpeg -i SURROUNDTEST_011212.wav
FFmpeg version SVN-r12187, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-nonfree --enable-pp --enable-swscaler --enable-pthreads --enable-liba52 --enable-libfaac --enable-libfaad --enable-libtheora --enable-libvorbis --enable-libx264
  libavutil version: 49.6.0
  libavcodec version: 51.50.1
  libavformat version: 52.7.0
  libavdevice version: 52.0.0
  built on Feb 24 2008 12:59:33, gcc: 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Input #0, wav, from 'SURROUNDTEST_011212.wav':
  Duration: 00:02:06.6, bitrate: 1411 kb/s
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
Must supply at least one output file

I am interested in "Stream .." info too.
Title: Re: DivX movies dont play AC3 Passthru
Post by: Itsik on February 26, 2008, 10:44:41 pm
that's the only thing I'm getting

I'm trying to reboot now ... maybe it'll help ...
Are you on the chat by any chance ?

Title: Re: DivX movies dont play AC3 Passthru
Post by: kir on February 26, 2008, 10:55:46 pm
that's the only thing I'm getting

I'm trying to reboot now ... maybe it'll help ...
Are you on the chat by any chance ?



No, I am offline already - will be back in ~10 hours :)  I guess you are not passing correctly the name of DivX file. Try to change current directory to that one where DivX file is and then run from there:

$ /opt/pluto-ffmpeg/bin/ffmpeg -i filename.avi

You can also ask someone in IRC to help you with getting this info.
Title: Re: DivX movies dont play AC3 Passthru
Post by: Itsik on February 27, 2008, 07:27:01 am
Finally  ... There you go:

Code: [Select]
FFmpeg version SVN-r19403, Copyright (c) 2000-2007 Fabrice Bellard, et al,
Configuration: --prefix=/opt/pluto-ffmpeg
libavutil version: 49.5.0
libavcodec version: 51.42.0
libavformat version: 51.12.2
built on Jan 15 2008 04:32:06, gcc: 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2
16ubuntu2)
Input #0, avi, from '/home/public/data/other/Internal HDD-CORE (sdb1) [35]/Itsik/Videos/Action/NEXT/NEXT.avi':
Duration: 01:31:57.9, start:0.000000, bitrate 1063 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 616x254, 25.00 fps(r)
Stream #0.1: Audio: 0x2000, 48000Hz, stereo, 192kb/s
Must supply at least one output file
Title: Re: DivX movies dont play AC3 Passthru
Post by: kir on February 27, 2008, 10:16:23 am
Code: [Select]
Stream #0.1: Audio: 0x2000, 48000Hz, stereo, 192kb/s

Looks like this sample AVI has "stereo" audio track. Don't know, maybe Windows does some upmixing, pretending you have 5.1 track.
Title: Re: DivX movies dont play AC3 Passthru
Post by: Itsik on February 27, 2008, 10:25:21 am
Even if windows did some upmixing (which I find hard to believe... ) I don't think it could cheat the reciever ...
Maybe there's some setting somewhere that needs to be adjusted but I really do not know where to look ... ??? :(
Title: Re: DivX movies dont play AC3 Passthru
Post by: kir on February 27, 2008, 11:02:24 am
Even if windows did some upmixing (which I find hard to believe... ) I don't think it could cheat the reciever ...
Maybe there's some setting somewhere that needs to be adjusted but I really do not know where to look ... ??? :(

Re: upmixing - it is possible, but of course if you use some player. Some players, iirc, can even do backtranscoding PCM->AC3 for receiver. When playing in Windows, do you have the "Dolby" indicator turned on?

There is possibility that ffmpeg failed to detected 5.1 for this certain file, but I don't think it is the case. Here are my tests for the true AVI with AC3:

Code: [Select]
Duration: 01:31:54.2, start: 0.000000, bitrate: 2124 kb/s
  Stream #0.0: Video: mpeg4, yuv420p, 672x368, 25.00 fps(r)
  Stream #0.1: Audio: 0x2000, 48000 Hz, 5:1, 448 kb/s

Note that there is clear indication of "5:1", plus the bitrate is higher than in your sample.
Title: Re: DivX movies dont play AC3 Passthru
Post by: Itsik on February 27, 2008, 11:30:20 am
Yes Kir, when this file is played in windows the recieves Dolby Digital indicator turns on and shows this as an AC3 file (it has indicators for AC3 and DTS as well ...)
I see the differance betwin your readout and mine ...I really don't know what could be causing it ... I'll try to play one of these files from Kubuntu tonight and see what happenes ...