Fastest way to automatically split video into shorter segments

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024

Комментарии • 122

  • @mustafaozkan4572
    @mustafaozkan4572 7 месяцев назад +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 11 месяцев назад

    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.

  • @JBroadway
    @JBroadway 3 года назад +7

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

  • @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 2 года назад +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 !

  • @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

  • @MichaelClark
    @MichaelClark 9 месяцев назад

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

  • @Drakath-rb6gg
    @Drakath-rb6gg 2 года назад

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

  • @anamariamarcos9547
    @anamariamarcos9547 3 года назад +1

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

  • @RTX4090-yx8qf
    @RTX4090-yx8qf Год назад +1

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

  • @heldafallenangel8565
    @heldafallenangel8565 3 месяца назад +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?

  • @andregoepfert2745
    @andregoepfert2745 2 года назад +1

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

  • @mohamedbella2652
    @mohamedbella2652 Год назад

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

  • @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!

  • @judehariot8076
    @judehariot8076 2 месяца назад +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.

  • @Mark_135
    @Mark_135 2 месяца назад

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

  • @tdaviau
    @tdaviau 5 месяцев назад

    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)?

  • @PJ-mb3ue
    @PJ-mb3ue 2 года назад +1

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

  • @harshs8984
    @harshs8984 Год назад

    Finally your tutorial saved my time, Thank you

  • @simplyfyi8935
    @simplyfyi8935 3 года назад +1

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

  • @ladocinema
    @ladocinema 2 месяца назад

    Holy shit! You're a lifesaver!

  • @tamasszanka5866
    @tamasszanka5866 Год назад +2

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

    • @nottyseel949
      @nottyseel949 6 месяцев назад

      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?

  • @RealGameriel
    @RealGameriel 3 года назад +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?

  •  Год назад +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. 👍

  • @gobb_
    @gobb_ 9 месяцев назад

    how do I save the clips to a different disk?

  • @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?

  • @WineCountryFlix
    @WineCountryFlix Год назад

    how can you do this in batch? multiple files?

  • @Figment954
    @Figment954 2 года назад

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

  • @it3sy55
    @it3sy55 2 года назад

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

  • @jln5352
    @jln5352 Год назад

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

  • @christopherrimplington3643
    @christopherrimplington3643 2 года назад

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

  • @elbambudelpanda
    @elbambudelpanda Год назад

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

  • @orlandoarmandotrujilloapaz5839
    @orlandoarmandotrujilloapaz5839 6 месяцев назад

    brow mil gracias DESDE LATAM te agradezco THANK YOU SO MUCH

  • @Marxally
    @Marxally 3 года назад

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

  • @OniKudaki
    @OniKudaki 2 года назад

    Very helpful and fast. Thank you!

  • @wiqarali
    @wiqarali 12 дней назад

    just wonderful, wonderful, wonderful

  • @snowgray306
    @snowgray306 4 года назад

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

  • @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?

  • @ItsAssassin
    @ItsAssassin 7 месяцев назад

    you sir are amazing, ty.

  • @MarcusBoswell
    @MarcusBoswell 8 месяцев назад

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

  • @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

  • @DJDream
    @DJDream 2 года назад

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

  • @HowToRagnarok
    @HowToRagnarok Год назад

    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 ?

  • @chetanwasnik8077
    @chetanwasnik8077 3 года назад +1

    Osm man , this Cmd method looks fast

  • @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 6 месяцев назад

      @@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?

  • @faktahati1007
    @faktahati1007 2 года назад

    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

  • @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?

  • @GamingArenaMianwali
    @GamingArenaMianwali Год назад

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

  • @brandonnoronha5535
    @brandonnoronha5535 3 года назад

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

  • @StephenLoney
    @StephenLoney 3 года назад

    Dude. This is great. Thanks!

  • @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 --

  • @xlnyc77
    @xlnyc77 5 месяцев назад

    lifesaver. Thank you

  • @Keeper_Arts
    @Keeper_Arts Год назад

    can it reduce video seize to a minimum ?

  • @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

  • @yusuframpurawala1517
    @yusuframpurawala1517 3 года назад +1

    how to split multiple videos?

  • @komalsingh3383
    @komalsingh3383 3 года назад

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

  • @reybet6532
    @reybet6532 2 года назад

    is there any tutorial like this for mac?

  • @kcvinu
    @kcvinu 4 года назад

    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.

  • @theaccountantmusic
    @theaccountantmusic 2 года назад

    Brilliant, works perfect

  • @satrioagna1625
    @satrioagna1625 3 года назад

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

  • @jairuskersey8311
    @jairuskersey8311 4 года назад

    Thank you. Great tutorial.

  • @loydloyd726
    @loydloyd726 2 года назад

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

  • @skyghost3500
    @skyghost3500 3 года назад

    this is incredible, ur amazing!!

  • @clarkkent4872
    @clarkkent4872 2 года назад

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

  • @rishabhsingh5514
    @rishabhsingh5514 Год назад

    Thank you so much!

  • @EricCawaling
    @EricCawaling Год назад

    THANK YOU SO MUCH!!!!

  • @raman1572
    @raman1572 Год назад +1

    Ffmpeg is not recognised as an internal or external command,

    • @jasperfields4856
      @jasperfields4856 2 месяца назад

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

  • @sadx_x6727
    @sadx_x6727 7 месяцев назад

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

  • @shortplays2573
    @shortplays2573 3 года назад

    can you do it with multiple file at same time?

  • @jamestacular
    @jamestacular 2 года назад

    Would be nice if you showed how to install the thing

  • @pymun
    @pymun 3 года назад

    God bless you man❤️

  • @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(

  • @JAMEYX
    @JAMEYX 6 месяцев назад

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

  • @rishitshah4087
    @rishitshah4087 3 года назад

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

  • @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

  • @Matheus047factor
    @Matheus047factor Год назад

    Muito obrigado mano, ganhou um inscrito do Brasil

  • @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)

  • @jorzoart
    @jorzoart 2 года назад

    OMG thank you!

  • @chetanwasnik8077
    @chetanwasnik8077 3 года назад +1

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

  • @Anime_marine
    @Anime_marine 3 года назад

    it not work for me please help more tutorail

  • @AroDjMusic
    @AroDjMusic 3 года назад

    thank you it helped alot

  • @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?

  • @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 RUclips (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.

  • @elvinrana7161
    @elvinrana7161 2 года назад

    thank you so much

  • @chetanwasnik8077
    @chetanwasnik8077 3 года назад +1

    Thanks😘😍😍

  • @Mr2011Sami
    @Mr2011Sami 2 года назад

    Great !! thank you

  • @SakuraHougetsu28
    @SakuraHougetsu28 Год назад

    Thanks a lot

  • @imnotagaot
    @imnotagaot 9 месяцев назад

    thanks

  • @AbdurRehman-pg7eh
    @AbdurRehman-pg7eh 4 месяца назад

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

  • @arassert8020
    @arassert8020 3 года назад

    VideoReDo TVSuite V6 is the best .

  • @bjperrin99
    @bjperrin99 3 года назад

    thanks!

  • @HJRP
    @HJRP 3 года назад +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 3 года назад

      It was my antivirus! Fixed! thanks XD

    • @gabridrag
      @gabridrag 2 года назад +1

      Thanks, I had the same problem.

  • @SumitGaming-
    @SumitGaming- 5 месяцев назад

    thanks it split m video into 24 parts in 1 sec

  • @riscnx
    @riscnx 3 года назад

    will GPU make it any faster?

  • @eedamandru4693
    @eedamandru4693 8 месяцев назад

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

  • @rayyanep
    @rayyanep 2 месяца назад

    works. july 2024.

  • @leonlim2008
    @leonlim2008 3 месяца назад

    Still works in 2024