News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
FLTK and ffmpeg
Author Message
dvw86
Junior Member
**


Posts: 39
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #1
RE: FLTK and ffmpeg

This is all fun and new to me, so my first test was to try it without murgaLua and this is what I came up with to display my webcam in a xine window. The next step would be to embed the xine display into a fltk window.

Code:
#!/bin/sh
rm -f /tmp/stream
mkfifo /tmp/stream
xine -G 352x288 -B --no-splash fifo:///tmp/stream &
ffmpeg -vd /dev/video -f video4linux -r 25 -s 352x288 -sameq -f mpeg -y /tmp/stream


This works most of the time but it is not very reliable. I often get an empty or scrambled xine window that never displays the stream. When it does work there is a large (about 5 or 10 second) delay between what is captured and what is displayed. It is an encouraging start though.

04-08-2008 02:33 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
FLTK and ffmpeg - dvw86 - 04-06-2008, 04:25 AM
RE: FLTK and ffmpeg - mikshaw - 04-06-2008, 11:21 AM
RE: FLTK and ffmpeg - Juergen - 04-07-2008, 01:06 AM
RE: FLTK and ffmpeg - dvw86 - 04-07-2008, 02:31 AM
RE: FLTK and ffmpeg - Juergen - 04-07-2008, 03:13 AM
RE: FLTK and ffmpeg - mikshaw - 04-08-2008, 12:20 AM
RE: FLTK and ffmpeg - dvw86 - 04-08-2008 02:33 AM
RE: FLTK and ffmpeg - Juergen - 04-08-2008, 03:27 AM
RE: FLTK and ffmpeg - Juergen - 04-08-2008, 03:44 AM
RE: FLTK and ffmpeg - mikshaw - 04-08-2008, 04:38 AM
RE: FLTK and ffmpeg - dvw86 - 04-08-2008, 09:30 AM
RE: FLTK and ffmpeg - Juergen - 04-08-2008, 11:01 PM
RE: FLTK and ffmpeg - Juergen - 04-08-2008, 11:18 PM
RE: FLTK and ffmpeg - JohnMurga - 04-09-2008, 07:25 AM
RE: FLTK and ffmpeg - JohnMurga - 04-10-2008, 06:53 AM
RE: FLTK and ffmpeg - Juergen - 04-10-2008, 07:39 AM
RE: FLTK and ffmpeg - JohnMurga - 04-12-2008, 05:01 AM
RE: FLTK and ffmpeg - JohnMurga - 04-10-2008, 10:48 PM
RE: FLTK and ffmpeg - dvw86 - 04-11-2008, 04:32 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: