Giter Site home page Giter Site logo

VLC/MPlayerX playback fails about kap HOT 5 CLOSED

wulkano avatar wulkano commented on May 14, 2024 2
VLC/MPlayerX playback fails

from kap.

Comments (5)

matheuss avatar matheuss commented on May 14, 2024 2

Thank you for the detailed feedback @bramkok 😌 We'll be shipping a fix with the release that's coming tomorrow! 😄

from kap.

timothyis avatar timothyis commented on May 14, 2024

Can reproduce. Looking into it.

from kap.

matheuss avatar matheuss commented on May 14, 2024

@bramkok could you see if you can reproduce it with a recording from QuickTime?

from kap.

bramkok avatar bramkok commented on May 14, 2024

Can't reproduce this behavior with QuickTime screen recording.

QuickTime screen recording test
MPlayerX playback test
VLC playback test

^ all recorded with Kap.

from kap.

matheuss avatar matheuss commented on May 14, 2024

Well, sadly we could not find a viable solution for this 😔

It's a pretty weird bug – you can play the Kaptures on Chrome and QuickTime, for example, with no problems 😕

We spent some time yesterday researching about this and here's what we found:

Info about a Kapture via ffprobe file.mp4

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1016x1016 [SAR 1:1 DAR 1:1], 50 kb/s, 30 fps, 30 tbr, 6k tbn, 50 tbc (default)

Info about a QuickTime recording via ffprobe file.mp4

Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1216x872 [SAR 1:1 DAR 152:109], 113 kb/s, 60 fps, 60 tbr, 6k tbn, 50 tbc (default)

Notice that they are almost the same – the only difference is the profile name (High vs Main).

Fixing it

ffmpeg -i Kapture.mp4 -pix_fmt yuv420p -preset ultrafast Kapture-fixed.mp4

This will change the ffprobe output to:

Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1016x1016 [SAR 1:1 DAR 1:1], 25 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)

Notice that the (tv, bt709) is gone.

This is enough to make VLC open the file without trouble.

Fixing it with Swift

We could also fix it low level – you can choose the pixel format when recording with AVFoundation. There's some (rare) info about that out there, like this article. It's a hard task and I'm afraid we don't have time for it now 😔 We want to focus on features like GIF support (#14) and kap-server (#23).

Conclusion

We'd like to add it to aperture.js, but the problem is: it can add a lot of post processing time to a Kapture. With small ones (~500x500), it's ok; with bigger ones (3000x1800 for instance) it takes something like 3 seconds for each second of video (tested in a MacBook Pro Retina 13" Mid 2014) 😕

For now, I would like to classify this as a kinda upstream issue, since Chrome, Slack, QuickTime etc have no problem to play Kaptures.

Any help with this is more than welcome!

from kap.

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.