amiaopensource / vrecord

Vrecord is open-source software for capturing a video signal and turning it into a digital file.
https://github.com/amiaopensource/vrecord
156 stars 45 forks source link

Error in h.264 encoding for access copy: "height not divisible by 4 (720x486)" #854

Open pjotrek-b opened 2 days ago

pjotrek-b commented 2 days ago

Hi everyone :smile:

We only have a few NTSC tapes in our collections every once in a while... However, if I want to create access copies I get the error that height 486px is not divisible by 4 (so that's AFAIK why 720x480 exist)

vrecord is creating files for NTSC with 720x486 pixel resolution.

How do you deal with creating h.264 (libx264) from that archive material? Do you crop to 480 height?

I've read this: Are we using the correct PAR settings? #689 (but that doesn't change the fact that my vrecord-captured NTSC files are 720x486... :fearful:)

Any suggestions greatly welcome!

pjotrek-b commented 2 days ago

I saw in vrecord's script code, that when capturing directly to h264, the video is indeed cropped:

DECKLINK_FPS="30000/1001"
if [[ "${VIDEO_CODEC_CHOICE}" = "h264" ]] ; then
    RECORDINGFILTER+="crop=w=720:h=480:x=0:y=4,"
    MIDDLEOPTIONS+=(-x264opts bff)
fi