video rescaling
Patrick Welche
prlw1 at cam.ac.uk
Sat Jun 6 13:43:12 UTC 2020
Given a sample video, e.g., http://techslides.com/demos/sample-videos/small.ogv
and following the videoscale documentation,
gst-launch-1.0 -e \
filesrc location=small.ogv ! decodebin ! video/x-raw ! videoconvert \
! videoscale ! video/x-raw,width=50 ! ximagesink
does exactly what one expects. If I channel the output to a file
gst-launch-1.0 -e \
filesrc location=small.ogv ! decodebin ! video/x-raw ! videoconvert \
! videoscale ! video/x-raw,width=50 ! x264enc ! filesink location=out.mp4
the file has the desired resolution, but gst-play-1.0 out.mp4 displays a
window of the original dimensions.
What am I missing?
Cheers,
Patrick
More information about the gstreamer-devel
mailing list