Hi,
SUBJECT : I am using omx_mjpegdec for decoding the mjpeg video from USB camera, but decoding is not proper and i am getting green patches in 3/4th of my HDMI display.
PLATFORM : DM385(814x Architecture)
SDK : ti-ezsdk_dm814x-evm_5_05_02_00 package
I am trying to get the MJPEG video stream from the USB camera ( Logitech 5MP Camera ) and decode it to the display,but the decoding is not properly happening and i am getting green patches in my display screen.
Eventhough I added the DHT tables manually in the First frame,the decoding is not proper and i am getting some improper data i.e ( only getting data lines at begining of the frame and remaining are green patches in the frame ).
I have verified that the DHT tables are generic and it could be used with the mjpeg images.
The format of the MJPEG is AVI1, and the header contains the DRI marker ( 0xFF 0xDD ) ,restart intervals ( 0xD0-0xD7 ) are present in the Data Segment.I am doubting that omx_mjpegdec is not supporting the DRI Markers.
NOTE:
- In the same way i tried with ( 2MP Logitech Camera ),it is also giving the AVI1 format data but the only difference is it doesnt have DRI marker and Restart Markers with that,
- The 2MP camera data is correctly decoded by omx_mjpegdec when adding DHT manually
My pipeline is
gst-launch v4l2src ! 'image/video,width=1280,height=720,framerate=(fraction)30/1' ! jpegparse ! omx_mjpegdec ! omx_scaler ! omx_ctrl ! omx_videosink sync=false
So please help me to identify the actual issue with my 5MP Logitech Camera data,i am attaching the recorded file with modified DHT for your reference.
The attached file names are...
2MP_Logitech_Cam.mjpg ( could be played using omx_mjpegdec )
5MP_Logitech_Cam.mjpg ( could not be played )
The pipeline i tried for playback is
gst-launch filesrc location=2MP_Logitech_Cam.mjpg ! typefind ! jpegparse ! omx_mjpegdec ! omx_scaler ! omx_ctrl ! omx_videosink sync=false