mod_flvx

Trying to stream Flash Video?

Tired of using PHP?

I wrote mod_flvx to do all of the streaming stuff via an apache module.

To configure, add AddHandler flv-stream .flv to your httpd config.

thats all.

EDIT: Wiki page explaining all of the encoding and flash player needs for using mod_flvx.

8 Responses to “mod_flvx”

  1. padonker@technoware.nl Says:

    Looks nice, but have absolutely NO idea how to make a mod from the source you so generously published ;) Can you put a pre-cooked mod online as well? Pls respond by email
    tnx
    Patrick

  2. jan@kneschke.de Says:

    Looks like the second module that moves from lighty into apache world. first mod_sendfile and now this wonderful module. How about a port of mod_secdownload ? :)

  3. darix Says:

    http://www.synd.info/downloads/releases/

    from my spec file:
    Summary: Token-based authentication similar to mod_secdownload in LIGHTTPD.
    description:
    This module uses token based authentication to secure downloads and prevent
    deep-linking.

    Have your PHP script or servlet generate the to authenticate the
    download. Apache can then treat the download request like a normal file
    transfer without having to pipe the file through a script in order to
    add authentication.

    Authors:
    ———
    Mikael Johansson (http://www.synd.info)

  4. dhani Says:

    it doesn’t work.

    I’ve compile and add the directive to the httpd.conf.

    but when I open the flv url on the browser, it ask to download instead.

    Apache/2.2.6

  5. nesq Says:

    Syntax error on line 277 of /usr/local/etc/apache2/httpd.conf:
    Cannot load /usr/local/libexec/apache2/mod_flvx.so into server: /usr/local/libexec/apache2/mod_flvx.so: Undefined symbol “apr_brigade_insert_file”

  6. James Says:

    I’m getting the same error as nesq:
    [root@test1 conf]# /opt/apache2/bin/apachectl -t
    Syntax error on line 227 of /opt/apache2/conf/httpd.conf:
    Cannot load /opt/apache2/modules/mod_flvx.so into server: /opt/apache2/modules/mod_flvx.so: undefined symbol: apr_brigade_insert_file

    Running Apache/2.0.54

    Anyone got any ideas how to fix this?

  7. chip Says:

    If you use httpd 2.2, this isn’t a problem.

    Using httpd 2.0.54, you would have to patch your apr-util to get the new apr_brigade_insert_file.

  8. virtualscribe Says:

    Paul,

    I think it’s so cool that you’re using apache server to do seeking instead of putting the load on php instances.

    But I can’t follow how to seek to a spot in the flash media file.

    In php streaming using xmoov.php to scrub to a different spot the way to get stuff done is call the php document, then use GET parameters to tack on the filename, position, and other builtin functions.

    ns.play (_phpURL + “?file=” + _vidName + “&position=” + positions[i] + “&bw=” + bandwidth);

    Here in your method you call the file using the following parameters visible in html:

    http://HOST/FLVScrubber2/FLVScrubber2.swf?file=http://HOST/FILE.flv&bufferTime=3&startAt=0&autoStart=false

    So if I wanted to have to seek using the apache server mod, should I have my fla document use the GET method to the server and say something like:

    ns.play(”http://FLVScrubber2.swf?file=”+myFile.flv+ “&startAt=” positionOfDesiredSeek[i]);

    So is the startAt function finding the nearest file position to seek using your apache mod? Or do we need to write something more in our actionscript to tell apache the closest filepostion we would like to seek? Because the issue for a while with php seeking was that unless you had an exact file position, flash took some time before it got to your spot. So someone built in some slick functions in php to do their file seeking.

    I’m trying to understand what your mod is doing so that I can build some cool functionality on the scrubber bar, on the draggable triangle, and create some movieclips which act as markers during longer play of media.

    Thanks

Leave a Reply