Kodi Community Forum
AudioEngine branch - DO NOT REQUEST BINARY BUILDS - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: AudioEngine branch - DO NOT REQUEST BINARY BUILDS (/showthread.php?tid=78289)



- Calvados - 2011-04-18

gnif Wrote:Yay, first time I have had another update before people replied to the thread Tongue

Anyway, here is the update.... its a good one.... here it comes...

Shocked TrueHD passthrough *should* be working, I cant test it yet as I don't have access to my receiver at the moment.

It almost work - my receiver sees a TrueHD stream in 48Khz but with 1/0/0 as channel config (needless to say I hear nothing). I tried with my bluray of "the hangover".

FYI, here is the log:

16:17:50 T:139707994793728 M:3942559744 INFO: ffmpeg[4D66E700]: Input #0, mpegts, from 'http://127.0.0.1:51000/stream/title3.m2ts':
16:17:50 T:139707994793728 M:3942559744 INFO: ffmpeg[4D66E700]: Duration: 01:47:53.50, start: 4198.000000, bitrate: 20658 kb/s
16:17:50 T:139707994793728 M:3942559744 INFO: ffmpeg[4D66E700]: Program 1
16:17:50 T:139707994793728 M:3942408192 INFO: ffmpeg[4D66E700]: Stream #0.0[0x1011]: Video: vc1, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
16:17:50 T:139707994793728 M:3942535168 INFO: ffmpeg[4D66E700]: Stream #0.1[0x1100]: Audio: truehd, 48000 Hz, 6 channels, s32
16:17:50 T:139707994793728 M:3942535168 INFO: ffmpeg[4D66E700]: Stream #0.2[0x1100]: Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
....
16:17:51 T:139707994793728 M:3927961600 NOTICE: Opening audio stream: 1 source: 256
16:17:51 T:139708005631744 M:3927961600 DEBUG: Thread CDVDPlayerVideo start, auto delete: 0
16:17:51 T:139707994793728 M:3927961600 NOTICE: Finding audio codec for: 86063
16:17:51 T:139708005631744 M:3927961600 DEBUG: LinuxRendererGL: Cleaning up GL resources
16:17:51 T:139707994793728 M:3927961600 DEBUG: FactoryCodec - Audio: passthrough - Opening
16:17:51 T:139708005631744 M:3927961600 NOTICE: running thread: video_thread
16:17:51 T:139707994793728 M:3927961600 DEBUG: FactoryCodec - Audio: passthrough - Opened
16:17:51 T:139707994793728 M:3927961600 DEBUG: CDVDPlayerAudio: Sample rate changed, checking for passthrough
16:17:51 T:139707994793728 M:3927961600 DEBUG: FactoryCodec - Audio: passthrough - Opening
16:17:51 T:139707994793728 M:3927961600 DEBUG: FactoryCodec - Audio: passthrough - Opened
16:17:51 T:139707994793728 M:3927961600 NOTICE: Creating audio thread
16:17:51 T:139707994793728 M:3927961600 NOTICE: Opening Subtitle stream: 3 source: 256
16:17:51 T:139708027250432 M:3927961600 DEBUG: Thread CDVDPlayerAudio start, auto delete: 0
16:17:51 T:139707994793728 M:3927961600 DEBUG: FactoryCodec - Overlay: FFmpeg Subtitle Decoder - Opening
16:17:51 T:139708027250432 M:3927961600 NOTICE: running thread: CDVDPlayerAudio:Tonguerocess()
16:17:51 T:139708479068096 M:3927961600 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-x86_64-linux.so)
16:17:51 T:139708479068096 M:3927691264 DEBUG: Loading: /usr/lib/xbmc/system/ImageLib-x86_64-linux.so
16:17:51 T:139707994793728 M:3927793664 DEBUG: FactoryCodec - Overlay: FFmpeg Subtitle Decoder - Opened
16:17:51 T:139707994793728 M:3927793664 DEBUG: CDVDPlayer::SetCaching - caching state 2
16:17:51 T:139708005631744 M:3927793664 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
16:17:51 T:139708027250432 M:3927793664 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(0.000000, 0)
16:17:51 T:139708027250432 M:3927793664 INFO: CAEStreamInfo::SyncMLP - TrueHD stream detected (48000Hz)
16:17:51 T:139708027250432 M:3927793664 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
16:17:51 T:139708005631744 M:3927650304 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(0.000000, 1)
16:17:51 T:139708027250432 M:3927650304 DEBUG: CDVDPlayerAudio: Sample rate changed, checking for passthrough
16:17:51 T:139708005631744 M:3927650304 INFO: CDVDPlayerVideo - Stillframe left, switching to normal playback
16:17:51 T:139708027250432 M:3927752704 DEBUG: FactoryCodec - Audio: passthrough - Opening
16:17:51 T:139708027250432 M:3927752704 DEBUG: FactoryCodec - Audio: passthrough - Opened
16:17:51 T:139708027250432 M:3927752704 NOTICE: Creating audio stream (codec id: 86063, channels: 1, sample rate: 192000, pass-through)
16:17:51 T:139708027250432 M:3927752704 INFO: CSoftAE::GetStream - AE_FMT_RAW8, 192000, 1, RAW
16:17:51 T:139708005631744 M:3927371776 NOTICE: (VDPAU) screenWidth:1920 vidWidth:1920
16:17:51 T:139708005631744 M:3927371776 NOTICE: (VDPAU) screenHeight:1080 vidHeight:1080
16:17:51 T:139708027250432 M:3918057472 INFO: CSoftAE::OpenSink - RAW passthrough enabled
16:17:51 T:139708005631744 M:3911655424 NOTICE: (VDPAU) Total Output Surfaces Available: 2 of a max (tmp: 2 const: 4)
16:17:51 T:139708005631744 M:3911655424 NOTICE: (VDPAU) Creating the video mixer
16:17:51 T:139708005631744 M:3909365760 NOTICE: fps: 23.976024, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
16:17:51 T:139708005631744 M:3909365760 DEBUG: OutputPicture - change configuration. 1920x1080. framerate: 23.98. format: VDPAU
16:17:51 T:139708005631744 M:3909111808 NOTICE: Display resolution DESKTOP : 1920x1080 @ 50.00 - Full Screen (12)
16:17:51 T:139708479068096 M:3903496192 NOTICE: Using GL_TEXTURE_2D
16:17:51 T:139708479068096 M:3903369216 NOTICE: GL: Using VDPAU render method
16:17:51 T:139708479068096 M:3903369216 NOTICE: GL: NPOT texture support detected
16:17:51 T:139708479068096 M:3903369216 NOTICE: GL: Using GL_ARB_pixel_buffer_object
16:17:51 T:139707994793728 M:3903242240 DEBUG: CDVDPlayer::HandleMessages - player started 2
16:17:51 T:139708479068096 M:3901034496 DEBUG: Activating window ID: 12005
16:17:51 T:139708479068096 M:3900907520 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
16:17:51 T:139708479068096 M:3900907520 DEBUG: ------ Window Init (VideoFullScreen.xml) ------
16:17:51 T:139708479068096 M:3900780544 INFO: Loading skin file: VideoFullScreen.xml
16:17:51 T:139708479068096 M:3900653568 DEBUG: Load VideoFullScreen.xml: 1.26ms
16:17:51 T:139708479068096 M:3900653568 DEBUG: Alloc resources: 1.36ms (1.36 ms skin load)
16:17:51 T:139708479068096 M:3897069568 DEBUG: CAnnouncementManager - Announcement: PlaybackStarted from xbmc
16:17:51 T:139708027250432 M:3889541120 INFO: CSoftAE::Initialize - ALSA Initialized:
16:17:51 T:139708027250432 M:3889541120 INFO: Output Device : hdmi:AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x0e
16:17:51 T:139708027250432 M:3889541120 INFO: Sample Rate : 192000
16:17:51 T:139708027250432 M:3889541120 INFO: Sample Format : AE_FMT_S16NE
16:17:51 T:139708027250432 M:3889541120 INFO: Channel Count : 8
16:17:51 T:139708027250432 M:3889541120 INFO: Channel Layout: FL,FR,BL,BR,FC,LFE,SL,SR
16:17:51 T:139708027250432 M:3889541120 INFO: Frames : 64
16:17:51 T:139708027250432 M:3889541120 INFO: Frame Samples : 512
16:17:51 T:139708027250432 M:3889541120 INFO: Frame Size : 16
16:17:51 T:139708027250432 M:3889541120 DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
16:17:51 T:139708479068096 M:3889467392 DEBUG: CGUIInfoManager::SetCurrentMovie(http://127.0.0.1:51000/stream/title3.m2ts)
16:17:51 T:139707994793728 M:3885780992 DEBUG: CDVDPlayer::HandleMessages - player started 1
16:17:51 T:139707994793728 M:3885780992 DEBUG: CDVDPlayer::SetCaching - caching state 3
16:17:51 T:139707994793728 M:3885527040 DEBUG: CDVDPlayer::SetCaching - caching state 0
16:17:51 T:139708027250432 M:3885527040 DEBUG: CDVDPlayerAudio:: Discontinuity - was:51.815000, should be:329588.006606, error:329536.191606
16:17:51 T:139708479068096 M:3885019136 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
16:17:52 T:139708005631744 M:3882004480 ERROR: Decode - avcodec_decode_video returned failure
16:17:52 T:139708005631744 M:3882004480 DEBUG: CDVDPlayerVideo - video decoder returned error
16:17:52 T:139708005631744 M:3881549824 ERROR: Decode - avcodec_decode_video returned failure
16:17:52 T:139708005631744 M:3881549824 DEBUG: CDVDPlayerVideo - video decoder returned error
16:17:57 T:139708005631744 M:3772104704 DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333


- HeresJohnny - 2011-04-18

gnif Wrote:Shocked TrueHD passthrough *should* be working, I cant test it yet as I don't have access to my receiver at the moment.

Not sure if this is in any way helpful: The "DVD-Audio Decoder" project on sourceforge has support for Dolby TrueHD since foo_input_dvda_0.4.1 and they also have a component which decodes DTS-HD/MA.


- gnif - 2011-04-18

Hey, thanks for the info and the log... I will have a look at that, but we are a few tweaks away from having TrueHD working.

Fixed a few crash issues, nothing major, and I now have access to my AVR again, so I can start testing/fixing the TrueHD code.

Just for future reference, please dont paste logs in this thread, it just clutters it up, if you with to paste your log, go to "pasebin.ca" and paste it there, and link to your paste.


- liquidskin76 - 2011-04-18

Hey gnif,

Excellent work! Bring on DTS-HD!

One thing... i'm getting the following build errors when trying to compile in dx release...

Image

Thanks


- Calvados - 2011-04-19

Sorry about the log, I will remember that. Just to let you know that E-AC3 (DD+) pass-through doesn't work either, I get a 3/2/0 configuration, no sound (receiver says offset -31dB as well), and the video rendering/playback stutters coz it loses eac3 synch a lot.


- Mrfingers - 2011-04-19

Awsome news! I hope all you devs know how much you are appreciated.


- Mrfingers - 2011-04-19

Awsome news! Hope all you devs know how much you are appreciated.


- Calvados - 2011-04-19

Tried your latest fix. Works perfectly on the 3 Bluray I tried (The Hangover, Benjamin Button, Rock'n'rolla) Cool.

FYI, changing the stream on the fly, make it to somehow send a TrueHD stream but with the 1/0/0 config, meaning no sound, but when starting from the beginning it works fine.

Good work Big Grin.


- gnif - 2011-04-19

wow! I only JUST pushed that fix in Smile. I need some real TrueHD sources to verify the code is operating correctly, I only have a few 60 second samples at the moment.

As for other formats... be patient, I am working on it, and I am aware E-AC3 doesn't work properly yet, it was never finished due to lack of time.


- gnif - 2011-04-20

Ok, im confident TrueHD is working, fixed a sync issue with the audio, so if your playing with TrueHD support and notice poor lip sync, please pull the latest version.


- lloydsmart - 2011-04-20

Nice! This is fantastic news, I'll have to try it out!


- mrpeterparker - 2011-04-20

nice work!!!


TrueHD not working for me - nicob - 2011-04-20

No luck for me...
I tried 3 Bluray movies with TrueHD track:
Heat (crashed xbmc): http://paste.kde.org/15067/
Let me in (kind of fast forwards without audio): http://paste.kde.org/15079/
Dolby.The.Sound.Of.High.Definition.Blu-ray.2007.1080i.AVC.TrueHD7.1 (same as let me in): http://paste.kde.org/15103/

I noticed in the logs that it stated that TrueHD passthru was disabled, this is definitely not the case!

I know my setup is more than TrueHD capable, at least, it was when I runned Windows Smile
Normal DTS and Dolby D are playing fine with the new AE. (although normal music playback doesn't work for me either)


- lloydsmart - 2011-04-20

I can confirm the same problems as nicob with a git build on Ubuntu (10.10) today.

Not only does TrueHD not work, but I get movie speedup and no sound on all videos.

If you think it would be useful I could provide logs.

Thanks!


- Calvados - 2011-04-21

I tried 3 Blu-ray so far, played the movie entirely without any problem, will cycle through my entire collection to be sure (have a few).

Nicob: I saw you use VAAPI, I assume u have an ATI? Have you checked if ALSA HBR passthrough is supported on it? IIRC Anssi mentioned it wouldn't work on some ATI models (yet?).