Concerns regarding Cayars' FFMPEG script

Don’t know enough about powershell to make a guess, I copied/pasted from something someone else had, that they said worked.

I’m glad you have it working now. And yes, I replaced the run.bat with my error checking setup everywhere the run.bat would be put. So anytime the conversion process is called the error checking is done as a part of the conversion.

I’m still ironing out the kinks though. How is your experience with TV show releases with obfuscated filenames (very common with Usenet)? Sure, the script can handle it with no problems but what ends up in the Sonarr Drone folder is an mp4 file that also has an obfuscated filename. Then Sonarr won’t ve able to rename it properly because I belive its “best guess” effort relies on the folder name of the release and this folder never goes to the Drone folder.

@kevindd992002 said:
Then Sonarr won’t ve able to rename it properly because I belive its “best guess” effort relies on the folder name of the release and this folder never goes to the Drone folder.

This is a case of working out your own workflows. I use Sonarr’s name for the episode and manually rename the file on disk. Others might do things differently. It’s something you need to work out yourself by keeping an eye on what’s been grabbed, downloaded and converted. And what was added into Plex. Mainly it’s about awareness, more than anything…

I thought you would say that but that won’t really be an option for me :frowning: It kinda defeats the purpose of automation. I mean, the amount of obfuscated downloads are high in Usenet and doing this manually is not good practice.

Is there any way to modify the script so that it saves the file to the exact same source location if that source location is a subfolder of what you specify when you call manual.py?

I got it to work beautifully! I had to enable SAB’s “sorting” feature so that TV show releases will be saved without a directory and all files will be renamed to the original NZB name. This solves two things: 1.) Manual deletion of folders that are left behind when the script runs and 2.) Obfuscated filenames not being imported properly by Sonarr.

Additional question @cayars :

How do I run manual.py in Windows silently (without the console appearing)? Renaming the extension to pyw just doesn’t work.

I wouldn’t advise doing that.

Why so?..

@MikeG6.5

Can you explain why your script won’t make the manual.py script run when the value of the SERVICE variable is null? Shouldn’t it be the other way around?

@cayars

If I still don’t want the python GUI, what do I need to do? The computer where I’m trying to run everything from is not a dedicated media server, it’s my personal computer. So I wouldn’t want to imagine that while I’m playing games the script runs and minimizes my game automatically.

There are many ways to run it minimized or with a hidden text gui. This isn’t something I would advise but you should be able to Google running a script hidden or similar to find out how.

@kevindd992002 said:
@MikeG6.5

Can you explain why your script won’t make the manual.py script run when the value of the SERVICE variable is null? Shouldn’t it be the other way around?

LOL! I have no idea… I don’t use Powershell, so if it’s different than what I originally posted on Linux’s shell I attribute it to that. I just the copied and pasted something off of another site that was written for Powershell and edited it to make the variable name make more sense…

My theory is, don’t fix something that ain’t broke. If it’s working just run with it and call it good.

I was talking about the original Linux codr that you posted :slight_smile: I’m not too much of a Linux guy but the logic is the same in both codes so I had to ask.

hehe, Ok, well, I have no idea. This is what worked. Remember, though… I run on a NAS which doesn’t have a TRUE version of Linux at the core. It’s some flavor of BusyBox. And a lot of the things you THINK work one way wind up working some other Gods Forsaken Way! (Without fail, and with lots of cuss words and hair pulling to troubleshoot what should be straight forward, damned simple scripts!)

Sorry, some frustrations there… :slight_smile:

@kevindd992002 It’d be a lot easier to just use the full sickbeard_mp4_automator and use the sabnzbd integration, if you want to remove the command prompt from coming up.

@Collisionc said:
@kevindd992002 It’d be a lot easier to just use the full sickbeard_mp4_automator and use the sabnzbd integration, if you want to remove the command prompt from coming up.

I was trying to use that initially but wasn’t really sure on how to go about it. I was also under the impression that @cayars’ modification to the sickbear_mp4_automator script makes it better in terms of converting everything to mp4.

@kevindd992002 said:

@Collisionc said:
@kevindd992002 It’d be a lot easier to just use the full sickbeard_mp4_automator and use the sabnzbd integration, if you want to remove the command prompt from coming up.

I was trying to use that initially but wasn’t really sure on how to go about it. I was also under the impression that @cayars’ modification to the sickbear_mp4_automator script makes it better in terms of converting everything to mp4.

Cayar has made the process more user friendly, but you can do everything with the sickbeard_mp4_automator that you can with Cayar’s script.

@Collisionc said:

@kevindd992002 said:

@Collisionc said:
@kevindd992002 It’d be a lot easier to just use the full sickbeard_mp4_automator and use the sabnzbd integration, if you want to remove the command prompt from coming up.

I was trying to use that initially but wasn’t really sure on how to go about it. I was also under the impression that @cayars’ modification to the sickbear_mp4_automator script makes it better in terms of converting everything to mp4.

Cayar has made the process more user friendly, but you can do everything with the sickbeard_mp4_automator that you can with Cayar’s script.

Yes, I understand. Would you be able to guide me through the process of setting it up though?

@cayars said:
There are many ways to run it minimized or with a hidden text gui. This isn’t something I would advise but you should be able to Google running a script hidden or similar to find out how.

@cayars

I tried renaming it to pyw and it did remove the python console when the script is ran by SAB BUT it was replaced by an ffmpeg.exe cmd prompt that is shown until the script ends converting the file to MP4.

Can you please help me out with this? Do you already know how to do this?

I don’t think this is a good idea at all. Your’re running it on your personal computer and you mentioned gaming which can be CPU intensive. You’re not going to want both running at the same time.

Just do like everyone else and only run the scripts when you’re not gaming or doing anything CPU intensive. This way you can just minimize the box that pops up.

BTW, there is a new version released with better performance.