Giter Site home page Giter Site logo

Comments (11)

xbmc-gh-bot avatar xbmc-gh-bot commented on June 26, 2024

Thank you for using Kodi and our issue tracker. This is your friendly Kodi GitHub bot 😉

It seems that you have not followed the template we provide and require for all bug reports (or have opened a roadmap item by accident). Please understand that following the template is mandatory and required for the team to be able handle the volume of open issues efficiently.

Please edit your issue message to follow our template and make sure to fill in all fields appropriately. The issue will be closed after one week has passed without satisfactory follow-up from your side.

This is an automatically generated message. If you believe it was sent in error, please say so and a team member will remove the "Ignored rules" label.

from xbmc.

CrystalP avatar CrystalP commented on June 26, 2024

Please attach a debug log (turn on debugging, restart Kodi, play the file, upload the kodi.log of the user data folder to paste.kodi.tv and add the link here) so that the non-compliance tag can be removed

from xbmc.

pat147 avatar pat147 commented on June 26, 2024

https://paste.kodi.tv/hajadarezo.kodi without the sync activated
https://paste.kodi.tv/utufigikoc.kodi with the sync activated

from xbmc.

CrystalP avatar CrystalP commented on June 26, 2024

Reproduced on Windows using sample provided in forum. It's a multiplatform issue.
Bisection shows it comes from #22796 later backported as #22870 to nexus

from xbmc.

thexai avatar thexai commented on June 26, 2024

Basically i'm muxing in a mkv file both french and english audio, both are coming from video : Pal for french (25 fps) and ntsc for english (23.976 fps)
The original file is a mkv with x65 video (23.976 fps) and AAC english audio.

You can not take an audio of 25.0 fps video and remux (add) to other 23.976 fps video because time stamps not match.

This is not possible to fix at the remux level (i.e. adding a delay).

You need use some tool like eac3to to convert audio first:
https://forum.doom9.org/showthread.php?t=125966

-slowdown convert 25.000 and 24.000 content to 23.976 fps
-speedup convert 23.976 and 24.000 content to 25.000 fps

That Kodi works poorly with a file that is incorrect is not a bug.

from xbmc.

thexai avatar thexai commented on June 26, 2024

To disable a/v sync "self-learning" algo you can use this in advancedsettings.xml

<advancedsettings>
  <audio>
    <maxpassthroughoffsyncduration>11</maxpassthroughoffsyncduration>
  </audio>
</advancedsettings>

This should result in almost same behavior that older Kodi versions.

Or even try other fixed values up to 100 (if you not want Kodi try to fix a/v sync errors up to 100 ms)

from xbmc.

thexai avatar thexai commented on June 26, 2024

Closed as this file is bad:
https://forum.kodi.tv/showthread.php?tid=376539&pid=3186962#pid3186962

from xbmc.

pat147 avatar pat147 commented on June 26, 2024

Hi, i try with the advancedsettings.xml but don't works.

You can not take an audio of 25.0 fps video and remux (add) to other 23.976 fps video because time stamps not match

As explained, even if the audio file has not the right side, it's not a pb : if the video is longer : the video continue with sound, if the video is shorter : the player stops the file.

This is not possible to fix at the remux level (i.e. adding a delay).

was working perfectly before kodi 20.1.
and you can do both : strecth the audio and add a delay with Mkvtoolnix in the audio track.

https://forum.doom9.org/showthread.php?t=125966
i was using this before but then i found what I explain above.

anyway, i found a player doing the trick perfectly : smplayer on debian. and on windows MPC-BE

from xbmc.

CrystalP avatar CrystalP commented on June 26, 2024

As far as I know mkvtoolnix alters the timestamps when using the delay/stretch parameters so the file is probably not "incorrect".
But that would put the burden on the player to maintain a/v sync either by stretching/shrinking the audio (sync playback to display ON) or by skipping/duplicating video frames here and there (sync playback to display OFF).
VLC has the same problem as Kodi, mpv does a good job with the sample it seems.

from xbmc.

thexai avatar thexai commented on June 26, 2024

Google is your friend:
https://forum.videohelp.com/threads/312812-25fps-source-Ac3-to-23-976fps

especially:
https://forum.videohelp.com/threads/312812-25fps-source-Ac3-to-23-976fps/page2#post2347972

As far as I know mkvtoolnix alters the timestamps when using the delay/stretch parameters so the file is probably not "incorrect".

Yes, is INCORRECT

Probably with older Kodi versions was obtained perfect audio and micro-stuttering video (incorrect anyway).

from xbmc.

CrystalP avatar CrystalP commented on June 26, 2024

See https://gitlab.com/mbunkus/mkvtoolnix/-/wikis/Stretch-or-shrink-audio-tracks
It does scale the timecodes. Adjusting the video stream is recommended instead.

from xbmc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.