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
Juergen
Member
***


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

It doesn't make sense to en-/decode or grab video with Lua or any other similar language (perl,python,php,....)
These are pretty low level tasks which need a lot OS, hardware and userspace interaction. Therefore it would only make sense to write a GUI in that languages and use the available GUI bindings and for the video IO, decode and encode stuff use a low level C/C++ library.
Even if a high level library is used for video/audio en-/decoding, writing a player includes highly OS specific code which has to do a lot more then most people think (the video and audio stream has to be synced at all times, which isn't a trivial task ;-) Also it should still perform well. Therefore it is quite a hard task to program a good video player.

On Linux there are quite a few alternatives. There is mplayer, VLC, Xine and even ffmpeg comes with a rudimentary player (ffplay). Mplayer, VLC and Xine can also grab video from a V4L source. Also it is possible to script all three of them and let them render into a fltk window. So it is possible to use them as a backend to output video into a fltk window of a murgaLua script.

Btw.: One reason I wanted the fl_xid() function included in murgaLua was to embed mplayer in a script. Unfortunately to have that reliably working, there are still a few functions needed. The problem is that the std. Lua IO functions can't be used to reliably script mplayer over pipes, because read blocks, ... But VLC and Xine should work, because they can be scripted over a socket and with luasocket and copas it should be no problem to get that going.

Juergen

04-07-2008 01:06 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: