This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] Progressive to Interlaced - HOW?!
#10
Will look at it the week after next, if I don't forget about it.

tryout1 used:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "D:\Desktop\Working\source.mkv" -map 0:0 -an -sn -vf zscale=rangein=tv:range=tv -pix_fmt yuv420p -vsync 0 -f rawvideo - | "C:\Program Files\Hybrid\64bit\x264.exe" --preset slow --crf 16.00 --profile high --level 4.1 --ref 3 --keyint 25 --direct spatial --sync-lookahead 18 --rc-lookahead 12 --slices 4 --bff --weightp 0 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 8:9 --non-deterministic --range tv --colormatrix bt709 --demuxer raw --input-res 1920x1080 --input-csp i420 --input-range tv --input-depth 8 --fps 30000/1001 --bluray-compat --output-depth 8 --output "D:\Desktop\Working\2023-07-02@12_26_14_7810_01.264" -

Problem is the decoding call, it requires something liek
For TFF
-vf interlace=lowpass=2:scan=tff -top 1 -flags:v +ilme+ildct
For BFF
-vf interlace=lowpass=2:scan=bff -top 0 -flags:v +ilme+ildct

tryout2 used:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "D:\Desktop\Working\source.mkv" -map 0:0 -an -sn -vf zscale=rangein=tv:range=tv -pix_fmt yuv420p -vsync 0 -f rawvideo - | "C:\Program Files\Hybrid\64bit\x264.exe" --preset slow --crf 16.00 --profile high --level 4.1 --ref 3 --keyint 25 --direct spatial --sync-lookahead 18 --rc-lookahead 12 --slices 4 --bff --weightp 0 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 8:9 --non-deterministic --range tv --colormatrix bt709 --demuxer raw --input-res 1920x1080 --input-csp i420 --input-range tv --input-depth 8 --fps 30000/1001 --bluray-compat --output-depth 8 --output "D:\Desktop\Working\2023-07-02@12_27_39_9910_01.264" -
same issue as with tryout1.

tryout3 used:
ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\LSMASHSource.dll")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\mtmodes.avsi")
# loading source: D:\Desktop\Working\source.mkv
# color sampling YV12@8, matrix: bt470, scantyp: progressive, luminance scale: limited
LWLibavVideoSource("D:\Desktop\Working\source.mkv",cache=false,format="YUV420P8", prefer_hw=0,repeat=true)
# current resolution: 1920x1080
# interlace
AssumeTFF().SeparateFields().SelectEvery(4, 0, 3).Weave()
# setting output fps to 29.970fps
AssumeFPS(30000,1001)
PreFetch(8)
#  output: color sampling YV12@8, matrix: bt470, scantyp: top field first, luminance scale: limited
return last

"C:\Program Files\Hybrid\32bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "D:\Desktop\Working\encodingTempSynthSkript_2023-07-02@12_28_50_9110_0.avs" -an -sn -vf zscale=rangein=tv:range=tv -pix_fmt yuv420p -vsync 0 -f rawvideo - | "C:\Program Files\Hybrid\64bit\x264.exe" --preset slow --crf 16.00 --profile high --level 4.1 --ref 3 --keyint 25 --direct spatial --sync-lookahead 18 --rc-lookahead 12 --slices 4 --bff --weightp 0 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 8:9 --non-deterministic --range tv --colormatrix bt709 --demuxer raw --input-res 1920x1080 --input-csp i420 --input-range tv --input-depth 8 --fps 30000/1001 --bluray-compat --output-depth 8 --output "D:\Desktop\Working\2023-07-02@12_28_50_9110_02.264" -
Aside from the bff in the x264 call it looks fine.

=> seems like:
a. Hybrid doesn't properly create the ffmpeg decoding call when not using Avisynth or Vapoursynth for progressive to interlaced output.
b. Hybrid Avisynth/Vapoursynth scripting doesn't care whether you set your configure x264 to output bff or tff.

"Avisynth > Misc > Progressive to Interlace" <- I'll probably remove that there and move it to "(De)Interlace/Telecine".
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
RE: Progressive to Interlaced - HOW?! - by Selur - 02.07.2023, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)