VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. i am using this code line but i want to make a script (.bat ?)

    ffmpeg -i VIDEO.mov -ss (time that i give ? 00:00:40) -i AUDIO.aac -map 0:0 -map 1:0 -shortest Final.mov

    is this possible ?
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Like you run

    script.bat 00:00:40

    Then you put

    Code:
    ffmpeg -i VIDEO.mov -ss %1 -i AUDIO.aac -map 0:0 -map 1:0 -shortest Final.mov
    in the script.bat file


    Or do you mean in a loop or?
    Quote Quote  
  3. Originally Posted by Baldrick View Post
    Like you run

    script.bat 00:00:40

    Then you put

    Code:
    ffmpeg -i VIDEO.mov -ss %1 -i AUDIO.aac -map 0:0 -map 1:0 -shortest Final.mov
    in the script.bat file


    Or do you mean in a loop or?

    hey baldrick (LOL)

    in another topic i saw this:

    "for %%a in ("*.mov") do ffmpeg -i %%a -map 0:0 -vcodec copy -map 0:1 -acodec copy -map 0:2 %%~na.mov

    pause"


    i would like to add the name for a audio file...this code has only the video name (for loop)... so i want the same code but with the above code....
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    I see.

    It would be tricky if the audio and video have different names but if the files are named like video.mov and video.aac could you use

    for %%a in ("*.mov") do ffmpeg -i %%a -ss 00:00:40 -i %%~na.aac -map 0:0 -map 1:0 -shortest final-%%~na.mov
    Quote Quote  
  5. Originally Posted by Baldrick View Post
    I see.

    It would be tricky if the audio and video have different names but if the files are named like video.mov and video.aac could you use

    for %%a in ("*.mov") do ffmpeg -i %%a -ss 00:00:40 -i %%~na.aac -map 0:0 -map 1:0 -shortest final-%%~na.mov

    hmm i tried it and it works..!

    but there is no way i can change the names, they have 2 be the same ?
    Quote Quote  
  6. Originally Posted by lf2 View Post
    Originally Posted by Baldrick View Post
    I see.

    It would be tricky if the audio and video have different names but if the files are named like video.mov and video.aac could you use

    for %%a in ("*.mov") do ffmpeg -i %%a -ss 00:00:40 -i %%~na.aac -map 0:0 -map 1:0 -shortest final-%%~na.mov

    hmm i tried it and it works..!

    but there is no way i can change the names, they have 2 be the same ?

    a tough question i dont know if its possible..

    is it possible to make the -ss dynamic..

    i will try to explane what i am after...

    the meta data video has a creation time : date 00:01:54+0100
    the meta data audio has a creation time: date 00:01:14+0100

    ( 01:54 - 01:14 = 40 (thats the -ss i use)

    is there a way to automaticly take the time off and use that as the -ss ?

    is this possible
    Quote Quote  



Similar Threads

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