ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.72k stars 5.28k forks source link

SRS/6.0.59(Bee) dvr: ignore video error code=3085(Mp4AvccChange)(MP4 does not support video AVCC change) : write video : encode video : write sample : doesn't support avcc change #4001

Closed tenchong closed 3 months ago

tenchong commented 3 months ago

[2024-03-21 03:49:26.843][INFO][59274][24m4e713] Hybrid cpu=2.00%,22MB [2024-03-21 03:49:26.843][INFO][59274][24m4e713] RTC: Server conns=2 [2024-03-21 03:49:26.855][INFO][59274][9px00497] Process: cpu=3.00%,22MB, threads=2 [2024-03-21 03:49:26.871][INFO][59274][82386l8o] <- RTC RECV #13, udp 347, pps 34/34, schedule 347 [2024-03-21 03:49:28.603][INFO][59274][4x2p5h8u] RTC: to rtmp bridge request key frame, ssrc=2250532740, publisher cid=3n8j41k4 [2024-03-21 03:49:28.612][INFO][59274][3n8j41k4] 35B video sh, codec(7, profile=Baseline, level=3.1, 640x360, 0kbps, 0.0fps, 0.0s) [2024-03-21 03:49:28.612][INFO][59274][3n8j41k4] set ts=2236129523, header=3761, lost=3762 [2024-03-21 03:49:28.752][INFO][59274][3n8j41k4] 35B video sh, codec(7, profile=Baseline, level=3.2, 960x540, 0kbps, 0.0fps, 0.0s) [2024-03-21 03:49:28.752][WARN][59274][3n8j41k4][11] dvr: ignore video error code=3085(Mp4AvccChange)(MP4 does not support video AVCC change) : write video : encode video : write sample : doesn't support avcc change thread [59274][3n8j41k4]: on_video() [./src/app/srs_app_dvr.cpp:654][errno=11] thread [59274][3n8j41k4]: write_video() [./src/app/srs_app_dvr.cpp:153][errno=11] thread [59274][3n8j41k4]: encode_video() [./src/app/srs_app_dvr.cpp:510][errno=11] thread [59274][3n8j41k4]: copy_sequence_header() [./src/kernel/srs_kernel_mp4.cpp:6139][errno=11] [2024-03-21 03:49:28.752][INFO][59274][3n8j41k4] set ts=2236141043, header=3772, lost=3773 [2024-03-21 03:49:28.827][INFO][59274][4a155412] https: connected to https://192.168.1.7:4433, cost=74ms [2024-03-21 03:49:29.002][INFO][59274][4a155412] http hook on_dvr success. client_id=3n8j41k4, url=https://192.168.1.7:4433/dvr.jsp, request={"server_id":"vid-548049c","service_id":"xd7b9836","action":"on_dvr","client_id":"3n8j41k4","ip":"127.0.0.1","vhost":"defaultVhost","app":"1","tcUrl":"webrtc://192.168.1.7/1","stream":"v_server1","param":"upstream=rtc","cwd":"/usr/m2m/java/media","file":"./objs/nginx/html/1/v_server1_1711007362640.mp4","stream_url":"/1/v_server1","stream_id":"vid-74w69e2"}, response=

Esteemed expert, the SRS version 6.0.59 (Bee) is unable to record in MP4 format properly, however, recording in FLV format works. What needs to be adjusted to fix this?

TRANS_BY_GPT4

winlinvip commented 3 months ago

The error log is very clear; if you cannot understand it at all, you should not use open-source software. Instead, you should purchase commercial services.

This issue will be deleted.

TRANS_BY_GPT4