Rtmp few progresses

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Rtmp few progresses

jackyr

Hi

Since my first post I found some mistakes I made on targetting the
Proprer server repertory

My command line is : ffmpeg -i %f_in% %cmdline% %f_out%
$f_in   =macula1.vob
$cmdline=-f flv  -b:v 400k -an
f_out   ="rtmp://video-utl.univ-evry.fr/oflaDemo/streams/live/toto
timeout=3000 "    

The results are :  there are connection, somme datas gas been transfered but

Not written and endif with : av_interleaved_write_frame() errot See above

--------------ffmpeg
 
ffmpeg version N-35462-g61b1d85, Copyright (c) 2000-2011 the FFmpeg
developers
  built on Dec  5 2011 14:22:27 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype
--enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--enable-zlib
  libavutil    51. 30. 0 / 51. 30. 0
  libavcodec   53. 40. 0 / 53. 40. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 51. 0 /  2. 51. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[mpeg @ 020C9AA0] max_analyze_duration 5000000 reached at 5000000 Input #0,
mpeg, from 'macula1.vob':
  Duration: 00:02:40.08, start: 0.500000, bitrate: 3108 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR
16:15 DAR 4:3], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s [buffer @
02400040] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/15 sws_param:
Output #0, flv, to 'rtmp://video-utl.univ-evry.fr/oflaDemo/streams/live/toto
timeout=3000 ':
  Metadata:
    encoder         : Lavf53.24.0
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR
16:15 DAR 4:3], q=2-31, 400 kb/s, 1k tbn, 25 tbc Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> flv)
Press [q] to stop, [?] for help
WriteN, RTMP send error 10053 (129 bytes)
WriteN, RTMP send error 10053 (44 bytes)
WriteN, RTMP send error 10038 (42 bytes)
av_interleaved_write_frame(): Operation not permitted

-------------------- the (partial) red5 server log is

2011-12-07 16:12:11,180 [NioProcessor-1] WARN
o.r.s.n.r.codec.RTMPProtocolDecoder - Closing connection because decoding
failed: RTMPMinaConnection from 90.3.61.166 : 4024 to video-utl.univ-evry.fr
(in: 3590 out 3520 ) 2011-12-07 16:12:11,181 [NioProcessor-1] INFO
o.r.s.stream.ClientBroadcastStream - Close 2011-12-07 16:12:11,181
[NioProcessor-1] INFO  o.r.s.stream.ClientBroadcastStream - Provider
disconnect 2011-12-07 16:12:11,181 [NioProcessor-1] INFO
o.r.s.stream.ClientBroadcastStream - Provider disconnect 2011-12-07
16:12:44,608 [NioProcessor-1] INFO  o.red5.server.net.rtmp.RTMPHandler -
Connecting to: [Scope@1e98e7e Depth = 2, Path = '/default/oflaDemo', Name =
'streams'] 2011-12-07 16:12:44,735 [NioProcessor-1] INFO
o.r.s.stream.ClientBroadcastStream - Provider connect 2011-12-07
16:12:44,735 [NioProcessor-1] INFO  o.r.s.stream.ClientBroadcastStream -
Stream start 2011-12-07 16:12:44,735 [NioProcessor-1] INFO
o.r.s.stream.ClientBroadcastStream - Provider connect 2011-12-07
16:12:44,822 [NioProcessor-1] ERROR o.r.s.n.r.codec.RTMPProtocolDecoder -
Error decoding buffer
org.red5.server.net.protocol.ProtocolException: Error during decoding
        at
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decode(RTMPProtocolDecode
r.java:203) [red5.jar:na]
        at
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeBuffer(RTMPProtocol
Decoder.java:122) [red5.jar:na]
        at
org.red5.server.net.rtmp.codec.RTMPMinaProtocolDecoder.decode(RTMPMinaProtoc
olDecoder.java:61) [red5.jar:na]
        at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCod
ecFilter.java:225) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceive
d(DefaultIoFilterChain.java:434) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoF
ilterChain.java:46) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageRec
eived(DefaultIoFilterChain.java:793) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAda
pter.java:119) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceive
d(DefaultIoFilterChain.java:434) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(De
faultIoFilterChain.java:426) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPolling
IoProcessor.java:638) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPoll
ingIoProcessor.java:598) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPoll
ingIoProcessor.java:587) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractP
ollingIoProcessor.java:61) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(Abstra
ctPollingIoProcessor.java:969) [mina-core-2.0.0-RC1.jar:na]
        at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:
64) [mina-core-2.0.0-RC1.jar:na]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
10) [na:1.6.0]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
03) [na:1.6.0]
        at java.lang.Thread.run(Thread.java:636) [na:1.6.0]
Caused by: java.lang.IllegalArgumentException: null
        at java.nio.Buffer.limit(Buffer.java:266) [na:1.6.0]
        at org.red5.io.amf.Input.bufferToString(Input.java:275)
[red5.jar:na]
        at org.red5.io.amf.Input.getString(Input.java:258) [red5.jar:na]
        at org.red5.io.amf.Input.readPropertyName(Input.java:565)
[red5.jar:na]
        at org.red5.io.amf.Input.readKeyValues(Input.java:351) [red5.jar:na]
        at org.red5.io.amf.Input.readSimpleObject(Input.java:501)
[red5.jar:na]
        at org.red5.io.amf.Input.readObject(Input.java:537) [red5.jar:na]
        at
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeStreamMetadata(RTMP
ProtocolDecoder.java:978) [red5.jar:na]
        at
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeMessage(RTMPProtoco
lDecoder.java:564) [red5.jar:na]
        at
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodePacket(RTMPProtocol
Decoder.java:385) [red5.jar:na]
        at
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decode(RTMPProtocolDecode
r.java:190) [red5.jar:na]
        ... 18 common frames omitted
2011-12-07 16:12:44,825 [NioProcessor-1] WARN
o.r.s.n.r.codec.RTMPProtocolDecoder - Closing connection because decoding
failed: RTMPMinaConnection from 90.3.61.166 : 4025 to video-utl.univ-evry.fr
(in: 3590 out 3520 ) 2011-12-07 16:12:44,825 [NioProcessor-1] INFO
o.r.s.stream.ClientBroadcastStream - Close 2011-12-07 16:12:44,825
[NioProcessor-1] INFO  o.r.s.stream.ClientBroadcastStream - Provider
disconnect 2011-12-07 16:12:44,825 [NioProcessor-1] INFO
o.r.s.stream.ClientBroadcastStream - Provider disconnect

------------------------End of partial red5 log

What can I do next ? Do you suggest any changes ?

Regards
Jacky

 

 

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user