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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | Link |
|
Registered User
Join Date: Jan 2008
Posts: 10
|
Why TxPlus plugin cannot join two videos in yuv420, but works with yuv444?
Dear all,
When I use Marbles() plugin in the following script Code:
SetLogParams("avisynth.log", LOG_INFO)
LoadPlugin("C:\Applications\Video\AviSynthPlus\plugins64+\ffms2.dll")
LoadPlugin("C:\Applications\Video\AviSynthPlus\plugins64+\TxPlus.dll")
frameRate=30
targetAudioRate=48000
# originally 1080x1920 29.911fps
file="20250523_200414.mp4"
FFIndex(file)
clip1=AudioDub(FFVideoSource(file), FFAudioSource(file)).TurnRight().ConvertFPS(frameRate)
# originally 4000x3000
img1=ImageSource("20250523_185014.jpg", start=0, end=150, fps=frameRate).LanczosResize(1440, 1080).AddBorders((1920 - 1440) / 2, 0, (1920 - 1440) / 2, 0).TurnRight()
img1=AudioDub(img1, BlankClip(img1, audio_rate=targetAudioRate, channels=2, sample_type="float")).ConvertToYUV420()
Marbles(clip1, img1, 2) # works fine when replaced with clip1+img1
Code:
ERROR: Marbles:Clips have differing pixel_types Code:
clip1+img1 clip1 from above script has video I420 1080x1920 30fps [V: rawvideo, yuv420p, 1080x1920]. The script that works fine converts the video to yuv444 (rgb32 also works fine): Code:
SetLogParams("avisynth.log", LOG_INFO)
LoadPlugin("C:\Applications\Video\AviSynthPlus\plugins64+\ffms2.dll")
LoadPlugin("C:\Applications\Video\AviSynthPlus\plugins64+\TxPlus.dll")
frameRate=30
targetAudioRate=48000
file="20250523_200414.mp4"
FFIndex(file)
clip1=AudioDub(FFVideoSource(file), FFAudioSource(file)).ConvertToYUV444().TurnRight().ConvertFPS(frameRate)
img1=ImageSource("20250523_185014.jpg", start=0, end=150, fps=frameRate).LanczosResize(1440, 1080).AddBorders((1920 - 1440) / 2, 0, (1920 - 1440) / 2, 0).TurnRight()
img1=AudioDub(img1, BlankClip(img1, audio_rate=targetAudioRate, channels=2, sample_type="float")).ConvertToYUV444()
Marbles(clip1, img1, 2).ConvertToYUV420()
Thanks in advance! |
|
|
|
|
|
#2 | Link |
|
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,695
|
try ask here https://forum.doom9.org/showthread.php?t=174399
anyway maybe it's the yv12 vs i420 again https://forum.doom9.org/showthread.p...72#post1938472
__________________
See My Avisynth Stuff |
|
|
|
![]() |
| Tags |
| avisynth+, plugin, yuv420p |
| Thread Tools | |
| Display Modes | |
|
|