Skip to content

Add PNG as slow random access codec#729

Merged
cedrik-fuoco-adsk merged 2 commits intoAcademySoftwareFoundation:mainfrom
cedrik-fuoco-adsk:fix-png-perf
Mar 26, 2025
Merged

Add PNG as slow random access codec#729
cedrik-fuoco-adsk merged 2 commits intoAcademySoftwareFoundation:mainfrom
cedrik-fuoco-adsk:fix-png-perf

Conversation

@cedrik-fuoco-adsk
Copy link
Copy Markdown
Contributor

Add PNG as slow random access codec

Linked issues

n/a

Summarize your change.

Adding PNG codec to the slow random access array and changing the seeking offset to -1 instead of -3 because RV was using that an offset of -1 before FFmpeg 6.

Describe the reason for the change.

There are some issues when RV is using two readers threads and FFmpeg multithreading. By adding PNG as a slow random access codec, the decoding performance is a lot better.

Describe what you have tested and on which operating system.

Rocky Linux 8

An offset of -1 during seeking had better performance during my testing.

Add a list of changes, and note any that might need special attention during the review.

If possible, provide screenshots.

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Comment thread cmake/dependencies/ffmpeg.cmake
Comment thread src/lib/image/MovieFFMpeg/MovieFFMpeg.cpp
Comment thread cmake/dependencies/ffmpeg.cmake
Copy link
Copy Markdown
Contributor

@bernie-laberge bernie-laberge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/lib/image/MovieFFMpeg/MovieFFMpeg.cpp Outdated
Comment thread src/lib/image/MovieFFMpeg/MovieFFMpeg.cpp Outdated
Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
@cedrik-fuoco-adsk
Copy link
Copy Markdown
Contributor Author

cedrik-fuoco-adsk commented Mar 26, 2025

All the comments have been addressed in the previous commit.

@cedrik-fuoco-adsk cedrik-fuoco-adsk merged commit 4da8831 into AcademySoftwareFoundation:main Mar 26, 2025
10 checks passed
cedrik-fuoco-adsk added a commit to cedrik-fuoco-adsk/OpenRV that referenced this pull request Mar 26, 2025
### Add PNG as slow random access codec

### Linked issues
n/a

### Summarize your change.
Adding PNG codec to the slow random access array and changing the
seeking offset to -1 instead of -3 because RV was using that an offset
of -1 before FFmpeg 6.

### Describe the reason for the change.
There are some issues when RV is using two readers threads and FFmpeg
multithreading. By adding PNG as a slow random access codec, the
decoding performance is a lot better.

### Describe what you have tested and on which operating system.
Rocky Linux 8

An offset of -1 during seeking had better performance during my testing.

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

---------

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
richardssam pushed a commit to richardssam/OpenRV that referenced this pull request Jun 17, 2025
### Add PNG as slow random access codec

### Linked issues
n/a

### Summarize your change.
Adding PNG codec to the slow random access array and changing the
seeking offset to -1 instead of -3 because RV was using that an offset
of -1 before FFmpeg 6.

### Describe the reason for the change.
There are some issues when RV is using two readers threads and FFmpeg
multithreading. By adding PNG as a slow random access codec, the
decoding performance is a lot better.

### Describe what you have tested and on which operating system.
Rocky Linux 8

An offset of -1 during seeking had better performance during my testing.

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

---------

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
richardssam pushed a commit to richardssam/OpenRV that referenced this pull request Jun 17, 2025
### Add PNG as slow random access codec

### Linked issues
n/a

### Summarize your change.
Adding PNG codec to the slow random access array and changing the
seeking offset to -1 instead of -3 because RV was using that an offset
of -1 before FFmpeg 6.

### Describe the reason for the change.
There are some issues when RV is using two readers threads and FFmpeg
multithreading. By adding PNG as a slow random access codec, the
decoding performance is a lot better.

### Describe what you have tested and on which operating system.
Rocky Linux 8

An offset of -1 during seeking had better performance during my testing.

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

---------

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
@cedrik-fuoco-adsk cedrik-fuoco-adsk deleted the fix-png-perf branch July 28, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants