Cayars - Setup walk through and some tips and tricks

Yea, I think you’re right MovieFan.

I’ll have to open a thread on this for additional functionality.
In “Handbrake speak” most people are used to hearing; if we could set the h.264 profile (eg high); level (eg 4.0) and crf setting (eg 20) that would be awesome. I doubt this would be hard to implement as it’s just allowing a user to set the configs and then use those config settings when setting up the transcode parameters. More or less the same thing I do with ffmpeg.

The profile level really isn’t that important as long as Plex chooses a good one to start with. Really it’s just the profile type and crf that would be ideal to be able to configure.

This would then allow us to create version of the files that are far better then what could be achieved in real-time and also a lot smaller. Everyone could then adjust the Optimize to their needs and trade speed for quality/lower storage as needed.

Don’t know how many people have checked but I notice many of the converted files are a lot bigger then the original file.

Carlo

Yeah, having settable parameters would be awesome. Maybe they will come in an update. I don’t think the profile level does anything to quality, but the crf and x264 preset would have dramatic impacts on quality.

Don’t know how many people have checked but I notice many of the converted files are a lot bigger then the original file.
Do your original files possibly have high ref frames? I’ve seen Plex use very low values which would make the files larger. Also the x264 preset will have an impact on filesize as well. Plex using Very Fast is not the best option if you have the CPU power to go faster.

No, not these ones I tested.(ref frames).

Concerning the profile level, ref frames and things of this nature. I do not think these should be configurable at all. These don’t affect the end result of quality much (if at all) but are there for compatibility to the many devices. It’s really just the x264 preset and “crf” setting I believe. I’m going to to a quick look through my code/scripts to see if there is anything else.

Ideally for Optimize if the Job Setup/edit allowed you to pick the profile (ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow) from a drop down and ALSO allow you to set the CRF or Constant Rate Factor from a drop down with sane values such as 18 to 28 as choices then this is all that should be needed.

The above would easily allow the command line options such as “-preset slow -crf 20” to be handed off to the transcoder to get the results needed.

We would then have some real freedom in setting up our jobs to meet our individual needs.

Carlo

https://forums.plex.tv/discussion/196792/media-optimization-new-feature-request

Vote it up if you like it.

Carlo

Carlo when or how long till you release betas of your distributed transcoder software i have multiple servers and 54tb of files and im limited to naming them server 1-5 and asking friends to jump to another server if it lags which is lame :wink:

Honestly don’t know as I’ve put this on the back burner for now. Maybe I’ll work on it some during the holidays as work should slow down some then.

There’s a forum thread somewhere in the 3rd party section with some individuals working on something that sounds awfully close to the idea you had. Might be worth taking a look at their github project. Let me see if I can find the link.a

Found it, but it hasn’t been touched in months. https://github.com/wnielson/Plex-Remote-Transcoder

problem is im looking for a windows solution and all of those are ubuntu based.

Hey, recently the converter stopped working for me. No idea why that would be.
Any idea?

It just opens this window and does nothing. Tested with multiple files.

Running on Win10

I would suggest renaming your files first before processing them so that subtitles get the correct name generated. I’ve seen it get hung up previously if you don’t have good plex names for the origin files.

However, with that said, I doubt it’s the reason. Can you fire off and convert these files directly with ffmpeg or does it die also?

Has anything changed on your side? Have you recently updated to Windows 10? Did it ever run on windows 10?

Are you processing “in place” or having the results written to a common “done” or “completed” directory?

Have you checked to make sure you aren’t low or disk space?

If you want we could setup TeamViewer and I could give you a hand figuring out what’s not working. Just send me a PM if you like.

Carlo

@cayars

Any chance you fixed the french sub detection issue in your transcode script? I sent you the test file on your ftp awhile back (check your pm’s)

I thought I answered. It’s just a configuration issue. It worked fine for me.

@cayars said:
I thought I answered. It’s just a configuration issue. It worked fine for me.

