Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using web camera and output to Gtk window #4

Open
Novator opened this issue Aug 30, 2013 · 2 comments
Open

Using web camera and output to Gtk window #4

Novator opened this issue Aug 30, 2013 · 2 comments

Comments

@Novator
Copy link

Novator commented Aug 30, 2013

Good day. I'm a developer of P2P social network Pandora.
I've used gstreamer before, but it has a lot of bugs after migration to version 1.0.
Well, I've decided to use ffmpeg now.

Questions came, how can I do:

  1. capture video stream from web cam
  2. encode it to h264
  3. take raw data from stream (i will send it via TCP)
  4. put raw data to stream
  5. decode it from h264
  6. show video in Gtk window

Does "ffmpeg-ruby" can do it? Does "ffmpeg-ruby" work in Windows?

p.s. I know terminal commands:
ffmpeg -f video4linux2 -r 25 -s 640x480 -i /dev/video0 out.avi
ffplay out.avi
but don't know how to do it with your bindings.

@gwik
Copy link
Owner

gwik commented Aug 31, 2013

Hello,

ffmpeg ruby does not support encoding, it's an old project and it only supports extracting frames.

For what you want to do I would wrap the command-line possibly communicating with some unix pipes. I don't know how you would do this on windows though.

This other project https://github.com/gwik/ffmpeg-rb may be able to transcode but it will probably need some more work / fixing. It's an old project too, I don't even know if it still work with update to date ruby / ffmpeg, probably not.

Good luck

Antonin

@Novator
Copy link
Author

Novator commented Sep 1, 2013

Thanks for your response, Antonin.

I hoped there is a completed crossplatform solution with ffmpeg.
Fixing the C code of bindings is very difficult for me.
It seems I will be forced to wait a bug fixing in gstreamer..

Have a nice day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants