[WINDOWS][PATCH]Bitstream output of HD audio formats

  Thread Rating:
  • 17 Votes - 4.76 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
Nimo Offline
Senior Member
Posts: 224
Joined: Nov 2011
Reputation: 3
Location: Germany
Post: #1341
the AMD 7750 should work. i plan to buy the same as passive. Wink
Quote:Supports AC-3, AAC, Dolby TrueHD and DTS Master Audio formats

A/V: Sony KDL52W5500|Yamaha RX-V471|Elac Cinema XL Center|4x Elac Cinema 2 Sat|REL Strata II|Elac Sub 101 ESP
HTPC: Realan E-Q8|ASRock Z77E-ITX|iMon inside mod|i3-3225+HD4k|8GB 2133 RAM|60GB Vertex3|120W Pico PSU|Harmony 650|p8 USB-CEC|Win7 x64|XBMC 12alpha|Skin CE v2 SVN
Server: Raid 5 - 8x 2TB WD AV-GP|Win7 x64|HighPoint 2680
(This post was last modified: 2012-05-02 17:02 by Nimo.)
find
serieofilo Offline
Member
Posts: 65
Joined: Sep 2011
Reputation: 0
Location: Barcelona, Spain
Post: #1342
Hello,

As per my post about the slow instead of smooth motion (see http://forum.xbmc.org/showthread.php?tid...pid1092175 at page 133) I've pasted the log here: http://xbmclogs.com/show.php?id=2162.

I hope someone could help me about this annonying problem.

I've read a lot and I'm quite sure that is something related to the judder, stutter, etc. problem but I've not found how to solve it in a very precise manner.

Thank you.

Desktop & HTPC System:
Intel Core 2 Quad Q9450 @ 2.66GHz || 4 x 2GB DDR2-1066 Kingston @ 1066MHz
Sapphire HD 6450 1GB || Dell UltraSharp 2009W @ 1680x1050 (using DVI) || Philips LCD 42PFL8404H @ 1920x1080 (using HDMI through Yamaha SR-301)
Yamaha YHT-S401 (SR-301 Receiver + NS-BR301 Speaker)
Hauppauge WinTV-HVR-4000
find
DanielaE Offline
Team-XBMC Member
Posts: 78
Joined: Dec 2011
Reputation: 30
Location: Germany
Post: #1343
I hate to repeat myself but I won't study logs if you don't provide at least a snippet of the media file that you used to create that log in the first place.

ciao, Dani

AMD Fusion E-350/Win 8/custom XBMC, Yamaha RX-V1900, Pioneer DV-LX50, custom speakers
find
DDDamian Offline
Team-XBMC Developer
Posts: 3,023
Joined: Sep 2011
Reputation: 252
Location: Canada
Post: #1344
@serieofilo - looks like (in this file's case) a poor remux from 25fps to 23.976fps, with ffmpeg complaining:

Code:
DEBUG: ffmpeg[884]: [mpeg4] Invalid and inefficient vfw-avi packed B frames detected

Chances are if you load it with avidemux you'll get a complaint about the B-frames needing rebuilding. You can use that program to try rebuild them or demux/remux the file. Not sure if you have one or many like this, just what the log review tells me.
find
voip-ninja Offline
Donor
Posts: 770
Joined: Jan 2010
Reputation: 14
Post: #1345
Ah, the joy of poorly created media files. Do yourselves a favor people, buy and rip your own media. Smile
find
serieofilo Offline
Member
Posts: 65
Joined: Sep 2011
Reputation: 0
Location: Barcelona, Spain
Post: #1346
Hi and thanks to everyone,

@DanielaE: Sorry, I have the snippet but I've forgot to upload. Where do you want it upload?
@DDDamian: Yes, I've seen that error but if the error is in the encoding, why MPC-CH play smooth?
@voip-ninja: ;-) ... some all-in-one converters doesn't work as expected

In the meantime I've read some posts about disabling Aero (check "Disable Desktop Composition" in the XBMC.exe properties) help some other programs, like WMC or games, in full screen mode [see http://www.avsforum.com/avs-vb/showthrea...t=1397874] so I'll try it ASAP.

Thanks again.

Desktop & HTPC System:
Intel Core 2 Quad Q9450 @ 2.66GHz || 4 x 2GB DDR2-1066 Kingston @ 1066MHz
Sapphire HD 6450 1GB || Dell UltraSharp 2009W @ 1680x1050 (using DVI) || Philips LCD 42PFL8404H @ 1920x1080 (using HDMI through Yamaha SR-301)
Yamaha YHT-S401 (SR-301 Receiver + NS-BR301 Speaker)
Hauppauge WinTV-HVR-4000
find
voip-ninja Offline
Donor
Posts: 770
Joined: Jan 2010
Reputation: 14
Post: #1347
You might consider doing a fresh BD rip with MakeMKV that includes the HD audio, and then testing. Remember that you should NOT be using the video option "match refresh rate to display" if you are also using the option "match refresh rate to video framerate" with this patch for best results.
find
Maxoo Offline
Fan
Posts: 329
Joined: Mar 2010
Reputation: 11
Location: Paris, France
Post: #1348
(2012-05-02 22:29)serieofilo Wrote:  @DDDamian: Yes, I've seen that error but if the error is in the encoding, why MPC-CH play smooth?
Cause the error is not in the encoding, but in the packaging. MPC-HC is aware of the error and adapt. That doesn't change the fact that your file is probably badly packaged. Try what DDDamian suggested, repackaging doesn't take time.

Admin @ Passion-XBMC
(official french community)
find
bluray Offline
Posting Freak
Posts: 7,575
Joined: May 2011
Reputation: 139
Post: #1349
(2012-05-02 19:51)serieofilo Wrote:  I've read a lot and I'm quite sure that is something related to the judder, stutter, etc. problem but I've not found how to solve it in a very precise manner.

Thank you.
You can try these, but changing one thing at a time. If it doesn't work after you changed it, switch it back to original settings.....

1st try- Enable DXVA2 and use DXVA as Render Method, and disable everything else in XBMC settings/video/playback. Disable "Use a fullscreen window rather than true fullscreen" in XBMC settings/system/video output. Try to playback movie afterward.....my AMD HTPC work with these settings.....

If the 1st try doesn't work, move to 2nd try....
2nd try- Disable "DXVA2" and everything else in XBMC settings/video/playback. Disable "Use a fullscreen window rather than true fullscreen" in XBMC settings/system/video output. Try to playback movie afterward.....my Intel HTPC work with these settings.....


All the above takes very little time to try, and can be switched back in no time too.....

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find
serieofilo Offline
Member
Posts: 65
Joined: Sep 2011
Reputation: 0
Location: Barcelona, Spain
Post: #1350
Hi,

@Maxoo/@DDDamian: I've used Avidemux for opening the video file, unpack the bitstream and use Tools > Rebuild I & B Frames.

Then I've compared the output of "ffmpeg -i filename" for the first file and the corrected one and now I don't have the error in the final AVI:

Before:
Code:
[mpeg4 @ 01dfc5c0] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from 't:\temp\avi\Movie.avi':
  Metadata:
    encoder         : VirtualDubMod 1.5.10.2 (build 2540/release)
  Duration: 01:42:53.95, start: 0.000000, bitrate: 2177 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 23.98 tbr, 23.98 tbn, 25 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 448 kb/s
At least one output file must be specified

After the I&B correction:
Code:
Input #0, avi, from 't:\temp\avi\Movie - Unpacked.avi':
  Duration: 01:42:53.95, start: 0.000000, bitrate: 2177 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (DX50 / 0x30355844), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 23.98 tbr, 23.98 tbn, 25 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 448 kb/s
At least one output file must be specified

I'll try this video tonight when my wife leaves the TV ;-)

I've tested too the "Disable Desktop Composition" and the same incorrect video file is smooth (I can't be sure if better than MPC-HC alone but a lot better than XBMC without the Aero disabled). So, I've added some lines to my startup script for XBMC:

Code:
...
IF "%SCREEN%"=="1" (
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%~dp0XBMC.exe" /t REG_SZ /d "DISABLEDWM" /f >NUL
) ELSE (
    reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%~dp0XBMC.exe" /f >NUL 2>&1
)
...

The idea is to add the key DISABLEDWM in the registry (is the same that checking the "Disable Desktop Composition" in the file properties) when I launch XBMC in my screen 1 (i.e. the TV) and delete it if I launch in Desktop/Windowed mode in my screen 0 (i.e. my Desktop monitor) because here the problem doesn't appear.

Thanks.

Desktop & HTPC System:
Intel Core 2 Quad Q9450 @ 2.66GHz || 4 x 2GB DDR2-1066 Kingston @ 1066MHz
Sapphire HD 6450 1GB || Dell UltraSharp 2009W @ 1680x1050 (using DVI) || Philips LCD 42PFL8404H @ 1920x1080 (using HDMI through Yamaha SR-301)
Yamaha YHT-S401 (SR-301 Receiver + NS-BR301 Speaker)
Hauppauge WinTV-HVR-4000
(This post was last modified: 2012-05-02 23:20 by serieofilo.)
find
Thread Closed