nah you hadnt :slight_smile: what do i need to change in order to get it to pick up FRA and FRE as French

subtitle-language config in autoProcess.ini

@cayars said:
subtitle-language config in autoProcess.ini

I will test, thanks

@cayars

I dont seem to be getting a srt file for subs after conversion…is there something missing?

here is my config:

[MP4]
ffmpeg = ffmpeg.exe
ffprobe = ffprobe.exe
output_directory = C:\Convert\Done
output_extension = mp4
output_format = mp4
delete_original = False
audio-codec = ac3,mp3,dts,dca
video-codec = h264,x264
video-bitrate = 
ios-audio = True
ios-first-track-only = True
audio-language = eng,fre,fra
audio-default-language = eng
audio-channel-bitrate = 256
subtitle-language = eng,fra
subtitle-default-language = eng
convert-mp4 = True
download-artwork = False
fullpathguess = True
tag-language = en
copy_to = 
download-subs = False
move_to = 
max-audio-channels = 
tagfile = False
embed-subs = False
subtitle-codec = srt
video-max-width = 
permissions = 777
relocate_moov = False
sub-providers = addic7ed, podnapisi, thesubdb, opensubtitles

Here is my log:

    2015-12-08 21:16:23 - MANUAL - INFO - Manual processor started.
2015-12-08 21:16:23 - MANUAL - INFO - Reading video stream.
2015-12-08 21:16:23 - MANUAL - INFO - Video codec detected: h264
2015-12-08 21:16:23 - MANUAL - INFO - Reading audio streams.
2015-12-08 21:16:23 - MANUAL - INFO - Audio detected for stream #1: dca [eng].
2015-12-08 21:16:23 - MANUAL - INFO - Creating audio stream 0 from source audio stream 1 [AAC-audio].
2015-12-08 21:16:23 - MANUAL - INFO - Creating audio stream 1 from source audio stream 1.
2015-12-08 21:16:23 - MANUAL - INFO - Audio detected for stream #2: ac3 [fre].
2015-12-08 21:16:23 - MANUAL - INFO - Creating audio stream 2 from source audio stream 2.
2015-12-08 21:16:23 - MANUAL - INFO - Reading subtitle streams.
2015-12-08 21:16:23 - MANUAL - INFO - Subtitle detected for stream #3: pgssub [eng].
2015-12-08 21:16:23 - MANUAL - INFO - Subtitle detected for stream #4: pgssub [spa].
2015-12-08 21:16:23 - MANUAL - INFO - {
    "subtitle": {}, 
    "audio": {
        "0": {
            "channels": 2, 
            "map": 1, 
            "codec": "aac", 
            "bitrate": 256, 
            "language": "eng"
        }, 
        "1": {
            "channels": 6, 
            "map": 1, 
            "codec": "copy", 
            "bitrate": 1536, 
            "language": "eng"
        }, 
        "2": {
            "channels": 6, 
            "map": 2, 
            "codec": "copy", 
            "bitrate": 1536, 
            "language": "fre"
        }
    }, 
    "video": {
        "map": 0, 
        "codec": "copy", 
        "bitrate": 7817.136
    }, 
    "format": "mp4"
}
2015-12-08 21:16:23 - MANUAL - INFO - Starting conversion.
2015-12-08 21:22:14 - MANUAL - INFO - C:\Convert\Done\Mortdecai 2015 Multi BluRay 1080p DTS-HD MA 7.1 x264-HD Workshop.mp4 created.

Looking at that log, it would seem the file HAS French audio but not a French subtitle.

yeah that i know…but im not getting the enlgish sub

Ahh, that is because you don’t have any SRT format subs in the file. What you have is pgssub which isn’t supported.

@cayars said:
Ahh, that is because you don’t have any SRT format subs in the file. What you have is pgssub which isn’t supported.

Ah ic, i thought the script extracted subs from file and created a SRT with them