12 messages in ru.sysoev.nginxRe: flash streaming
FromSent OnAttachments
Aleksandar LazicOct 8, 2006 4:42 pm 
Bob IppolitoOct 8, 2006 5:00 pm 
Jonathan VanascoOct 8, 2006 5:53 pm 
Bob IppolitoOct 8, 2006 6:01 pm 
Jonathan VanascoOct 8, 2006 6:30 pm 
Bob IppolitoOct 8, 2006 6:52 pm 
Aleksandar LazicOct 8, 2006 7:38 pm 
Bob IppolitoOct 8, 2006 8:12 pm 
Igor SysoevOct 9, 2006 3:35 am 
Aleksandar LazicOct 9, 2006 5:47 am 
Igor SysoevOct 9, 2006 6:19 am 
Aleksandar LazicOct 9, 2006 7:31 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: flash streamingActions...
From:Bob Ippolito (bob-@public.gmane.org)
Date:Oct 8, 2006 6:52:33 pm
List:ru.sysoev.nginx

On 10/8/06, Jonathan Vanasco <nginx-GYD5gbT+W3@public.gmane.org> wrote:

On Oct 8, 2006, at 9:01 PM, Bob Ippolito wrote:

No, that's not it. LightHTTPD does not speak the RTMP protocol, it only knows how to seek to a given position in a FLV file given a timecode. People have been doing this for a while, even in PHP.

wow, thats a dirty hack.

It's not that bad. Basically there's a metadata tag at the beginning that maps timecodes to offsets in the file. It's on purpose that you can do this, the FLV file format and the format of streamed FLV are the same (except FLV files have a signature, and FLV streams are chunked in some protocol - probably RTMP).

Unfortunately this metadata tag isn't guaranteed to be there and isn't put there by all of the available tools, hence all the crap about using flvtool as a post-process in most tutorials.

IIRC there's only one open source RTMP server, Red5, but that's only really worthwhile if you're trying to do crap with webcams or microphones, or connect users together (stuff that you would normally use XMLSocket for).

i thought there were 2 others, but i can't remember the names. red5 was the most mature

Proxying would work just fine though. One feature that might facilitate good support for this would be if X-Accel-Redirect accepted an offset... so you could calculate the offset with some scripting language and serve the rest of the file with nginx.

good idea.

Can't it play mp3 files as-is these days?

last i touched it , one could play an mp3, but not stream/seek. the only way to have a 'scrubber' bar was with flv

i was using it for online music promotion, so having it in flv was useful as a drm measure. there just aren't any decent media players that support flv, and though its easy to convert to mp3 you're really just transcoding-- so you can use a marginally better sound quality on flv than mp3 and not have to worry about people ripping the cd contents from an online album streamer.

it wasn't drm in the sense of 'this is uncrackable' , but it was drm in the sense of 'its not worth your time converting this content' .

Actually most audio in FLV files is MP3... so with a relatively simple tool you just create mp3 files from the FLV by just extracting the MP3 frames. The other supported audio codecs are either crap (ADPCM) or proprietary (Nelly Moser), so they're not as common.

-bob