convert-videos-for-plex
convert-videos-for-plex copied to clipboard
Unable to force transcoding of a video
Hello,
thank you for your script, it is truly amazing. I have one problem, though. I am currently trying to transcode a folder with a bunch of .mkv videos that Plex cannot play without converting. The script, however, skips every single one of these videos with a message "Skipping (video format MPEG Video Main@Main will already play in Plex)".
I am running the script as ./convert-videos-for-plex.sh -frd
. The script is in the same folder as the .mkv videos.
Please, how can I force the script to transcode a video even if it thinks the video will already play in Plex? I need Plex to avoid converting these videos while playing, as it makes the playback laggy and unwatchable.
Thank you in advance
Sorry for the delay in my reply. Can you try chaging:
&& ($(mediainfo --Inform="Video;%Format_Profile%" "$i") == *"@L5"*))
to
&& ($(mediainfo --Inform="Video;%Format_Profile%" "$i") == *"@L6"*))
And see if that makes a difference?
Hello,
sorry for my late reply. Unfortunately, changing L5 to L6 did not help. The behaviour remained the same.
Hello,
I finally managed to transcode these problematic files using ffmpeg, as follows:
for i in *.mkv; do ffmpeg -i "$i" "${i%.*}.mp4"; done
closing the issue.