20 Nov 2019 - TVDB Scraper v3.2.0 is now available which reinstates scraping. TVDB are still in the process of fixing a number of bugs so there may still be further breakages. See this post. 2901570 (post)

Solved AVI audio is out of sync since 18.0
#31
Update:

I am new to Kodi, but since I have a big collection of xvids , i hope i can help as I managed to compare some of the files which play unsynced audio.

NOT ALL xvids have the same problem, but with media info I managed to pinpoint the problem for the videos with unsynced audio, and it seems all of then  are encoded with the [email protected] xvideo profile  as its called in the encoding configuration dialog of the Xvid codec.

For example Video1 Is healthy and the audio is synced .


Video1
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : [email protected]
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 1 h 37 min
Bit rate                                 : 1 793 kb/s
Width                                    : 576 pixels
Height                                   : 416 pixels
Display aspect ratio                     : 1.385
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.299
Stream size                              : 1.22 GiB (90%)
Writing library                          : XviD 1.0.2 (UTC 2004-08-29)




While Video2 is has audio synched problems.

Video2
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced [email protected]
Format settings                          : BVOP1 / Custom Matrix
Format settings, BVOP                    : 1
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Custom
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 2 h 23 min
Bit rate                                 : 1 021 kb/s
Width                                    : 720 pixels
Height                                   : 544 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.109
Stream size                              : 1.02 GiB (80%)
Writing library                          : XviD 1.2.1 (UTC 2008-12-04)

Also another information that might help is that 90% of the files i checked have in Format Settings : CUSTOM/MATRIX.
I guess some bad boys encoders messed with the default settings of xvid writing libary.

Not all XVID -with profile Advanced [email protected] have the same problem. Some of them play fine.
But 100% of the files with Custom/Matrix format settings based on [email protected] reproduce the problem.

Also among the 100 files i checked i found also 4 DVIX encoded files With CUSTOM/Matrix format settings which are also unsynced.

I have the XF9005 Sony. For me going back to 17.6 solves the sync issue but its not ideal. Why? Has anyone noticed the reduced  quality of the videos?
SOnys x1 Processor is very good and it does great upscaling with Hardware ACCel.  enabled. So i suspect that 17.6 version uses the software encoder for those type of files and as a result plays the movie with not such great upscaling and a 15% maybe even 20% quality loss
The more powerful processor your tv has, and the bigger your tv  is, then the more noticable is the difference from one version to the other.

Then i tried  to re-encode only the sound of the file leaving the video untouched and voila what a surprise!

With avidemux it takes only 1-2 minutes for a 800mb file to -re-encode the sound to AC3(i picked it accidentally) and the audio with the picture is suddenly synced in the new file.

I intend to re-encode the sound all the videos which have that issue now since as the rumors say there are not gonna be much changes in 19xxx....

Encoding the audio only is much easier and obviously less time consuming.

I dont know why Kodi does this. If its the audio codec or the hardware acceleration, or just sony in combination with the latestr KOdi, but i hope all these information will help the developers.
Reply
#32
(2019-07-11, 14:47)DaVu Wrote: expect that a bug is instantly fixed simply becuse it's reported. Be patient. That helps most. Wink

Thanks, DaVu - your comments are almost (!) as helpful as an actual fix. As users, we can appreciate the massive effort that's gone into Kodi.

Nonetheless, I have to point out several things:

1. "Free" doesn't mean that we users have no investment in the software. On the contrary, I have invested probably a dozen or more hours attempting to work around the recent Xvid bug. And I've spent many, many hours configuring Kodi to be easy for other members of my family. We've come to rely on Kodi for many purposes.

2. Communication is essential. It would have been great if Kodi 18.3 (or whatever we're up to) had flashed a message stating that bug fixes were being delayed. At least we'd have known where we stood.

3. It's incomprehensible that such a basic thing as Xvid playback was working in Kodi 17 but broken in Kodi 18. It took real effort to do this. I'd still love to know why the breaking change couldn't easily be rolled back.

4. If you want to start charging for Kodi, sign me up. I use Kodi because it's the best application of its kind, not because it's the cheapest. I'd be very happy to pay a substantial price for what Kodi gives me. Especially if that would ensure bug fixes and feature improvements for the future.
Reply
#33
Hi, I'm newbie here (not usin xmbc, kodi, etc..)
Why is this marked as "solved"?
I couldn't read an answer that solves the issues, not al least for Android users on smar TVs
Thanks in advance for your excellent work all thes years!
Reply
#34
(2019-10-21, 11:29)jorge6880 Wrote: Hi, I'm newbie here (not usin xmbc, kodi, etc..)
Why is this marked as "solved"?
I couldn't read an answer that solves the issues, not al least for Android users on smar TVs
Thanks in advance for your excellent work all thes years!
The thread is solved because that condition will not be fixed.

The Kodi team understandably doesn't want to downgrade to an older FFMPEG version anymore. And then we would also get problems with the playback of h.265 videos, which were not smoothly playable with the older FFMPEG version of Kodi 17.6. At least not on my Sony Android TVs.

But it's a pity that they don't work on the decoderfilter.xml "problem" anymore, because with it you could force the software decoding of old MPEG4 videos, but in newer versions a bug has crept in, which doesn't allow a smooth playback anymore. In the first Kodi builds with decoderfilter.xml the playback was still absolutely smooth with older XVIDs & forced MPEG4 software decoding via decoderfilter.xml.

But long speech short sense -> thread is solved Smile
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
AVI audio is out of sync since 18.051