Fastest way to automatically split video into shorter segments

Поділитися
Вставка
  • Опубліковано 26 сер 2024

КОМЕНТАРІ • 121

  • @mustafaozkan4572
    @mustafaozkan4572 5 місяців тому +12

    I lost 2 hours with paid and complicated tools, then I saw your video and applied it. I was able to split an 18GB video into pieces in just 15 minutes. Thanks a lot!

  • @roundtheoutsidef1
    @roundtheoutsidef1 Рік тому +8

    Still works in 2023, wow. This is exactly what I needed for my YT Channel, cutting videos is really time consuming. Now, I already cut what I needed for fair use. I already subbed, thank you so much!

  • @chetanwasnik8077
    @chetanwasnik8077 3 роки тому +4

    Thanks thanks thanks man .
    This worked , i just splitted whole movie in just few seconds .
    You save much time by making this useful informative video . Thanks.

  • @CyrVODs
    @CyrVODs 2 роки тому +1

    literal lifesaver. was about to export each part in premiere which would have took me 5 hours for each 3:30 part. with this it was done in 5 minutes max

  • @easyrecipes121
    @easyrecipes121 9 місяців тому

    Thank you so much for the guide bro. And If you have 100 video in 1 folder ( or more than 100 ), you wan to split each video to 40 minutes ( or other time) .
    You can "ctrl A" all of videos and rename them to A (1) to A (100) then you just paste command : FOR /L %G IN (1,1,100) DO (
    ffmpeg -i "a (%G).mp4" -c copy -map 0 -segment_time 00:00:40 -f segment -reset_timestamps 1 "output_%G_%03d.mp4"
    )
    They will spit all of video for you.

  • @judehariot8076
    @judehariot8076 Місяць тому +1

    Tip for those who might run into the following error:
    'Could not write header (incorrect codec parameters ?): Muxer not found'
    'Error opening output file EasyStickWeldBeading-07-19-24.mkv'
    'Error opening output files: Muxer not found'
    Try changing whatever you have your output file name is to one that has no spaces in it.

  • @MusictoHeal-bu8ts
    @MusictoHeal-bu8ts Рік тому

    I must tell you that You have helped us to resolve a major issue and led us to work smarter way. hats off brother. love u

  • @Shakespeare1612
    @Shakespeare1612 Рік тому +1

    Great I used this on a long WAV file. I needed audio segments 1 second long. FFMPEG is an awesome time saver. For all readers and viewers here is my command. It is almost identical but you can cut and paste the text from here: ffmpeg -i "input.wav" -c copy -map 0 -segment_time 00:00:01 -f segment clip%04d.wav

    • @MBTIMemes
      @MBTIMemes Рік тому +1

      Thank you so much, exactly what I was looking for !

  • @MichaelClark
    @MichaelClark 7 місяців тому

    You are amazing, no bs, straight to the point, very simple to follow and well explained. You are a genius, sir! Thank you.

  • @JBroadway
    @JBroadway 3 роки тому +7

    Amazing tutorial! Thank you for taking the time to create this. This is extremely helpful

  • @deefactual
    @deefactual Рік тому

    Incredible man, incredible voice, incredible guide. Sitting here looking at my speed=1.37x while you are munching through 42x does leave a sadness in my heart though

  • @RTX4090-yx8qf
    @RTX4090-yx8qf Рік тому +1

    ffmpeg is not recognized as internal or external commend. Any help?

  • @Drakath-rb6gg
    @Drakath-rb6gg 2 роки тому

    This makes splitting video into a disgustingly easy job, thank you so much for the guide!

  • @ladocinema
    @ladocinema 14 днів тому

    Holy shit! You're a lifesaver!

  • @anamariamarcos9547
    @anamariamarcos9547 2 роки тому +1

    Thank you so much for this very neat tip to split in equal episodes a large video clip. Appreciate this so much Sir. :-)

  • @heldafallenangel8565
    @heldafallenangel8565 2 місяці тому +1

    I'm having an error when i follow the instruction. I get error "Error opening input: No such file or directory. What should i do?

  • @orlandoarmandotrujilloapaz5839
    @orlandoarmandotrujilloapaz5839 4 місяці тому

    brow mil gracias DESDE LATAM te agradezco THANK YOU SO MUCH

  • @andregoepfert2745
    @andregoepfert2745 2 роки тому +1

    This is a lifesaver! Saved me hours of work!! Thank you!

  • @ItsAssassin
    @ItsAssassin 5 місяців тому

    you sir are amazing, ty.

  • @Mark_135
    @Mark_135 15 днів тому

    Thanks for teaching. QUESTION: can you use ffmpeg to split videos where the scene changes? liked & subscribed.

  • @xlnyc77
    @xlnyc77 3 місяці тому

    lifesaver. Thank you

  • @PJ-mb3ue
    @PJ-mb3ue 2 роки тому +1

    Dude thank you sooo much!! I knew there had to be a better way!!!

  • @simplyfyi8935
    @simplyfyi8935 3 роки тому +1

    Awesome...worked like magic. Thank a lot for sharing.

  • @mohamedbella2652
    @mohamedbella2652 Рік тому

    I'd like u to have my kids man. That was so much time saving! Thank u so much

  • @tamasszanka5866
    @tamasszanka5866 Рік тому +2

    How do I do the same thing with timestamps (various length) based, instead of equal 5 minute sections?

    • @nottyseel949
      @nottyseel949 4 місяці тому

      The billion-dollar question apparently. I was beginning to think I was the only person in the world that ever faced this situation. Were you able to find a solution?

  • @harshs8984
    @harshs8984 Рік тому

    Finally your tutorial saved my time, Thank you

  •  Рік тому +2

    try this for short clips:
    ffmpeg -i input.mp4 -c:v libx264 -c:a copy -map 0 -segment_time 10 -reset_timestamps 1 -f segment output_%03d.mp4
    Rate this comment if it helped, to this other user too. 👍

  • @MBTIMemes
    @MBTIMemes Рік тому +2

    Hi, thanks a lot for this amazing tutorial, but I have one question:
    Does this also work with audio files? specifically with .wav files?
    Thanks a lot!

  • @sadx_x6727
    @sadx_x6727 5 місяців тому

    YOU ARE THE BEST, THANKS YOU!!!!!!

  • @RealGameriel
    @RealGameriel 2 роки тому +1

    I used this, but tweaked it so it would be 3 half hour splits so it would make it easeier to edit in premier, however it finishes processing with no output, what am i doing wrong?

  • @rishabhsingh5514
    @rishabhsingh5514 Рік тому

    Thank you so much!

  • @elbambudelpanda
    @elbambudelpanda Рік тому

    Thank you so much, this was exactly what i need.

  • @Marxally
    @Marxally 3 роки тому

    Thank you very much for making this great tutorial and the installation one. Really helped me!

  • @it3sy55
    @it3sy55 2 роки тому

    what a beautifull piece of information , explained in a beautifull way .. Thank you !

  • @chetanwasnik8077
    @chetanwasnik8077 3 роки тому +1

    Osm man , this Cmd method looks fast

  • @Figment954
    @Figment954 2 роки тому

    Wow!! Thank you so much for this! Saved me tons of time!

  • @DJDream
    @DJDream 2 роки тому

    this just saved me soo much time!!!!! TY

  • @OniKudaki
    @OniKudaki 2 роки тому

    Very helpful and fast. Thank you!

  • @raman1572
    @raman1572 Рік тому +1

    Ffmpeg is not recognised as an internal or external command,

    • @jasperfields4856
      @jasperfields4856 19 днів тому

      Dude he says specifically how to install it if you get this.

  • @satrioagna1625
    @satrioagna1625 3 роки тому

    thank you for this video. it is helped me so much. thank you

  • @StephenLoney
    @StephenLoney 3 роки тому

    Dude. This is great. Thanks!

  • @gobb_
    @gobb_ 7 місяців тому

    how do I save the clips to a different disk?

  • @tdaviau
    @tdaviau 3 місяці тому

    Question. I have a video that is made up of multiple "scenes" pasted together (all of varying lengths). Is there a way to automatically strip the individual scenes out as individual files (without the audio)?

  • @jln5352
    @jln5352 Рік тому

    Can ffmpeg join video vignette in all splited parts? And also an end vignette

  • @yusuframpurawala1517
    @yusuframpurawala1517 3 роки тому +1

    how to split multiple videos?

  • @skyghost3500
    @skyghost3500 3 роки тому

    this is incredible, ur amazing!!

  • @snowgray306
    @snowgray306 4 роки тому

    Thank you for sharing your knowledge.
    Will it be possible to demonstrate the operation of the “demuxer”
    Best regards!

  • @theaccountantmusic
    @theaccountantmusic 2 роки тому

    Brilliant, works perfect

  • @SakuraHougetsu28
    @SakuraHougetsu28 10 місяців тому

    Thanks a lot

  • @MrHKZ
    @MrHKZ 3 роки тому

    Awesome video. I tried it and it splits in seconds.. I was amazed. Sadly I can't upload the image it was 286 times. wow

  • @jairuskersey8311
    @jairuskersey8311 3 роки тому

    Thank you. Great tutorial.

  • @user-gw3or1xs6f
    @user-gw3or1xs6f Рік тому

    how can you do this in batch? multiple files?

  • @christopherrimplington3643
    @christopherrimplington3643 2 роки тому

    what if I wanna "delete" short segments of the video and keep the edited version of the whole video?

  • @imnotagaot
    @imnotagaot 8 місяців тому

    thanks

  • @GamingArenaMianwali
    @GamingArenaMianwali Рік тому

    it gave me this error: Unrecognized option 'segment'.
    Error splitting the argument list: Option not found

  • @MarcusBoswell
    @MarcusBoswell 7 місяців тому

    is this a similar process on Mac OR are you aware of how to achieve the same thing on a mac?

  • @MusictoHeal-bu8ts
    @MusictoHeal-bu8ts Рік тому

    I just DID it woooooww , further can u tell us whether we can give a cmd command to delete file range lets say , each clip with the interval of 2

  • @user32352
    @user32352 Рік тому

    How can i do this by frame in the video, if i want the first x frames as a video not by seconds?

  • @pymun
    @pymun 3 роки тому

    God bless you man❤️

  • @JAMEYX
    @JAMEYX 4 місяці тому

    It just recopies the whole thing :(. It doesn't segment even though I copied the whole code.

  • @EricCawaling
    @EricCawaling Рік тому

    THANK YOU SO MUCH!!!!

  • @komalsingh3383
    @komalsingh3383 3 роки тому

    Wow, superb, awesome and great video 👌😘🤩🥰🥰

  • @chetanwasnik8077
    @chetanwasnik8077 3 роки тому +1

    Upload more trixk of Cmd which can work more easy and faster

  • @Keeper_Arts
    @Keeper_Arts Рік тому

    can it reduce video seize to a minimum ?

  • @brandonnoronha5535
    @brandonnoronha5535 2 роки тому

    Hi! I am getting repeated message 1 after entering the command line. Please help me

  • @therileydaniels
    @therileydaniels 2 роки тому

    I keep getting this error and cannot seem to find an answer for it
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Error initializing output stream 0:2 --

  • @user-is2zv4sc6y
    @user-is2zv4sc6y 3 роки тому

    Say that I do want the output to go to a different folder or even a different drive, how do I specify that, exactly?

  • @No-channel47
    @No-channel47 Рік тому

    Hi, can we do zoom in and out with FFMPEG aswell Fast ?? And also merge videos after splitting??
    Thanks for helping

  • @chetanwasnik8077
    @chetanwasnik8077 3 роки тому +1

    Thanks😘😍😍

  • @loydloyd726
    @loydloyd726 2 роки тому

    Ok, here is a wierd thing, when i raun the command in CMD mode it works, but if i put it in a .bat file it does NOT. any idea why?

  • @Matheus047factor
    @Matheus047factor Рік тому

    Muito obrigado mano, ganhou um inscrito do Brasil

  • @faktahati1007
    @faktahati1007 Рік тому

    Hi help me im tried to split my video to the 5 seconds each but when im using thise tutorial my video is not splited with consistently duration on 5 seconds but some was 4 sec, 6 sec 7 sec 10 sec etc can you help me so i can splited my video with consistent duration on 5 seconds? thank you so much

  • @rayyanep
    @rayyanep 28 днів тому

    works. july 2024.

  • @HowToRagnarok
    @HowToRagnarok 11 місяців тому

    Thank you for your amazing video. Is there a way for it to cut random 15 seconds short clips from the whole video? Let's say, the video is 10 minutes long, and I want random 5 clips that are 15 seconds long each. Is this even possible ?

  • @loydloyd726
    @loydloyd726 2 роки тому

    Also, can you do this in a batch file? Thank You for your help

  • @jorzoart
    @jorzoart 2 роки тому

    OMG thank you!

  • @SumitGaming-
    @SumitGaming- 3 місяці тому

    thanks it split m video into 24 parts in 1 sec

  • @gurramkishore7106
    @gurramkishore7106 3 роки тому

    Followed your video How to install ffmpeg, working fine. Thank you lot.
    Followed this video to split a .mp4 file.
    Worked fine, but with a small issue.
    The issue is:
    If give -segment_time 00:00:30
    1st file is of 34 seconds, remaining are of 30 seconds & last one remaining seconds(

  • @intoxxau
    @intoxxau 3 роки тому +3

    Thanks for the vid. How does ffmpeg determine the length of each clip? I'm targeting exactly 30 seconds per clip, but when I use the method described in this video I get clips that alternate between 27 and 33 seconds. Is there another parameter for ffmpeg that will force it to output a specific number of frames per clip to achieve clips that are exactly 30 seconds long?

    • @intoxxau
      @intoxxau 3 роки тому +5

      I think the issue is a weird keyframe interval on my source video, combined with the fact that ffmpeg will only cut to the nearest keyframe . The only solution I found so far is to re-encode using keyint=125:scenecut=0 (source file is 25fps) to create a keyframe every 5 seconds. That way there's a keyframe exactly on the clip interval and it cuts to 30 seconds exactly. Well, almost... the keyframe is actually inserted on frame 126, 251, 376 etc... but since they are all off by the same 1 frame I don't actually lose any frames, just the first segment is 1 frame longer than it should be

    •  Рік тому

      same here. I have an 10min Video wich I wanna cut into 60 clipa each 10s. The 1st 7 are fine, then I get 17s, 2s,10s.......

    • @intoxxau
      @intoxxau Рік тому

      ​@ the issue is no keyframe on the frame where you want to split, use:
      ffmpeg -i input.mp4 -vcodec libx264 --x264-params keyint=24:scenecut=0 -acodec copy output.mp4
      Change the keyint number to your video fps. this sets the keyframe interval to match video fps, meaning there is a keyframe on the first frame of each second of video. Afterwards you can split to the exact frame. I use Losslesscut for the actual splitting now so its more user friendly and no re-encoding required for the split video
      Alternatively when you're exporting the full video you want to split later check if you can set the keyframe interval to match video fps there

    •  Рік тому

      @@intoxxau Thanks for the lossless tipp. It seems that the correct cut is just done with the experimental intelligent option.

    • @nottyseel949
      @nottyseel949 4 місяці тому

      @@intoxxau Is Losslesscut a separate application? I'm extremely new to video editing. Also trying to understand exactly what a "keyframe" is, in editing terms at least? Sounds like "digital perforations" that the system or app can recognize as segments? The smallest intervals of a given video?

  • @clarkkent4872
    @clarkkent4872 2 роки тому

    Can you make a video for splitting video in ffmpeg by size like 2GB parts

  • @Mr2011Sami
    @Mr2011Sami Рік тому

    Great !! thank you

  • @AroDjMusic
    @AroDjMusic 3 роки тому

    thank you it helped alot

  • @reybet6532
    @reybet6532 2 роки тому

    is there any tutorial like this for mac?

  • @elvinrana7161
    @elvinrana7161 2 роки тому

    thank you so much

  • @jamestacular
    @jamestacular 2 роки тому

    Would be nice if you showed how to install the thing

  • @shortplays2573
    @shortplays2573 3 роки тому

    can you do it with multiple file at same time?

  • @kcvinu
    @kcvinu 3 роки тому

    Hi, This video is really helpful. Well, i am beginner in FFMpeg. I need to slice one video into pieces. My video has few breaks which last 10 seconds. In this time, screen is completely black. Is it possible to detect that time and cut the video ? Video length is 45 minutes. Normally it contains 5 breaks.

  • @AbdurRehman-pg7eh
    @AbdurRehman-pg7eh 2 місяці тому

    thanks its take me 3 hours to make it work but its wroked

  • @rishitshah4087
    @rishitshah4087 3 роки тому

    nice video
    can we automatically split video based on scene detection?

  • @eedamandru4693
    @eedamandru4693 6 місяців тому

    i fkn love you !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @arassert8020
    @arassert8020 3 роки тому

    VideoReDo TVSuite V6 is the best .

  • @Anime_marine
    @Anime_marine 3 роки тому

    it not work for me please help more tutorail

  • @bjperrin99
    @bjperrin99 2 роки тому

    thanks!

  • @centralindian
    @centralindian 3 роки тому +1

    Bro need your help. Everyday I split video file into multiple segments and with different dimensions as well. It's really painful to open premiere pro just to cut and crop and then export. I will appreciate if you could help me out here. Take this as an example, video.mp4 has to be split in total 24 segments, 8 for Facebook (1000 x1000) | 8 for UA-cam (1920 x 1080) | 8 for Twitter (720x956). In short one clip (for e.g 00:00:00 to 00:15:00) will have to be exported in 3 different dimensions.

  • @thuxai3857
    @thuxai3857 3 роки тому

    Can you share me how to combine list of *.ts and *.acc together? thanks !

    • @chetanwasnik8077
      @chetanwasnik8077 3 роки тому

      Different format files can not be together i think soo.
      Only same format files can be join together (use mkvtoolnix software)

  • @HJRP
    @HJRP 2 роки тому +1

    I am getting this error with a mp4 file:
    [segment @ 000001bc1f44ed00] Opening 'output00.mp4' for writing
    [segment @ 000001bc1f44ed00] Failed to open segment 'output00.mp4'
    Could not write header for output file #0 (incorrect codec parameters ?): Permission denied
    Error initializing output stream 0:1 --
    Could you please help me?
    Thanks in advance.

    • @HJRP
      @HJRP 2 роки тому

      It was my antivirus! Fixed! thanks XD

    • @gabridrag
      @gabridrag 2 роки тому +1

      Thanks, I had the same problem.

  • @leonlim2008
    @leonlim2008 Місяць тому

    Still works in 2024

  • @samsulkarim164
    @samsulkarim164 3 роки тому

    Just what I needed. God bless you, my friend!
    Great video. I have a question, is it possible to retain the file name and the files be numbered in order at the end?

  • @riscnx
    @riscnx 3 роки тому

    will GPU make it any faster?

  • @bugfixkh
    @bugfixkh 10 місяців тому

    good