

The first 50 lines of FFREPORTs are really useful for identifying how FFmpeg has interpreted your command.

I believe %TEMP% does not auto-clean unless you tell it to, but perhaps someone can help translate export FFREPORT=file=/tmp/%p-%t.log:level=48 into Windows.) (I don't know where Windows keeps non-persistent temporary files these days. The alternative to /tmp is to use POSIX's $ environment variable, but that is a little more persistent tmp gets automatically housekept on macOS and most Linux. bashrc is to set the FFREPORT environmental variable, so that FFmpeg reports are saved to semi persistent storage and can tell you how your input command was interpreted.Įxport FFREPORT=file=/tmp/%p-%t.log:level=48Įach time the command is invoked, FFmpeg will advise where the FFREPORT was saved for that command. Watch -tcn 1 "/bin/bash /root/scripts/watch_transcodes.sh"Īnother useful one for your. Usage as cronjob: * * * * * /path/to/video_stream_prepare.sh /path/to/parent/containing/all/three/folders sourceFolderName statusFolderName targetFolderName >/dev/null 2>&1Įxample: * * * * * /root/scripts/video_stream_prepare.sh /mnt/some-mount-point/media/movies source transcoding streamable >/dev/null 2>&1Īs a bonus: monitor all transcodes that are happening using that script ( ): It also prints the ffmpeg output to a textfile in a third folder with the same structure: It automatically prepares all videos in one folder, one after the other (up to 3 at a time) for streaming (max bitrate, resolution, movflag, profile, level etc) and puts the result in a folder with the same structure as the source folder. I wrote the following script to prepare my whole media library for streaming with plex.
