video speed doubled when apply deinterlace & interlace to already interlaced video

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

video speed doubled when apply deinterlace & interlace to already interlaced video

Federico Allegretti
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:

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?


--

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel