hi list

I have made a very simple app which, while publishing a webcam stream as a
live stream (basic client side actionscript), records the stream to a FLV
file on the server, like this :

= = = =
public void streamPublishStart(IBroadcastStream stream){
       try{
           stream.saveAs("archive_"+stream.getPublishedName(), true);
       }catch(Exception e){
           try{
               stream.saveAs("archive_"+stream.getPublishedName(), false);
           }catch(Exception e2){
           }
       }
   }
= = = =

As you see, I'm really not a Java guru, but it works:
I got my FLVs recording on the server, and I can perfectly stream them back
to a Flash client with Red5.

The problem is that I can't download them and play them in any other player:
- with mplayer : the files produce white noise and the framerate is way too
fast

- with VLC : the video plays ok, but there's no sound at all... VLC says :
 main error: no suitable decoder module for fourcc `undf'.
 VLC probably does not support this sound or video format.

- with totem : same as VLC : video ok but no sound at all

and if I try to convert them with ffmpeg, the file looks like this :
Input #0, flv, from 'archive_nicolas.flv':
 Duration: 01:55:18.3, bitrate: N/A
 Stream #0.0: Audio: 0x0006, 11025 Hz, mono
 Stream #0.1: Video: flv, yuv420p, 160x120, 1000.00 fps(r)

I also tried to somewhat "fix" them with flvtool2 but I get a big error
(which I only get with FLVs created by red5):
ERROR: EOFError
ERROR: /usr/local/lib/site_ruby/1.8/flv/amf_string_buffer.rb:37:in `read'
ERROR: /usr/local/lib/site_ruby/1.8/flv/amf_string_buffer.rb:243:in
`read__STRING'
ERROR: /usr/local/lib/site_ruby/1.8/flv/audio_tag.rb:56:in `read_header'
ERROR: /usr/local/lib/site_ruby/1.8/flv/audio_tag.rb:47:in
`after_initialize'
ERROR: /usr/local/lib/site_ruby/1.8/flv/tag.rb:56:in `initialize'
ERROR: /usr/local/lib/site_ruby/1.8/flv/stream.rb:447:in `new'
ERROR: /usr/local/lib/site_ruby/1.8/flv/stream.rb:447:in `read_tags'
ERROR: /usr/local/lib/site_ruby/1.8/flv/stream.rb:58:in `initialize'
ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:272:in `new'
ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:272:in `open_stream'
ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:238:in `process_files'
ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:225:in `each'
ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:225:in `process_files'
ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:44:in `execute!'
ERROR: /usr/local/lib/site_ruby/1.8/flvtool2.rb:168:in `execute!'
ERROR: /usr/local/lib/site_ruby/1.8/flvtool2.rb:228
ERROR: /usr/bin/flvtool2:2:in `require'
ERROR: /usr/bin/flvtool2:2

I really don't know what I can do next to get some "clean" FLV files which I
could convert to a "standard" format for editing...

Can someone please help me with that ?
And besides, isn't red5 supposed to produce "standard" FLV files ?

+++++++
clément
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to