Selur's Little Message Board
Disaster with wrong MPlayer - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: Disaster with wrong MPlayer (/thread-426.html)

Pages: 1 2 3 4 5


RE: Disaster with wrong MPlayer - Selur - 18.05.2018

No clue why it isn't working atm. will try to look at it some more over the weekend.


RE: Disaster with wrong MPlayer - zigbay03 - 18.05.2018

It fails however to encode a mp4 (no filters) debug attached.

Okay, removed the Hybrid-dev-2018-05-16 and reinstalled the previous Hybrid.
First, loaded a mp4 into Hybrid and started to encode with no filters all okay.
Stopped encode, loaded your avs, tried to get preview but only blank window with tons of errors
debug attached.

Then Loaded the avs into AvsPmod all okay.
Finally, called avsViewer from wine to open the avs. All okay avsViewer launched and could step through with no problem.
See attachments.


RE: Disaster with wrong MPlayer - Selur - 19.05.2018

Looking at the second debug output:
Quote:LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/LoadDll.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/AddGrainC.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/dfttest.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/EEDI2.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/eedi3.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/FFT3DFilter.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/masktools2.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/mvtools2.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/nnedi.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/nnedi2.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/SSE2Tools.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/TDeint.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/VerticalCleanerSSE2.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/PlanarTools.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/nnedi3.dll")
LoadPlugin("/usr/bin/hybrid-bin/avisynthPlugins/RgTools.dll")
LoadCPlugin("/usr/bin/hybrid-bin/avisynthPlugins/yadif.dll")
LoadDll("/usr/bin/hybrid-bin/avisynthPlugins/fftw3.dll")
LoadDll("/usr/bin/hybrid-bin/avisynthPlugins/libfftw3f-3.dll")
# loading source: /run/media/root/SLACKWARE64/menu/Hybrid/selur.avs
# input color sampling YV12
# input luminance scale tv
Import("/run/media/root/SLACKWARE64/menu/Hybrid/selur.avs") # <- Here the 'Source =' part is missing, since you used an old version
Import("/usr/bin/hybrid-bin/avisynthPlugins/QTGMC.avsi")
Import("/usr/bin/hybrid-bin/avisynthPlugins/SMDegrain.avsi")
Import("/usr/bin/hybrid-bin/avisynthPlugins/AnimeIVTC.avsi")
# current resolution: 1440x576
SourceFiltered = Source
# deinterlacing
Source = Source.QTGMC(Preset="Fast", ediThreads=2)
Source = Source.SelectEven()
SourceFiltered = SourceFiltered.QTGMC(Preset="Fast", ediThreads=2)
SourceFiltered = SourceFiltered.SelectEven()
# filtering
# adjust color to(2): RGB32
SourceFiltered = SourceFiltered.ConvertToRGB32(matrix="Rec709")
Source = Source.ConvertToRGB32(matrix="Rec709")
StackHorizontal(Source, SourceFiltered)
return last
Here, the problem lies with the bug I fixed for you already, that instead of
Import("/run/media/root/SLACKWARE64/menu/Hybrid/selur.avs")
Source = Import("/run/media/root/SLACKWARE64/menu/Hybrid/selur.avs")
needs to be used when FilterView is used.
Since this wasn't fixed in the old version, it's not surprising it crashes.

Quote:Then Loaded the avs into AvsPmod all okay.
Can't really believe that you used the same script in AvsPmod, since that script is simply broken and doesn't work,...

Looking at the first debug output the following error occurs:
x264 output: y4m [error]: bad sequence header magic
The Vapoursynth script:
# Imports
import os
import sys
import vapoursynth as vs
core = vs.get_core()
# Import scripts folder
scriptPath = '/usr/share/vsscripts'
sys.path.append(os.path.abspath(scriptPath))
# Import scripts
import havsfunc
# Loading /tmp/convert/merged.mp4 using LibavSMASHSource
clip = core.lsmas.LibavSMASHSource(source="/tmp/convert/merged.mp4")
# making sure input color matrix is set as 470bg
clip = core.resize.Point(clip, matrix_in_s="470bg")
# making sure frame rate is set to 24000/1001
clip = core.std.AssumeFPS(clip, fpsnum=24000, fpsden=1001)
# Making sure input color range is set to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# setting field order to what QTGMC should assume
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=1)
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=False)
clip = clip[::2]
# Output
clip.set_output()
looks fine to me.
And the decoding and encoding calls look fine too:
"/usr/bin/vspipe" "/tmp/encodingTempSynthSkript_16_12_16_1710.vpy" - --y4m | "/usr/bin/x264" --preset slow --crf 18.00 --profile high --level 4.1 --psy-rd 1.00:0.15 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 1:1 --deblock -1:-1 --non-deterministic --range tv --colormatrix bt470bg --demuxer y4m  --input-range tv --fps 24000/1001 --output "/tmp/16_12_16_1710_02.264" -
Since the color space is 8bit YUV 4:2:0 the only thing I notice is that you use a x264 version from last year.

When you call the decoding & encoding call inside a terminal does it show any additional error information aside from 'y4m [error]: bad sequence header magic' ?

Cu Selur


RE: Disaster with wrong MPlayer - zigbay03 - 19.05.2018

You may have "fixed" a bug in the dev version but the preview issue was not resolved and it failed to process an mp4 so it was effectively worse than what I had been working with which is why I threw it out.

AVSPmod is very good at picking up script errors and I regularly use it just for that.
Believe it or not, what you call a broken script did show in avsPmod and there were no errors.
screenshot is attached which clearly shows the content of the script called..

