gstreamer - Not able to save gstream videosink -
i'm trying save dummy video directory. in case end in error knew wrong in pipeline.
do missing parameters here ?
gst-launch -v videotestsrc ! ximagesink ! filesink location=~/cupcake.mp4 warning: erroneous pipeline: not link ximagesink0 filesink0
i want record video.
ximagesink sink element , such doesn't have output (source pad). command tell details of element:
gst-inspect-1.0 ximagesink notice ximagesink has sink pad , no source pads, doesn't generate output.
you can dump video directly file using:
gst-launch-1.0 videotestsrc ! filesink location=~/cupcake.raw unfortunately, still not want videotestsrc generate raw video , not encoded or muxed mp4. if want mp4 need put mp4mux organize data receives mp4 container. recommended encode video reduce size. let's assume want use h.264 codec. can use element x264enc encode h.264
gst-launch-1.0 -e videotestsrc ! x264enc ! mp4mux ! filesink location=~/cupcake.mp4 notice added "-e" parameter make gst-launch-1.0 send eos event , wait eos message indicate elements have finished working. without flag pipeline interrupted , aborted.
in case i'd recommend going manuals application development: http://gstreamer.freedesktop.org/documentation/ manpage gst-launch-1.0 useful.
disclaimer: using gstreamer 0.10 3 years unmantained , obsolete, please upgrade 1.0 (this answer aimed @ 1.0 can applied 0.10 changing commands 0.10 version)
Comments
Post a Comment