After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665661 - Decklinksink is unable to play video from file sources
Decklinksink is unable to play video from file sources
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
0.10.22
Other Linux
: Normal major
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-06 10:39 UTC by Joao Paulo Pizani Flor
Modified: 2014-11-24 13:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Output of running the failed gst-launch command with options -v and -m (11.32 KB, text/x-log)
2011-12-06 10:39 UTC, Joao Paulo Pizani Flor
Details

Description Joao Paulo Pizani Flor 2011-12-06 10:39:02 UTC
Created attachment 202904 [details]
Output of running the failed gst-launch command with options -v and -m

Hello and good morning. I'm trying to use the Decklink Extreme 3D capture/playback card from Black Magic Design together with GStreamer, but not very succesfully...

My goal now is to play some simple video using gst-launch-0.10 and choosing decklinksink as the sink element, so I'm using the following command:

"  gst-laugst-launch-0.10 playbin uri=file:///home/joaopizani/test.mp4 video-sink=decklinksink  "

And I expected the video to show up through the card's output. However, gst-launch quits with the following output:

"
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPlayBin:playbin0: Internal GStreamer error: pad problem.  Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstplaybin.c(928): gen_video_element (): /GstPlayBin:playbin0:
Failed to configure the video sink.
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
"

I have already tried using the videotestsrc element instead of playbin and it worked just fine:  " gst-launch-0.10 videotestsrc ! decklinksink  "

So, any of you have any idea what might be going wrong here? I have no idea of whether this is a GStreamer issue or a packaging/driver issue (I'm using Ubuntu 11.10 and the official drivers from Black Magic), so sorry if this bug doesn't belong here.

Just in case, I am attaching the output of the failed gst-launch command with the -v option enabled...
Comment 1 Vincent Penquerc'h 2012-01-17 13:31:17 UTC
Could you try with those changes:
- playbin2 instead of playbin
- video-sink="interlace ! decklinksink"
Comment 2 Joao Paulo Pizani Flor 2012-01-17 13:52:42 UTC
Good afternoon Vincent,

I tried with both of your changes and it still didn't work. Here are the exact command-lines I tried:

* gst-launch-0.10 playbin2 uri=file:///home/joaopizani/4s/test/simpsons.mp4 video-sink="interlace ! decklinksink" 

* gst-launch-0.10 playbin2 uri=file:///home/joaopizani/4s/test/simpsons.mp4 video-sink="interlace ! videorate ! decklinksink"

* gst-launch-0.10 playbin2 uri=file:///home/joaopizani/4s/test/simpsons.mp4 video-sink="ffmpegcolorspace ! interlace ! videorate ! decklinksink"

* gst-launch-0.10 playbin2 uri=file:///home/joaopizani/4s/test/simpsons.mp4 video-sink="videoscale ! ffmpegcolorspace ! interlace ! videorate ! decklinksink"


NEITHER of them worked. On the other hand, the following played fine:

* gst-launch-0.10 filesrc location=simpsons.mp4 ! decodebin2 ! videoscale ! ffmpegcolorspace ! interlace ! videorate ! decklinksink

AS I already mentioned in another bug report...
Comment 3 Vincent Penquerc'h 2012-01-17 15:37:32 UTC
Thanks.
Something for someone who has the hardware to test/debug with, then.
Comment 4 Joao Paulo Pizani Flor 2012-01-17 16:20:12 UTC
And the required knowledge of GStreamer, I might add.
Comment 5 Tim-Philipp Müller 2013-03-16 18:27:15 UTC
Could you attach a full

 $ GST_DEBUG=*:6 gst-launch-0.10 .... 2>dbg.log

debug log please? Compress with xz -9 dbg.log before attaching it here.

If you could test with gstreamer git, that would be even better.
Comment 6 Tim-Philipp Müller 2014-11-24 13:51:47 UTC
Closing since no additional information has been provided.

Some general pointers:

 - decklinksink might require you to set the output mode explicitly

 - you might need to put a videorate in front of it (and interlace if the output mode is interlaced).

Please re-open or file a new bug if you still have problems with recent 1.x versions or git master, thanks!