Open prophetzopu opened 3 years ago
How to support yuvj420 decoding?thank you!
How to support yuvj420 decoding?thank you!
https://github.com/jocover/jetson-ffmpeg/issues/83 https://github.com/jocover/jetson-ffmpeg/issues/80
When I apply the advice in issue 83, I can use yuvj420p, but transcoding to mp4 containers hangs ffmpeg. When I apply the advice in issue 80, I can transcode to mp4 ffmpeg, but yuvj420p doen't work.
I'm sure there's a combo of commits that makes it all work.
Hello,
I am using jetson-ffmpeg with ffmpeg 4.2.1 on a Jetson AGX Xavier running JetPack 4.3. My inputs are RTSP and RTMP streams in AV_PIX_FMT_YUVJ420P format. The decoder claims to be decoding to AV_PIX_FMT_YUV420P format with color_range AVCOL_RANGE_JPEG (full range 0-255).
It looks like high and low ranges are being clipped. Here are histogram dumps of what I am seeing:
Raw image histogram![raw histogram](https://user-images.githubusercontent.com/1205517/105867445-1c1f3200-5fc3-11eb-9623-5756ee7dd687.png)
Software decode histogram (histogram obtained after dumping image to JPEG)![preview software decode histogram](https://user-images.githubusercontent.com/1205517/105867458-1fb2b900-5fc3-11eb-98f3-80e30aadfd9a.png)
Hardware decode histogram (histogram obtained after dumping image to JPEG)![preview hardware decode histogram](https://user-images.githubusercontent.com/1205517/105867354-ff82fa00-5fc2-11eb-9156-9b80125861cf.png)
Thoughts/suggestions?
This project has been great so far. Thank you for your time!