[SOLVED] mencoder_codec_specific_script parsing error in UMS-5.0.0
Posted: Sun Feb 15, 2015 7:00 pm
Hey Guys,
Looks like there's a bug in the parser for mencoder_codec_specific_script config line in 5.0.0.
I have the following in my mencoder expert settings:
UMS escapes the double quotes and newlines correctly in the UMS.conf:
However, UMS then added extra backslashes and returned a parsing error:
Removing the backslashes altogether did let UMS escape the double quotes;
But this will make UMS reads the config incorrectly, as in completely ignoring the newline to mark the start of the second condition:
Some relevant mencoder output of the transcode above:
I've used this particular mencoder_codec_specific_script line since 4.0.2 with no issues.
Probably need a quick patch? What do you guys think?
EDIT: Forgot to include my build info:
Looks like there's a bug in the parser for mencoder_codec_specific_script config line in 5.0.0.
I have the following in my mencoder expert settings:
Code: Select all
filename.contains("Anime") :: -sws 9 -vf pp=ac/al:f,hqdn3d,unsharp=l3x3:1,noise=10uah:3uah,gradfun=1.01
filename.contains("TV") || filename.contains("Movies") :: -sws 10 -vf pp=ac/al:f,hqdn3d=2:2:4,unsharp=l3x3:0.5,noise=12uah:5uah,gradfun=1.01
Code: Select all
mencoder_codec_specific_script = filename.contains(\"Anime\") :: -sws 9 -vf pp=ac/al:f,hqdn3d,unsharp=l3x3:1,noise=10uah:3uah,gradfun=1.01\nfilename.contains(\"TV\") || filename.contains(\"Movies\") :: -sws 10 -vf pp=ac/al:f,hqdn3d=2:2:4,unsharp=l3x3:0.5,noise=12uah:5uah,gradfun=1.01
Code: Select all
DEBUG 17:55:37.831 [New I/O worker #24] Reading mencoder_codec_specific_script: "filename.contains(\\"Anime\\") :: -sws 9 -vf pp=ac/al:f,hqdn3d,unsharp=l3x3:1,noise=10uah:3uah,gradfun=1.01\nfilename.contains(\\"TV\\") || filename.contains(\\"Movies\\") :: -sws 10 -vf pp=ac/al:f,hqdn3d=2:2:4,unsharp=l3x3:0.5,noise=12uah:5uah,gradfun=1.01" (default: "")
DEBUG 17:55:37.859 [New I/O worker #24] Error while executing: filename.contains(\"Anime\") : Sourced file: inline evaluation of: ``filename.contains(\"Anime\");'' Token Parsing Error: Lexical error at line 1, column 19. Encountered: "\\" (92), after : ""
Code: Select all
DEBUG 18:03:45.207 [New I/O worker #24] Reading mencoder_codec_specific_script: "filename.contains(\"Anime\") :: -sws 9 -vf pp=ac/al:f,hqdn3d,unsharp=l3x3:1,noise=10uah:3uah,gradfun=1.01\nfilename.contains(\"TV\") || filename.contains(\"Movies\") :: -sws 10 -vf pp=ac/al:f,hqdn3d=2:2:4,unsharp=l3x3:0.5,noise=12uah:5uah,gradfun=1.01" (default: "")
Code: Select all
DEBUG 18:03:45.239 [mencoder-2] Starting /usr/local/bin/mencoder -ss 0 /media/Archives3/Media/Videos/Anime/[philosophy-raws][Soukyuu no Fafner]/[philosophy-raws][Soukyuu no Fafner][01][BDRIP][Hi10P FLAC][1424X1068].mkv -msglevel statusline=2 -oac lavc -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=448:threads=8:keyint=5:vqscale=1:vqmin=1:vrc_maxrate=499000:vrc_buf_size=7000 -font /usr/share/fonts/truetype/msttcorefonts/Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -fontconfig -aid 0 -noautosub -sid 0 -fps 24000/1001 -ofps 24000/1001 -lavdopts fast -sws 9 -vf pp=ac/al:f,hqdn3d,unsharp=l3x3:1,noise=10uah:3uah,gradfun=1.01\nfilename.contains("TV") || filename.contains("Movies") :: -sws 10 -vf pp=ac/al:f,hqdn3d=2:2:4,unsharp=l3x3:0.5,noise=12uah:5uah,gradfun=1.01 -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/universalmediaserver/mencoder1423983825237
Code: Select all
DEBUG 18:03:45.296 [Thread-29] Opening video filter: [gradfun=1.01\nfilename.contains("TV")]
DEBUG 18:03:45.296 [Thread-29] Opening video filter: [noise=10uah:3uah]
DEBUG 18:03:45.296 [Thread-29] Opening video filter: [unsharp=l3x3:1]
DEBUG 18:03:45.296 [Thread-29] Opening video filter: [hqdn3d]
DEBUG 18:03:45.296 [Thread-29] Opening video filter: [pp=ac/al:f]
Probably need a quick patch? What do you guys think?
EDIT: Forgot to include my build info:
Code: Select all
INFO 18:01:43.632 [main] Build: 420e5aa50 (2015-01-25)
INFO 18:01:43.632 [main] Java: OpenJDK 64-Bit Server VM 1.7.0_75 64-bit by Oracle Corporation
INFO 18:01:43.632 [main] OS: Linux 64-bit 3.13.0-45-generic
INFO 18:01:43.632 [main] Encoding: UTF-8
INFO 18:01:43.643 [main] Memory: 3840 MB
INFO 18:01:43.643 [main] Language: en_uk