kypec
21st September 2017, 11:22
Hello guys, I'm having a problem to encode with x264 the following script:import vapoursynth as vs
core = vs.get_core()
video = core.ffms2.Source(source='D:/Video/PEPPA_PIG_GERALD_GIRAFFE/title01.mkv')
video = core.std.CropRel(video, 0, 0, 0, 2)
video = core.resize.Spline36(video, 720, 576)
video.set_output()
The input is MPEG2 ripped directly from PAL DVD (720x576) with MakeMKV.
When feeding the above script to encoder it results in"C:\Program Files (x86)\VapourSynth\core64\vspipe.exe" --y4m title01.vpy - | "D:\GDrive\AV\tools\avc\x264.exe" --demuxer y4m - --preset veryslow --tune animation --bitrate 320 --sar 64:45 --pass 1 --output NUL --no-progress
Error: Failed to retrieve frame 0 with error: Resize error 1027: image dimensions must be divisible by subsampling factor
Output 0 frames in 0.03 seconds (0.00 fps)
y4m [info]: 720x576p 64:45 @ 25/1 fps (cfr)
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.0
x264 [info]: final ratefactor: 34.77
How do I go about cropping/resizing in VS to avoid such errors? I'm a total noob in VapourSynth and never encountered these issues in Avisynth...:(
core = vs.get_core()
video = core.ffms2.Source(source='D:/Video/PEPPA_PIG_GERALD_GIRAFFE/title01.mkv')
video = core.std.CropRel(video, 0, 0, 0, 2)
video = core.resize.Spline36(video, 720, 576)
video.set_output()
The input is MPEG2 ripped directly from PAL DVD (720x576) with MakeMKV.
When feeding the above script to encoder it results in"C:\Program Files (x86)\VapourSynth\core64\vspipe.exe" --y4m title01.vpy - | "D:\GDrive\AV\tools\avc\x264.exe" --demuxer y4m - --preset veryslow --tune animation --bitrate 320 --sar 64:45 --pass 1 --output NUL --no-progress
Error: Failed to retrieve frame 0 with error: Resize error 1027: image dimensions must be divisible by subsampling factor
Output 0 frames in 0.03 seconds (0.00 fps)
y4m [info]: 720x576p 64:45 @ 25/1 fps (cfr)
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.0
x264 [info]: final ratefactor: 34.77
How do I go about cropping/resizing in VS to avoid such errors? I'm a total noob in VapourSynth and never encountered these issues in Avisynth...:(