Giter Site home page Giter Site logo

Comments (5)

erankor avatar erankor commented on May 18, 2024

can you send a link to some mp4 file that is showing this problem ?
we have been using this module on hundreds of thousands of videos and haven't experienced any out of sync, so maybe your videos are encoded in some special way that causes it.
you can also send it to me in private if you prefer - eran.kornblau at kaltura dot com

from nginx-vod-module.

erankor avatar erankor commented on May 18, 2024

I checked it out, this is caused because the audio track in this mp4 is 0.7 behind the video track.
When I initially looked at this, I guessed this was the problem, but didn't see it since for some reason mediainfo does not report it correctly:
root@pa-front-stg2 ~# mediainfo kingsway_20150830_b48b38.mp4 | grep relative
Delay relative to video : 66ms

ffprobe is showing it correctly:
root@pa-front-stg2 ~# /web/content/shared/bin/ffmpeg-2.1.3-bin/ffprobe-2.1.3.sh -i kingsway_20150830_b48b38.mp4 -show_packets -select_streams a 2>/dev/null | grep pts_time | head -1
pts_time=0.700000

root@pa-front-stg2 ~# /web/content/shared/bin/ffmpeg-2.1.3-bin/ffprobe-2.1.3.sh -i kingsway_20150830_b48b38.mp4 -show_packets -select_streams v 2>/dev/null | grep pts_time | head -1
pts_time=0.000000

I need to add parsing of the elst mp4 atom in order to extract this info, will add it to the todo

from nginx-vod-module.

scalhoun avatar scalhoun commented on May 18, 2024

Nice! Thanks so much for checking that out. I'll just keep an eye on this thread for the update.

from nginx-vod-module.

erankor avatar erankor commented on May 18, 2024

Hi @scalhoun,

Sorry for the very long delay, and thanks for your patience.
I pushed a fix to this issue here: #190.
The fix eliminates most of the out of sync issue, I say 'most' and not 'all' since in the sample you sent me, the audio track is delayed by 0.7 sec while the video track is ahead by 0.06 sec. The code currently supports only positive shifts, so it will apply a shift of 0.7 sec while it should actually apply 0.76 sec, but this is far less disturbing than how it used to be.

Eran

from nginx-vod-module.

scalhoun avatar scalhoun commented on May 18, 2024

Sweet thanks!

-- 
Shane Calhoun
Sent with Airmail

On December 6, 2015 at 11:22:58 AM, erankor ([email protected]) wrote:

Closed #142.


Reply to this email directly or view it on GitHub.

from nginx-vod-module.

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.