<html><body><div>Hi,</div><div><br></div><div>I'm have a few problems constructing a pipeline with gst-launch.</div><div><br></div><div>I initially created a pipeline that read from a custom src element (it reads data from a database) and then decoded and encoded the data before muxing it and writing to a file i.e.</div><div><br></div><div>gst-launch -evvv mycustomsrc ! jpegparse ! ffdec_mjpeg ! videorate ! ffenc_mjpeg ! ffmux_mp4 ! filesink location=/tmp/video_test.mp4</div><div><br></div><div>This pipeline works, MJPEG video is read from a database, parsed, decoded, re-encoded, muxed and written to a file. I can then playback video_test.mp4 using VLC.</div><div><br></div><div><br></div><div>My problem is when I try to modify the pipeline to scale the video i.e. add the videoscale element.</div><div><br></div><div>gst-launch -evvv mycustomsrc ! jpegparse ! ffdec_mjpeg ! videorate ! videoscale ! video/x-raw-yuv,width=320,height=240,framerate=5/1 ! ffenc_mjpeg ! ffmux_mp4 ! filesink location=/tmp/video_test.mp4</div><div><br></div><div>This piepline fails, I get the error:</div><div><div>0:00:00.057424331 30345 0x81a5a90 WARN basesrc gstbasesrc.c:2378:gst_base_src_loop:<mycustomsrc0> error: Internal data flow error.</div><div>0:00:00.057442875 30345 0x81a5a90 WARN basesrc gstbasesrc.c:2378:gst_base_src_loop:<mycustomsrc0> error: streaming task paused, reason not-negotiated (-4)</div><div>0:00:00.057499751 30345 0x81a5a90 WARN ffmpeg gstffmpegmux.c:467:gst_ffmpegmux_collected:<ffmux_mp40> error: no caps set on stream 0 (video)</div></div><div><br></div><div><br></div><div>ffmux_mp4 seems to indicate that no caps set on stream 0(video). How can I explicitly set caps for this ?</div><div><br></div><div>Any ideas are appreciated, thanks.</div><div><br></div><div><br></div></body></html>