VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Okay, I managed muxing ttxt to mp4 using ffmpeg by first converting the .ttxt subtitles to srt and then using:
    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"
    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.idx" -vcodec copy -scodec copy -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?
    I suspected that:
    I would need to us:
    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"
    but that gives me:
    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
    => How do I get this working? How to tell ffmpeg to convert the .srt-subtitle to mov_text and copy the .idx-subtitle?

    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  2. Try
    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 -aspect 640:352 -r 25/1 "G:\Output\test_new.mp4"
    Quote Quote  
  3. 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
    but, the output only contained the video stream.

    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"
    did the job!

    Thanks!

    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!