Tool/software: Linux
Hi,
In Processr-SDK-linux-AM57xx environment, please tell me a simple way to display JPEG file on LCD or HDMI display.
Best Regards,
Shigehiro Tsuda
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Linux
Hi,
In Processr-SDK-linux-AM57xx environment, please tell me a simple way to display JPEG file on LCD or HDMI display.
Best Regards,
Shigehiro Tsuda
Hello,
You could refer the below guide:
software-dl.ti.com/.../Foundational_Components_Multimedia.html
As you could see there is gstreamer ducatijpegdec/ducatijpegdecvpe element for image decoding.
Hope this helps.
BR
Margarita
Hi Margarita,
Thank you for quick reply.
What is the command to display Jpeg file using gstreamer when using waylandsink?
Please tell me which command you can check.
I am executing the following command, but I am having trouble with an error.
gst-launch-1.0 filesrc location=***.jpeg ! ducatijpegdec ! vpe ! 'video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720' ! waylandsink
Best Regards,
Shigehiro Tsuda
Hi Margarita,
Thank you for quick reply.
An error also occurred with the full path (location = /home/root/test.jpeg).
There is a file.
Can you check if it works normally with normal JPEG file?
It seems to be caused by the data format of the JPEG file.
Best Regards,
Shigehiro Tsuda
Hi Margarita,
Thank you for your support.
In this case, there is also in the log, but the display disappears in a moment.
Please tell me how to keep showing it.
Best Regards,
Shigehiro Tsuda
Hello Shigehiro Tsuda,
Please if this is working for you verify the answer.
Thank you!
BR
Margarita
Hi Margarita,
Thank you for your support.
I checked with the command of your suggestion.
It seems to be an error in executing jpegparse.
Currently, only playbin seems to not work normally.
gst-launch-1.0 --gst-debug=3 filesrc location=/usr/share/ti/tidl/examples/test/testvecs/input/objects/cat-pet-animal-domestic-104827.jpeg ! jpegparse ! queue ! ducatijpegdec ! vpe ! video/x-raw, width=800, height=480 ! imagefreeze ! waylandsink use-drm=true
Setting pipeline to PAUSED ...
[ 4870.132407] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
0:00:00.150169800 1331 0x17afa0 WARN basesrc gstbasesrc.c:3480:gst_base_src_start_complete:<filesrc0> pad not activated yet
Pipeline is PREROLLING ...
0:00:00.151849496 1331 0x164490 WARN jpegparse gstjpegparse.c:705:gst_jpeg_parse_read_header:<jpegparse0> unhandled marker c2, leaving
0:00:00.152231437 1331 0x164490 WARN baseparse gstbaseparse.c:3597:gst_base_parse_loop:<jpegparse0> error: Internal data stream error.
0:00:00.152275682 1331 0x164490 WARN baseparse gstbaseparse.c:3597:gst_base_parse_loop:<jpegparse0> error: streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstJpegParse:jpegparse0: Internal data stream error.
Additional debug info:
../../../../gstreamer-1.12.2/libs/gst/base/gstbaseparse.c(3597): gst_base_parse_loop (): /GstPipeline:pipeline0/GstJpegParse:jpegparse0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
Best Regards,
Shigehiro Tsuda