Jump to content
LaunchBox Community Forums

Réduire vos FICHIERS MP4 avec VLC


aztha

Recommended Posts

Bonjour a tous, je fais un petit tuto pour vous aider à gagner un peu de place sur votre disque dur.

J'ai dans mon dossier Launchbox/vidéo/  environ 50 Go de vidéo snap pour chaque jeux, le tout au format MP4.

J'ai cherché un moyen de passer du codec H264 au codec H265 pour un gain de place significatif de plusieurs Go.

Le seul hic avec VLC est qu'il cherche à remplacer les fichiers d'origine d'ou le bug, "le fichier de sortie existe déjà"

Il suffira donc de cocher l'option "-converted" dans VLC puis d'utilser un batch tout simple pour modifier le nom du fichier et qu'il corresponde au jeu dans Launchbox.

 

Etape 1:   

Faite toujours le processus à partir d'une copie d'un dossier pour évité la perte de données

Allez dans /Launchbox/Video/Sega Megadrive par exemple, puis copiez votre dossier Theme contenant les vidéo snap.

Collez ce dossier sur le bureau puis ouvrez VLC.

 

Etape 2:

Dans VLC sélectionnez Media puis convertir/enregistrer.

Faites ajouter à droite, cherchez votre dossier récemment placé sur le bureau et prenez toutes vos vidéos snap à l'aide de ctrl, shift ou encore ctrl+A puis ouvrir.

Choisissez "convertir" puis dans la nouvelle fenêtre, dans le menu déroulant opté pour le codec -video H265 + MP3 (MP4).

IMPORTANT: Dans destination n'oubliez pas de cocher la case "Apposer -converted au nom du fichier" sinon votre VLC va bug en boucle.

 

Etape 3: 

Une fois les conversions de vos vidéos terminées, ouvrez votre dossier placé sur le bureau, classez vos fichiers par date de création par exemple et supprimez vos anciennes vidéos qui devraient être plus grosses en tailles.

 

Créer un nouveau document Texte dans le même dossier puis collez ceci:

 

 

@echo off 
setlocal enabledelayedexpansion 
set partieasupprimer=-converted

for /f "delims==" %%F in ('dir /b ^| find "%partieasupprimer%"') do ( 
     set oldfilename=%%F 
     set newfilename=!oldfilename:%partieasupprimer%=! 
     Ren "!oldfilename!" "!newfilename!" 
     )

 

 

enregistrez le document texte puis renommez le par exemple en "XXXX.bat"

quand vous double- cliquez sur le .bat vos nouvelles vidéos seront renommées sans le "-converted", vous pourrez donc les placer dans le dossier /Launchbox/Video/ etc...

 

Vous pouvez répéter cette opération pour chaque plateforme et gagner énormément de place donc plus de jeux ;)

 

Je vous souhaites une bonne fin de journée et et n'hésitez pas a demander de l'aide.

 

Link to comment
Share on other sites

Hello everyone, I’m doing a little tutorial to help you gain some space on your hard drive.

I have in my Launchbox/video folder/ about 50 GB of video snap for each game, all in MP4 format.

I looked for a way to switch from H264 codec to H265 codec for a significant gain of several GB.

The only problem with VLC is that it seeks to replace the original files of or bug, "the output file already exists"

All you have to do is check the "-converted" option in VLC and then use a simple batch to change the file name and match the game in Launchbox.


Step 1:


Always do the process from a copy of a file to avoid data loss

Go to/Launchbox/Video/Sega Megadrive for example, then copy your Theme folder containing the snap videos.

Paste this folder onto the desktop and open VLC.




Step 2:

In VLC select Media and then convert/save.

Add to the right, look for your recently placed folder on the desktop and take all your snap videos using ctrl, shift or ctrl+A then open.

Choose "convert" then in the new window, in the drop-down menu opted for the codec -video H265 + MP3 (MP4).

IMPORTANT: In destination do not forget to check the box "Affix -converted to file name" otherwise your VLC will bug in loop.

 

Step 3:

Once the conversions of your videos are finished, open your folder placed on the desktop, classify your files by creation date for example and delete your old videos that should be larger in size.



Create a new Text document in the same folder and paste this:

 

@echo off 
setlocal enabledelayedexpansion 
set partieasupprimer=-converted

for /f "delims==" %%F in ('dir /b ^| find "%partieasupprimer%"') do ( 
     set oldfilename=%%F 
     set newfilename=!oldfilename:%partieasupprimer%=! 
     Ren "!oldfilename!" "!newfilename!" 
     )

 

save the text document and rename it for example to "XXXX.bat"

when you double-click the . bat your new videos will be renamed without the "-converted", so you can place them in the/Launchbox/Video/ etc...



You can repeat this operation for each platform and gain huge space so more games;)



I wish you a happy end of the day and don’t hesitate to ask for help.

Edited by aztha
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...