# Failed to convert recorded video

**URL:** <https://community.wowza.com/t/failed-to-convert-recorded-video/92301>\
**Category:** Wowza Streaming Engine\
**Tags:** recording, webrtc\
**Created:** [November 6, 2020, 12:20pm UTC](https://community.wowza.com/t/failed-to-convert-recorded-video/92301 "2020-11-06T12:20:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Kalun](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@Max\_Kalun](https://community.wowza.com/u/Max_Kalun)\
**Post date:** [November 6, 2020, 12:20pm UTC](https://community.wowza.com/t/failed-to-convert-recorded-video/92301/1 "2020-11-06T12:20:11Z")

</div>

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

 ![Default (bash) 2020-11-06 11-53-14](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/d59e5bb437658d5f4cde63f111e7e1826c731912.png)

I tried this solution but it doesn’t help:

> [@Live Stream mp4 recording is corrupted due to additional track with AMF data?](http://community.wowza.com/t/live-stream-mp4-recording-is-corrupted-due-to-additional-track-with-amf-data/46925/2):
>
> Hi Benjamin, This was handled in the created support ticket (168093). I see that you reported finding a solution: The resolution was to change a couple settings for Streams in the Manager. I turned off MP4WriteData/MP4WriteMetaData and that fixed the issue with recordings.

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!

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 13, 2020, 8:41pm UTC](https://community.wowza.com/t/failed-to-convert-recorded-video/92301/2 "2020-11-13T20:41:22Z")

</div>

Sorry you never got a response, these types of webrtc issues can be tricky to diagnose in the forums and usually require a support ticket for debugging. Especially so we can try to replicate it using ffmpeg. Hope it’s been resolved. If not please submit a ticket and a wowza engineer can take a closer look for you.

> **[Open a Support Ticket](https://www.wowza.com/support/open-ticket)**
>
> Open a Wowza suppor ticket so our technical support engineers worldwide can help you succeed with your Wowza software and services.
