video speed doubled when apply deinterlace & interlace to already interlaced video
Federico Allegretti
allegfede at gmail.com
Thu Jun 20 11:27:25 UTC 2019
hello.
I need to play back video trough black magick boards and i noticed that if
i handle some kind of video i got problems.
if you use this clip:
https://www.hdpvrcapture.com/hdpvrcapture/samples/20090227_235906-H.264.m2ts.mp4
and try to run 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 ! decklinkvideosink mode=3 decode. !
audioconvert ! audio/x-raw, format=S32LE, channels=2 ! audioresample !
audio/x-raw, rate=48000 ! decklinkaudiosink
you will notice that video was reproduced quicker than audio.
the pipeline, modded like that:
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
reproduce the problem also in a "normal" enviroment (desktop pc).
Seems the "problem" is the binding of DE-Interlace AND interlace fiters,
because if i run progressive clips, removing the de-interlace filter,:
gst-launch-1.0 uridecodebin
uri=file:///home/v1p3r/Video/temp/1080_stereo_29.97_variable_progressive.mp4
name=decode decode. ! 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 !
decklinkvideosink mode=3 decode. ! audioconvert ! audio/x-raw,
format=S32LE, channels=2 ! audioresample ! audio/x-raw, rate=48000 !
decklinkaudiosink
everything seems ok
PS: i try to playback the INTERLACED video without the DEINTERLACE and
INTERLACE filters:
gst-launch-1.0 uridecodebin
uri=file:///home/v1p3r/Video/temp/1080_stereo_59.940_interlaced.mp4
name=decode decode. ! videoscale ! video/x-raw,width=720,height=576 !
videorate ! video/x-raw,framerate=25/1 ! decklinkvideosink mode=3 decode. !
audioconvert ! audio/x-raw, format=S32LE, channels=2 ! audioresample !
audio/x-raw, rate=48000 ! decklinkaudiosink
I suppose, that i need interlaced video to consume on decklink so i'll pass
just that interlace file, but got e pipeline error:
Impostazione della pipeline a PAUSED ...
La pipeline รจ in PREROLLING ...
Ridistribuzione latenza...
Ridistribuzione latenza...
ERRORE: dall'elemento
/GstPipeline:pipeline0/GstURIDecodeBin:decode/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:
Internal data stream error.
Informazioni di debug aggiuntive:
qtdemux.c(6073): gst_qtdemux_loop ():
/GstPipeline:pipeline0/GstURIDecodeBin:decode/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:
streaming stopped, reason not-negotiated (-4)
ERRORE: la pipeline non vuole fare il preroll.
Impostazione della pipeline a NULL ...
Esecuzione di free sulla pipeline...
Any hint?
--
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/20190620/a1f3d478/attachment-0001.html>
More information about the gstreamer-devel
mailing list