PC hangs/freezes while splitting a large video

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 448
    Windows 10
    Thread Starter
       #11

    Bree said:
    Is your windows 32-bit or 64-bit? If 32-bit then you won't be able to use all of that 4GB. Typically you'll have about 2.6GB available to use...

    1.1gb cached memory out of 2.6gb ram
    My Windows is 64 bit. If I increase ram to 4GB, will it work.
      My Computer


  2. Posts : 448
    Windows 10
    Thread Starter
       #12

    CountMike said:
    Actually all of them RAM would have greatest impact. You really need older programs. Ones like Handbrake or using Handbrake and Vondershare for instance make even my 8core, 16 thread processor and 16GB f RAM sweat a lot.
    Which free older program can split MPEG2 without putting pressure to processor, if I increase ram to 4GB.
      My Computer


  3. Posts : 448
    Windows 10
    Thread Starter
       #13

    Bree said:
    Trying to work on a 14GB video with only 2GB installed RAM, you're going to be hammering the swapfile. That alone could be sufficient to explain why the system slows to a crawl.

    If, as is likely with that amount of RAM, you run the 32-bit version of Windows 10 then installing more RAM is not going to help much. The 4GB address limit of a 32-bit OS means you'd only have about 2.9GB available to use, however much RAM you add.

    You might place less demands on the system using the command line utility FFmpeg. https://ffmpeg.org/

    Its parammeters -ss and -to can be used to specify start and end times of a section of video you want to extract. The -c copy parameter will avoid the need for any codec processing for decoding/recoding the video while working on it.
    https://trac.ffmpeg.org/wiki/Seeking...gsmallsections
    Thanks very much. Though I am not conversant with command prompt and ffmpeg was also a new thing to me. But with the help of some friends and google, I succeeded and that also very fast. I think now I will be using it very often for splitting and will see that what other things can be done with this. Thanks again
      My Computer


  4. Posts : 448
    Windows 10
    Thread Starter
       #14

    sam9 said:
    Thanks very much. Though I am not conversant with command prompt and ffmpeg was also a new thing to me. But with the help of some friends and google, I succeeded and that also very fast. I think now I will be using it very often for splitting and will see that what other things can be done with this. Thanks again
    One more thing, as my video size is very big and even after splitting, the split part size is also big. can it also reduce the split part size to enable me to easily upload to google drive or youtube.
      My Computer


  5. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #15

    sam9 said:
    Thanks very much. Though I am not conversant with command prompt and ffmpeg was also a new thing to me. But with the help of some friends and google, I succeeded and that also very fast. I think now I will be using it very often for splitting and will see that what other things can be done with this. Thanks again

    Yes, FFmpeg's command prompt options can be a bit cryptic, but it is powerful open source software and is used by many professionals. It can do ANYTHING you could possibly think of doing to a video. Apart from converting from any known video format to any other, it can crop, scale, rotate or resample to a new frame rate. These days I create a batch file script of FFmpeg commands to do all my video editing.

    As it is used by many professionals, you'll find any question you have about how to do something (however obscure) has already been asked and answered on a professional forum somewhere. Just Google it, that's what I do when I's stuck

    It also comes with a player that takes the same commands so you can 'test run' your command options. It's called FFplay.
      My Computers


  6. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #16

    sam9 said:
    One more thing, as my video size is very big and even after splitting, the split part size is also big. can it also reduce the split part size to enable me to easily upload to google drive or youtube.
    You can dramatically reduce the size of a video file by using higher compression levels. The Constant Rate Factor (CRF) is used to specify compression. In addition, you can specify how much time it spends processing each frame, from 'ultrafast' to 'veryslow'. The longer you take, the better the quality of the compressed video. Typically I use....

    ffmpeg -i input.mp4 -crf 28 -preset veryslow output.mp4

    ...which generally takes about four times as long as the video length (I leave it running over night for long videos).


    The range of the CRF scale is 0–51, where 0 is lossless, 23 is the default, and 51 is worst quality possible. A lower value generally leads to higher quality, and a subjectively sane range is 17–28...

    ...The range is exponential, so increasing the CRF value +6 results in roughly half the bitrate / file size, while -6 leads to roughly twice the bitrate...
    https://trac.ffmpeg.org/wiki/Encode/H.264
      My Computers


  7. Posts : 448
    Windows 10
    Thread Starter
       #17

    Bree said:
    Yes, FFmpeg's command prompt options can be a bit cryptic, but it is powerful open source software and is used by many professionals. It can do ANYTHING you could possibly think of doing to a video. Apart from converting from any known video format to any other, it can crop, scale, rotate or resample to a new frame rate. These days I create a batch file script of FFmpeg commands to do all my video editing.

    As it is used by many professionals, you'll find any question you have about how to do something (however obscure) has already been asked and answered on a professional forum somewhere. Just Google it, that's what I do when I's stuck

    It also comes with a player that takes the same commands so you can 'test run' your command options. It's called FFplay.
    Is it possible for you to share the Batch File created by you?
      My Computer


  8. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #18

    Each batch file is a list of ffmpeg commands tailored for a specific video, each command specifies the start and stop time for each extract, followed by a FFmpeg command line to join (concatenate) all the extracts into a single complete video. I use Movie Maker purely as a player to locate the exact time of the frame I want as an edit point.

    This is a typical batch file. You'll see a few unfamiliar options, like afade (audio fade) and yadif (Yet Another De-Interlace Filter).

    Code:
    ffmpeg -i 1.mp4 -ss 2.73 -to 1491.73 -vf yadif -aspect 16:9 -c:v mpeg4 -q 2 -b:a 128k 2a.mp4
    ffmpeg -i 2a.mp4 -af "afade=t=in:ss=0:d=6" -c:v copy 2.mp4
    ffmpeg -i 1.mp4 -ss 1498.07 -to 2737.07 -vf yadif -aspect 16:9 -c:v mpeg4 -q 2 -b:a 128k 3.mp4
    ffmpeg -i 1.mp4 -ss 2747.27 -to 4365.23 -vf yadif -aspect 16:9 -c:v mpeg4 -q 2 -b:a 128k 4.mp4
    ffmpeg -i 1.mp4 -ss 4370.63 -to 5912.57 -vf yadif -aspect 16:9 -c:v mpeg4 -q 2 -b:a 128k 5.mp4
    ffmpeg -i 1.mp4 -ss 5917.90 -to 7884.80 -vf yadif -aspect 16:9 -c:v mpeg4 -q 2 -b:a 128k 6.mp4
    echo file '2.mp4' > files.txt
    echo file '3.mp4' >> files.txt
    echo file '4.mp4' >> files.txt
    echo file '5.mp4' >> files.txt
    echo file '6.mp4' >> files.txt
    ffmpeg -f concat -i files.txt -crf 28 -tune film -preset veryslow -aspect 16:9 -af "volume=6dB" "My Edited Video.mp4"
    The original unedited video was 1.mp4, the intermediate extracted clips (2.mp4, etc.) and the files.txt list of clips can be deleted once the finished video is made.
      My Computers


  9. Posts : 448
    Windows 10
    Thread Starter
       #19

    Bree said:
    Each batch file is a list of ffmpeg commands tailored for a specific video, each command specifies the start and stop time for each extract, followed by a FFmpeg command line to join (concatenate) all the extracts into a single complete video. I use Movie Maker purely as a player to locate the exact time of the frame I want as an edit point.

    This is a typical batch file. You'll see a few unfamiliar options, like afade (audio fade) and yadif (Yet Another De-Interlace Filter).

    Code:
    ffmpeg -i 1.mp4 -ss 2.73 -to 1491.73 -vf yadif -aspect 16:9 -c:v mpeg4 -q 2 -b:a 128k 2a.mp4
    ffmpeg -i 2a.mp4 -af "afade=t=in:ss=0:d=6" -c:v copy 2.mp4
    ffmpeg -i 1.mp4 -ss 1498.07 -to 2737.07 -vf yadif -aspect 16:9 -c:v mpeg4 -q 2 -b:a 128k 3.mp4
    ffmpeg -i 1.mp4 -ss 2747.27 -to 4365.23 -vf yadif -aspect 16:9 -c:v mpeg4 -q 2 -b:a 128k 4.mp4
    ffmpeg -i 1.mp4 -ss 4370.63 -to 5912.57 -vf yadif -aspect 16:9 -c:v mpeg4 -q 2 -b:a 128k 5.mp4
    ffmpeg -i 1.mp4 -ss 5917.90 -to 7884.80 -vf yadif -aspect 16:9 -c:v mpeg4 -q 2 -b:a 128k 6.mp4
    echo file '2.mp4' > files.txt
    echo file '3.mp4' >> files.txt
    echo file '4.mp4' >> files.txt
    echo file '5.mp4' >> files.txt
    echo file '6.mp4' >> files.txt
    ffmpeg -f concat -i files.txt -crf 28 -tune film -preset veryslow -aspect 16:9 -af "volume=6dB" "My Edited Video.mp4"
    The original unedited video was 1.mp4, the intermediate extracted clips (2.mp4, etc.) and the files.txt list of clips can be deleted once the finished video is made.
    Thanks very much. Though these things goes above my head but I will try to learn. I normally do splitting or reducing the file size.
      My Computer


  10. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #20

    sam9 said:
    Thanks very much. Though these things goes above my head but I will try to learn. I normally do splitting or reducing the file size.
    Scaling the video down to (say) 320p, and/or using a high CRF of (typically) 28 can significantly reduce the size of the video to be uploaded.

    This video may help explain using CRF...
    FFmpeg video compression - decrease size, maintain quality - YouTube
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:25.
Find Us




Windows 10 Forums