You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to use the split_video_ffmpeg method for the third audio track? #271
I want to split a file in Video OBject file format into multiple files using the split_video_ffmpeg method. There are three audio tracks in the Video OBject file format, but when you actually divide them, only the first one is the target.
The question is, is there a way to split the third part of the audio track as audio?
Supplying -map 0 will select all tracks (including video/audio/subtitles) which is probably what most people will want, so if that works out I'll look into setting that as the default for the next release.
If you only want the third audio track, instead of -map 0, specify -map 0:a:2. See the ffmpeg docs for a full description of the -map argument.
Can you let me know if that works out well for you, and if you think -map 0 is a good default? Thanks!
I've verified that this seems to work acceptably for a variety of different inputs, so this is likely a reasonable default. Subtitle tracks still won't work with this, but they're ignored as-is so this change won't affect that either (-sn is defined for all ffmpeg commands by default).
Activity
Breakthrough commentedon Jun 5, 2022
Try adding
-map 0to thearg_overrideparameter to include all tracks, e.g.:Supplying
-map 0will select all tracks (including video/audio/subtitles) which is probably what most people will want, so if that works out I'll look into setting that as the default for the next release.If you only want the third audio track, instead of
-map 0, specify-map 0:a:2. See the ffmpeg docs for a full description of the-mapargument.Can you let me know if that works out well for you, and if you think
-map 0is a good default? Thanks!Breakthrough commentedon Jul 11, 2022
I've verified that this seems to work acceptably for a variety of different inputs, so this is likely a reasonable default. Subtitle tracks still won't work with this, but they're ignored as-is so this change won't affect that either (
-snis defined for all ffmpeg commands by default).[video_splitter] Add `-map 0` to default ffmpeg arguments.
Breakthrough commentedon Jul 13, 2022
Added
-map 0to defaultffmpegargs, will be included in v0.6.1 release.