The suggestion that I have a version of x264 from last year is sheer nonsense. Version info is attached.

I have a working linux vapoursynth installation but that has no bearing on the Hybrid problem where I am only interested in using avisynth filters anyway and the linux vapoursynth filters cannot be used so I don't know what relevance the last reply has where you seem to refer to vapoursynth??


RE: Disaster with wrong MPlayer - Selur - 19.05.2018

Quote:AVSPmod is very good at picking up script errors and I regularly use it just for that.
Believe it or not, what you call a broken script did show in avsPmod and there were no errors.
screenshot is attached which clearly shows the content of the script called..
Man, you don't get it. If you use FilterView with AvisynthView and use an avs script as input the old Hybrid version has a bug. It doesn't use 'Source ='.
The script you refer to is the one you feed Hybrid as input, the one I referred to is the one Hybrid feeds to avsViewer.

Quote:The suggestion that I have a version of x264 from last year is sheer nonsense. Version info is attached.
it is not. Your build is from x264 0.152 (which is from 2017) not from the current 0.155 sorry that you don't see that. Current version should be: 'x264 0.155.2901 7d0ff22'

Quote:I have a working linux vapoursynth installation but that has no bearing on the Hybrid problem where I am only interested in using avisynth filters anyway and the linux vapoursynth filters cannot be used so I don't know what relevance the last reply has where you seem to refer to vapoursynth??
I referred to Vapoursynth since the Debug Output you posted contained this error.

Before established that the old version had a bug regarding handling Avisynth input when FilterView and AvisynthView are used together (missing 'Source ='), which is why I compiled a modified version which should fix that. You then went back to the old version and complained about the AvisynthView not working when FilterView is sued.
=> Sorry, but I got no clue how I can help you if you do something like that.

Cu Selur


RE: Disaster with wrong MPlayer - zigbay03 - 19.05.2018

Sorry but you are going around in circles a bit.
I have already shown that your dev version 2018-05-16 does not only not display preview but also fails to encode.
I give the evidence again. Screenshots and debug attached

1) tried load mp4 file direct into Hybrid used no filters and it crashed.
2) closed Hybrid, restarted and loaded same mp4 but this time tried preview no filters.
   Window opened for a fraction of a second then closed.
3) closed Hybrid, restarted and loaded mp4 again but this time set Tweak filter
   No flashing window or preview


RE: Disaster with wrong MPlayer - Selur - 19.05.2018

Don't stuff multiple problem in one debug output.
-> I'll look only at the last problem.

Hybrid creates the following script for the preview:
LoadCPlugin("/usr/bin/hybrid-bin/avisynthPlugins/ffms2.dll")
# loading source: /tmp/convert/merged.mp4
#  input color sampling YV12
#  input luminance scale tv
Source = FFVideoSource("/tmp/convert/merged.mp4",cachefile="/tmp/mp4_064533b25950540cfe9d4ceb031af893_936145377_1_0.ffindex")
# current resolution: 720x576
SourceFiltered = Source
# deinterlacing
# filtering
# color modifications
SourceFiltered = SourceFiltered.Tweak(sat=2.00)
# adjust color to(2): RGB32
SourceFiltered = SourceFiltered.ConvertToRGB32(matrix="Rec601")
Source = Source.ConvertToRGB32(matrix="Rec601")
StackHorizontal(Source, SourceFiltered)
return last
and saves it under '/tmp/tempPreviewAvisynthFile17_54_03_690.avs',
it then calls the avsViewer with:
"/usr/bin/hybrid-bin/avsViewer.exe" --input "/tmp/tempPreviewAvisynthFile17_54_03_690.avs" --aspect 1 --matrix Rec601 --listen 2010
and here is the problem, the call is missing wine. Big Grin
-> will fix that problem, send you a link to another version, if the problem is fixed for you, you can create another debug output which just one of the other problems and I'll look at that.
(seems like this doesn't cause a problem on Ubuntu since it automatically calls wine)

Cu Selur


RE: Disaster with wrong MPlayer - zigbay03 - 19.05.2018

Thanks for the new file but sorry no luck - is even worse.
Tried load a mp4 and an avi, followed by the mp4 via an avs but Hybrid would not load any giving same error
" FilteringModel get->found no field filter Order"
Debug is attached. Have to hit the sack now.


RE: Disaster with wrong MPlayer - Selur - 19.05.2018

Argh forgot to comment some testing code out, will compile a new version and send you a link to test.

Cu Selur


RE: Disaster with wrong MPlayer - zigbay03 - 20.05.2018

Finally making some progress but the end not yet reached.

!) loaded mp4, set x264, no filters, started encode = NOTHING
2) went to filtering window, clicked on lower preview = window flashed for a fraction of a second
3) Clicked on top preview (Filter preview) = Preview window launched and seemed to work but error    windows
4) Closed and relaunched Hybrid, set x264 and selected Tweak Filter = Preview worked but error windows,
   screenshots attached. Started encode and appeared to progress okay.
5) Closed and relaunched Hybrid but this time loaded the mp4 via avs. = Filter Preview okay (avs-preview attached) again 4 errors. Encode started,   
    seemed to progress okay.
6) Restarted Hybrid and loaded mp4, set x264 & Tweak Filter, started encode = seemed okay
7) Restarted Hybrid and loaded mp4, set x264 but no filters (as in test (1) = clicked 3 times to try to encode but nothing happens