BrianDMG / conv2mp4

This Powershell script will recursively search through a user-defined file path and convert all videos of user-specified file types to MP4 with H264 video and AAC audio using ffmpeg. The purpose of this script is to reduce transcoding CPU load on a media server like Plex or Emby and increase video compatibility across platforms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extract embedded subtitles?

Kezxo opened this issue · comments

commented

Looks like the script does not care about embedded subtitle tracks as it is now, any chance it could extract them as .srt files or maybe even embed them back into the new files?

EDIT: Looks like multiple audiotracks isn't working either.

commented

Hey Kezxo,

v1.4 (just uploaded) keeps all audio and subtitle tracks. I've had a limited number of files to test this out on, but it's worked perfectly on every file I've tested it on so I don't anticipate any major issues. Test it out on a few files before putting it in to production on your entire library.

Been using this since you posted on /r/plex, and since this update have tried it on an anime episode. The subtitles appear to not be enabled by default, which in my case would be preferred but I realize that may not be the case for all people. Though the video quality itself was worse than the original by a very noticeable margin, according to log files the ffmpeg conversion failed and it fell over to handbrake, scenes with lots of movement are extremely pixelated and even the still scenes have noticeable pixels in them.

All of my previous usages with this script have worked out with ffmpeg and never fell down to handbrake so I assume the problem is there.

commented

Did you see any errors in the console from ffmpeg indicating why it might have failed? Or from Handbrake indicating why it might not have carried over the subtitle track? I was also testing it against an MKV with a single video channel, 2 audio channels, and a single subtitle track that I had converted directly from a VOB without issue. The MKVs of Stranger Things I (also) tested against did fail over to Handbrake, but all encoded everything properly and even looked pretty good on my 42" TV.

Actually it was just my computer being dumb, for some reason Microsoft visual studio messes with it and I had it installed for something. I uninstalled it and had no more problems, it kept saying something about a conflicting debugger or something. Sorry for the confusion.

Maybe on something that you could help me with, how would I put two different directories for the media path? Separate by comma or something else?