Thanks, Richard. I’ll check the UDP port possibility tomorrow and revert.
Meanwhile, a couple of trials that I did today caused some changes in the Wowza logs.
- I changed the IP address in the FFmpeg command, from localhost to 0.0.0.0.
That is, ffmpeg -i sample.mp4 -f mpegts udp://0.0.0.0:10000
INFO stream publish mpegts.stream -
INFO server comment - RTPUDPTransport.bind[live/definst]: /0.0.0.0:10000
INFO server comment - RTPMediaCaster.Reconnector[28497887:live/definst:mpegts.stream]: done: 1
WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket[0x100]: streamType: 0x2
INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: audioPID[MP3]: 0x101
WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket: Incomplete packet: 1504:1472
INFO server comment - UDPTransport.firstPacket: bind:/0.0.0.0:10000 msg:/127.0.0.1:43340
INFO server comment - RTPMediaCaster.streamTimeout[28497887:live/definst:mpegts.stream]: timeout:12000 diff:12008 reason:101
INFO server comment - RTPMediaCaster.resetConnection[28497887:live/definst:mpegts.stream]:
INFO server comment - RTPMediaCaster.closeRTPSession[28497887:live/definst:mpegts.stream]
INFO server comment - RTPUDPTransport.unbind[live/definst]: /0.0.0.0:10000
INFO stream unpublish mpegts.stream -
INFO stream destroy mpegts.stream -
INFO server comment - RTPMediaCaster.Reconnector[28497887:live/definst:mpegts.stream]: start: 2
INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/definst]: URI: udp://0.0.0.0:10000
INFO stream create - -
INFO stream publish mpegts.stream -
INFO server comment - RTPUDPTransport.bind[live/definst]: /0.0.0.0:10000
INFO server comment - RTPMediaCaster.Reconnector[28497887:live/definst:mpegts.stream]: done: 2
WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket: Incomplete packet: 1504:1472
INFO server comment - UDPTransport.firstPacket: bind:/0.0.0.0:10000 msg:/127.0.0.1:43340
WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket[0x100]: streamType: 0x2
INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: audioPID[MP3]: 0x101
WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket: Incomplete packet: 1504:1472
WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket: Incomplete packet: 1504:1472
INFO server comment - CommandInterfaceCommandShutdownServer.invoke: Shutting down server.
WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket: Incomplete packet: 1504:1472
INFO vhost vhost-stop defaultVHost -
INFO application app-stop definst live/definst
INFO server comment - RTPMediaCaster.shutdown[28497887:live/definst:mpegts.stream]: mpegts.stream
INFO server comment - RTPMediaCaster.disconnect[28497887:live/definst:mpegts.stream]
INFO server comment - RTPMediaCaster.closeRTPSession[28497887:live/definst:mpegts.stream]
INFO server comment - RTPUDPTransport.unbind[live/definst]: /0.0.0.0:10000
INFO stream unpublish mpegts.stream -
INFO stream destroy mpegts.stream -
Please note the warning messages in the log, that wasn’t there earlier.
That is,
WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket: Incomplete packet: 1504:1472
- Taking a clue from the above warning message, I tried specifying the packet size explicitly. That is, ffmpeg -i sample.mp4 -f mpegts udp://0.0.0.0:10000?pkt_size=1316
Also made a corresponding change in mpegts.stream, like udp://0.0.0.0:10000?pkt_size=1316 (not sure if it is really required, I’m not able to find that link now, where I saw someone has posted this packet size!)
Now that warning message is gone!
INFO stream create - -
INFO stream publish mpegts.stream -
INFO server comment - RTPUDPTransport.bind[live/definst]: /0.0.0.0:10000
INFO server comment - RTPMediaCaster.Reconnector[2698418:live/definst:mpegts.stream]: done: 2
WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket[0x100]: streamType: 0x2
INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: audioPID[MP3]: 0x101
INFO server comment - LiveStreamPacketizerSanJose.handlePacket: Audio codec: MP3
INFO server comment - LiveStreamPacketizerCupertino.init[live/definst/mpegts.stream]: chunkDurationTarget: 10000
INFO server comment - LiveStreamPacketizerCupertino.init[live/definst/mpegts.stream]: chunkDurationTolerance: 500
INFO server comment - LiveStreamPacketizerCupertino.init[live/definst/mpegts.stream]: audioGroupCount: 3
INFO server comment - LiveStreamPacketizerCupertino.init[live/definst/mpegts.stream]: playlistChunkCount:3
INFO server comment - MediaStreamMap.getLiveStreamPacketizer: Create live stream packetizer: cupertinostreamingpacketizer:mpegts.stream
INFO server comment - CupertinoPacketHandler.startStream[live/definst/mpegts.stream]
INFO server comment - LiveStreamPacketizerCupertino.handlePacket[live/definst/mpegts.stream]: Audio codec:MP3 isCompatible:true
INFO server comment - MediaStreamMap.getLiveStreamPacketizer: Create live stream packetizer: smoothstreamingpacketizer:mpegts.stream
INFO server comment - LiveStreamPacketizerSmoothStreaming.startStream[live/definst/mpegts.stream]
INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[live/definst/mpegts.stream]: Add chunk: id:1 a/v/k:140/0/0 duration:10080
INFO server comment - LiveStreamPacketizerSmoothStreaming.addFragment[live/definst/mpegts.stream]: Add chunk: type:audio id:2 count:84 duration:2016
INFO server comment - LiveStreamPacketizerSmoothStreaming.addFragment[live/definst/mpegts.stream]: Add chunk: type:audio id:3 count:84 duration:2016
INFO server comment - LiveStreamPacketizerSmoothStreaming.addFragment[live/definst/mpegts.stream]: Add chunk: type:audio id:4 count:84 duration:2016
INFO server comment - LiveStreamPacketizerSmoothStreaming.addFragment[live/definst/mpegts.stream]: Add chunk: type:audio id:5 count:84 duration:2016
INFO server comment - LiveStreamPacketizerSmoothStreaming.addFragment[live/definst/mpegts.stream]: Add chunk: type:audio id:6 count:84 duration:2016
INFO server comment - LiveStreamPacketizerSanJose.endChunkTS[live/definst/mpegts.stream]: Add chunk: id:2 a/v/k:418/0/0 duration:10032
But at the end of the day, VLC Player is still not able to play the stream. It still gives the same error “Your input can’t be opened: VLC is unable to open the MRL ‘rtsp://localhost:1935/live/mpegts.stream’. Check the log for details.”
And I haven’t been able to locate the VLC log file yet, neither on Windows nor on Ubuntu!
Thanks anyway,
Ram