videoscale issue
Nicolas Dufresne
nicolas at ndufresne.ca
Sat Jun 20 17:21:27 UTC 2020
Le sam. 20 juin 2020 05 h 00, longkas <longkas at gmail.com> a écrit :
> Hello,
> When using videoscale to scale down videos, changing the add-borders
> property gets the same result, the aspect ratio is always kept, the input
> file has a resolution of 1920x816, please help.
>
> #gst-launch-1.0 -v filesrc location=lucy-tlr1_h1080p.mov ! decodebin !
> videoconvert ! videoscale add-borders=false !
> video/x-raw,width=1280,height=720 ! autovideosink
>
There is no border to add if scaling the pixel aspect ratio is permitted.
Fix the aspect ratio and you should get the expected result.
video/x-raw, pixel-aspect-ratio=1/1,...
>
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
> caps = video/quicktime
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
> caps = NULL
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0.GstPad:src_0:
> caps = video/x-h264, stream-format=(string)avc, alignment=(string)au,
> level=(string)4, profile=(string)main,
>
> codec_data=(buffer)014d4028ff010014274d4028a9180f00cf600d4040406db0ad7bdf0101000428de09c8,
> width=(int)1920, height=(int)816, framerate=(fraction)24000/1001,
> pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstH264Parse:h264parse0.GstPad:src:
> caps = video/x-h264, stream-format=(string)avc, alignment=(string)au,
> level=(string)4, profile=(string)main,
>
> codec_data=(buffer)014d4028ffe10014274d4028a9180f00cf600d4040406db0ad7bdf0101000428de09c8,
> width=(int)1920, height=(int)816, framerate=(fraction)24000/1001,
> pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709,
> interlace-mode=(string)progressive, chroma-format=(string)4:2:0,
> bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
> Redistribute latency...
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec_h264:avdec_h264-0.GstPad:sink:
> caps = video/x-h264, stream-format=(string)avc, alignment=(string)au,
> level=(string)4, profile=(string)main,
>
> codec_data=(buffer)014d4028ffe10014274d4028a9180f00cf600d4040406db0ad7bdf0101000428de09c8,
> width=(int)1920, height=(int)816, framerate=(fraction)24000/1001,
> pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709,
> interlace-mode=(string)progressive, chroma-format=(string)4:2:0,
> bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter1.GstPad:src:
> caps = video/x-h264, stream-format=(string)avc, alignment=(string)au,
> level=(string)4, profile=(string)main,
>
> codec_data=(buffer)014d4028ffe10014274d4028a9180f00cf600d4040406db0ad7bdf0101000428de09c8,
> width=(int)1920, height=(int)816, framerate=(fraction)24000/1001,
> pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709,
> interlace-mode=(string)progressive, chroma-format=(string)4:2:0,
> bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter1.GstPad:sink:
> caps = video/x-h264, stream-format=(string)avc, alignment=(string)au,
> level=(string)4, profile=(string)main,
>
> codec_data=(buffer)014d4028ffe10014274d4028a9180f00cf600d4040406db0ad7bdf0101000428de09c8,
> width=(int)1920, height=(int)816, framerate=(fraction)24000/1001,
> pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709,
> interlace-mode=(string)progressive, chroma-format=(string)4:2:0,
> bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstH264Parse:h264parse0.GstPad:sink:
> caps = video/x-h264, stream-format=(string)avc, alignment=(string)au,
> level=(string)4, profile=(string)main,
>
> codec_data=(buffer)014d4028ff010014274d4028a9180f00cf600d4040406db0ad7bdf0101000428de09c8,
> width=(int)1920, height=(int)816, framerate=(fraction)24000/1001,
> pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0.GstPad:src_1:
> caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true,
> stream-format=(string)raw, level=(string)2, base-profile=(string)lc,
> profile=(string)lc, codec_data=(buffer)1210, rate=(int)44100,
> channels=(int)2
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec_aac:avdec_aac0.GstPad:sink:
> caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true,
> stream-format=(string)raw, level=(string)2, base-profile=(string)lc,
> profile=(string)lc, codec_data=(buffer)1210, rate=(int)44100,
> channels=(int)2
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAacParse:aacparse0.GstPad:src:
> caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true,
> stream-format=(string)raw, level=(string)2, base-profile=(string)lc,
> profile=(string)lc, codec_data=(buffer)1210, rate=(int)44100,
> channels=(int)2
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAacParse:aacparse0.GstPad:sink:
> caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true,
> stream-format=(string)raw, level=(string)2, base-profile=(string)lc,
> profile=(string)lc, codec_data=(buffer)1210, rate=(int)44100,
> channels=(int)2
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-buffers = 5
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-time = 0
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-bytes = 2097152
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0.GstMultiQueuePad:sink_0:
> caps = video/x-h264, stream-format=(string)avc, alignment=(string)au,
> level=(string)4, profile=(string)main,
>
> codec_data=(buffer)014d4028ff010014274d4028a9180f00cf600d4040406db0ad7bdf0101000428de09c8,
> width=(int)1920, height=(int)816, framerate=(fraction)24000/1001,
> pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0.GstMultiQueuePad:sink_1:
> caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true,
> stream-format=(string)raw, level=(string)2, base-profile=(string)lc,
> profile=(string)lc, codec_data=(buffer)1210, rate=(int)44100,
> channels=(int)2
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-buffers = 5
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-time = 0
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-bytes = 2097152
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAacParse:aacparse0.GstPad:src:
> caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true,
> stream-format=(string)raw, level=(string)2, base-profile=(string)lc,
> profile=(string)lc, codec_data=(buffer)1210, rate=(int)44100,
> channels=(int)2
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec_aac:avdec_aac0.GstPad:sink:
> caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true,
> stream-format=(string)raw, level=(string)2, base-profile=(string)lc,
> profile=(string)lc, codec_data=(buffer)1210, rate=(int)44100,
> channels=(int)2
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-buffers = 5
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-time = 0
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-bytes = 2097152
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec_aac:avdec_aac0.GstPad:src:
> caps = audio/x-raw, format=(string)F32LE, layout=(string)non-interleaved,
> rate=(int)44100, channels=(int)2, channel-mask=(bitmask)0x0000000000000003
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-buffers = 5
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-time = 0
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-bytes = 2097152
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-buffers = 5
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-time = 0
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-bytes = 2097152
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-buffers = 5
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-time = 0
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-bytes = 2097152
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-buffers = 5
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-time = 0
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-bytes = 2097152
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec_h264:avdec_h264-0.GstPad:src:
> caps = video/x-raw, format=(string)I420, width=(int)1920, height=(int)816,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
> /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps =
> video/x-raw, format=(string)I420, width=(int)1920, height=(int)816,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
> /GstPipeline:pipeline0/GstVideoScale:videoscale0.GstPad:src: caps =
> video/x-raw, format=(string)I420, width=(int)1280, height=(int)720,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)45/34, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =
> video/x-raw, format=(string)I420, width=(int)1280, height=(int)720,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)45/34, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
>
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink.GstProxyPad:proxypad1:
> caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)45/34, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
>
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstD3DVideoSink:autovideosink0-actual-sink-d3dvideo.GstPad:sink:
> caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)45/34, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink:
> caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)45/34, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =
> video/x-raw, format=(string)I420, width=(int)1280, height=(int)720,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)45/34, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
> /GstPipeline:pipeline0/GstVideoScale:videoscale0.GstPad:sink: caps =
> video/x-raw, format=(string)I420, width=(int)1920, height=(int)816,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
> /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
> video/x-raw, format=(string)I420, width=(int)1920, height=(int)816,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad3:
> caps = video/x-raw, format=(string)I420, width=(int)1920, height=(int)816,
> interlace-mode=(string)progressive, multiview-mode=(string)mono,
>
> multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
> pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)dv,
> colorimetry=(string)bt709, framerate=(fraction)24000/1001
> Redistribute latency...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> ERROR: from element
>
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstD3DVideoSink:autovideosink0-actual-sink-d3dvideo:
> Output window was closed
> Additional debug info:
> ../sys/d3dvideosink/d3dhelpers.c(1910): d3d_render_buffer ():
>
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstD3DVideoSink:autovideosink0-actual-sink-d3dvideo
> Execution ended after 0:00:01.274101400
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> 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/20200620/fa9ca58c/attachment-0001.htm>
More information about the gstreamer-devel
mailing list