Hi,
I noticed a strange behavior with the recorded video from the WebRTC stream.
Once the stream has been terminated after 1-3 seconds, the video fails to convert using FFmpeg (checked with the latest version).
If the video is about 10 seconds long, the conversion works just fine.
Note: the input videos can be played using e.g. QuickTime Player, VLC
I tried this solution but it doesn’t help:
Wowza version: Wowza Streaming Engine 4 Perpetual Pro Edition 4.8.5 build20200616153358
Logs:
2020-11-06 03:18:27 MST comment server INFO 200 - WebSocketSession.create[1116447079] - - - 233015.079 - - - - – - - - - - - - - - - - - - - - - - - -
2020-11-06 03:18:27 MST comment server INFO 200 - onStreamCreate: -1 - - - 233015.453 - - - - - - – - - - - - - - - - - - - - - - - -
2020-11-06 03:18:27 MST create webrtc INFO 200 - - defaultVHost videobooth definst 233015.454 - - - - - – - - - 3 0 0 0 - - - - 0 0.0 - - - - -
2020-11-06 03:18:27 MST comment server INFO 200 - WebRTCCommands.sendOffer[videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea]: audioCodec:opus defaultVHost videobooth definst 233015.454 - - - - - - - - - - - - - – - - - - - - - - - -
2020-11-06 03:18:27 MST comment server INFO 200 - WebRTCCommands.sendOffer[videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea]: videoCodec:H264 defaultVHost videobooth definst 233015.454 - - - - - - - - - - - - - – - - - - - - - - - -
2020-11-06 03:18:27 MST comment server INFO 200 - WebRTCCommands.sendOffer[videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea]: iceCandidate:candidate:0 1 UDP 50 192.5.71.110 6976 typ host generation 0 defaultVHost videobooth definst 233015.454 - - - - - - – - - - - - - - - - - - - - - - - -
2020-11-06 03:18:28 MST publish webrtc INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - defaultVHost videobooth definst 233016.045 - 80 null 10.3.3.244 webrtc - known 1941900161 0 0 3 0 0 0 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - - - 0 0.0 /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - null -
2020-11-06 03:18:28 MST comment server INFO 200 - CustomStreamListener.onPublish: 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - - -233016.045 - - - - - - - - - - - - - - - - - - - - - - – -
2020-11-06 03:18:28 MST comment server INFO 200 - LiveReceiver.init[videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea]: sortPackets:false flushInterval:75 onFlushNotifyClients:false sendSetDataFrame:false sendUpdatedOnMetaData:false audioLag:0 videoLag:0 - - - 233016.746 - - – - - - - - - - - - - - - - - - - - - - - -
2020-11-06 03:18:28 MST comment server INFO 200 - LiveStreamTranscoder.init[videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea]: Load transcoder template: file:///usr/local/WowzaStreamingEngine/transcoder/templates/transrate.xml - - - 233016.747 - - - - - - – - - - - - - - - - - - - - - - - -
2020-11-06 03:18:28 MST comment server INFO 200 - JNI:TranscoderSession.isCUDAAvailable[defaultVHost:videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea]: NVidia hardware acceleration is NOT available - - - 233016.792 - - - - - - - - - – - - - - - - - - - - - - - -
2020-11-06 03:18:28 MST comment server INFO 200 - JNI:TranscoderSession.isQuickSyncAvailable[defaultVHost:videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea]: Intel Quick Sync hardware acceleration is NOT available. - - - 233016.792 - - - - - - - – - - - - - - - - - - - - - - - -
2020-11-06 03:18:28 MST transcoder-start transcoder INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea {“encoder”:false, “sortBufferEnable”:true, “sortBufferSize”:750, “sortBufferFlushInterval”:75} - - - 233016.796 - - - - - - - - - - – - - - - - - - - - - - - -
2020-11-06 03:18:28 MST comment server INFO 200 - onStreamCreate: -1 - - - 233016.797 - - - - - - – - - - - - - - - - - - - - - - - -
2020-11-06 03:18:28 MST create stream INFO 200 - - - - - 0.0 - - - - - - - - - -4 0 0 0 - - - - 0 0.0 - - - - -
2020-11-06 03:18:28 MST comment server INFO 200 - CustomStreamListener.onPublish: 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source - – 233016.798 - - - - - - - - - - - - - - - - - - - - - – - -
2020-11-06 03:18:28 MST publish stream INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source - - - - 0.001 - – - - - - - - - 4 0 0 0 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source - - - 00.0 /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source - - -
2020-11-06 03:18:28 MST comment server INFO 200 - TranscoderWorkerVideoDecoder.handlePacket[defaultVHost:videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea: decodeIterations:0]: First codecConfig frame: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:3.1, frameSize:1280x720, displaySize:1280x720, frameRate:0.000000} - - - 233016.804 - - - - - - - - - - - - - - - - - – - - - - - -
2020-11-06 03:18:28 MST comment server INFO 200 - TranscoderWorkerVideoDecoder.handlePacket[defaultVHost:videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea: decodeIterations:0]: Source stream frame rate could not be detected. Using default source stream frame rate: 29.97 - - - 233016.805 – - - - - - - - - - - - - - - - - - - - - - - -
2020-11-06 03:18:29 MST comment server INFO 200 - LiveReceiver.init[videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source]: sortPackets:false flushInterval:75 onFlushNotifyClients:false sendSetDataFrame:false sendUpdatedOnMetaData:false audioLag:0 videoLag:0 - - - 233017.623 - - – - - - - - - - - - - - - - - - - - - - - -
2020-11-06 03:18:29 MST comment server INFO 200 - RTCPHandler.sendCompoundPacket[RR: [padding: 0, byte0: 1, packetType: -55, length: 7 SSRC: 110631114, source SSRC: 3170148337, fraction lost: 0, cummulative lost: 0, highest seq: 13613, jitter: 326.8732035507187, LSR: 1604657909834, DLSR: 1703], SDES: [padding: 0, byte0: 1, packetType: -54, length: 11 SSRC: 110631114, chunks: [[SSRC: 110631114, data: {1=c1f924fb-a84e-49f4-b043-8a08595f32f7}]]], , InPort: 4,/194.76.191.246:59025] First report sent. - - - 233017.739 - - - - - - - - - - - - - - - - - - - - - - - –
2020-11-06 03:18:30 MST comment server INFO 200 - JNI:TranscoderSession.audioDecoderCreate[defaultVHost:videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea]: Create audio decoder: OPUS: default - - - 233017.958 - - - - - - - - - - – - - - - - - - - - - - - -
2020-11-06 03:18:30 MST decoder-audio-start transcoder INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea {“codec”:“OPUS”, “objectType”:“0”, “sampleRate”:48000, “channels”:2, “resample”:false} - - - 233017.958 - - - - - - - - - - - – - - - - - - - - - - - -
2020-11-06 03:18:30 MST comment server INFO 200 - JNI:TranscoderSession.audioEncoderAdd[defaultVHost:videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea:source]: Create audio encoder: AAC: default - - - 233017.959 - - - - - - - - - - – - - - - - - - - - - - - -
2020-11-06 03:18:30 MST comment server INFO 200 - JNI:AudioEncoderAAC.initialize[defaultVHost:videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea:source]: channels:2 sampleRate:48000 bitRate:128000 - - - 233017.96 - - - - - - - - - - – - - - - - - - - - - - - -
2020-11-06 03:18:30 MST encoder-audio-start transcoder INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea {“name”:“source”, “bitrate”:128000, “resample”:false, “codec”:“AAC”, “objectType”:“LC”, “sampleRate”:48000, “channels”:2} - - - 233018.002 - - - - - - - – - - - - - - - - - - - - - - - -
2020-11-06 03:18:30 MST comment server INFO 200 - WebSocketSession.destroy[1116447079]: source:client status:1001 description:Unknown - - - 233018.072 - - - - - - - - - - - - - - - - - - - - - - – -
2020-11-06 03:18:30 MST comment server INFO 200 - WebRTCMessageHandler.handleDTLSMessage: DTLS Alert: close session - - - 233018.078 – - - - - - - - - - - - - - - - - - - - - - - -
2020-11-06 03:18:30 MST comment server INFO 200 - WebRTCSession.shutdown[1941900161]: Shutdown WebRTC session. - - - 233018.113 - – - - - - - - - - - - - - - - - - - - - - - -
2020-11-06 03:18:30 MST unpublish webrtc INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - defaultVHost videobooth definst 233018.118 - - - - - - - - - - 3 8250765385 1162295 0 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - - - 0 0.0 /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - - -
2020-11-06 03:18:30 MST comment server INFO 200 - TranscodingSession.close[videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea]-- - 233018.118 - - - - - - - - - - - - - - - - - - - - – - - -
2020-11-06 03:18:30 MST comment server WARN 200 - RecordReceiver.commitDoTrim[videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea]: skipKeyFrameIfNoAudio failed, ran out of key frame. videoToAudioTimeInc:397 defaultVHost videobooth definst 233018.118 - - - - - - – - - - - - - - - - - - - - - - - -
2020-11-06 03:18:30 MST comment server INFO 200 - CustomStreamListener.onUnPublish: 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea defaultVHost videobooth definst 233018.128 - - - - - - - - - - - - - - - - - – - - - - - -
2020-11-06 03:18:30 MST comment server INFO 200 - /var/www/html/media/videos/tmp/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea.mp4 successfully sent to queue defaultVHost videobooth definst 233018.169 - - - - - - - - - - - - - - – - - - - - - - - -
2020-11-06 03:18:30 MST comment server INFO 200 - onDestroy: -1 defaultVHost videobooth definst 233018.17 - - - - – - - - - - - - - - - - - - - - - - - -
2020-11-06 03:18:30 MST destroy stream INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - defaultVHost videobooth definst 2.717 - - - - - - - - - - 3 0 1162295 0 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - – 0 0.0 /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - - -
2020-11-06 03:18:30 MST comment server INFO 200 - TranscodingSession.shutdown[videobooth/definst/200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea] - - - 233018.17 - - - - - - - - - - - - - - - - - - – - - - - -
2020-11-06 03:18:30 MST transcoder-stop transcoder INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - - - - 233018.17 - - - - - - - - - - - - - - - - - - - - - - - –
2020-11-06 03:18:30 MST decoder-audio-stop transcoder INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea - - - - 233018.17 - - - - - - - - - - - - - - - - - - - - - - – -
2020-11-06 03:18:30 MST encoder-audio-stop transcoder INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea {“name”:“source”} - – 233018.17 - - - - - - - - - - - - - - - - - - - - - – - -
2020-11-06 03:18:30 MST unpublish stream INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source - - - - 1.377 - - - - - - - - - - 4 0 1366 0 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source-- - 0 0.0 /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source - - -
2020-11-06 03:18:30 MST comment server INFO 200 - CustomStreamListener.onUnPublish: 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source - – 233018.174 - - - - - - - - - - - - - - - - - - - - - – - -
2020-11-06 03:18:30 MST comment server WARN 200 - The stream was stopped due to an error. Size: 160 - - - 233018.196 - - – - - - - - - - - - - - - - - - - - - - - -
2020-11-06 03:18:30 MST comment server INFO 200 - File 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source.mp4 was deleted from the file storage - - - 233018.197 - - - - - - - - - - - - - - - - - - – - - - - -
2020-11-06 03:18:30 MST comment server INFO 200 - onDestroy: -1 - - - 233018.197 - - - - - - - – - - - - - - - - - - - - - - - -
2020-11-06 03:18:30 MST destroy stream INFO 200 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source - - - - 1.403 - – - - - - - - - 4 0 1366 0 200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source - - - 00.0 /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source /200022-11062020-121826-r287572db-e804-48d5-8640-1a4eea1575ea_source - - -
Does anyone know how to fix this?
Thanks in advance!