I have this video:
It has multiple subtitles ASS/Vobsub (and attached files for sub style), audio in FLAC, DTS, Vorbis and etc.
I want to keep absolutely everything sub-related as is (their fonts attachments, the color, style, etc), but encoding the video to h264 and all the audio streams as Vorbis in FFMPEG. What syntax should i use?
+ Reply to Thread
Results 1 to 7 of 7
-
-
Use clever Ffmpeg-GUI.
Drag & drop your movie, click main, click encode videostream, set resize or keep size,
set x264 as encoder, make your settings and click encode.
If finished, click multiplex, the new created videostream is shown in green, deselect the original videostream (the blue one) and click multiplex.
Done -
Actually, i can't get it working with clever Ffmpeg-GUI, it doesn't process it correctly.
Anyone knows a FFMPEG syntax to keep all the subtitles, all the audios, all the attached files (fonts, etc) and all the subtitles style (size, color and etc) while changing the video stream encode? -
-
Unless I am mistaken, you don't need to do anything. Notice the codec says "AVC"? AVC == H264.
Similarly, HEVC == H265.
If there is something you need to do, which I doubt but is possible if your player app is real picky about codec fourcc codes, is edit the codec fourcc code/tag from AVC to H264. Which any hex editor should be able to do in 5 seconds.
If that isn't it, look more at the details of the codec: perhaps it is 10bit, or perhaps the header stripping is affecting playback recognition.
Scott -
FFMPEG uses the map parameter to process all streams, if there is only one input file it would be "-map 0".
The -c parameter specifies which codec to use to process them, if you don't want it to convert them then -c copy, but this would not process anything. I guess you already use the -c parameter somewhere to indicate the video codec. To copy only the audio and subtitle streams would be "-c:a copy -c:s copy", the attachments cannot be converted so it always copies them. Now to specify the audio streams to convert, as far as I can see they are the first 2 audio streams, it would be "-c:a:0 libvorbis -c:a:1 libvorbis"
The final command would look something like this
Code:ffmpeg -i "input.mkv" -map 0 [your_video_parameters] -c:a copy -c:s copy -c:a:0 libvorbis -c:a:1 libvorbis "output.mkv"
Similar Threads
-
Batch edit SSA subs style whilst also resampling resolution
By randombuddy in forum SubtitleReplies: 2Last Post: 22nd Mar 2021, 14:52 -
MKV files keeping attachments as Video Tracks Post Conversion Using FFmpeg
By savethelost007 in forum Video ConversionReplies: 1Last Post: 2nd Dec 2020, 04:29 -
Resize MP4 video with ffmpeg and keeping aspect ratio?
By pxstein in forum Video ConversionReplies: 1Last Post: 18th Apr 2020, 14:33 -
FFMPEG - Replacing a video stream, while keeping all other streams the same
By vandalay22 in forum Video Streaming DownloadingReplies: 4Last Post: 11th Nov 2019, 10:41 -
I want to convert VFR to CFR while keeping the video interlaced
By ENunn in forum Video ConversionReplies: 34Last Post: 24th Apr 2019, 04:50