Comments (4)
Attached is a proof of concept patch. What do you think? It basically just stops the encoder emitting AUD NALs and does it all manually.
libimxvpuapi_aud_patch.txt
from libimxvpuapi.
This could work. I think access unit delimiters do not carry any extra info by themselves, they are essentially just markers, so there's no harm in hardcoding the AUD bits. My only potential concern would be performance, but stuffing in a few bytes should not harm performance. Still test if for some weird reason this worsens it. Other than that, add a comment right above the "(*encoder)->aud_enable = " line, which says something like:
/* The encoder outputs AUDs which are in an improper order. example:
* SPS PPS AUD VCL AUD VCL AUD VCL ...
*
* whereas the proper order (as for example x264 does it) should be:
* AUD SPS PPS VCL AUD VCL AUD VCL ...
*
* for this reason, the automatic AUD placement is not used; the AUDs
* are inserted manually instead. */
Otherwise, it may be confusing why we do this.
from libimxvpuapi.
I added the comment and opened a pull request. I didn't notice any performance difference in testing on an iMX6.
from libimxvpuapi.
Pull request merged.
from libimxvpuapi.
Related Issues (20)
- frame / field mode HOT 1
- Unnecessary mandatory flag --imx-headers HOT 2
- Floating Point exception when Using Jpeg_Decode_example HOT 2
- JPEG decoder return decode info with null dma buffer HOT 4
- .
- VPU/python binding HOT 1
- imx_coda_vpu_unload should not be released twice HOT 1
- Top portion of frame distorted HOT 4
- Debian Hantro Library missing HOT 1
- decoder issue: could not update bitstream buffer with new data: invalid parameters HOT 5
- YUYV format on IMX6
- i.mx8m plus support HOT 2
- imxvpudec_h264 fails to initialize DWL instance HOT 2
- Failure to decode video when first frame doesn't result in a decoded frame HOT 5
- imx6 vpu/ipu elements causing visual distortions HOT 40
- imxvpuapi2_imx8m_hantro_decoder.c:1196:imx_vpu_api_dec_open: initializing DWL instance failed HOT 8
- Failed to decode H264 frames received through webrtcbin HOT 2
- h264 encoding video distortion HOT 30
- imxvpuapi2_imx8_amphion: error decode MJPEG stream HOT 1
- Checking for library ['hantro_vc8000e', 'm'] not found HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libimxvpuapi.