pedwo / buildroot

Buildroot for Renesas SH7724 device, MS7724 board
GNU General Public License v2.0
6 stars 1 forks source link

Unable to play Video using gstreamer #2

Open bluelotus1 opened 9 years ago

bluelotus1 commented 9 years ago

Hi , I am trying to setup buildroot on my Renesas SH7724 machine. i am following https://github.com/pedwo/buildroot/wiki sucessfully i have compiled and mounted rootfs but when i am trying to play sample video i am getting following error

gst-launch videotestsrc ! autovideosink

Setting pipeline to PAUSED ... Pipeline is PREROLLING ... WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0: Resource not found. Additional debug info: gstautovideosink.c(314): gst_auto_video_sink_find_best (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0: Failed to find a usable video sink Pipeline is PREROLLED ... Setting pipeline to PLAYING ... Aborted

am i missing any steps? how to slove this problem?

pedwo commented 9 years ago

Hi, It's been a long time since I've touched SH7724, so much so that I don't even know where my board is anymore! Have you got the VPU middleware installed? If so, I would have a look at http://documentation.renesas.com/doc/products/mpumcu/apn/sh_family/r01an0511eu_sh7724.pdf to see examples of tested gst pipelines. You might find the comment in that PDF useful: "If you want to log the messages, replace gst-launch with gst-launch 2>debug.log --gst-debug-no-color --gst-debug=gst-sh-*:5"

I hope that helps Phil

bluelotus1 commented 9 years ago

Hi Phil, Thank you for your response. we have installed VPU middleware and tried gst-launch 2>debug.log --gst-debug-no-color --gst-debug=gst-sh-*:5"

In debug.log we are getting "aborted"

See the following log

gst-launch 2>debug.log --gst-debug-no-color --gst-debug=gst-sh-*:5 videotestsrc ! autovideosink

Setting pipeline to PAUSED ... Pipeline is PREROLLING ... WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0: Resource not found. Additional debug info: gstautovideosink.c(314): gst_auto_video_sink_find_best (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0: Failed to find a usable video sink Pipeline is PREROLLED ...

cat debug.log

Aborted

Why am I getting "WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0: Resource not found" and "Failed to find a usable video sink"?

pedwo commented 9 years ago

Hi,

Please could you try: gst-launch videotestsrc ! gst-sh-mobile-sink If not, you'll have to start using the GStreamer debug capabilities to see what's going on, see http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+11%3A+Debugging+tools

Phil

bluelotus1 commented 9 years ago

Hi,

I tried gst-launch videotestsrc ! gst-sh-mobile-sink but ended up getting a segmentation fault.

gst-launch videotestsrc ! gst-sh-mobile-sink

Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Segmentation fault

Also, can you please help me with this. I am unable to listen to the audio though it is prerolling when I try the gst-launch-0.10 audiotestsrc ! autoaudiosink command.

gst-launch-0.10 audiotestsrc ! autoaudiosink

Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstAudioSinkClock

pedwo commented 9 years ago

Is this on a MS7724 board, or your own board? Did you download the MS7724 v3.50 BSP release tarball, or use git clone and checkout a branch from the MS7724_v3.5.0 tag? Is the kernel and it's config the same as the MS7725 BSP?

bluelotus1 commented 9 years ago

This is MS7724 board(ecovec). Yes I have downloaded the MS7724 v3.50 BSP package. The configurations of kernel and MS7724 are same. I am not aware of MS7725. Is it MS7724 you're speaking of?

pedwo commented 9 years ago

Sorry for the typo, I meant MS7724 board. Please can you try some piipelines that don't use Renesas middleware? For example: gst-launch videotestsrc ! filesink location=tmp.rgb

bluelotus1 commented 8 years ago

I will check with gstreamer in the future days because of the following issue,

I tried Modifying U-Boot from the information provided in the attached document (MS7724_GoldenPackage_BSP_Users_Manual.pdf) and deleted uboot.bin. Now, Renesas board is not communicating with the serial port(minicom).

setenv serverip 192.168.10.30 setenv ipaddr 192.168.10.31 tftp 89000000 /rootfs/boot/u-boot.bin protect off A0000000 A001FFFF erase A0000000 A001FFFF cp.b 89000000 A0000000 protect on A0000000 A001FFFF

MS7724_GoldenPackage_BSP_Users_Manual.pdf Is there any alternate method to boot Renesas MS7724 board without using on board Flash memory?

pedwo commented 8 years ago

As it says before those commands, "You can re-program U-Boot, but be aware that a mistake or corrupt U-Boot file may result in your board failing to boot correctly.". It looks like the GitHub Markdown formatting has removed the <U-Boot size in hex> from the cp.b 89000000 A0000000 <U-Boot size in hex> line. Please preview your post and use the Markdown code formatting in future... I take it that the commands didn't report any errors? tftp worked ok and you replaced <U-Boot size in hex> with the actual size? From what you have said, it sounds like you have bricked the board.