fraunhoferhhi / vvdec

VVdeC, the Fraunhofer Versatile Video Decoder
https://www.hhi.fraunhofer.de/en/departments/vca/technologies-and-solutions/h266-vvc.html
BSD 3-Clause Clear License
454 stars 91 forks source link

Y4M locked at 50fps output #66

Closed baxxtor closed 2 years ago

baxxtor commented 2 years ago

Would is be possible to add a feature that allows the FPS adjustment of the Y4M output mode (such as 30, 25, 24 FPS etc.). Currently, Y4M output is locked to 50fps.

Thank you for your consideration.

lehmann-c commented 2 years ago

vvdec uses the correct fps for Y4M only when it´s available in the bitstream. This information is only available, if the HRD is set properly (numUnitsinTick and timescale). Otherwise it uses the default framerate 50.

The yuv player can be forced to play at a particular framerate: ffplay or the mpv player are using --fps=60 Otherwise the framerate could also be changed, by adjusting the YUV4MPEG2 Header in 4YM file. An other approach would be the usage of mp4 files (by using e.g. GPAC).

lehmann-c commented 2 years ago

I´m happy to announce that the upcoming vvenc version will probably be able to write the framerate into the bitstream. So in the next release this information would always be available and the fps is signalized correctly.

baxxtor commented 2 years ago

Thank you. I appreciate the support and feature request.

adamjw24 commented 2 years ago

VVenC 1.3 supports proper signaling of timing information, which the decoder should now properly include into the Y4M header. Closing.