VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Hi all, how do u do guys?

    Once again, need a help.

    I have 91 videos that look like this.



    I need you to stay that way.



    I can do this in FFMPEG one at a time, but I don't know how to create a script to make all inside the folder.

    All my videos are separated into files (video + audio) and I don't know how to mux to mp4.

    They look like this: video test1.mp4 + video test1.aac.

    Is there a script to mix all 91 videos after rotate all?

    resume:
    Code:
    Script 1: Rotate all video files from folder
    Script 2: Mux to MP4 all rotated videos with aac files
    Thanks,


    Claudio
    Quote Quote  
  2. Feel free to elaborate on this batch job

    Code:
    if not exist rotated md rotated
    for %%g in (*.mp4) do (
    ffmpeg -i "%%g" -i "%%~ng.aac" -c:v libx264 -vf "transpose=1" -c:a copy "rotated\%%~ng_rotated.mp4"
    )
    Last edited by videobruger; 4th Nov 2019 at 16:09. Reason: spelling
    Quote Quote  
  3. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by videobruger View Post
    Feel free to elaborate on this batch job

    Code:
    if not exist rotated1 md rotated
    for %%g in (*.mp4) do (
    ffmpeg -i "%%g" -i "%%~ng.aac" -c:v libx264 -vf "transpose=1" -c:a copy "rotated\%%~ng_rotated.mp4"
    )
    Thank u very much for reply videobruger, its work perfect!!!


    Claudio
    Quote Quote  
  4. as a side note:
    In case the player support it, one could use:
    Code:
    ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=90 output.mp4
    to rotate the clip without reencoding and loosing quality, if I read https://www.ffmpeg.org/ffmpeg-all.html#rotate correctly.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  5. It appears MPC-HC is used as player.

    My version - rather old 1.7.10 - doesn't support the rotation flag (metadata).
    Quote Quote  
  6. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by Selur View Post
    as a side note:
    In case the player support it, one could use:
    Code:
    ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=90 output.mp4
    to rotate the clip without reencoding and loosing quality, if I read https://www.ffmpeg.org/ffmpeg-all.html#rotate correctly.
    WOW!! Too easy using this method Selur. Really easy.

    Working in all players on my PC.


    Claudio
    Quote Quote  



Similar Threads