<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">My first idea is to create your own videosink element that integrates videocrop functions.</div><div class="">In paused state, get “last-sample” (video frame rendered on screen) for video cropping.</div><div class="">Then render cropped frame again.</div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">Yi-Lung (Bruce) Tsai</div><div class=""><a href="mailto:wagamama.tsai@gmail.com" class="">wagamama.tsai@gmail.com</a></div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 13, 2017, at 10:30 PM, silver <<a href="mailto:sxhsxhsxh66@gmail.com" class="">sxhsxhsxh66@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello guys,<br class=""><br class="">I construct one rtsp pipeline and one hls pipeline. Both of them use<br class="">autovideosink. Now I want to add a zoom function by applying videocrop<br class="">element. It works for both pipelines when the video is playing. But once I<br class="">pause the stream, zoom isnot available until I continue to play the video. I<br class="">understand that it's reasonable for a paused state to prevent pushing data.<br class="">But I still want to search for a way to realize the zoom when paused.<br class=""><br class="">I attach my two pipeline here:<br class="">rtspsrc name=src latency=1000 buffer-mode=1 protocols=4 src. ! queue !<br class="">rtph264depay ! avdec_h264 ! videocrop name=cropper top=0 left=0 right=0<br class="">bottom=0 ! autovideosink src. ! queue ! rtpmp4gdepay ! aacparse ! faad !<br class="">volume name=vol volume=0.00000001 ! autoaudiosink<br class="">souphttpsrc name=src ! hlsdemux ! tsdemux name=u u. ! queue ! h264parse !<br class="">avdec_h264 ! videoconvert ! videocrop name=cropper top=0 left=0 right=0<br class="">bottom=0 ! videoscale ! autovideosink u. ! queue ! aacparse ! faad ! volume<br class="">name=vol volume=0.00000001 ! audioconvert ! audioresample ! autoaudiosink<br class=""><br class="">I searched in this forum for hours but nothings found very helpful.<br class="">Any help would be appreciated!<br class=""><br class=""><br class=""><br class="">--<br class="">View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Cannot-zoom-video-when-the-state-is-paused-tp4682654.html" class="">http://gstreamer-devel.966125.n4.nabble.com/Cannot-zoom-video-when-the-state-is-paused-tp4682654.html</a><br class="">Sent from the GStreamer-devel mailing list archive at <a href="http://nabble.com" class="">Nabble.com</a>.<br class="">_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></div></blockquote></div><br class=""></body></html>