<div dir="rtl"><div dir="ltr">Hello all,</div><div dir="ltr"><br></div><div dir="ltr">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.</div><div dir="ltr">this is the pipeline I tried for preparing the file:</div><div dir="ltr"><br></div><div dir="ltr">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<br></div><div dir="ltr"><br></div><div dir="ltr">and the rtsp-server launch command:</div><div dir="ltr"><br></div><div dir="ltr">rtsp-launch.exe "( filesrc location=D:\\videos\\ready_for_streaming\\srcfile.h264  ! h264parse ! rtph264pay name=pay0 pt=96 ) "<br></div><div dir="ltr"><br></div><div dir="ltr">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'</div><div dir="ltr"><br></div><div dir="ltr">If I do the decoding and re-encoding in run-time like this it works fine:</div><div dir="ltr"><br></div><div dir="ltr">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  )"</div><div dir="ltr"><br></div><div dir="ltr">What am I doing wrong here?</div><div dir="ltr"><br></div><div dir="ltr">Thanks</div><div dir="ltr">Jacob</div></div>