Hi all,
So I've got everything setup just the way I want at this point.
I have some new users which causes Plex to transcode on the fly a lot. This will get me into trouble later on so I decided I need to convert the video files to a format ChromeCast can play directly. H264 4.2 it is.
I made a bash script but this is my first script ever. So before destroying all my files I'd like a checkup with the pro's here.
Does this make any sense to you?
for i in [[/media/*.avi]] || [[/media/*.mkv]] || [[/media/*.mp4]];
if [[ "$i" == *"TRANSCODED.mp4"* ]]; done
else
do ffmpeg -i "$i" -c:v libx264 -crf 20 -preset medium -level 4.2 -c:a aac -b:a 320k -movflags +faststart -vf scale=-2:720,format=yuv420p -threads 1 "${i%}"-TRANSCODED.mp4;
rm "$i"; done
So I've got everything setup just the way I want at this point.
I have some new users which causes Plex to transcode on the fly a lot. This will get me into trouble later on so I decided I need to convert the video files to a format ChromeCast can play directly. H264 4.2 it is.
I made a bash script but this is my first script ever. So before destroying all my files I'd like a checkup with the pro's here.
Does this make any sense to you?
for i in [[/media/*.avi]] || [[/media/*.mkv]] || [[/media/*.mp4]];
if [[ "$i" == *"TRANSCODED.mp4"* ]]; done
else
do ffmpeg -i "$i" -c:v libx264 -crf 20 -preset medium -level 4.2 -c:a aac -b:a 320k -movflags +faststart -vf scale=-2:720,format=yuv420p -threads 1 "${i%}"-TRANSCODED.mp4;
rm "$i"; done