prepare a video file for rtph264pay
Jacob S
jacobhameiri at gmail.com
Sun Oct 19 05:26:13 PDT 2014
Hello all,
I am using gst-rtsp-server to stream video files and I want to prepare the
video file for streaming in order to reduce the work for the streamer in
run-time.
this is the pipeline I tried for preparing the file:
gst-launch-1.0.exe filesrc location=D:\\videos\\srcfile.wmv ! decodebin
name=dbin ! queue ! videorate max-rate=15 ! videoconvert ! videoscale !
video/x-raw,width=426,height=240 ! queue ! x264enc bitrate=2000 ! filesink
location=D:\\videos\\ready_for_streaming\\srcfile.h264
and the rtsp-server launch command:
rtsp-launch.exe "( filesrc
location=D:\\videos\\ready_for_streaming\\srcfile.h264 ! h264parse !
rtph264pay name=pay0 pt=96 ) "
I am getting a WARN 'baseparse
gstbaseparse.c:3253:gst_base_parse_loop:<h264parse0> error: No valid frames
found before end of stream' and after an ERROR : 'can't prepare media'
If I do the decoding and re-encoding in run-time like this it works fine:
rtsp-launch.exe "( filesrc location=D:\\videos\\srcfile.wmv ! decodebin
name=dbin ! queue ! videorate max-rate=15 ! videoconvert ! videoscale !
video/x-raw,width=426,height=240 ! queue ! x264enc bitrate=2000 !
rtph264pay name=pay0 pt=96 )"
What am I doing wrong here?
Thanks
Jacob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141019/2ea2d883/attachment.html>
More information about the gstreamer-devel
mailing list