NetStream.Play.Failed issue

1,053 views
Skip to first unread message

Alfonso

unread,
Mar 29, 2012, 11:32:39 AM3/29/12
to red5
Hi everybody,
since the release of flash player 11.2 I'm having the following issue
in Red5.

I publish a netstream in record mode. This netstream is audio-only.
Later, when I try to play the recorded .flv I always get the same
message status:

NetStream.Play.Failed.

This happens even with the publisher demo installed with Red5.

I repeat the same process with Flash Media Server, and everything is
OK.

This only happens with the combination Red5-Flash Player 11.2-play a
recorded audio-only flv

Any ideas of what could be happening?

Octavian Naicu

unread,
Apr 6, 2012, 12:31:30 PM4/6/12
to red5in...@googlegroups.com
I have the exact same issue, could not find a fix yet.
 


Octavian Naicu,
Founder & CEO @ AVChat Software
http://avchathq.com
http://twitter.com/avchathq

Mondain

unread,
Apr 6, 2012, 1:31:23 PM4/6/12
to red5in...@googlegroups.com
My guess is that they changed something in the handshake; I have not tested to verify this as of yet.

Paul

Iperurena

unread,
Jun 4, 2012, 2:29:17 PM6/4/12
to red5in...@googlegroups.com
In which revision did the playback of audio-only FLV files get fixed? This was supposed to be a Flash Player 11.2.x issue, but it is fixed in the latest red5 revisions. I would like to see what changes you made to the code to make it work.

Thanks.

Yann Jamar

unread,
Jun 4, 2012, 3:41:51 PM6/4/12
to red5in...@googlegroups.com
To solve the bug in previous version you have to set the netstream buffer to a minimal value ( 0.1 second) it's a flash player bug...

Iperurena

unread,
Jun 5, 2012, 4:22:19 AM6/5/12
to red5in...@googlegroups.com
Hi, I tried your workaround but it didn't work. Thanks anyway.

I still would like to know which revision fixed this issue, I have to work with an older revision and I would like to patch it myself if possible.

Yann Jamar

unread,
Jun 5, 2012, 1:44:40 PM6/5/12
to red5in...@googlegroups.com
Recently flash player 11.2 got a bug with audio look here :  https://bugbase.adobe.com/index.cfm?event=bug&id=3154302 
I fixed the probleme with  netStream.bufferTime = 0.001;
Regards. 

Iperurena

unread,
Jun 6, 2012, 5:23:54 AM6/6/12
to red5in...@googlegroups.com
Hi Yann, thanks for your answers.

Setting the bufferTime didn't work for me, I guess we are talking about different bugs. But I think I've found what was causing my problem. 

Red5 versions prior to r4213 put a videocodecid=-1 metadata in the audio-only files you recorded from Flash using only your microphone (apart from a fake non-valid video Stream). Flash Player 11.2.x versions determine files with such metadata are corrupted and won't play them (I think this is a bug too, but anyway).

In the aforementioned revision a placeholder metadata was introduced to avoid such behaviour (FLVWriter.java lines 425-433). As to what to do with your previously recorded audio-only files, you can fix them processing them with either flvtool2 or ffmpeg.

flvtool2 -UP <targetFile>
ffmpeg -i <targetFile> -vcodec copy -acodec copy <targetFileFixed>

Hope this helps users with older versions of Red5 and Flash player 11.2.x

---
Greetings,

Octavian Naicu

unread,
Jun 12, 2012, 7:10:44 AM6/12/12
to red5in...@googlegroups.com
So then the issue should be fixed in Red5 1.0 RC2 since r4213 is from 1 year ago while RC2 has been recently released.

Unfortunately with RC2 I can not even record/publish a stream (even when using the oflaDemo app), the following error shows up in the logs:

