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.

set output DAR lags to prores
#1
Hey all-- I've been using hybrid for some time now to deinterlace and convert videos captured as NTSC Lagarith .avi to Prores .mov files, and for some reason I've never been able to properly set the output DAR (or the input PAR?)

With ffmpeg using yadif2x to deinterlace I would use the flag "setdar=4/3" for the output, but the quality of the deinterlacing is much better in hybrid.  I've attempted to force the input PAR to 8:9, which I think is the right aspect, but forcing doesn't seem to have any effect whatsoever between these two containers/codecs.

Basically start with a 720x480 file, and I end with a 720x480 file, both have DARs of 3:2 and the only way i've found to change the DAR flag is to recreate the containers after the fact with ffmpeg...

this is the input mediainfo:

Complete name                            : /Volumes/VHS/xxx.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
Format profile                           : OpenDML
File size                                : 49.4 GiB
Duration                                 : 2 h 9 min
Overall bit rate                         : 54.4 Mb/s

Video
ID                                       : 0
Format                                   : Lagarith
Codec ID                                 : LAGS
Duration                                 : 2 h 9 min
Bit rate                                 : 52.9 Mb/s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 3:2
Frame rate                               : 29.970 (30000/1001) FPS
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 5.108
Stream size                              : 48.0 GiB (97%)

Audio
ID                                       : 1
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
Duration                                 : 2 h 9 min
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 1.39 GiB (3%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 40  ms (1.20 video frame)


and the output mediainfo:

Complete name                            : /Volumes/xxx/xxx.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   0000.02 (qt  )
File size                                : 54.6 GiB
Duration                                 : 2 h 9 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 60.1 Mb/s
Writing application                      : Lavf60.4.100

Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422 LT
Codec ID                                 : apcs
Duration                                 : 2 h 9 min
Bit rate mode                            : Variable
Bit rate                                 : 58.5 Mb/s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 3:2
Frame rate mode                          : Constant
Frame rate                               : 59.940 (60000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 2.826
Stream size                              : 53.2 GiB (97%)
Writing library                          : Lavc

Audio
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : sowt
Duration                                 : 2 h 9 min
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 1.39 GiB (3%)
Default                                  : Yes
Alternate group                          : 1
Reply
#2
Hybrid doesn't set DAR, but PAR.
PAR can be changed through "Crop/Resize->Base->Pixel Aspect Ratio (PAR)", that said, there might be a bug somewhere.
-> Share a debug output. (read sticky)

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
Hey thanks Selur--

here's my debug:
Reply
#4
Okay, input PAR is 8:9 = 1.333.... ~ DAR: 20:15 which in the debut output get's passed on t the encoding call:
"/usr/local/bin/vspipe" "/Volumes/xxxx/encodingTempSynthSkript_2023-05-08@18_00_08_0410.vpy" - -c y4m - "/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -noautorotate -nostdin -threads 8 -f yuv4mpegpipe -i - -an -sn -vf zscale=rangein=tv:range=tv -pix_fmt yuv422p10le -strict -1 -vsync 0 -vcodec prores_ks -profile:v 1 -vtag apcs -aspect 20:15 -metadata encoding_tool="Hybrid 2022.03.20.1" -f mov "/Volumes/xxxx/CP_Hi8_703_2023-05-08@18_00_08_0410_03.mov"
Since your input is NTSC you should the correct input PAR is probably: 38800/42651 (assuming it originally was an analog source which wasn't resized).
So, try setting Crop/Resize->Base->Pixel Aspect Ratio (PAR)->Input PAR to 38800:42651 and depending on what you want to do with it later adjust 'Convert output to PAR'.
Quote:

MPEG-4:  (common for MPEG-4 based content)

DAR

PAL

NTSC
4:3
12/11
10/11
16:9
16/11
40/33


ITU-R 601:  (common for analog content)

DAR

PAL

NTSC
4:3
1150/1053
38800/42651
16:9
4600/3159
155200/127953


Generic:  (common for MPEG-2 based content)

DAR

PAL

NTSC
4:3
16/15
8/9
16:9
64/45
32/27

see: [INFO] About pixel aspect ratios,..

After setting the PARs Adjust 'Picture Resize' and 'Letterbox' and check the 'Vapoursynth Preview' to check what is happening, this way you should be able to achieve what you want.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
great, thank you!  I'll give it a shot and let you know--
Reply
#6
Bitrate : 52.9 Mb/s

Width : 720 pixels

Height : 480 pixels

Frame rate : 29.970 (30000/1001) FPS
Heart what kind of file? Name?
Reply
#7
finally got a chance to test this, and yes, it does work as expected.  I guess I just simply didn't know which was the right PAR to use--

the only one little weirdness is that hybrid doesn't seem to support enough digits to properly get the entire pixel ratio for NTSC into the dialog boxes... it only supports 3880/4265, so the output ends up being ever so slightly less than perfectly 4:3--
Reply
#8
will look into that after work
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#9
Thanks-- one other thing while you're at it-- is there a way to get it to save the desired values for the PAR fields?  Every time I reopen hybrid, even saving a default setup it reverts to 1:1

thanks again
Reply
#10
Input PAR, like all input related options, can't be saved.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)