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 153684 - [osxvideosrc] Mac users needs an osxvideosrc
[osxvideosrc] Mac users needs an osxvideosrc
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal enhancement
: 0.10.12
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-09-24 22:56 UTC by Don Smith
Modified: 2012-05-09 23:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
osxvideosrc.patch (17.15 KB, patch)
2007-06-08 20:20 UTC, Ali Sabil
none Details | Review
Updated patch (19.70 KB, patch)
2007-06-20 07:44 UTC, Ali Sabil
committed Details | Review
complete plugin (45.39 KB, patch)
2009-01-06 19:43 UTC, Justin Karneges
committed Details | Review
osxvideosrc not working with ximagesink (3.78 KB, application/octet-stream)
2009-03-15 10:07 UTC, Miano Njoka
  Details
Ali's osxvideosrc patch corrected for gst-plugins-good-0.10.14 (20.17 KB, patch)
2009-04-03 20:29 UTC, Andres Colubri
none Details | Review
Justin's patches for osxvideosrc corrected to work with gst-plugins-good-0.10.14 (45.54 KB, patch)
2009-04-03 20:30 UTC, Andres Colubri
none Details | Review
Updated stand-alone gstosxvideosrc source package (347.40 KB, application/zip)
2009-04-03 20:40 UTC, Andres Colubri
  Details

Description Don Smith 2004-09-24 22:56:10 UTC
A src/sink set of plugins for macintosh video would enable all kinds of gnomeish software to be ported 
much more easily. Perhaps quicktime is the answer for the sink, as I'm pretty sure it is for the src. This 
could also potentially allow for a src compatible video implementation for windows as windows has 
quicktime as well.
Comment 1 Zaheer Abbas Merali 2004-09-25 13:55:44 UTC
There is already an osxvideosink, however no osxvideosrc has been done yet.

Feel free to help in that :)
Comment 2 Andy Wingo 2005-07-15 11:12:26 UTC
Confirming. Would be nice to have this but someone needs to hack it.
Comment 4 Ali Sabil 2007-06-08 20:19:14 UTC
I reworked a bit oleavr's videosrc, fixed the 100% cpu usage, reverted to using SequenceGrabber, for now the size, colorspace and framerate are still hardcoded, and the device selection is not implemented yet.

Please find attached a patch to apply to the current osxvideo plugin, that adds the osxvideosrc.
Comment 5 Ali Sabil 2007-06-08 20:20:00 UTC
Created attachment 89623 [details] [review]
osxvideosrc.patch
Comment 6 Ali Sabil 2007-06-10 13:13:28 UTC
Would it be possible to get it included in -bad before the Freeze ?
Comment 7 Ali Sabil 2007-06-20 07:44:43 UTC
Created attachment 90324 [details] [review]
Updated patch
Comment 8 Justin Karneges 2009-01-06 19:43:19 UTC
Created attachment 125877 [details] [review]
complete plugin

here's a patch that must be applied after Ali's, to finish out the plugin.  it is cleaned up, uses the sequence grabber properly, and supports dynamic resolution, device selection, and property probing.

the framerate is hard-coded to 30fps.  we should probably do something about this eventually, but i don't consider it a blocker.
Comment 9 Andy Wingo 2009-01-15 12:37:06 UTC
I tried code from Ali with Justin's patch, and it works for me on 10.4.
Comment 10 David Schleef 2009-03-10 07:09:35 UTC
Why isn't this in -bad?
Comment 11 Jan Schmidt 2009-03-10 16:19:38 UTC
Mostly because noone's done it? :)

Seems like it should go in -bad and then get a bit more love (to make the framerate negotiable)
Comment 12 Justin Karneges 2009-03-10 20:43:44 UTC
The patch is against osxvideo, which is in -good.  Maybe it would make sense to split the src/sink into separate plugins, so that sink can stay in -good and src can go in -bad (though, it's arguable if the sink should even be in -good...).
Comment 13 Miano Njoka 2009-03-13 15:11:48 UTC
it works on Mac OS X 10.5.6 however OS X marks gst-launch as unresponsive for some reason.

gst-launch osxvideosrc ! queue ! osxvideosink
Comment 14 Edward Hervey 2009-03-13 15:21:42 UTC
Miano, could you attach a compressed debug log ?

$ GST_DEBUG=3,*ERR*:5,osx*:5 gst-launch osxvideosrc ! queue ! osxvideosink > log 2>&1
$ bzip2 log

Comment 15 Justin Karneges 2009-03-13 18:50:55 UTC
gst-launch being unresponsive is a problem with osxvideosink, which I didn't touch.  You can confirm the same spinning-beachball behavior with videotestsrc ! queue ! osxvideosink.

Talk to Michael Smith about any osxvideosink issues, as he is maintaining it lately.
Comment 16 Miano Njoka 2009-03-15 10:05:07 UTC
I reproduced the spinning-beachball behaviour with videotestsrc ! queue ! osxvideosink as well so the problem may not be in osxvideosrc. 

However I tried osxvideosrc ! ffmpegcolorspace ! ximagesink, got an data flow error. Log attached.
Comment 17 Miano Njoka 2009-03-15 10:07:47 UTC
Created attachment 130690 [details]
osxvideosrc not working with ximagesink
Comment 18 Andres Colubri 2009-04-03 20:29:46 UTC
Created attachment 132035 [details] [review]
Ali's osxvideosrc patch corrected for gst-plugins-good-0.10.14
Comment 19 Andres Colubri 2009-04-03 20:30:28 UTC
Created attachment 132037 [details] [review]
Justin's patches for osxvideosrc corrected to work with gst-plugins-good-0.10.14
Comment 20 Andres Colubri 2009-04-03 20:34:18 UTC
I just uploaded updated versions of Ali and Justin's patches for osxvideo, so they can be applied on the latest gst-plugins-good module (0.10.14 at the time of this writing). However, after recompiling and installing (using macports) gst-plugins-good, osxvideosrc is not listed by gst-inspect. What other files should be modified in the gst-plugins-good-0.10.14 source package in order to have osxvideosrc enabled?
Comment 21 Andres Colubri 2009-04-03 20:36:42 UTC
And I also created a standalone source package of osxvideosrc, including Ali and Justin's patches. Attached below.
Comment 22 Andres Colubri 2009-04-03 20:40:50 UTC
Created attachment 132038 [details]
Updated stand-alone gstosxvideosrc source package
Comment 23 Andy Wingo 2009-04-20 14:41:55 UTC
I went ahead and committed ali + justin's patch to bad. It compiles on 10.5, but I haven't tested it -- please open a new bug if things are not working for you.