video rescaling
Nicolas Dufresne
nicolas at ndufresne.ca
Sat Jun 6 16:54:25 UTC 2020
Le sam. 6 juin 2020 11 h 15, Patrick Welche <prlw1 at cam.ac.uk> a écrit :
> 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
>
Unlike ximagesink, x264enc supports non square pixels. As it's zero copy,
videoscale will prefer scaling the pixel-aspect-ratio field instead.
Set pixel-aspect-ratio=1/1 in your filter if you want to force scaling.
>
> 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
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200606/07f4a016/attachment.htm>
More information about the gstreamer-devel
mailing list