Quantcast

how to play h.264 file using gstreamer

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

how to play h.264 file using gstreamer

davidjohn
Hi,
             I tried to play h.264 ES using the below command,
gst-launch-0.10 filesrc location=$1 ! ffdec_h264 ! ffmpegcolorspace ! deinterlace !xvimagesink
but i'm not able to play the video and i got the error messages like,
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
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(2317): 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 ...
FREEING pipeline ...

What may be the reason.

Thanks and regards,
john david.


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to play h.264 file using gstreamer

Julien Moutte-2

You might need to parse the elementary stream to make it easier for
FFMPEG H264 decoder.

try this pipeline :

*gst-launch-0.10 filesrc location=$1 ! h264parse ! ffdec_h264 !
ffmpegcolorspace ! deinterlace ! xvimagesink*

Julien

john david wrote:

> Hi,
>              I tried to play h.264 ES using the below command,
> *gst-launch-0.10 filesrc location=$1 ! ffdec_h264 ! ffmpegcolorspace !
> deinterlace !xvimagesink*
> but i'm not able to play the video and i got the *error messages like,*
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> 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(2317): 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 ...
> FREEING pipeline ...
>
> What may be the reason.
>
> Thanks and regards,
> john david.
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to play h.264 file using gstreamer

davidjohn
Hi,
Thanks for your valuable information. Now i'm able to play streams properly.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to play h.264 file using gstreamer

Karan shah
In reply to this post by Julien Moutte-2
Hi,
 I am using the same pipeline ( in windows OS)
gst-launch filesrc location="C:\\vid1.264" ! h264parse ! ffdec_h264 ! ffmpegcolorspace !deinterlace ! dshowvideosink

it launches window to display and just render first frame frame of video.
 I am getting message like  
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 6578125000 ns.


same video file working fine with Playbin2

gst-launch playbin2 uri=file:///C:\\vid1.264

Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "playbin20".
Execution ended after 85437500000 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

what is erroneous there in  pipeline and how playbin2 render video?

Thanks & Regards
Kishor Sidhpuria

Loading...