Page 2 of 3

Re: Issue with MEncoder

Posted: Tue Nov 06, 2012 10:20 am
by SubJunk
OK so we have narrowed it down. Let's try these ones:

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "C:\Users\GuardianX\Videos\Dvd backups\NEEDS RENAMED\Shrek.mkv" -msglevel statusline=2 -oac copy -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=640:threads=4:keyint=1:vqscale=1:vqmin=2:vrc_maxrate=274000:vrc_buf_size=1835 -font C:\Windows\Fonts\Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -fontconfig -spuaa 3 -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -o file.mpeg

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "C:\Users\GuardianX\Videos\Dvd backups\NEEDS RENAMED\Shrek.mkv" -msglevel statusline=2 -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:keyint=1:vqscale=1:vqmin=2:vrc_maxrate=274000:vrc_buf_size=1835 -font C:\Windows\Fonts\Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -fontconfig -spuaa 3 -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -o file.mpeg
Edit: Make sure you got the latest ones since I edited this post

Re: Issue with MEncoder

Posted: Tue Nov 06, 2012 10:43 am
by GuardianX
1st outcome:
vlcsnap-2012-11-05-14h30m59s11.png
vlcsnap-2012-11-05-14h30m59s11.png (826.99 KiB) Viewed 12638 times
- Video has artifacts
- Audio is synced
- Subs display properly

2nd outcome:
vlcsnap-2012-11-05-14h35m19s53.png
vlcsnap-2012-11-05-14h35m19s53.png (857.66 KiB) Viewed 12638 times
- Video has artifacts
- Audio is synced
- Subs display properly


-----

Ultimately it seems the thing that provided the best results was:

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "H:\Entertainment\Movies\Shrek.mkv" -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:keyint=5:vqscale=1:vqmin=2:vrc_maxrate=54000:vrc_buf_size=1835 -sid 0 -ofps 24000/1001 -mc 0 -noskip -o file.mpeg
Which had differences of:

Code: Select all

-msglevel statusline=2

-lavdopts debug=0:threads=8

-lavcopts :threads=8:vrc_maxrate=274000

-spuaa 3 

-lavdopts fast

-font C:\Windows\Fonts\Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -fontconfig
from what I was running originally:

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "C:\Users\GuardianX\Videos\Dvd backups\NEEDS RENAMED\Shrek.mkv" -msglevel statusline=2 -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavdopts debug=0:threads=8 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:threads=8:keyint=5:vqscale=1:vqmin=1:vrc_maxrate=274000:vrc_buf_size=1835 -font C:\Windows\Fonts\Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -fontconfig -spuaa 3 -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -o file.mpeg
-----
EDIT:
** can I toss the params wherever I want? Or do some need to fall after others? If I can I'll start messing with it a bit on my own and see if I can isolate something that seems to react poorly.

Re: Issue with MEncoder

Posted: Tue Nov 06, 2012 10:51 am
by SubJunk
Next ones to try:

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "C:\Users\GuardianX\Videos\Dvd backups\NEEDS RENAMED\Shrek.mkv" -msglevel statusline=2 -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:keyint=1:vqscale=1:vqmin=2:vrc_buf_size=1835 -font C:\Windows\Fonts\Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -fontconfig -spuaa 3 -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -o file.mpeg

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "C:\Users\GuardianX\Videos\Dvd backups\NEEDS RENAMED\Shrek.mkv" -msglevel statusline=2 -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:keyint=1:vqscale=1:vqmin=2:vrc_buf_size=1835 -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -fontconfig -spuaa 3 -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -o file.mpeg

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "C:\Users\GuardianX\Videos\Dvd backups\NEEDS RENAMED\Shrek.mkv" -msglevel statusline=2 -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:keyint=1:vqscale=1:vqmin=2:vrc_buf_size=1835 -fontconfig -spuaa 3 -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -o file.mpeg

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "C:\Users\GuardianX\Videos\Dvd backups\NEEDS RENAMED\Shrek.mkv" -msglevel statusline=2 -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:keyint=1:vqscale=1:vqmin=2:vrc_buf_size=1835 -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -o file.mpeg

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "C:\Users\GuardianX\Videos\Dvd backups\NEEDS RENAMED\Shrek.mkv" -msglevel statusline=2 -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:keyint=1:vqscale=1:vqmin=2:vrc_buf_size=1835 -sid 0 -ofps 24000/1001 -mc 0 -noskip -o file.mpeg

Re: Issue with MEncoder

Posted: Tue Nov 06, 2012 11:11 am
by GuardianX
Answering my own question from the post above..

Issues arise with the:

Code: Select all

