Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (93)

Sur d’autres sites (16719)

  • Bulk trim videos : remove last x seconds from video

    24 avril 2022, par dfadsfd

    Hey guys i have been searching for hours but this is giving me a lot of trouble. None of the code i found worked for me.

    


    I have a lot of videos with a different length where i want to bulk remove the last 5 second outro of. Sadly it seems that this is almost impossible as I tried it with FFMPEG -sseof command but that needs to have the actual video length, and all my videos have a different length. Is there any easy way to do this and have the videos output in a new folder trimmed folder in the original folder ?

    


    Thank you.

    


  • cutting video using ffmpeg cannot produce videos with specified length

    22 juin 2021, par david

    I have some mp4 videos and I want to split them into 2-second videos. my GOP is 2 Sec. for this aim I use the following command :

    


    ffmpeg -i input.mp4 -c copy -map 0 -segment_time 00:00:02 -f segment -reset_timestamps 1 output%03d.mp4


    


    but after splitting, my new videos have different duration times. some of them are 4 Sec, one of them is 3.67 Sec. why the duration time is different from the thing I specified in command ? my command is wrong ?
is it possible to split based on frame number ? for example each 120 frame ?

    


  • Export .osp OpenShot project to ffmpeg script as workaround to video export freeze or crash by swap hell

    30 août 2018, par 1000i100

    I have a big video rush 35".

    With OpenShot i’ve cut more than 30 small sequences and concatenate them into one 25" sequence.

    Now i try to export the result as video file but OneShot randomly crash or freeze during the export/encoding between 40% and 80% so after more than an hour of encoding. It look to be a memory leek and a swap saturation with memory allocation deny because no space left.

    I’ve tried with x264(mp4) and vp8(webm) encoding, but nothing worked.

    I’ve opened the .osp file, it’s a big json file with all the clips referred like this :

    {
     clips:[
       {
         title: "",
         start:<seconds>.<decimals>,
         end:<seconds>.<decimals>,
         position:<seconds>.<decimals>
       }
     ]
    }
    </decimals></seconds></decimals></seconds></decimals></seconds>
    • title if not renamed is the inputFileName.
    • start clip start time from the input file beginning
    • end clip end time from the input file beginning
    • position clip start position in the output file timeline

    I’ve read ffmpeg can extract video parts / subclip / sequences with cut function :

    ffmpeg -ss 00:00:09.000 -i input.mp4 -to 00:00:20 output.mp4

    Time can be hh:mm:ss.xxx or hh:mm:ss or any amount of seconds, allowing decimals.

    I’ve also read ffmpeg can concat sequences :

    ffmpeg -i "concat:input1.ts|input2.ts|input3.ts" output.ts

    So, how to encode my video with these project data ?