FFMS / ffms2

An FFmpeg based source library and Avisynth/VapourSynth plugin for easy frame accurate access
Other
574 stars 104 forks source link

Expose `log2_chroma_h` and `log2_chroma_w` in `FFMS_Frame` #433

Closed Luni-4 closed 2 months ago

Luni-4 commented 3 months ago

It would be helpful to expose log2_chroma_h and log2_chroma_w values as FFMS_Frame fields. This could help in retrieving frame data.

dwbuiten commented 3 months ago

Hmm to what end? It already has per-plane strides, and AVFrame themselvess doesn't expose them directly either. If you want them, they're accessible the same way they are from AVFrame - av_pix_fmt_desc_get on the format from the FFMS_Frame.

Luni-4 commented 3 months ago

I would like to retrieve all planes data taking into account the subsampling, but without using FFmpeg. I have found this example, but it uses the descriptor from FFmpeg. Could you please provide a piece of code which only uses ffms2? Thanks in advance!

myrsloik commented 2 months ago

You have to use FFmpeg to get that information. There's no reason for us to reimplement things

Luni-4 commented 2 months ago

I see. In my case, it would just be helpful to expose the output of the FFMpeg functions as FFMS_Frame fields, in this it is not necessary to import FFMpeg as dependency at all.