wrong caps for decoding

Chuck Crisler ccrisler at mutualink.net
Mon Sep 10 13:53:15 PDT 2012


I have captured a stream with the following command:

gst-launch -v v4l2src always-copy=FALSE device=/dev/video0 !
video/x-raw-yuv,width=640,height=480,framerate=10/1  \
    ! queue ! ffmpegcolorspace ! x264enc byte-stream=TRUE bitrate=256 \
    ! mpegtsmux ! filesink location=test.ts

Now I am trying (and failing) to play it back. For example,

gst-launch -v filesrc location=/home/.../test.ts ! ffdec_h264 !
video/x-h264,width=640,height=480 ! ximagesink

fails to link ffdec_h264 to ximagesink.

gst-launch -v filesrc location=/home/.../test.ts ! ffdec_h264 !
video/x-raw-yuv,width=640,height=480 ! ffmpegcolorspace ! ximagesink

fails because the input format on ffdec_h264 was not set before data start.

What am I doing wrong? I know that this can be done because playbin2 works.
I want to learn how to do this manually.

Thank you for all help! Also, I would appreciate all suggestions of how to
figure out my error so I can learn from my mistakes.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120910/4f722945/attachment.html>


More information about the gstreamer-devel mailing list