|
From: Favor T. <ta...@gm...> - 2009-04-21 12:54:51
|
Hi. all
These days I am working on dsplink/gstreamer, I just have dsplink
worked, also, I have already compiled the gstreamer_ti plugin and
Ti-code-engine worked as well.
I load dsplink module as below, I think it had been loaded successfully:
root@beagleboard:~#
/usr/share/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh
You have 60324kB total memory for Linux
ioremap_nocache(0x85000000, 16777216)=0xc7000000
allocated heap buffer 0xc7000000 of size 0xea000
cmem initialized 7 pools between 0x85000000 and 0x86000000
DSPLINK Module (1.60) created on Date: Apr 8 2009 Time: 10:39:08
I can do some dsplink test ( it works), I have the lpm modules
work as well, for example:
root@beagleboard:/usr/share/dspsample# ./lpmON.x470uC
==== LPM ON Test ====
app: LPM_open
app: LPM_set(LPM_CTRL_REFCOUNTOVR)
app: LPM_on
app: LPM_close
==== All Done ====
root@beagleboard:/usr/share/dspsample# ./lpmOFF.x470uC
==== LPM OFF Test ====
app: LPM_open
app: LPM_set(LPM_CTRL_REFCOUNTOVR)
app: LPM_off
app: LPM_close
==== All Done ====
root@beagleboard:/usr/share/ti-dsplink# ./messagegpp message.out 10000
this works well with some normal messages output.
when I am uising gst-inspect command like below, I got these gst
elements. As we can see, I got gstreamer-ti plugin.
root@beagleboard:~/gstreamer_demo/omap3530# gst-inspect | grep TI
(gst-inspect-0.10:1663): GStreamer-WARNING **: Failed to load plugin '/usr/lib/g
streamer-0.10/libgstsubparse.so': /usr/lib/gstreamer-0.10/libgstsubparse.so: und
efined symbol: parse_sami
TICodecPlugin: TIDmaiVideoSink: TI DMAI Video Sink
TICodecPlugin: TIAuddec1: TI xDM 1.x Audio Decoder
TICodecPlugin: TIAuddec: TI xDM 0.9 Audio Decoder
TICodecPlugin: TIImgdec: TI xDM 0.9 Image Decoder
TICodecPlugin: TIImgdec1: TI xDM 1.0 Image Decoder
TICodecPlugin: TIImgenc: TI xDM 0.9 Image Encoder
TICodecPlugin: TIImgenc1: TI xDM 1.0 Image Encoder
TICodecPlugin: TIViddec2: TI xDM 1.2 Video Decoder
TICodecPlugin: TIViddec: TI xDM 0.9 Video Decoder
TICodecPlugin: TIVidenc: TI xDM 0.9 Video Encoder
TICodecPlugin: TIVidenc1: TI xDM 1.x Video Encoder
ffmpeg: ffdec_vcr1: FFMPEG ATI VCR1 decoder
however, those all above work well, I still cannot get
gstreamer/dsplink worked together, how and why? any ideas?
First test ~~~~~~~
root@beagleboard:~/mediaFile# gst-launch filesrc
location=/home/root/mediaFile/3.m4v ! qtdemux name=demux
demux.video_00 ! TIViddec2 ! TIDmaiVideoSink
(gst-launch-0.10:1699): GStreamer-WARNING **: Failed to load plugin
'/usr/lib/gstreamer-0.10/libgstsubparse.so':
/usr/lib/gstreamer-0.10/libgstsubparse.so: undefined symbol:
parse_sami
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ..
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 31982425 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
FREEING pipeline ...
Second test~~~~~~~
root@beagleboard:~/mediaFile# gst-launch -v filesrc
location=/home/root/mediaFile/3.m4v ! qtdemux name=demux
demux.video_00 ! TIViddec2 ! xvimagesink
(gst-launch-0.10:1714): GStreamer-WARNING **: Failed to load plugin
'/usr/lib/gstreamer-0.10/libgstsubparse.so':
/usr/lib/gstreamer-0.10/libgstsubparse.so: undefined symbol:
parse_sami
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not
initialise Xv output
Additional debug info:
xvimagesink.c(1668): gst_xvimagesink_xcontext_get (): /GstPipeline:pipeline0/Gst
XvImageSink:xvimagesink0:
Could not open display
Setting pipeline to NULL ...
FREEING pipeline ...
I didn’t get any video output on the screen. how should I do to test
if gstreamer/dsplink works? What about above tests errors?
thanks for your attention, any help is welcome.
--
~~~~~~~~~~~~~~~~~
/favor
~~~~~~~~~~~~~~~~~
|
|
From: Favor T. <ta...@gm...> - 2009-04-23 07:50:43
|
---------- Forwarded message ---------- From: Favor Tang <ta...@gm...> Date: Thu, Apr 23, 2009 at 2:19 PM Subject: Re: [beagleboard] Re: how to let gstreamer and dsplink to work To: bea...@go... hi. stefan: I dont use x server. thanks for you reminded me. I know why the xv output error is occurred. cause I dont get x-server support on my console image. I should use TIDmaiVideoSink, is that right? Luther: I follow your instructions, I think I am not far away from success. But I need more help. when I play a video file like below, I got errors from mmcblk0 error. I don't know why? it just show a small rectangle with a TI brand mark on the right top of it, except that, It didnt' show any thing. instead, it hanged by the error. any suggestions? thanks root@beagleboard:/usr/share/ti-codec-combos# modprobe sdmak root@beagleboard:/usr/share/ti-codec-combos# gst-launch --gst-debug=TI*:2 filesrc location=/home/root/mediaFile/Terminator\ Salvation.mp4 ! TIViddec2 codecName=mpeg4dec engineName=decode genTimeStamps=FALSE ! TIDmaiVideoSink videoStd=D1_NTSC displayStd=fbdev displayDevice=/dev/fb2 (gst-launch-0.10:1629): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstsubparse.so': /usr/lib/gstreamer-0.10/libgstsubparse.so: undefined symbol: parse_sami Setting pipeline to PAUSED ... Pipeline is PREROLLING ... 0:00:01.695709235 1628 0x1047c8 WARN TIViddec2 gsttividdec2.c:150 6:gst_tividdec2_frame_duration: framerate not specified; using 29.97fps Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock mmcblk0: error -84 transferring data end_request: I/O error, dev mmcblk0, sector 1587845 end_request: I/O error, dev mmcblk0, sector 1587853 end_request: I/O error, dev mmcblk0, sector 1587861 end_request: I/O error, dev mmcblk0, sector 1587869 end_request: I/O error, dev mmcblk0, sector 1587877 end_request: I/O error, dev mmcblk0, sector 1587885 end_request: I/O error, dev mmcblk0, sector 1587893 end_request: I/O error, dev mmcblk0, sector 1587901 end_request: I/O error, dev mmcblk0, sector 1587909 end_request: I/O error, dev mmcblk0, sector 1587917 end_request: I/O error, dev mmcblk0, sector 1587925 end_request: I/O error, dev mmcblk0, sector 1587933 end_request: I/O error, dev mmcblk0, sector 1587941 end_request: I/O error, dev mmcblk0, sector 1587949 end_request: I/O error, dev mmcblk0, sector 1587957 end_request: I/O error, dev mmcblk0, sector 1587965 > Could you try to rerun those commands but using > /usr/share/ti-codec-engine as workdir ? > There was a bug in gstreamer that required that, it is said it was > corrected but maybe your version still has it. > > dsnk > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups "Beagle Board" group. > To post to this group, send email to dis...@be.... > To unsubscribe from this group, send email to bea...@be... > For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en > -~----------~----~----~----~------~----~------~--~--- > > -- ~~~~~~~~~~~~~~~~~ /favor ~~~~~~~~~~~~~~~~~ -- ~~~~~~~~~~~~~~~~~ /favor ~~~~~~~~~~~~~~~~~ |
|
From: Favor T. <ta...@gm...> - 2009-04-24 05:08:32
|
hi. Brijesh I want to tell you the result of the dsplink test today, and I would like you give me some proposals. 1) I changed the bootargs, added the mem=88M. I have see "New beagleboard demo image, now with 100% more DSP " at google groups mailing list. https://groups.google.com/group/beagleboard/browse_thread/thread/a88dccbb7acc06c?pli=1 I set the loadmodule.sh file as follow: modprobe cmemk phys_start=0x85800000 phys_end=0x86800000 pools=20x4096,8x131072,4x829440,1x5250000,1x1429440,1x256000 # insert DSP/BIOS Link driver modprobe dsplinkk # make /dev/dsplink rm -f /dev/dsplink mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0 # insert Local Power Manager driver modprobe lpm_omap3530 # insert sdma module modprobe sdmak 2) load modules ok root@beagleboard:~# ./loadmodule.sh ioremap_nocache(0x85800000, 16777216)=0xc8000000 allocated heap buffer 0xc8000000 of size 0x522000 cmem initialized 6 pools between 0x85800000 and 0x86800000 DSPLINK Module (1.60) created on Date: Apr 8 2009 Time: 10:39:08 3) the first time, I use this command for playing mp4 video. this time, an error is happened without any video display, but I could hear its sound. with the same command, the second time, it can play this mp4 video as normal, but with some "mmcblk0: error -84 transferring data" errors. except for that, it didn't play to its end of the video, and be hanged after many(maybe fewer than 60 seconds) seconds. the video playing don't go on, and stop at any point. I am confused why is this happened. I have read that thread, but still didn't know how to deal with this. it seems that the gst-ti plugin and its TI codec combos is not robust enough, is it? maybe I am wrong, please correct me. root@beagleboard:/usr/share/ti-codec-combos# gst-launch --gst-debug=TI*:2 filesr c location=/home/root/mediaFile/4.mp4 ! typefind ! qtdemux name=demux demux.aud io_00 ! queue max-size-buffers=1800 max-size-time=0 max-size-bytes=0 ! typefind ! TIAuddec1 ! alsasink demux.video_00 ! typefind ! TIViddec2 ! TIDmaiVideoSink v ideoStd=D1_NTSC displayDevice=/dev/fb2 displayStd=fbdev 0:00:02.932525634 1556 0x1b17d0 ERROR TIDmaiVideoSink gsttidmaivideosink .c:1077:gst_tidmaivideosink_init_display: Failed to open display device 0:00:02.935852049 1556 0x1b17d0 ERROR TIDmaiVideoSink gsttidmaivideosink .c:1249:gst_tidmaivideosink_render: Unable to initialize display New clock: GstAudioSinkClock WARNING: from element /GstPipeline:pipeline0: Internal GStreamer error: clock pr oblem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GSt reamer. Additional debug info: gstbin.c(2240): gst_bin_do_latency_func (): /GstPipeline:pipeline0: test result: I can hear the video sound, but without any video display out. root@beagleboard:/usr/share/ti-codec-combos# gst-launch --gst-debug=TI*:2 filesr c location=/home/root/mediaFile/4.mp4 ! typefind ! qtdemux name=demux demux.aud io_00 ! queue max-size-buffers=1800 max-size-time=0 max-size-bytes=0 ! typefind ! TIAuddec1 ! alsasink demux.video_00 ! typefind ! TIViddec2 ! TIDmaiVideoSink v ideoStd=D1_NTSC displayDevice=/dev/fb2 displayStd=fbdev WARNING: from element /GstPipeline:pipeline0: Internal GStreamer error: clock pr oblem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GSt reamer. Additional debug info: gstbin.c(2240): gst_bin_do_latency_func (): /GstPipeline:pipeline0: Failed to configure latency of 0:00:00.000000000 mmcblk0: error -84 transferring data end_request: I/O error, dev mmcblk0, sector 1420693 end_request: I/O error, dev mmcblk0, sector 1420701 end_request: I/O error, dev mmcblk0, sector 1420709 end_request: I/O error, dev mmcblk0, sector 1420773 0:01:25.549499504 1570 0x45b017c8 ERROR TIAuddec1 gsttiauddec1.c:111 4:gst_tiauddec1_decode_thread: fatal bit error test result: I can see the video display and the sound as well. but only can play few seconds, and hang. except for that, an "end_request: I/O error" shows out. 4) I test another video with the same command, this time it can't play anything at all, instead, CMEMK Error is happened. it seems it is the cmem modprobe and mem of bootargs problem, but the previous test show that I can use these arguments to play video, even though, few seconds (20~35s). any ideas, why? root@beagleboard:/usr/share/ti-codec-combos# gst-launch --gst-debug=TI*:2 filesr c location=/home/root/mediaFile/Terminato.mp4 ! typefind ! qtdemux name=demux demux.audio_00 ! queue max-size-buffers=1800 max-size-time=0 max-size-bytes=0 ! typefind ! TIAuddec1 ! alsasink demux.video_00 ! typefind ! TIViddec2 ! TIDmaiVi deoSink videoStd=D1_NTSC displayDevice=/dev/fb2 displayStd=fbdev CMEMK Error: get_phys: Unable to find phys addr for 0xbca65000 CMEMK Error: get_phys: get_user_pages() failed: -14 CMEMK Error: GETPHYS: Failed to convert virtual 0xbca65000 to physical. CMEM Error: getPhys: Failed to gDMA transaction error with device 0 et physical address of 0xbca65000 New clock: GstAudioSinkClock WARNING: from element /GstPipeline:pipeline0: Internal GStreamer error: clock pr oblem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GSt reamer. Additional debug info: gstbin.c(2240): gst_bin_do_latency_func (): /GstPipeline:pipeline0: Failed to configure latency of 0:00:00.000000000 highly appreciated for your help ~~~~~~~~~~~~~~~~~ /favor ~~~~~~~~~~~~~~~~~ |
|
From: Stefan K. <en...@ho...> - 2009-04-21 13:24:08
|
hi, Favor Tang schrieb: > Hi. all > > These days I am working on dsplink/gstreamer, I just have dsplink > worked, also, I have already compiled the gstreamer_ti plugin and > Ti-code-engine worked as well. > > I load dsplink module as below, I think it had been loaded successfully: > > root@beagleboard:~# > /usr/share/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh > You have 60324kB total memory for Linux > ioremap_nocache(0x85000000, 16777216)=0xc7000000 > allocated heap buffer 0xc7000000 of size 0xea000 > cmem initialized 7 pools between 0x85000000 and 0x86000000 > DSPLINK Module (1.60) created on Date: Apr 8 2009 Time: 10:39:08 > > I can do some dsplink test ( it works), I have the lpm modules > work as well, for example: > > root@beagleboard:/usr/share/dspsample# ./lpmON.x470uC > ==== LPM ON Test ==== > app: LPM_open > app: LPM_set(LPM_CTRL_REFCOUNTOVR) > app: LPM_on > app: LPM_close > ==== All Done ==== > > root@beagleboard:/usr/share/dspsample# ./lpmOFF.x470uC > ==== LPM OFF Test ==== > app: LPM_open > app: LPM_set(LPM_CTRL_REFCOUNTOVR) > app: LPM_off > app: LPM_close > ==== All Done ==== > > root@beagleboard:/usr/share/ti-dsplink# ./messagegpp message.out 10000 > this works well with some normal messages output. > > when I am uising gst-inspect command like below, I got these gst > elements. As we can see, I got gstreamer-ti plugin. > > root@beagleboard:~/gstreamer_demo/omap3530# gst-inspect | grep TI > (gst-inspect-0.10:1663): GStreamer-WARNING **: Failed to load plugin '/usr/lib/g > streamer-0.10/libgstsubparse.so': /usr/lib/gstreamer-0.10/libgstsubparse.so: und > efined symbol: parse_sami > first remove this element and report a bug against ti, they mispackages it. rm /usr/lib/gstreamer-0.10/libgstsubparse.so > TICodecPlugin: TIDmaiVideoSink: TI DMAI Video Sink > TICodecPlugin: TIAuddec1: TI xDM 1.x Audio Decoder > TICodecPlugin: TIAuddec: TI xDM 0.9 Audio Decoder > TICodecPlugin: TIImgdec: TI xDM 0.9 Image Decoder > TICodecPlugin: TIImgdec1: TI xDM 1.0 Image Decoder > TICodecPlugin: TIImgenc: TI xDM 0.9 Image Encoder > TICodecPlugin: TIImgenc1: TI xDM 1.0 Image Encoder > TICodecPlugin: TIViddec2: TI xDM 1.2 Video Decoder > TICodecPlugin: TIViddec: TI xDM 0.9 Video Decoder > TICodecPlugin: TIVidenc: TI xDM 0.9 Video Encoder > TICodecPlugin: TIVidenc1: TI xDM 1.x Video Encoder > ffmpeg: ffdec_vcr1: FFMPEG ATI VCR1 decoder > > however, those all above work well, I still cannot get > gstreamer/dsplink worked together, how and why? any ideas? > > First test ~~~~~~~ > > root@beagleboard:~/mediaFile# gst-launch filesrc > location=/home/root/mediaFile/3.m4v ! qtdemux name=demux > demux.video_00 ! TIViddec2 ! TIDmaiVideoSink > (gst-launch-0.10:1699): GStreamer-WARNING **: Failed to load plugin > '/usr/lib/gstreamer-0.10/libgstsubparse.so': > /usr/lib/gstreamer-0.10/libgstsubparse.so: undefined symbol: > parse_sami > Setting pipeline to PAUSED ... > Pipeline is PREROLLING ... > Pipeline is PREROLLED ... > Setting pipeline to PLAYING .. > New clock: GstSystemClock > Got EOS from element "pipeline0". > Execution ended after 31982425 ns. > Setting pipeline to PAUSED ... > Setting pipeline to READY ... > Setting pipeline to NULL ... > FREEING pipeline ... > > I don't see any error. it seems to work as far as gstreamer is concerned. > Second test~~~~~~~ > > root@beagleboard:~/mediaFile# gst-launch -v filesrc > location=/home/root/mediaFile/3.m4v ! qtdemux name=demux > demux.video_00 ! TIViddec2 ! xvimagesink > > (gst-launch-0.10:1714): GStreamer-WARNING **: Failed to load plugin > '/usr/lib/gstreamer-0.10/libgstsubparse.so': > /usr/lib/gstreamer-0.10/libgstsubparse.so: undefined symbol: > parse_sami > Setting pipeline to PAUSED ... > ERROR: Pipeline doesn't want to pause. > ERROR: from element > /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not > initialise Xv output > Additional debug info: > xvimagesink.c(1668): gst_xvimagesink_xcontext_get (): /GstPipeline:pipeline0/Gst > XvImageSink:xvimagesink0: > Could not open display > Setting pipeline to NULL ... > FREEING pipeline ... > > I didn’t get any video output on the screen. how should I do to test > if gstreamer/dsplink works? What about above tests errors? > Do you run a xserver? does it support xvideo? (get yourself xvinfo from x11-tools). Stefan > thanks for your attention, any help is welcome. > |
|
From: Luther B. <da...@gm...> - 2009-04-21 16:41:44
|
Hello, On Tue, Apr 21, 2009 at 2:54 PM, Favor Tang <ta...@gm...> wrote: > First test ~~~~~~~ > > root@beagleboard:~/mediaFile# gst-launch filesrc > location=/home/root/mediaFile/3.m4v ! qtdemux name=demux > demux.video_00 ! TIViddec2 ! TIDmaiVideoSink > (gst-launch-0.10:1699): GStreamer-WARNING **: Failed to load plugin > '/usr/lib/gstreamer-0.10/libgstsubparse.so': > /usr/lib/gstreamer-0.10/libgstsubparse.so: undefined symbol: > parse_sami > Setting pipeline to PAUSED ... > Pipeline is PREROLLING ... > Pipeline is PREROLLED ... > Setting pipeline to PLAYING .. > New clock: GstSystemClock > Got EOS from element "pipeline0". > Execution ended after 31982425 ns. > Setting pipeline to PAUSED ... > Setting pipeline to READY ... > Setting pipeline to NULL ... > FREEING pipeline ... > > Second test~~~~~~~ > > root@beagleboard:~/mediaFile# gst-launch -v filesrc > location=/home/root/mediaFile/3.m4v ! qtdemux name=demux > demux.video_00 ! TIViddec2 ! xvimagesink > > (gst-launch-0.10:1714): GStreamer-WARNING **: Failed to load plugin > '/usr/lib/gstreamer-0.10/libgstsubparse.so': > /usr/lib/gstreamer-0.10/libgstsubparse.so: undefined symbol: > parse_sami > Setting pipeline to PAUSED ... > ERROR: Pipeline doesn't want to pause. > ERROR: from element > /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not > initialise Xv output > Additional debug info: > xvimagesink.c(1668): gst_xvimagesink_xcontext_get (): /GstPipeline:pipeline0/Gst > XvImageSink:xvimagesink0: > Could not open display > Setting pipeline to NULL ... > FREEING pipeline ... > > I didn’t get any video output on the screen. how should I do to test > if gstreamer/dsplink works? What about above tests errors? Could you try to rerun those commands but using /usr/share/ti-codec-engine as workdir ? There was a bug in gstreamer that required that, it is said it was corrected but maybe your version still has it. dsnk |