Compress videos to save storage space

It is possible to save space by compressing the videos recovered on screenscraper. ARRM can use Handbrake or FFmpeg as compression software.

To activate the compression of the videos during their recovery (scrap) just check the compress video box and indicate the desired encoder. The compression parameters used will be those indicated in the field Handbrake parameters or Ffmpeg parameters

By default the compression settings are as follows:

  • for Handrake: -Z “Gmail Small 10 Minutes 288p30” –crop 0:0:0:0 -f av_mp4
  • for FFmpeg: -ac 1 -c:v libx264 -preset:v slow -profile:v main -level 3.1 -filter_complex “format=yuv420p,scale='if(gt(in_w,in_h),288,-2 ):if(gt(in_w,in_h),-2,288)'” -r 30 -f mp4 -y

Other possible settings for FFMPEG:

  • -ac 1 -c:v libx264 -pix_fmt yuv420p -crf 35 -preset:v slow -y
  • -t 30 -acodec libmp3lame -b:a 64k -ar 24000 -c:v libx264 -preset slow -crf 28 -vf “scale=-1:480,fps=30,pad=ceil(iw/2) *2:ceil(ih/2)*2” -y → parameters used to create normalized videos on Screenscraper.

You can use other parameters knowing that the default ones reduce the video by more than half. List of different presets usable with Handbrake FFmpeg Documentation

To find the default settings, simply clear the settings textbox.

You can also compress entire videos on a system. You have to open the system, select the roms and click on the button Compress the selected videos

Compressing the videos also makes them compatible with the OMX player on Retropie

arrm_relooked_en/compress_video_en_relooked.txt · Dernière modification : 2023/03/19 14:24 de