<div>&nbsp;&nbsp; Well, Now I'm focusing on the avi file play pipeline. Here I'm trying this command line:<br><br>gst-launch -v filesrc location=/convert.avi ! avidemux name=demux  demux.video_00 ! mpeg2dec ! ffmpegcolorspace ! video/x-raw-rgb,bpp=32,depth=32,width=128,height=112,framerate=25/1,endianness=4321,pixel-aspect-ratio=1/1,red_mask=65280, green_mask=16711680, blue_mask=-16777216, alpha_mask=255 ! dfbvideosink<br><br>And of course I get the format not negotiate err.<br><br>More debug info:<br>0:00:02.713180000  1251 0xa1a28 DEBUG             GST_PADS gstpad.c:2216:gst_pad_acceptcaps_default:&lt;capsfilter0:sink&gt; intersection gave empty caps<br>0:00:02.714144000  1251 0xa1a28 DEBUG             GST_PADS gstpad.c:2267:gst_pad_accept_caps:&lt;capsfilter0:sink&gt; acceptfunc returned 0<br>0:00:02.715102000  1251 0xa1a28 DEBUG             GST_CAPS gstpad.c:2054:gst_pad_get_caps:&lt;capsfilter0:sink&gt; get pad caps<br>0:00:02.715967000  1251 0xa1a28 DEBUG             GST_CAPS gstpad.c:1960:gst_pad_get_caps_unlocked:&lt;capsfilter0:sink&gt; get pad caps<br>0:00:02.716858000  1251 0xa1a28 DEBUG             GST_CAPS gstpad.c:1964:gst_pad_get_caps_unlocked:&lt;capsfilter0:sink&gt; dispatching to pad getcaps function<br>0:00:02.717987000  1251 0xa1a28 DEBUG             GST_CAPS gstpad.c:2082:gst_pad_peer_get_caps:&lt;capsfilter0:src&gt; get peer caps<br>0:00:02.718973000  1251 0xa1a28 DEBUG             GST_CAPS gstpad.c:2054:gst_pad_get_caps:&lt;dfbvideosink0:sink&gt; get pad caps<br>0:00:02.719922000  1251 0xa1a28 DEBUG             GST_CAPS gstpad.c:1960:gst_pad_get_caps_unlocked:&lt;dfbvideosink0:sink&gt; get pad caps<br>0:00:02.720849000  1251 0xa1a28 DEBUG             GST_CAPS gstpad.c:1964:gst_pad_get_caps_unlocked:&lt;dfbvideosink0:sink&gt; dispatching to pad getcaps function<br>0:00:03.090930000  1251 0xa1a28 DEBUG             GST_CAPS gstpad.c:1977:gst_pad_get_caps_unlocked:&lt;dfbvideosink0:sink&gt; pad getcaps returned 0xa47c0<br>0:00:03.092095000  1251 0xa1a28 DEBUG             GST_CAPS gstpad.c:1977:gst_pad_get_caps_unlocked:&lt;capsfilter0:sink&gt; pad getcaps returned 0xa4840<br>0:00:03.093557000  1251 0xa1a28 DEBUG             GST_CAPS gstpad.c:2399:gst_pad_set_caps:&lt;ffmpegcsp0:sink&gt; caps 0x29ae0 could not be set<br>0:00:03.094653000  1251 0xa1a28 DEBUG             GST_PADS gstpad.c:4338:gst_pad_pause_task:&lt;demux:sink&gt; pause task<br>ERROR: from element /pipeline0/demux: Internal data stream error.<br>Additional debug info:<br>gstavidemux.c(3577): gst_avi_demux_loop (): /pipeline0/demux:<br>streaming stopped, reason not-negotiated<br><br>**************************************************************************************************************************************************<br>I replace the dfbvideosink with fakesink, and the pipeline is OK:<br><br>the debug info contrast to the dfb ones:<br><br><br>0:00:02.152112000  1208 0x8abb8 DEBUG             GST_PADS gstpad.c:2216:gst_pad_acceptcaps_default:&lt;capsfilter0:sink&gt; intersection gave empty caps<br>0:00:02.153120000  1208 0x8abb8 DEBUG             GST_PADS gstpad.c:2267:gst_pad_accept_caps:&lt;capsfilter0:sink&gt; acceptfunc returned 0<br>0:00:02.154107000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:2054:gst_pad_get_caps:&lt;capsfilter0:sink&gt; get pad caps<br>0:00:02.155009000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1960:gst_pad_get_caps_unlocked:&lt;capsfilter0:sink&gt; get pad caps<br>0:00:02.155899000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1964:gst_pad_get_caps_unlocked:&lt;capsfilter0:sink&gt; dispatching to pad getcaps function<br>0:00:02.156810000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:2082:gst_pad_peer_get_caps:&lt;capsfilter0:src&gt; get peer caps<br>0:00:02.157694000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:2054:gst_pad_get_caps:&lt;fakesink0:sink&gt; get pad caps<br>0:00:02.158546000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1960:gst_pad_get_caps_unlocked:&lt;fakesink0:sink&gt; get pad caps<br>0:00:02.159407000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1964:gst_pad_get_caps_unlocked:&lt;fakesink0:sink&gt; dispatching to pad getcaps function<br>0:00:02.160215000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1977:gst_pad_get_caps_unlocked:&lt;fakesink0:sink&gt; pad getcaps returned 0x2bc00<br>0:00:02.161589000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1977:gst_pad_get_caps_unlocked:&lt;capsfilter0:sink&gt; pad getcaps returned 0x97440<br>0:00:02.165843000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:2256:gst_pad_accept_caps:&lt;capsfilter0:sink&gt; accept caps of 0x97460<br>0:00:02.166784000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:2054:gst_pad_get_caps:&lt;capsfilter0:sink&gt; get pad caps<br>0:00:02.167705000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1960:gst_pad_get_caps_unlocked:&lt;capsfilter0:sink&gt; get pad caps<br>0:00:02.168615000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1964:gst_pad_get_caps_unlocked:&lt;capsfilter0:sink&gt; dispatching to pad getcaps function<br>0:00:02.169443000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:2082:gst_pad_peer_get_caps:&lt;capsfilter0:src&gt; get peer caps<br>0:00:02.170369000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:2054:gst_pad_get_caps:&lt;fakesink0:sink&gt; get pad caps<br>0:00:02.171265000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1960:gst_pad_get_caps_unlocked:&lt;fakesink0:sink&gt; get pad caps<br>0:00:02.172188000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1964:gst_pad_get_caps_unlocked:&lt;fakesink0:sink&gt; dispatching to pad getcaps function<br>0:00:02.173154000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1977:gst_pad_get_caps_unlocked:&lt;fakesink0:sink&gt; pad getcaps returned 0x2bc00<br>0:00:02.174390000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:1977:gst_pad_get_caps_unlocked:&lt;capsfilter0:sink&gt; pad getcaps returned 0x974e0<br>0:00:02.175937000  1208 0x8abb8 DEBUG             GST_PADS gstpad.c:2267:gst_pad_accept_caps:&lt;capsfilter0:sink&gt; acceptfunc returned 1<br>0:00:02.177213000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:2372:gst_pad_set_caps:&lt;ffmpegcsp0:src&gt; caps 0x97460<br>/pipeline0/ffmpegcsp0.src: caps = video/x-raw-rgb, bpp=(int)32, depth=(int)32, width=(int)128, height=(int)112, framerate=(fraction)25/1, endianness=(int)4321, pixel-aspect-ratio=(fraction)1/1, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, alpha_mask=(int)255<br>0:00:02.181074000  1208 0x8abb8 DEBUG             GST_CAPS gstpad.c:2372:gst_pad_set_caps:&lt;ffmpegcsp0:sink&gt; caps 0x29ae0<br><br>********************************************************************************************************************************************************<br><br>Any Ideas about this? I'm digging the code and it's a real disaster to me :(<br><br><br>OK, some answers for stefan:<br>1.And your sure that the dfbvideosink works. What does "gst-inspect dfbvideosink" prints?<br>Of course the dfbvideosink works, since i can get the test application "dfb-example" which only generate a simple pipeline between videotestsrc and dfbvideosink work on the board, and even now I can get the raw video data play correctly on the target.<br><br>2. probably the audio inside the avi?<br>Yes,now I use the mpeg2dec instead of decodebin, so nothing to do with the auido things.i'm also facing some problems in audio playback. So make them work separately first.<br><br>3. I was just curious what device your working on.<br>Er,,, some kind of picture frame things, can view picture, play video, play mp3 etc..<br><br><br>BR<br>Joyious<br><br></div><div>&nbsp;</div><div ></div><br>在2007-10-23,"Stefan Kost" &lt;ensonic@hora-obscura.de&gt; 写道:<br> <blockquote id="isReplyContent" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><pre>Quoting Joyious He &lt;joyious@163.com&gt;:

&gt;  Hi,
&gt;  I tried the command and got the response below:
&gt;
&gt;     Joyious He schrieb:
&gt;     &gt;  Hi all,
&gt;     &gt;
&gt;     &gt; Now I'm going to test the video display on my target arm borad.it use
&gt;     &gt; the directfb as the display layer.and I got problems below:
&gt;     &gt;
&gt;     &gt;
&gt;     &gt; 1:The videotestsrc work well for that dfb-example,but when i just get
&gt;     &gt; the command line "gst-launch -v videotestsrc ! dfbvideosink", it threw
&gt;     &gt; out some err msg: "format can not negotiate".
&gt;     gst-launch -v videotestsrc ! ffmpegcolorspace ! dfbvideosink
&gt;    
&gt; *************************************************************************************************
&gt; gst-launch -v videotestsrc ! ffmpegcolorspace ! dfbvideosink
&gt; ERROR: from element /pipeline0/videotestsrc0: Could not negotiate format
&gt; Additional debug info:
&gt; gstbasesrc.c(1865): gst_base_src_start (): /pipeline0/videotestsrc0:
&gt; Check your filtered caps, if any
&gt; this work well on my PC, but not on the board, I tried to use   
&gt; GST_DEBUG to get more msg, but at most condition it will got err:
&gt; Caught SIGSEGV accessing address (nil)
&gt; Spinning.  Please run 'gdb gst-launch 1532' to continue debugging,   
&gt; Ctrl-C to quit, or Ctrl-\ to dump core.
&gt;

And your sure that the dfbvideosink works. What does "gst-inspect  
dfbvideosink" prints?

*************************************************************************************************
&gt;     &gt;
&gt;     &gt; 2:Then I put the videotestsrc away, try to play some AVI files.but when
&gt;     &gt; I try the application or the command line like : " gst-launch   
&gt; -v filesrc
&gt;     &gt; location=/convertavi ! avidemux name=demux demux.video_00 ! queue !
&gt;     &gt; decodebin ! ffmpegcolorspace ! videoscale ! dfbvideosink".   
&gt; Iwas told the
&gt;     &gt; pipeline was pause. I check the debug message.I got the reason:
&gt;     filesrc location=/convertavi ! decodebin name=demux   
&gt; demux.video_00 ! queue !
&gt;     decodebin ! ffmpegcolorspace ! videoscale ! dfbvideosink
&gt;
***************************************************************************************************
&gt; gst-launch -v filesrc location=/convert.avi ! decodebin name=demux   
&gt; demux.video_00 ! queue ! decodebin ! ffmpegcolorspace ! videoscale !  
&gt;  dfbvideosink
&gt; ERROR: from element /pipeline0/demux/avidemux0: Internal data stream error.
&gt; Additional debug info:
&gt; gstavidemux.c(3577): gst_avi_demux_loop (): /pipeline0/demux/avidemux0:
&gt; streaming stopped, reason not-linked
&gt; I got the debug message and the reason for this not-linked is when   
&gt; using decodebin, it will try to get link to the demux.audio_00, I   
&gt; did not get audio sink this pipeline, so it gave the not-link err.
&gt;

filesrc location=/convertavi ! decodebin name=demux demux.src00 !  
queue ! ffmpegcolorspace ! videoscale ! dfbvideosink

gst-inspect tells you the names of the pads.

************************************************************************************************************
&gt; then i replace this decodebin with mpeg2dec,thus :
&gt; gst-launch -v filesrc location=/convert.avi ! avidemux name=demux   
&gt; demux.video_00 ! mpeg2dec ! ffmpegcolorspace ! videoscale !   
&gt; dfbvideosink
&gt; ERROR: from element /pipeline0/demux: Internal data stream error.
&gt; Additional debug info:
&gt; gstavidemux.c(3577): gst_avi_demux_loop (): /pipeline0/demux:
&gt; streaming stopped, reason not-negotiated
&gt; 0:00:12.098377000   968 0xa3920 WARN              avidemux   
&gt; gstavidemux.c:1616:gst_avi_demux_stream_index:&lt;demux&gt; skip LIST chunk
&gt; /pipeline0/mpeg2dec0.sink: caps = video/mpeg,   
&gt; systemstream=(boolean)false, mpegversion=(int)2,   
&gt; framerate=(fraction)25/1, width=(int)128, height=(int)112
&gt; /pipeline0/mpeg2dec0.src: caps = video/x-raw-yuv,   
&gt; format=(fourcc)I420, width=(int)128, height=(int)112,   
&gt; pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)25/1
&gt; 0:00:13.109244000   968 0xa3920 WARN              avidemux   
&gt; gstavidemux.c:3548:gst_avi_demux_loop: stream_movi flow:   
&gt; not-negotiated / not-negotiated
&gt; 0:00:13.110534000   968 0xa3920 WARN              avidemux   
&gt; gstavidemux.c:3577:gst_avi_demux_loop:&lt;demux&gt; error: Internal data   
&gt; stream error.
&gt; 0:00:13.111456000   968 0xa3920 WARN              avidemux   
&gt; gstavidemux.c:3577:gst_avi_demux_loop:&lt;demux&gt; error: streaming   
&gt; stopped, reason not-negotiated
&gt; ERROR: from element /pipeline0/demux: Internal data stream error.
&gt; Additional debug info:
&gt; gstavidemux.c(3577): gst_avi_demux_loop (): /pipeline0/demux:
&gt; streaming stopped, reason not-negotiated

