-
Notifications
You must be signed in to change notification settings - Fork 2
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
transmux: use stream based concatenation for clips #966
Conversation
6661ab8
to
fba854e
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #966 +/- ##
===================================================
+ Coverage 51.02313% 51.49385% +0.47072%
===================================================
Files 65 65
Lines 6744 6828 +84
===================================================
+ Hits 3441 3516 +75
+ Misses 3011 3009 -2
- Partials 292 303 +11
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Updates:
|
Occasionally, the mp4s of very short clips might stutter as it crosses segment boundaries. This was caused by incorrect PTS between segments which in turn is a result of us clipping and re-encoding the first and last segments "locally". Using a stream based concatenation instead of file based concatenation readjusts the timestamps and prevents these issues. Note: Eventually, all mp4s will be generated using stream based concatenation if this works well for clipping.
* split out ffmpeg calls to stream-concat into it's own mini function to follow the existing styles in the video package * add deletion logic for all intermediary segment files
* All transmux ops used to happen within /tmp/transmux dir with unique request-id based filenames. To make this cleaner, we now generate a unique tmp folder per request where transmux ops are done. * Also added logic to do a deferred removal of this tmp dir for each request.
32184c5
to
ffdfaa7
Compare
Updates:
|
ffdfaa7
to
2619fd7
Compare
2619fd7
to
266a888
Compare
Occasionally, the mp4s of very short clips might stutter as it crosses segment boundaries. This was caused by incorrect PTS between segments which in turn is a result of us clipping and re-encoding the first and last segments "locally". Using a stream based concatenation instead of file based concatenation readjusts the timestamps and prevents these issues.
Note: Eventually, all mp4s will be generated using stream based concatenation if this works well for clipping.