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