probably the audio inside the avi?

&gt; **********************************************************************************************************************
&gt;     &gt;
&gt;     &gt; "0:00:01.613967000 [332m 1633[00m 0x1af80 [32;01mINFO [00m [00;01;34m
&gt;     &gt; GST_EVENT   
&gt; gstpad.c:4242:gst_pad_send_event:&lt;mpeg2dec0:sink&gt;[00m Received
&gt;     &gt; event on flushing pad. Discarding
&gt;     &gt; 0:00:01.614717000 [332m 1633[00m 0x1af80 [32;01mINFO [00m [00;01;34m
&gt;     &gt; GST_EVENT   
&gt; gstpad.c:4242:gst_pad_send_event:&lt;mpeg2dec0:sink&gt;[00m Received
&gt;     &gt; event on flushing pad. Discarding
&gt;     &gt; 0:00:01.616135000 [332m 1633[00m 0x1af80 [32;01mINFO [00m [00;01;34m
&gt;     &gt; GST_EVENT   
&gt; gstpad.c:4242:gst_pad_send_event:&lt;mpeg2dec0:sink&gt;[00m Received
&gt;     &gt; event on flushing pad. Discarding
&gt;     &gt; 0:00:01.617260000 [332m 1633[00m 0x1af80 [33;01mWARN [00m [00m avidemux
&gt;     &gt; gstavidemux.c:3548:gst_avi_demux_loop:[00m stream_movi flow:   
&gt; wrong-state
&gt;     &gt; / ok"
&gt;     &gt;
&gt;     &gt; 3:I also tried another way. I convert a AVI file into a raw data as a
&gt;     &gt; temp file, and use filesrc and dfbvideo sink to play :"gst-launch -v
&gt;     &gt; filesrc location=/convert2 blocksize=65536 ! dfbvideosink". Some thing
&gt;     &gt; is coming out, but its not the correct video.I think it's probably the
&gt;     &gt; frame format mismatching. the temp file is using YV12(I   
&gt; convert it using
&gt;     &gt; mplayer and its default value is YUV YV12) and my directfb is using
&gt;     &gt; RGB32. So how can i specify the caps convert, changing the format of
&gt;     &gt; mplayer default or specify it in the gstreamer commad line? I tried the
&gt;     &gt; ffmpegcolorspace like "gst-launch -v filesrc location=/convert2
&gt;     &gt; blocksize=65536 ! ffmpegcolorspace ! dfbvideosink" and I was told the
&gt;     &gt; format can not negotiated.
&gt; ***********************************************************************************************************************
&gt; Here i got the frame displayed on the board,just using the   
&gt; capsfilter to specify the caps format:
&gt; GST_DEBUG="dfbvideosink:3" gst-launch -v filesrc location="/t3"   
&gt; blocksize=57344 !   
&gt; video/x-raw-rgb,bpp=32,depth=32,width=128,height=112,framerate=25/1,endianness=4321,pixel-aspect-ratio=1/1,red_mask=65280, green_mask=16711680, blue_mask=-16777216, alpha_mask=255 !   
&gt; dfbvideosink
&gt; **********************************************************************************************************************
&gt;     &gt;
&gt;     &gt; Could you all give me any ideas about all the problems above ?
&gt;     &gt;
&gt;     Do I get a free device when it gets released :)
&gt; If i can get some in hand, of cause I'll get one diliver to you. But  
&gt;  it seems not possible for me to get any then :(
&gt;     Stefan
&gt;     &gt;
&gt;     &gt; Thanks very much.
&gt;     &gt;
&gt;     &gt; Best Regard
&gt;     &gt; Joyious

hej, don't worry - I was just curious what device your working on.

Stefan


&gt;     &gt;
&gt;     &gt;
&gt;     &gt;
&gt;     &gt;   
&gt; ------------------------------------------------------------------------
&gt;     &gt; LOGO     ????????????????
&gt;     &gt; &lt;http://popme.163.com/link/003515_0929_938.html&gt;
&gt;     &gt; ??????????????
&gt;     &gt; &lt;http://popme163.com/link/003515_0929_938.html&gt;
&gt;     &gt;
&gt;     &gt;
&gt;     &gt;   
&gt; ------------------------------------------------------------------------
&gt;     &gt;
&gt;     &gt;   
&gt; -------------------------------------------------------------------------
&gt;     &gt; This SF.net email is sponsored by: Splunk Inc.
&gt;     &gt; Still grepping through log files to find problems?  Stop.
&gt;     &gt; Now Search log events and configuration files using AJAX and a browser.
&gt;     &gt; Download your FREE copy of Splunk now &gt;&gt; http://get.splunk.com/
&gt;     &gt;
&gt;     &gt;
&gt;     &gt;   
&gt; ------------------------------------------------------------------------
&gt;     &gt;
&gt;     &gt; _______________________________________________
&gt;     &gt; gstreamer-devel mailing list
&gt;     &gt; gstreamer-devel@lists.sourceforge.net
&gt;     &gt; https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now &gt;&gt; http://get.splunk.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
</pre></blockquote><br><!-- footer --><br>
<hr>
<table width="100%%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50" height="50"><img src="http://mimg.163.com/hd/163/163footer/163footer_50.jpg" alt="LOGO" width="50" height="50"></td>
    <td style="padding:5px;"><a style="font-size:12px;color:black; line-height:20px;text-decoration:none;" href="http://popme.163.com/link/003515_0929_938.html">把爱心注入牛奶,共同凝聚这份力量</a><br /><a style="font-size:12px;line-height:20px; color:black; text-decoration:none;" href="http://popme.163.com/link/003515_0929_938.html">快来参加蒙牛免费赠奶爱心行动 </a></td>
  </tr>
</table>