[gst-devel] problem playing h.264 file

Carlos Molina cmdr at tid.es
Fri Jun 22 09:23:52 CEST 2007


I forget to paste the error output:

I tried to  create the file:

gst-launch videotestsrc ! x264enc byte-stream=true ! filesink 
location=test.264

and

gst-launch videotestsrc ! x264enc byte-stream=true ! avimux !  filesink 
location=test.264

I can play test.264 with mplayer and vlc as I previously said.. but I 
can't play with gstreamer:

gst-launch filesrc location=prueba.264 ! ffdec_h264 ! xvimagesink  

output:


gst-launch filesrc location=prueba.264 ! ffdec_h264 ! xvimagesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.303576000 29537 0x81fa8a0 WARN                ffmpeg 
gstffmpegdec.c:1981:gst_ffmpegdec_chain:<ffdec_h2640> error: ffdec_h264: 
input format was not set before data start
ERROR: from element /pipeline0/ffdec_h2640: Internal GStreamer error: 
negotiation problem.  Please file a bug at 
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstffmpegdec.c(1981): gst_ffmpegdec_chain (): /pipeline0/ffdec_h2640:
ffdec_h264: input format was not set before data start
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
0:00:00.304315000 29537 0x81fa8a0 WARN               basesrc 
gstbasesrc.c:1811:gst_base_src_loop:<filesrc0> error: Internal data flow 
error.
0:00:00.304366000 29537 0x81fa8a0 WARN               basesrc 
gstbasesrc.c:1811:gst_base_src_loop:<filesrc0> error: streaming task 
paused, reason not-negotiated (-4)
FREEING pipeline ...


Thanks in advance


Carlos Molina escribió:
> Hi all,
>
> I was working with a pipeline that capture video from a camera device, 
> codify h.264 , decodify  and display:
> something like that:
>
> gst-launch videotestsrc ! x264enc byte-stream=true ! ffdec_h264 ! 
> xvimagesink 
>
> This pipeline works really fine.
>
> but when I tried to record a h.264 file and play it, I found some problems
> I try:
> gst-launch videotestsrc ! x264enc byte-stream=true ! filesink 
> location=prueba.264 
>
> and
>
> gst-launch filesrc location=prueba.264 ! ffdec_h264 ! xvimagesink    
>
> It is possible to play prueba.264 with mplayer, vlc or other player but 
> not through gstreamer.
>
> Maybe it is needed some parameter in ffdec_h264 or something else..?
>
> Thanks in advance
>
>
>
>   

-- 
__________________________________________________

Carlos Molina del Rio
Telefonica I+D
Tel: (+34)933653064
Via Augusta 177,
08021 Barcelona
___________________________________________________





More information about the gstreamer-devel mailing list