Keylost / jetson-ffmpeg

ffmpeg support on jetson nano
Other
64 stars 24 forks source link

Encoder Resolution Support #3

Closed SeeRich closed 1 year ago

SeeRich commented 1 year ago

This is less of an issue and more of a discussion.

I will admit that I am currently not using the patches provided in this repository but am instead using those from jocover/jetson-ffmpeg. I am looking to move to FFmpeg 6.0 though and am considering this set of patches instead.

I am trying to understand what output resolutions are supported by the encoder and whether this limitation comes from the underlying NVIDIA multimedia API (couldn't seem to find any documentation discussing supported resolutions) or from the patches applied to FFmpeg.

For example, when my output resolution is 1920x1080, everything works great; however, when I try 2800x1440, I get:

munmap_chunk(): invalid pointer
aborted

I am really just trying to understand if this is a bug or a limitation.

Thank you!

Keylost commented 1 year ago

Greetings! 2800x1440 resolution should work fine. The encoder limitation is 4096x4096, as far as I remember. Try building nvmpi and ffmpeg from this repository. I tried 3840x2160->2800x1440 and it worked fine. (ffmpeg 4.2, h264_nvmpi, AGX Xavier module) What board are you using?

SeeRich commented 1 year ago

Thanks for testing that for me!

I am going to try out your patch.

I am currently using the Jetson Nano but am hoping to upgrade to the Orin Nano.