Okay, I managed muxing ttxt to mp4 using ffmpeg by first converting the .ttxt subtitles to srt and then using:
I also can mux idx/sub subtitles into ffmpeg using for example:Code:ffmpeg -y -r 25/1 -i "J:\tmp\test.m4v" -i "G:\Output\test_new_0.srt" -vcodec copy -scodec mov_text -map 0:0 -map 1:0 -aspect 640:352 -r 25/1 "G:\Output\test_new.mp4"
Problem is, what to do if I have multiple subtitle formats?Code:ffmpeg -y -r 25/1 -i "J:\tmp\test.m4v" -i "G:\Output\test_new_0.idx" -vcodec copy -scodec copy -map 0:0 -map 1:0 -aspect 640:352 -r 25/1 "G:\Output\test_new.mp4"
I suspected that:
I would need to us:
but that gives me:Code:ffmpeg -y -i "G:\Output\test.m4v" -i "G:\Output\test_1.srt" -i "G:\Output\test_0.idx" -c:v copy -c:s:0 mov_text -c:s:1 copy -map 0 -map 1 -map 2 -aspect 640:352 -r 25/1 "G:\Output\test_new.mp4"
=> How do I get this working? How to tell ffmpeg to convert the .srt-subtitle to mov_text and copy the .idx-subtitle?Code:Input #0, m4v, from 'G:\Output\test.m4v': Duration: N/A, start: 0.400000, bitrate: N/A Stream #0:0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 640x352 [SAR 1:1 DAR 20:11], 25 fps, 25 tbr, 1200k tbn [srt @ 0000020190c7d4c0] Dropping 9 duplicated subtitle events Input #1, srt, from 'G:\Output\test_1.srt': Duration: N/A, bitrate: N/A Stream #1:0: Subtitle: subrip Input #2, vobsub, from 'G:\Output\test_0.idx': Duration: N/A, bitrate: N/A Stream #2:0[0x0](en): Subtitle: dvd_subtitle, 720x480 (default) Stream #2:1[0x1](en): Subtitle: dvd_subtitle, 720x480 [vost#0:0/copy @ 00000201925fe040] Overriding aspect ratio with stream copy may produce invalid files [sost#0:3 @ 00000201925ced40] Automatic encoder selection failed Default encoder for format mp4 (codec none) is probably disabled. Please choose an encoder manually. [sost#0:3 @ 00000201925ced40] Error selecting an encoder
Cu Selur
+ Reply to Thread
Results 1 to 3 of 3
-
users currently on my ignore list: deadrats, Stears555, marcorocchini
-
That looked like it worked,...
Code:Input #0, m4v, from 'G:\Output\test.m4v': Duration: N/A, start: 0.400000, bitrate: N/A Stream #0:0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 640x352 [SAR 1:1 DAR 20:11], 25 fps, 25 tbr, 1200k tbn [srt @ 0000020caa97ffc0] Dropping 9 duplicated subtitle events Input #1, srt, from 'G:\Output\test_1.srt': Duration: N/A, bitrate: N/A Stream #1:0: Subtitle: subrip Input #2, vobsub, from 'G:\Output\test_0.idx': Duration: N/A, bitrate: N/A Stream #2:0[0x0](en): Subtitle: dvd_subtitle, 720x480 (default) Stream #2:1[0x1](en): Subtitle: dvd_subtitle, 720x480 [vost#0:0/copy @ 0000020caa9afd40] Overriding aspect ratio with stream copy may produce invalid files Output #0, mp4, to 'G:\Output\test_new.mp4': Metadata: encoder : Lavf60.6.100 Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x352 [SAR 1:1 DAR 20:11], q=2-31, 25 fps, 25 tbr, 12800 tbn Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [out#0/mp4 @ 0000020caa99abc0] video:1514kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.323080% frame= 429 fps= 35 q=-1.0 Lsize= 1519kB time=00:00:17.08 bitrate= 728.7kbits/s speed=1.41x
Ahhh,.. using (adding the mapping back in):
Code:ffmpeg -y -i "G:\Output\test.m4v" -i "G:\Output\test_1.srt" -i "G:\Output\test_0.idx" -c:0 copy -c:1 mov_text -c:2 copy -map 0:0 -map 1:0 -map 2:0 -aspect 640:352 -r 25/1 "G:\Output\test_new.mp4"
Thanks!
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
ffmpeg muxing raw .265 file to mkv?
By Selur in forum Newbie / General discussionsReplies: 1Last Post: 15th Jun 2023, 10:56 -
ffmpeg - muxing with a subtitle
By donelle82 in forum SubtitleReplies: 0Last Post: 15th Oct 2022, 08:19 -
ffmpeg change frame rate on muxing not working,...
By Selur in forum Newbie / General discussionsReplies: 2Last Post: 10th Dec 2020, 07:42 -
FFMPEG: How to convert multiple DNG to MP4 very fast...
By clkdiv in forum Video ConversionReplies: 0Last Post: 8th Nov 2020, 11:26 -
Muxing MP4
By nicksteel in forum Video ConversionReplies: 5Last Post: 12th Apr 2019, 13:15