video speed doubled when apply deinterlace & interlace to already interlaced video (decklink)

Federico Allegretti allegfede at gmail.com
Tue Jun 11 14:47:58 UTC 2019


not audio lagging, indeed is the reverse.
I got audio ok. perfect pitch, no lagging. But is the video that seems
quite be fast forwarded.

Test this pipeline:
gst-launch-1.0 uridecodebin
uri=file:///home/v1p3r/Video/temp/1080_stereo_59.940_interlaced.mp4
name=decode decode. ! deinterlace ! autovideoconvert ! interlace
field-pattern=2:2 top-field-first=true allow-rff=true ! videoconvert !
video/x-raw,format=UYVY ! videoscale ! video/x-raw,width=720,height=576 !
videorate ! video/x-raw,framerate=25/1 ! autovideosink  decode. !
audioconvert !  audio/x-raw, format=S32LE, channels=2 ! audioresample !
audio/x-raw, rate=48000 ! autoaudiosink

on this sample clip:
https://www.hdpvrcapture.com/hdpvrcapture/samples/20090227_235906-H.264.m2ts.mp4

On Mon, 10 Jun 2019 at 13:59, Federico Allegretti <allegfede at gmail.com>
wrote:

> Thanks for the kind answer.
>
> I try:
>
> gst-launch-1.0 uridecodebin
> uri=file:///home/v1p3r/Video/temp/1080_stereo_59.940_interlaced.mp4
> name=decode decode. ! deinterlace ! autovideoconvert ! interlace
> *field-pattern=2* top-field-first=true allow-rff=true ! videoconvert !
> video/x-raw,format=UYVY ! videoscale ! video/x-raw,width=720,height=576 !
> videorate ! video/x-raw,framerate=25/1 ! autovideosink  decode. !
> audioconvert !  audio/x-raw, format=S32LE, channels=2 ! audioresample !
> audio/x-raw, rate=48000 ! autoaudiosink
>
>  gst-launch-1.0 uridecodebin
> uri=file:///home/v1p3r/Video/temp/1080_stereo_59.940_interlaced.mp4
> name=decode decode. ! deinterlace ! autovideoconvert ! interlace*
> field-pattern=1* top-field-first=true allow-rff=true ! videoconvert !
> video/x-raw,format=UYVY ! videoscale ! video/x-raw,width=720,height=576 !
> videorate ! video/x-raw,framerate=25/1 ! autovideosink  decode. !
> audioconvert !  audio/x-raw, format=S32LE, channels=2 ! audioresample !
> audio/x-raw, rate=48000 ! autoaudiosink
>
>  gst-launch-1.0 uridecodebin
> uri=file:///home/v1p3r/Video/temp/1080_stereo_59.940_interlaced.mp4
> name=decode decode. ! *deinterlace fields=2* ! autovideoconvert !
> interlace field-pattern=2:2 top-field-first=true allow-rff=true !
> videoconvert ! video/x-raw,format=UYVY ! videoscale !
> video/x-raw,width=720,height=576 ! videorate ! video/x-raw,framerate=25/1 !
> autovideosink  decode. ! audioconvert !  audio/x-raw, format=S32LE,
> channels=2 ! audioresample ! audio/x-raw, rate=48000 ! autoaudiosink
>
> gst-launch-1.0 uridecodebin
> uri=file:///home/v1p3r/Video/temp/1080_stereo_59.940_interlaced.mp4
> name=decode decode. ! *deinterlace fields=1* ! autovideoconvert !
> interlace field-pattern=2:2 top-field-first=true allow-rff=true !
> videoconvert ! video/x-raw,format=UYVY ! videoscale !
> video/x-raw,width=720,height=576 ! videorate ! video/x-raw,framerate=25/1 !
> autovideosink  decode. ! audioconvert !  audio/x-raw, format=S32LE,
> channels=2 ! audioresample ! audio/x-raw, rate=48000 ! autoaudiosink
>
> always video speed is double than audio ....
>
> instread:
> gst-launch-1.0 uridecodebin
> uri=file:///home/v1p3r/Video/temp/1080_stereo_59.940_interlaced.mp4
> name=decode decode. ! deinterlace ! autovideoconvert ! interlace
> field-pattern=2:2 top-field-first=true allow-rff=true* fields=1*!
> videoconvert ! video/x-raw,format=UYVY ! videoscale !
> video/x-raw,width=720,height=576 ! videorate ! video/x-raw,framerate=25/1 !
> autovideosink  decode. ! audioconvert !  audio/x-raw, format=S32LE,
> channels=2 ! audioresample ! audio/x-raw, rate=48000 ! autoaudiosink
>
> and also fileds=2 .. results in a pipeline error ....
>
> where i have to put the "fields" switch?
>
> --
> Sourceforge: https://sourceforge.net/u/allegfede/
>
> YouTube Channel: https://www.youtube.com/c/v1p3rslab
>
> VIMEO HD videos: http://www.vimeo.com/user1912745/videos
>


-- 
Sourceforge: https://sourceforge.net/u/allegfede/

YouTube Channel: https://www.youtube.com/c/v1p3rslab

VIMEO HD videos: http://www.vimeo.com/user1912745/videos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190611/eafe4fbf/attachment.html>


More information about the gstreamer-devel mailing list