VideoHelp Forum


Try StreamFab All-in-One and rip streaming video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Code:
    ffmpeg -ss 00:11:47.970 -t 3.090 -i "file.mkv" -ss 00:11:46.470 -t 1.500 -i "file" -ss 00:11:51.060 -t 0.960 -i "file.mkv" -an -c:v libvpx -crf 31 -b:v 10000k -y -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0][2:v:0][2:a:0]concat=n=3:v=1:a=1[outv][outa];[outv]scale='min(960,iw)':-1[outv];[outv]subtitles='file.srt'[outv]" -map [outv] file_out.webm -map [outa] file.mp3

    I have a filter where take three different points in a file concat them together and scale them down this part works



    Im looking to see how to add to the filter_complex a sub burn in step rendering the subs from the exact timings using a file that I specify when I use the above code it doesn't work
    Quote Quote  
  2. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Does you execution find the SRT file or say not found. Maek sure you have all files including the SRT file in the same folder and run the CMD line from that folder also. In otherwords if you open a cmd prompt from its default location, you will have to enter the complete path to the subtitles and escape each special character ('c\:\\user\\bud\\desktop\\subtitles.srt')

    The following worked for me with everything on the desktop and the CMD window started from there also.

    Code:
    ffmpeg -ss 00:00:00.970 -t 3.090 -i C:\Users\Bud\Desktop\test.mp4 -ss 00:00:05.470 -t 1.500 -i C:\Users\Bud\Desktop\test.mp4 -ss 00:00:09.060 -t 5.960 -i C:\Users\Bud\Desktop\test.mp4 -an -c:v libvpx -crf 31 -b:v 10000k -y -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0][2:v:0][2:a:0]concat=n=3:v=1:a=1[outv][outa];[outv]scale='min(960,iw)':-1[outv];[outv]subtitles='subtitles.srt'[outv]" -map [outv] file_out.webm -map [outa] file.mp
    I only had a 20 second MP4 test video so I changed your times and file names. The result gave the correct segments with subtitles 00.000 to 05.000 ,05.000-20.000 correctly. the times would have to be changed to match your final video concat. I also did not end up with any audio according to MediaInfo. Thats a whole other problem that failed on my test.

    Perhaps others can assist that have more experience with mapping.

    CORRECTION:
    I produced a separate mp3 file. Not sure if you were attempting that or not.
    Last edited by Budman1; 16th Jun 2021 at 01:36.
    Quote Quote  



Similar Threads