nebhead / PlexPostProc

Plex PostProcessing Script for DVR(Beta)
77 stars 30 forks source link

ffmpeg changes and logging changes #24

Closed apassiou closed 2 years ago

apassiou commented 2 years ago

Added section for customizing ffmpeg settings. Default settings for ffmpeg changed to libx265 at 24.97 FPS, downmixing audio to 2 channels using AAC codec at 96kbps. This equates to about ~400Mb files per hour.

Made logging go into a single log file for ease of historical reference.

Cleaned up the log file to reduce size and improve readability. Added file size of original and transcoded as well as time taken to transcode. No reason to output file locations twice (pre and after transcode), makes log look very busy with those long string names.

Output now looks like this:

$ cat /tmp/plex_DVR_post_processing_log
20220202-194542: Transcoding /mnt/sda/DVR/.grab/d57dd1329eeace9a3ffd174cf13ec20f09c924d6-1ce9e32334a0c91e0f83214dca9052b580b15d62/Access Hollywood (1996) - S26E118 - Access Hollywood.ts to /tmp/tmp.4hos6jdhaL.mkv
Using FFMPEG [42M -> 2.2M] - [0 min 8 sec]
20220202-194550: Finished transcode, exiting.
nebhead commented 2 years ago

Thanks for the PR! Changes look good!