-lavdopts fast
portion of:
"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "H:\Entertainment\Movies\Shrek.mkv" -msglevel statusline=2 -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavdopts debug=0:threads=8 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:threads=8:keyint=5:vqscale=1:vqmin=1:vrc_maxrate=274000:vrc_buf_size=1835 -font C:\Windows\Fonts\Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -fontconfig -spuaa 3 -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -o file.mpeg
Placement doesn't seem to matter. I moved the param to:
"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "H:\Entertainment\Movies\Shrek.mkv" -msglevel statusline=2 -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavdopts debug=0:threads=8:fast -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:threads=8:keyint=5:vqscale=1:vqmin=1:vrc_maxrate=274000:vrc_buf_size=1835 -font C:\Windows\Fonts\Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -fontconfig -spuaa 3 -sid 0 -ofps 24000/1001 -mc 0 -noskip -o file.mpeg
and had the same issue of blockyness where everything else is fine.

Removing the "fast" param and using:

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 "H:\Entertainment\Movies\Shrek.mkv" -msglevel statusline=2 -oac copy -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavdopts debug=0:threads=8 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:threads=8:keyint=1:vqscale=1:vqmin=1:vrc_maxrate=274000:vrc_buf_size=1835 -font C:\Windows\Fonts\Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -fontconfig -spuaa 3 -sid 0 -ofps 24000/1001 -mc 0 -noskip -o file.mpeg
Gives me this output file quality.
vlcsnap-2012-11-05-15h10m04s158.png
vlcsnap-2012-11-05-15h10m04s158.png (737.79 KiB) Viewed 12638 times

Re: Issue with MEncoder

Posted: Tue Nov 06, 2012 12:03 pm
by GuardianX
Not sure if it is possible but it seems a toggle or something may be needed for the "fast" param for MEncoder. I'm pretty basic with code so I couldn't see if there was a way for me to toggle it with the options in the program as it stands.
http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.txt wrote:fast (MPEG-2, MPEG-4, and H.264 only)
Enable optimizations which do not comply to the specifi‐
cation and might potentially cause problems, like sim‐
pler dequantization, simpler motion compensation, assum‐
ing use of the default quantization matrix, assuming YUV
4:2:0 and skipping a few checks to detect damaged bit‐
streams.
the code that I could find that passes the param:

Code: Select all

		if (configuration.getMencoderMT() && !avisynth && !dvd && !(media.getCodecV() != null && (media.getCodecV().equals("mpeg2video")))) {
			cmdList.add("-lavdopts");
			cmdList.add("fast");
		}
The way I read it (We are about to go full retard, buckle up! He's "reading" code!!!)..

-Checks to see if it is using MEncoder

-Not avisynth

-Not a DVD

-Doesn't NOT have a codec (?)

-The codec it HAS == (?)

Is there a setting that I don't see that I could use to toggle the "fast" param off?

Line

https://github.com/UniversalMediaServer ... L2089-2092

Re: Issue with MEncoder

Posted: Tue Nov 06, 2012 12:24 pm
by SubJunk
The video codec detection in UMS isn't working for that file, because UMS has some code that says "if the video is mpeg2video then don't add lavdopts fast", and your video is mpeg2video.

It seems like it's just a VOB file/s taken from a DVD and remuxed into MKV, is that right?
Can you post the MediaInfo output for the file? (link)

Re: Issue with MEncoder

Posted: Tue Nov 06, 2012 12:31 pm
by GuardianX
SubJunk wrote:It seems like it's just a VOB file/s taken from a DVD and remuxed into MKV, is that right?
Can you post the MediaInfo output for the file? (link)
1 Yes.

2:
Shrek.xml
(3.6 KiB) Downloaded 815 times
I assume that is what you needed, let me know if not.

Re: Issue with MEncoder

Posted: Tue Nov 06, 2012 1:59 pm
by SubJunk
OK, great. Please go into your installation directory and open logback.xml. Near the bottom is:

Code: Select all

<root level="DEBUG">
Please change it to:

Code: Select all

<root level="TRACE">
And then make a new debug package. This should give me the information I need :)

Re: Issue with MEncoder

Posted: Tue Nov 06, 2012 2:56 pm
by GuardianX
SubJunk wrote:OK, great. Please go into your installation directory and open logback.xml. Near the bottom is:

Code: Select all

<root level="DEBUG">
Please change it to:

Code: Select all

<root level="TRACE">
And then make a new debug package. This should give me the information I need :)
Sorry about the late reply.

Hope that helps.

Re: Issue with MEncoder

Posted: Tue Nov 06, 2012 3:59 pm
by SubJunk
Great, I think I've fixed the issue now. The (hopefully) fixed version is here.