Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h265 #8

Open
skeskinen opened this issue Apr 1, 2024 · 1 comment
Open

h265 #8

skeskinen opened this issue Apr 1, 2024 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@skeskinen
Copy link
Owner

HEVC smart cutting seems really tricky to get right. Couple times I had the feeling it's pretty much working and then it broke again.

Might have to just do a fallback to either cut on keyframes or recoding the whole thing. I'd love not doing that, since it's a little confusing for the end users.

Just know that h265 cutting can work, and I'm interested in debugging cases where it doesn't. But the official disclaimer is that it can fail and you shouldn't be surprised when it does.

@skeskinen skeskinen added bug Something isn't working enhancement New feature or request labels Apr 1, 2024
@skeskinen
Copy link
Owner Author

Commit 50796ec introduces my own implementation of concat muxing. It seems to have fixed some of the remaining issues with hevc.

Probably because afaict ffmpeg concat format doesn't use hevc_mp4toannexb (here: https://github.com/FFmpeg/FFmpeg/blob/376b3d53c54791c1be58709df4303ba2b90851bc/libavformat/concatdec.c#L216).
And I do it here:

remux_bitstream_filter = av.bitstream.BitStreamFilterContext('hevc_mp4toannexb', v_stream, out_stream)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant