sample video file encoding in gstreamer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

sample video file encoding in gstreamer

mfsakht
I can encode and decode a test video with following pipelines:

gst-launch-0.10 -v videotestsrc num-buffers=2000 ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=sample.264

gst-launch-0.10 -v filesrc location=sample.264 ! TIViddec2 codecName=h264dec engineName=codecServer ! filesink location=sample.raw

but I can’t encode a sample raw video file like sample.raw with following pipelines:

gst-launch-0.10 -v filesrc location=sample.raw num-buffers=2000 ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=sample.264

ERROR: failed to create video encoder h264enc

gst-launch-0.10 -v filesrc location=sample.raw num-buffers=2000 ! video/x-raw-yuv,width=320,height=240,framerate=30 ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=sample.264

ERROR: could not link filesrc0 to tividenc10
Reply | Threaded
Open this post in threaded view
|

Re: sample video file encoding in gstreamer

Sebastian Dröge-3
On Mi, 2016-05-04 at 04:23 -0700, mfsakht wrote:

> I can encode and decode a test video with following pipelines:
>
> *gst-launch-0.10 -v videotestsrc num-buffers=2000 ! TIVidenc1
> codecName=h264enc engineName=codecServer ! filesink location=sample.264*
>
> *gst-launch-0.10 -v filesrc location=sample.264 ! TIViddec2
> codecName=h264dec engineName=codecServer ! filesink location=sample.raw*
>
> but I can’t encode a sample raw video file like sample.raw with following
> pipelines:
>
> *gst-launch-0.10 -v filesrc location=sample.raw num-buffers=2000 ! TIVidenc1
> codecName=h264enc engineName=codecServer ! filesink location=sample.264
> *
> ERROR: failed to create video encoder h264enc
>
> *gst-launch-0.10 -v filesrc location=sample.raw num-buffers=2000 !
> video/x-raw-yuv,width=320,height=240,framerate=30 ! TIVidenc1
> codecName=h264enc engineName=codecServer ! filesink location=sample.264*
The caps are incomplete in the second example (at least the format is
missing), and in the first you don't provide any at all. But even if
you provide complete caps, you need something that reads exactly one
raw video frame per buffer. filesrc can't do that, see the videparse
element.

You should also consider updating to GStreamer 1.x. The 0.10 version is
no longer maintained since more than 3 years and you're unlikely to get
any support for it anymore.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment