Reuben <[email protected]> added the comment:
And... I just looked at gxfenc.c :P
I should have just looked at that first as it explains a lot.
It isn't even set to handle anything correctly that is not standard PAL or NTSC.
And the timebase is according to the height of the video. Check out this gem:
--code--
675 /* FIXME check from time_base ? */
676 if (st->codec->height == 480 || st->codec->height == 512) { /*
NTSC or NTSC+VBI */
677 sc->frame_rate_index = 5;
678 sc->sample_rate = 60;
679 gxf->flags |= 0x00000080;
680 gxf->time_base = (AVRational){ 1001, 60000 };
681 } else { /* assume PAL */
682 sc->frame_rate_index = 6;
683 sc->media_type++;
684 sc->sample_rate = 50;
685 gxf->flags |= 0x00000040;
686 gxf->time_base = (AVRational){ 1, 50 };
687 }
--code--
There's a quite a few things in this library that need serious work to support
anything beyond standard def NTSC and PAL.
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2171>
________________________________________________