Jump to content

How to compress files then have them delete themselves

QuantumBit
Go to solution Solved by asquirrel,

Just to make sure I understand, you're planing to compress the videos with handbrake by re-encoding them, right? If you were hoping to use Windows file compression or ZIP/RAR/7z formats, none of those will do anything meaningful to video files.

 

I can't find a option for deleting the files after transcode in handbrake/ffmpeg (handbrake is just a wrapper for ffmpeg, if you didn't know). This makes some sense, ffmpeg allowing you to delete a source file right after encode would be akin to someone handing you a gun and letting you shoot it with your eyes closed. It's a *really* bad idea. People who know their transcode settings are good can write a script to delete the file automatically after the transcode is done (powershell/bash). I think a script is your best bet, if you are 100% confident your transcodes are going to work.

My hard drive has around 1GB left, so I want to compress the ~400GB of videos I have.

Would there be any way to select all the files in a folder, and as one gets compressed, it replaces the larger one? I using handbreak but I can use something else if necessary

Thank you :)

Ion (Main Build)                                                                                        Overall Setup

i5 6500 3.2 GHz                                                                     -Blue snowball (White) thanks goodwill

MSI Mortar Arctic                                                                   -Logitech K120

Asus 1060 6GB Dual                                                             -Logitech Daedalus Prime G302

PNY CS1311 120 GB                                                            -Mousepad I made in 1st grade with my name on it                                                 

WD Caviar Blue 1 TB                                                              

Crucial Ballistix Sport LT White 16GB (8x2GB) 2400

NZXT S340 White

Corsair CXM 450W 

 

Lenovo H320 (Old Pre-built PC)                                      Possible upgrade for H320          

i5 650 3.2 GHz (heh)                                                                                    Xeon X3470

Motherboard unknown                                                       Same Motherboard

iGPU                                                                                   GT 1030 (MSI Low Profile Half Height)

Crucial 240GB SSD                                                           Crucial 240GB SSD

6GB DDR3 (4+2GB)                                                           8-10GB DDR3 (4+2+2GB/4+4+2GB)

Lenovo H320 case                                                             Lenovo H320 case

Unknown PSU (210W?)                                                     Same PSU (210W?)    

Link to comment
Share on other sites

Link to post
Share on other sites

Well I found out it takes around 30 minutes per gb. (200 hrs for all).

Ion (Main Build)                                                                                        Overall Setup

i5 6500 3.2 GHz                                                                     -Blue snowball (White) thanks goodwill

MSI Mortar Arctic                                                                   -Logitech K120

Asus 1060 6GB Dual                                                             -Logitech Daedalus Prime G302

PNY CS1311 120 GB                                                            -Mousepad I made in 1st grade with my name on it                                                 

WD Caviar Blue 1 TB                                                              

Crucial Ballistix Sport LT White 16GB (8x2GB) 2400

NZXT S340 White

Corsair CXM 450W 

 

Lenovo H320 (Old Pre-built PC)                                      Possible upgrade for H320          

i5 650 3.2 GHz (heh)                                                                                    Xeon X3470

Motherboard unknown                                                       Same Motherboard

iGPU                                                                                   GT 1030 (MSI Low Profile Half Height)

Crucial 240GB SSD                                                           Crucial 240GB SSD

6GB DDR3 (4+2GB)                                                           8-10GB DDR3 (4+2+2GB/4+4+2GB)

Lenovo H320 case                                                             Lenovo H320 case

Unknown PSU (210W?)                                                     Same PSU (210W?)    

Link to comment
Share on other sites

Link to post
Share on other sites

Just to make sure I understand, you're planing to compress the videos with handbrake by re-encoding them, right? If you were hoping to use Windows file compression or ZIP/RAR/7z formats, none of those will do anything meaningful to video files.

 

I can't find a option for deleting the files after transcode in handbrake/ffmpeg (handbrake is just a wrapper for ffmpeg, if you didn't know). This makes some sense, ffmpeg allowing you to delete a source file right after encode would be akin to someone handing you a gun and letting you shoot it with your eyes closed. It's a *really* bad idea. People who know their transcode settings are good can write a script to delete the file automatically after the transcode is done (powershell/bash). I think a script is your best bet, if you are 100% confident your transcodes are going to work.

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, asquirrel said:

Just to make sure I understand, you're planing to compress the videos with handbrake by re-encoding them, right? If you were hoping to use Windows file compression or ZIP/RAR/7z formats, none of those will do anything meaningful to video files.

 

I can't find a option for deleting the files after transcode in handbrake/ffmpeg (handbrake is just a wrapper for ffmpeg, if you didn't know). This makes some sense, ffmpeg allowing you to delete a source file right after encode would be akin to someone handing you a gun and letting you shoot it with your eyes closed. It's a *really* bad idea. People who know their transcode settings are good can write a script to delete the file automatically after the transcode is done (powershell/bash). I think a script is your best bet, if you are 100% confident your transcodes are going to work.

Thank you, but handbrake takes wayyy to long to the point where its just worth going over the videos manually and clearing some out.

Ty for the info though :)

Ion (Main Build)                                                                                        Overall Setup

i5 6500 3.2 GHz                                                                     -Blue snowball (White) thanks goodwill

MSI Mortar Arctic                                                                   -Logitech K120

Asus 1060 6GB Dual                                                             -Logitech Daedalus Prime G302

PNY CS1311 120 GB                                                            -Mousepad I made in 1st grade with my name on it                                                 

WD Caviar Blue 1 TB                                                              

Crucial Ballistix Sport LT White 16GB (8x2GB) 2400

NZXT S340 White

Corsair CXM 450W 

 

Lenovo H320 (Old Pre-built PC)                                      Possible upgrade for H320          

i5 650 3.2 GHz (heh)                                                                                    Xeon X3470

Motherboard unknown                                                       Same Motherboard

iGPU                                                                                   GT 1030 (MSI Low Profile Half Height)

Crucial 240GB SSD                                                           Crucial 240GB SSD

6GB DDR3 (4+2GB)                                                           8-10GB DDR3 (4+2+2GB/4+4+2GB)

Lenovo H320 case                                                             Lenovo H320 case

Unknown PSU (210W?)                                                     Same PSU (210W?)    

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×