Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
3rd March 2018, 17:48 | #41 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
@l33tmeatwad:
Since I couldn't find ffmsindex or d2vwitch I went through all the filters I could think of that are not part of Vapoursynth directly and listed them:
@halls: I have the same effect when using Vapoursynth editor when I used this script: Code:
# Imports import vapoursynth as vs core = vs.get_core() # Loading /Users/selur/Desktop/test.mp4 using FFMS2 clip = core.ffms2.Source(source="/Users/selur/Desktop/test.mp4",format=vs.YUV420P8,alpha=False) # 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 30000/1001 clip = core.std.AssumeFPS(clip, fpsnum=30000, fpsden=1001) # Making sure input color range is set to TV (limited) range. clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1) # adjusting output color from: YUV420P8 to YUV420P10 for x264Model (i420) clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10) # Output clip.set_output() Cu Selur |
3rd March 2018, 19:10 | #42 | Link | |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
Quote:
Code:
# Loading /Users/selur/Desktop/test.mp4 using FFMS2 clip = core.ffms2.Source(source="/Users/selur/Desktop/test.mp4",format=vs.YUV420P8,alpha=False) clip = core.std.BlankClip(clip)
__________________
Buy me a "coffee" and/or hire me to write code! |
|
3rd March 2018, 19:46 | #44 | Link | |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
Quote:
Code:
# Loading /Users/selur/Desktop/test.mp4 using FFMS2 clip = core.ffms2.Source(source="/Users/selur/Desktop/test.mp4",format=vs.YUV420P8,alpha=False) clip = core.std.CropRel(clip, left=128) clip = core.std.AddBorders(clip, left=128) If black, then the problem is in ffms2. If still blue, then it could be the conversion to RGB (for display), or something in vsedit, or in Qt, or...
__________________
Buy me a "coffee" and/or hire me to write code! |
|
4th March 2018, 14:04 | #45 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Code:
import vapoursynth as vs core = vs.get_core() from vapoursynth import core c = core.ffms2.Source(source='/Users/selur/Desktop/test.mp4') c = core.std.BlankClip(c) c.set_output()) Code:
import vapoursynth as vs core = vs.get_core() from vapoursynth import core c = core.ffms2.Source(source='/Users/selur/Desktop/公演后感言.mp4') c = core.std.CropRel(c, left=128) c = core.std.AddBorders(c, left=128) c.set_output() Cu Selur |
4th March 2018, 15:42 | #46 | Link | |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
Quote:
__________________
Buy me a "coffee" and/or hire me to write code! |
|
5th March 2018, 15:32 | #48 | Link | |
Registered User
Join Date: Jun 2007
Posts: 414
|
Quote:
I'll add make sure to add ffmsindex and d2vwitch, as for the others, I'll add when I get the chance. I'm also going to just post my full instructions on how I compile everything for VapourSynth.framework so if anyone else wants to help contribute they can, I just need to clean up my nonsensical notes... Last edited by l33tmeatwad; 5th March 2018 at 17:15. |
|
5th March 2018, 18:24 | #52 | Link | |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Quote:
|
|
5th March 2018, 21:37 | #53 | Link |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
I kind of doubt this patch fixes the problem, but try it anyway:
Code:
diff --git a/src/core/vsresize.cpp b/src/core/vsresize.cpp index efd1a73..4f52c5b 100644 --- a/src/core/vsresize.cpp +++ b/src/core/vsresize.cpp @@ -493,7 +493,7 @@ public: allocate(vsformat, format.width, format.height, graph.get_input_buffering(), vsapi, core); if (vsformat->id == pfCompatBGR32) - m_p2p_func = vsp2p::packed_to_planar<vsp2p::packed_argb32_le>::unpack; + m_p2p_func = vsp2p::packed_to_planar<vsp2p::packed_argb32>::unpack; else if (vsformat->id == pfCompatYUY2) m_p2p_func = vsp2p::packed_to_planar<vsp2p::packed_yuy2>::unpack; @@ -533,7 +533,7 @@ public: allocate(vsformat, format.width, format.height, graph.get_output_buffering(), vsapi, core); if (vsformat->id == pfCompatBGR32) - m_p2p_func = vsp2p::planar_to_packed<vsp2p::packed_argb32_le, true>::pack; + m_p2p_func = vsp2p::planar_to_packed<vsp2p::packed_argb32, true>::pack; else if (vsformat->id == pfCompatYUY2) m_p2p_func = vsp2p::planar_to_packed<vsp2p::packed_yuy2, true>::pack;
__________________
Buy me a "coffee" and/or hire me to write code! |
5th March 2018, 22:49 | #54 | Link | |
Registered User
Join Date: Jun 2007
Posts: 414
|
Quote:
|
|
6th March 2018, 15:49 | #58 | Link |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
Okay then. What version of Qt do you have?
Edit: nevermind. Apparently it's a VapourSynth bug, not Qt.
__________________
Buy me a "coffee" and/or hire me to write code! Last edited by jackoneill; 6th March 2018 at 18:04. |
6th March 2018, 15:55 | #59 | Link |
Registered User
Join Date: Jun 2007
Posts: 414
|
I have and use Qt 5.9 for my personal projects, but for VapourSynth Editor I use 5.6 because if I use anything newer the output is a mostly black with blocky distortion, however 5.6 will properly compile it. I used 5.10 from brew on a fresh system to compile Wobbly.
Last edited by l33tmeatwad; 6th March 2018 at 15:59. |
6th March 2018, 17:14 | #60 | Link |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
Please test one more patch, but without applying the previous one:
Code:
diff --git a/src/common/p2p.h b/src/common/p2p.h index 60f50e9..0895b93 100644 --- a/src/common/p2p.h +++ b/src/common/p2p.h @@ -26,6 +26,10 @@ #include <climits> #include <type_traits> +#ifdef _WIN32 + #include <stdlib.h> // _byteswap_x +#endif + #ifdef P2P_USER_NAMESPACE #define P2P_NAMESPACE P2P_USER_NAMESPACE #else @@ -34,12 +38,10 @@ #ifdef _WIN32 #define P2P_LITTLE_ENDIAN - #include <stdlib.h> -#else - #include <sys/param.h> - #if __BYTE_ORDER == __BIG_ENDIAN +#elif defined(__BYTE_ORDER__) + #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ #define P2P_BIG_ENDIAN - #elif __BYTE_ORDER == __LITTLE_ENDIAN + #elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #define P2P_LITTLE_ENDIAN #endif #endif
__________________
Buy me a "coffee" and/or hire me to write code! |
|
|