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

[v3.1] Script seems to skip/crash ffmpeg almost immediately and fall over to handbrake.

hwwilliams opened this issue · comments

shot_171021_181601

So as you can see in the picture, it finds a file with DTS audio and plans to change it to AAC, except it finishes in one second or less. That's just not possible obviously. ffmpeg fails consistantly with any file I throw at it.

I force quit handbrake in this situation which is why the second error about the file being too small shows up.

commented

If you run this in a PowerShell window, does ffmpeg output any errors?

Yea it does give an error, line 59, it also didn't bother to check for a .mp4 file before deleting the .mkv file when this happened.

testoutput.txt

commented

I was able to reproduce this on my end by disabling keeping subtitles. Removing the "-c:s" flag solved the problem for me. Give 3.1.1 a shot and see if the issue persists.

That seems to have worked, although odd because I had keeping subtitles as false anyway.

I still get some sort of error message, but the files convert and play fine.

Line 88.

testoutput2.txt

commented

I'm not sure what that specifically refers to other than there was a read error at that specific position (it doesn't seem to be directly related to the script), but it seems to be a fairly common message. I'm going to go ahead and close this issue, but don't hesitate to let me know if it starts becoming a problem.