Giter Club home page Giter Club logo

Comments (2)

MikeIndiaAlpha avatar MikeIndiaAlpha commented on September 3, 2024

Looked into that today, and I believe the 6th frame is produced by the FPS filter. The test asks for "P720p30fps16x9" profile, but the input video is 25FPS (which I checked ffprobe -show_frames -unit: frame duration is 0.04s or 40ms). Now converting from 25FPS to 30FPS requires adding 5 frames per second, or one additional frame every five original frames. This is what I believe happens here. To be more precise, these are original video timestamps:
pkt_pts_time=1.480000 s
pkt_pts_time=1.520000 s
pkt_pts_time=1.560000 s
pkt_pts_time=1.600000 s
pkt_pts_time=1.640000 s
So original video has 5 frames over 0.16s
And transcoded video timestamps:
pkt_pts_time=1.466016 s
pkt_pts_time=1.499349 s
pkt_pts_time=1.532682 s
pkt_pts_time=1.566016 s
pkt_pts_time=1.599349 s
pkt_pts_time=1.632682 s
So transcoded video has 5 frames over 0.166666s. Not sure why the timestamps are shifted (I mean why the first frame of transcoded video doesn't repeat the timestamp of the first frame of original video), but I guess this is how filter works.

I also verified my theory by invoking the test with "P720p25fps16x9" profile, thus getting rid of FPS filter. The results were as expected, 5 output frames. My conclusion is: this is not really a bug, transcoder is behaving properly.

What do you think @AlexKordic ?

from lpms.

AlexKordic avatar AlexKordic commented on September 3, 2024

Good point! This is then false report from my side

from lpms.

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.