video recording not working (av_write_frame failed: Invalid argument)
Please specify the following:
- OS: Guix (commit 3c43f2b4f54dead73ce19427eb1e364581b7f2e0)
- Jami version: 20211223.2.37be4c3
- What build you are using: Guix
Steps to reproduce
Note: Better the scenario is, better we will be able to reproduce and debug.
- Can you reproduce the bug: at will
- Steps:
-
guix time-machine --commit=3c43f2b4f54dead73ce19427eb1e364581b7f2e0 -- shell jami -- jami-qt --debug
2. Initiate a video call. 3. Press the recording button to start video recording. 4. Wait some time (e.g, 30 s). 5. Press the recording button again to stop video recording. ...
-
- Actual result: No video file is produced, nothing gets recorded; error is silent to the user (no feedback about error).
- Expected result: A video file should have been produced with the recording.
Additional information
I'm guessing the failure seems may be associated with the message "av_write_frame failed: Invalid argument" as can be seen shortly after enabling recording in the client's logs:
[...]
[1642221688.709| 4881|media_encoder.cpp :325 ] Not using hardware encoding for vp8
[1642221688.709| 4881|media_encoder.cpp :797 ] Hardware encoding disabled
[1642221688.709| 4881|media_encoder.cpp :610 ] [libvpx] Using 4 threads
[1642221688.709| 4881|media_encoder.cpp :993 ] VP8 encoder setup: crf=18
[libvpx @ 0x7f5c283fe580] Bitrate not specified for constrained quality mode, using default of 256kbit/sec
[1642221690.371| 4874|sipcall.cpp :613 ] Sending video keyframe request via SIP INFO
[sdp @ 0x7f5c64028000] max delay reached. need to consume packet
[sdp @ 0x7f5c64028000] RTP: missed 1 packets
[h264 @ 0x7f5c640219c0] P sub_mb_type 32 out of range at 34 14
[h264 @ 0x7f5c640219c0] error while decoding MB 34 14
[webm @ 0x4af6740] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 633 >= 600
[1642221691.645| 4881|media_encoder.cpp :557 ] av_write_frame failed: Invalid argument
[1642221696.910| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1605 / 160
[1642221696.920| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 2093 / 160
[1642221696.920| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1933 / 160
[1642221696.920| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1773 / 160
[1642221696.920| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1613 / 160
[1642221696.920| 4874|sipcall.cpp :613 ] Sending video keyframe request via SIP INFO
[1642221696.930| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 2261 / 160
[1642221696.930| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 2101 / 160
[1642221696.930| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1941 / 160
[1642221696.930| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1781 / 160
[1642221696.930| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1621 / 160
[1642221696.940| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 2581 / 160
[1642221696.940| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 2421 / 160
[1642221696.940| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 2261 / 160
[1642221696.940| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 2101 / 160
[1642221696.940| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1941 / 160
[1642221696.940| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1781 / 160
[1642221696.940| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1621 / 160
[sdp @ 0x7f5c64028000] max delay reached. need to consume packet
[sdp @ 0x7f5c64028000] RTP: missed 1 packets
[h264 @ 0x7f5c640219c0] out of range intra chroma pred mode
[h264 @ 0x7f5c640219c0] error while decoding MB 42 15
[1642221697.072| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1621 / 160
[1642221697.944| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1621 / 160
[1642221699.177| 9027|webrtc_echo_canceller.cpp:104 ] playback overflow 1621 / 160
[libopus @ 0x6b8b100] Queue input is backward in time
[webm @ 0x4af6740] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 2533 >= 2500
[1642221703.559| 4881|media_encoder.cpp :557 ] av_write_frame failed: Invalid argument
[1642221706.324| 4874|sipcall.cpp :613 ] Sending video keyframe request via SIP INFO
[sdp @ 0x7f5c64028000] max delay reached. need to consume packet
[sdp @ 0x7f5c64028000] RTP: missed 1 packets
[webm @ 0x4af6740] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 3000 >= 2967
[1642221707.631| 4881|media_encoder.cpp :557 ] av_write_frame failed: Invalid argument
[libopus @ 0x6b8b100] Queue input is backward in time
[webm @ 0x4af6740] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 3200 >= 3167
[1642221708.776| 4881|media_encoder.cpp :557 ] av_write_frame failed: Invalid argument
[webm @ 0x4af6740] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 4500 >= 4467
[1642221718.371| 4881|media_encoder.cpp :557 ] av_write_frame failed: Invalid argument