2012-06-12 14:06:18,628 [NioProcessor-8] INFO  org.red5.demos.oflaDemo.Application - oflaDemo appConnect
2012-06-12 14:06:18,629 [NioProcessor-8] INFO  org.red5.demos.oflaDemo.Application - W3C x-category:session x-event:connect c-ip:127.0.0.1 c-client-id:5
2012-06-12 14:06:18,640 [NioProcessor-8] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
2012-06-12 14:06:18,645 [NioProcessor-8] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action createStream
2012-06-12 14:06:18,647 [NioProcessor-8] INFO  o.red5.server.net.rtmp.RTMPHandler - Remembering client buffer on stream: 1000
2012-06-12 14:06:18,649 [NioProcessor-8] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
2012-06-12 14:06:18,650 [NioProcessor-8] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action publish
2012-06-12 14:06:18,662 [NioProcessor-8] INFO  o.r.s.stream.ClientBroadcastStream - Provider connect
2012-06-12 14:06:18,663 [NioProcessor-8] INFO  o.r.s.stream.ClientBroadcastStream - Stream start
2012-06-12 14:06:18,663 [NioProcessor-8] INFO  o.r.s.stream.ClientBroadcastStream - Provider connect
2012-06-12 14:06:18,663 [NioProcessor-8] INFO  o.r.s.stream.ClientBroadcastStream - Provider connect
2012-06-12 14:06:18,666 [NioProcessor-8] INFO  o.r.s.stream.ClientBroadcastStream - Consumer connect
2012-06-12 14:06:18,666 [NioProcessor-8] INFO  org.red5.demos.oflaDemo.Application - W3C x-category:stream x-event:record c-ip:127.0.0.1 x-sname:f85c1c56-c088-4d79-8198-fd5944b15c12 x-file-name:streams/_definst_//audioStream_1339499178643_10.flv
2012-06-12 14:06:18,714 [NioProcessor-8] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
2012-06-12 14:06:18,722 [NioProcessor-8] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
2012-06-12 14:06:30,834 [NioProcessor-8] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action closeStream
2012-06-12 14:06:30,834 [NioProcessor-8] INFO  o.r.s.stream.ClientBroadcastStream - Stream close
2012-06-12 14:06:30,835 [NioProcessor-8] INFO  o.r.s.stream.ClientBroadcastStream - Provider disconnect
2012-06-12 14:06:30,835 [NioProcessor-8] INFO  o.r.s.stream.ClientBroadcastStream - Provider disconnect
2012-06-12 14:06:30,853 [NioProcessor-8] INFO  o.r.s.stream.ClientBroadcastStream - Provider disconnect
2012-06-12 14:06:30,854 [NioProcessor-8] INFO  org.red5.demos.oflaDemo.Application - W3C x-category:stream x-event:unpublish c-ip:127.0.0.1 cs-bytes:57351 sc-bytes:310781 x-sname:f85c1c56-c088-4d79-8198-fd5944b15c12 x-file-length:12 x-name:audioStream_1339499178643_10
2012-06-12 14:06:30,854 [NioProcessor-8] INFO  org.red5.demos.oflaDemo.Application - W3C x-category:stream x-event:recordstop c-ip:127.0.0.1 cs-bytes:57351 sc-bytes:310781 x-sname:f85c1c56-c088-4d79-8198-fd5944b15c12 x-file-name:streams/_definst_//audioStream_1339499178643_10.flv x-file-length:12 x-file-size:57351



Octavian Naicu,
Founder & CEO @ AVChat Software
http://avchathq.com
http://twitter.com/avchathq


Octavian Naicu

unread,
Jun 12, 2012, 7:57:39 AM6/12/12
to red5in...@googlegroups.com
I have uploaded a compiled version of Red5 r4380 here:
http://dl.transfer.ro/Red5_r4380-transfer_RO-12jun-7ce58e.zip

We found both recording and playback of audio files works correctly with this version.

More details here:
http://avchathq.com/forum/index.php?/topic/1554-play-not-working-in-flvar-on-red5/page__view__findpost__p__6601

Octavian Naicu

unread,
Jun 12, 2012, 8:08:02 AM6/12/12
to red5in...@googlegroups.com
The issue is also solved in the recently released (8th of June 2012) Flash Player 11.3
http://forums.adobe.com/message/4476911#4476911

No need for special versions of Red5 anymore.


Octavian Naicu,
Founder & CEO @ AVChat Software
http://avchathq.com
http://twitter.com/avchathq


Reply all
Reply to author
Forward
0 new messages