stream.record() produces strange .flv

View: New views
3 Messages — Rating Filter:   Alert me  

stream.record() produces strange .flv

by Hynek Hanke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

I have multiple clients joining a custom server-side audiochat
application. I'd like to record all incomming streams, so I perform
stream.record() on streamPublishStart and  stream.stop()
on streamBroadcastClose.

I however get a .flv whose codec ffmpeg doesn't understand and
the Red5 publisher demo application as well as mplayer say
it contains audiocodecid:4. Does it make any sense?

libavformat file format detected.
[flv @ 0xbf0c90]Unsupported audio codec (4)
[flv @ 0xbf0c90]Unsupported video codec (ffffffff)
[flv @ 0xbf0c90]skipping flv packet: type 0, size 113664, flags 0
[flv @ 0xbf0c90]skipping flv packet: type 221, size 13995989, flags 0
[flv @ 0xbf0c90]Could not find codec parameters (Video: 0xffffffff)
[flv @ 0xbf0c90]Could not find codec parameters (Audio: 0x0004)
LAVF_header: av_find_stream_info() failed

Do I need to do something more? Explicitly stop recording, explicitly
include
metadata etc?

I find the documentation very incomplete, so I'd be thankful for
any advice.

With regards,
Hynek


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: stream.record() produces strange .flv

by Michael Hollenbeck :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

audiocodecid 4 is NellyMoser 16khz. You may have to recompile ffmpeg with NellyMoser support. Because there isn't any video, you have to pass the '-vn' flag to ffmpeg, otherwise it will interpret the lack of video in a video format as the use of an invalid codec.

On Mon, Oct 26, 2009 at 7:52 AM, Hynek Hanke <hanke@...> wrote:

Hello,

I have multiple clients joining a custom server-side audiochat
application. I'd like to record all incomming streams, so I perform
stream.record() on streamPublishStart and  stream.stop()
on streamBroadcastClose.

I however get a .flv whose codec ffmpeg doesn't understand and
the Red5 publisher demo application as well as mplayer say
it contains audiocodecid:4. Does it make any sense?

libavformat file format detected.
[flv @ 0xbf0c90]Unsupported audio codec (4)
[flv @ 0xbf0c90]Unsupported video codec (ffffffff)
[flv @ 0xbf0c90]skipping flv packet: type 0, size 113664, flags 0
[flv @ 0xbf0c90]skipping flv packet: type 221, size 13995989, flags 0
[flv @ 0xbf0c90]Could not find codec parameters (Video: 0xffffffff)
[flv @ 0xbf0c90]Could not find codec parameters (Audio: 0x0004)
LAVF_header: av_find_stream_info() failed

Do I need to do something more? Explicitly stop recording, explicitly include
metadata etc?

I find the documentation very incomplete, so I'd be thankful for
any advice.

With regards,
Hynek


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: stream.record() produces strange .flv

by Hynek Hanke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael Hollenbeck napsal(a):
> audiocodecid 4 is NellyMoser 16khz. You may have to recompile ffmpeg
> with NellyMoser support. Because there isn't any video, you have to
> pass the '-vn' flag to ffmpeg, otherwise it will interpret the lack of
> video in a video format as the use of an invalid codec.

#ffmpeg -formats | grep -i moser
[...]
 DEA    nellymoser      Nellymoser Asao


# ffmpeg -vn -i 1256568523953.flv

FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c)
2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-swscale
--enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6
--prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook
--enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Apr 10 2009 23:20:33, gcc: 4.3.3
[flv @ 0x243da60]Unsupported audio codec (4)
[flv @ 0x243da60]skipping flv packet: type 0, size 113664, flags 0
[flv @ 0x243da60]Could not find codec parameters (Video: 0x0000)
[flv @ 0x243da60]Could not find codec parameters (Audio: 0x0004, 0
channels, s16)
1256568523953.flv: could not find codec parameters


I suspect the produced .flv actually doesn't contain any header at all?

With regards,
Hynek Hanke


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org