[Solved] Issue with MEncoder
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Re: Issue with MEncoder
OK so we have narrowed it down. Let's try these ones:
Edit: Make sure you got the latest ones since I edited this post
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
Re: Issue with MEncoder
1st outcome:
- Audio is synced
- Subs display properly
2nd outcome:
- Video has artifacts
- Audio is synced
- Subs display properly
-----
Ultimately it seems the thing that provided the best results was:
Which had differences of:
from what I was running originally:
-----
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.
- Video has artifacts- Audio is synced
- Subs display properly
2nd outcome:
- 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
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
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
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
Answering my own question from the post above..
Issues arise with the:
portion of:
Removing the "fast" param and using:
Gives me this output file quality.
Issues arise with the:
Code: Select all
-lavdopts fast
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 -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
and had the same issue of blockyness where everything else is fine."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
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
Re: Issue with MEncoder
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.
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
the code that I could find that passes the param: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.
Code: Select all
if (configuration.getMencoderMT() && !avisynth && !dvd && !(media.getCodecV() != null && (media.getCodecV().equals("mpeg2video")))) {
cmdList.add("-lavdopts");
cmdList.add("fast");
}
-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
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)
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
1 Yes.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)
2: I assume that is what you needed, let me know if not.
Re: Issue with MEncoder
OK, great. Please go into your installation directory and open logback.xml. Near the bottom is:
Please change it to:
And then make a new debug package. This should give me the information I need 
Code: Select all
<root level="DEBUG">
Code: Select all
<root level="TRACE">

Re: Issue with MEncoder
Sorry about the late reply.SubJunk wrote:OK, great. Please go into your installation directory and open logback.xml. Near the bottom is:
Please change it to:Code: Select all
<root level="DEBUG">
And then make a new debug package. This should give me the information I needCode: Select all
<root level="TRACE">
Hope that helps.
- Attachments
-
- ums_dbg.zip
- (38.73 KiB) Downloaded 760 times
Re: Issue with MEncoder
Great, I think I've fixed the issue now. The (hopefully) fixed version is here.