-
Notifications
You must be signed in to change notification settings - Fork 7
Hardware scaling for decoder #39
Comments
i received similar question in the radxa forums, i think you need a specific input size to limit the parallel processing on the video output. The thing is this decoder already abused too much in terms of ffmpeg conventions, i pasted above the ffmpeg api, it seems that it is not the prohibited for decoder to change the picture size. I already have a lot of RGA chains in the decoder, i can add one input to resize in one of them, but i have too see if this overcomplicates the code or not first. |
And you wont be able to change the fps, only the dimentions |
Thank you for your explanation. Does this mean that changing fps is impossible, even in software? Or that changing fps will not be hardware accelerated? Is it possible to change fps when transcoding using hardware acceleration? Is changing fps in software cpu inteniv? |
i can only talk about the rkmpp_decoder_* i have and it wont support changing the fps in decoder (hardware does not supprot it), can may be supported in encoder but that wont help you. I am sure there should be a way to this in ffmpeg, after the decoding is done, reducing the FPS should not be cpu intensive, can not say the same for the increasing FPS. yet i do not know, i might be developing a decoder for ffmpeg, still im still a noob as an ffmpeg user. you can ask someone who is expert.. |
added in ee436e3 decoder has now
also have a look at here #37 To change fps have a look at this filter, this should not be cpu intensive: |
Incredible! Thank you for adding this feature and doing it so fast. Keep up the great work. |
@MarcA711 it seems that scaling was already implemented, but i wasnt exposing the width height to users, therefore it was a low hanging fruit. keep me informed if it does not work, or it does work. |
guys, we just want to use hardware scaling in frigate on rk3588 :) |
Closing, i think it works |
Sorry, but I didn't have time so far to recompile FFmpeg, since I am restructuring my code as well and compiling takes hours on my platform. However, if I recompile it in the near future and test it, I will let you know. Once again, sorry for the late reply! |
The rkmpp_xxx_encoders allow to pass -width and -height to scale the frames using hardware acceleration.
Is it possible to use those options when only decoding? This would be useful for an application like frigate that only decodes and scales frames but does not transcode.
However, great project. Thank you really much!
The text was updated successfully, but these errors were encountered: