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

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Display Modes
Old 24th May 2025, 02:20   #1  |  Link
dma_k
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
it reports the following problem:

Code:
ERROR: Marbles:Clips have differing pixel_types
however the expression
Code:
clip1+img1
works just fine.

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()
Any ideas how to make it working without intermediate conversion to yuv444?

Thanks in advance!
dma_k is offline   Reply With Quote
Old 24th May 2025, 03:10   #2  |  Link
real.finder
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
real.finder is offline   Reply With Quote
Reply

Tags
avisynth+, plugin, yuv420p

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:29.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.