-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clip: add map arguments to ffmpeg clip commands
* The clip segments that are re-encoded will end up with the video track first and audio track second wheras the track ordering is reversed for the source recorded segments. If these segments are transmuxed into a single ts/mp4 file, the resulting file will stop playing after the first segment's worth of video. To resolve this, this commit adds the 'map' args to the ffmpeg command to ensure the audio track is always placed first and video track second similar to the recorded segments. * The ffmpeg call is also being switched to a cmd.Run call since the go-ffmpeg library doesn't allow us to have multiple '-map' args in the command line (one instance gets dropped resulting in an incorrect ffmpeg cmd).
- Loading branch information
1 parent
70dd5bd
commit 2eeb00c
Showing
2 changed files
with
60 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters