convert-videos-for-plex icon indicating copy to clipboard operation
convert-videos-for-plex copied to clipboard

Unable to force transcoding of a video

Open petercurikjr opened this issue 2 years ago • 1 comments

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

petercurikjr avatar Sep 05 '22 10:09 petercurikjr

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?

mummybot avatar Sep 18 '22 19:09 mummybot

Hello,

sorry for my late reply. Unfortunately, changing L5 to L6 did not help. The behaviour remained the same.

petercurikjr avatar Oct 21 '22 05:10 petercurikjr

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.

petercurikjr avatar Nov 18 '22 11:11 petercurikjr