Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The log indicates that the frames per second (fps) value is consistently zero. #4267

Open
lichao5585 opened this issue Dec 24, 2024 · 0 comments
Labels
TransByAI Translated by AI/GPT.

Comments

@lichao5585
Copy link

lichao5585 commented Dec 24, 2024

The resolution is also very low. As long as you shake the phone lens a little, the resolution will drop immediately. However, when viewed from inside the phone, it is very clear, which means there is nothing wrong with the phone recording itself.

<script>
        const startButton = document.getElementById('startButton');
        let publisher;

        startButton.onclick = async () => {
          
            publisher = new SrsRtcPublisherAsync();
            
            const constraints = {
                    video: {
                       width: { ideal: 3840, max: 3840 },
                        height: { ideal: 2160, max: 2160 },
                        frameRate: { ideal: 60, max: 120 }, // 60~120fps
                        facingMode: 'environment'
                    }
                };

            
            const stream = await navigator.mediaDevices.getUserMedia(constraints);
            
            publisher.constraints = constraints; 
            
            localVideo.srcObject = stream;

         
            const url = 'https://xxxx/live/livestream1'; 
            await publisher.publish(url);
        };
    </script>

log ....

NACK: update seq=42219, nack range [42218, 42219]
[2024-12-24 18:35:36.514][WARN][1][3082f725][11] handle udp pkt, count=1052/1006, err: code=5015(RtcSrtpUnprotect)(Failed to decrypt data by SRTP for RTC) : size=1133, data=[90 62 a4 ea bc c8 48 15] : rtp unprotect : rtp unprotect r0=9
thread [1][3082f725]: cycle() [./src/app/srs_app_listener.cpp:743][errno=11]
thread [1][5u09m1mu]: on_rtp() [./src/app/srs_app_rtc_network.cpp:273][errno=11]
thread [1][5u09m1mu]: unprotect_rtp() [./src/app/srs_app_rtc_dtls.cpp:1056][errno=11]
[2024-12-24 18:35:36.552][INFO][1][5u09m1mu] NACK: update seq=42280, nack range [42279, 42280]
[2024-12-24 18:35:38.340][INFO][1][06637jqi] Hybrid cpu=3.00%,33MB, cid=2,10, timer=62,10,97, clock=0,46,2,0,0,0,0,0,0, objs=(pkt:498,raw:0,fua:497,msg:559,oth:1,buf:166)
[2024-12-24 18:35:38.340][INFO][1][06637jqi] RTC: Server conns=2, rpkts=(176,rtp:166,stun:1,rtcp:9), spkts=(181,rtp:166,stun:1,rtcp:29), rtcp=(pli:1,twcc:9,rr:1), snk=(97,a:48,v:48,h:1), rnk=(1,1,h:1,m:1), fid=(id:0,fid:176,ffid:0,addr:1,faddr:176)
[2024-12-24 18:35:38.992][INFO][1][e262pde8] NACK: update seq=42607, nack range [42603, 42607]
[2024-12-24 18:35:39.087][INFO][1][e262pde8] NACK: update seq=42624, nack range [42620, 42624]
[2024-12-24 18:35:40.480][INFO][1][416551jh] Process: cpu=2.00%,33MB, threads=2
[2024-12-24 18:35:40.666][INFO][1][593036h6] RTC: to rtmp bridge request key frame, ssrc=2645119478, publisher cid=5u09m1mu
[2024-12-24 18:35:40.756][INFO][1][e262pde8] 40B video sh, codec(7, profile=Baseline, level=4, 934x1662, 0kbps, 0.0fps, 0.0s)
[2024-12-24 18:35:40.756][INFO][1][e262pde8] set ts=3167656981, header=42830, lost=42831
[2024-12-24 18:35:41.128][INFO][1][3082f725] <- RTC RECV #12, udp 1682, pps 1/168, schedule 1682
[2024-12-24 18:35:41.702][INFO][1][e262pde8] NACK: update seq=42958, nack range [42955, 42958]
[2024-12-24 18:35:41.724][INFO][1][e262pde8] NACK: update seq=42960, nack range [42959, 42960]
[2024-12-24 18:35:41.734][INFO][1][e262pde8] RTC: NACK miss seq=9111, require_seq=8111, ssrc=10199, ts=4173840, count=71/71, 1107 bytes
[2024-12-24 18:35:43.340][INFO][1][06637jqi] Hybrid cpu=3.00%,33MB, cid=2,10, timer=62,10,97, clock=0,46,2,0,0,0,0,0,0, objs=(pkt:498,raw:0,fua:497,msg:559,oth:1,buf:166)
[2024-12-24 18:35:43.340][INFO][1][06637jqi] RTC: Server conns=2, rpkts=(176,rtp:166,stun:1,rtcp:9), spkts=(181,rtp:166,stun:1,rtcp:29), rtcp=(pli:1,twcc:9,rr:1), snk=(97,a:48,v:48,h:1), rnk=(1,1,h:1,m:1), fid=(id:0,fid:176,ffid:0,addr:1,faddr:176)
[2024-12-24 18:35:45.484][INFO][1][416551jh] Process: cpu=2.00%,33MB, threads=2
[2024-12-24 18:35:46.702][INFO][1][593036h6] RTC: to rtmp bridge request key frame, ssrc=2645119478, publisher cid=5u09m1mu
[2024-12-24 18:35:46.702][INFO][1][593036h6] RTC: Need PLI ssrc=2645119478, play=[5u09m1mu], publish=[5u09m1mu], count=33/33
[2024-12-24 18:35:46.702][INFO][1][5u09m1mu] RTC: Request PLI ssrc=2645119478, play=[5u09m1mu], count=33/33, bytes=12B
[2024-12-24 18:35:46.765][INFO][1][e262pde8] 40B video sh, codec(7, profile=Baseline, level=4, 934x1662, 0kbps, 0.0fps, 0.0s)
[2024-12-24 18:35:46.765][INFO][1][e262pde8] set ts=3168197791, header=43636, lost=43637
[2024-12-24 18:35:47.226][INFO][1][e262pde8] NACK: update seq=43692, nack range [43689, 43692]
[2024-12-24 18:35:48.341][INFO][1][06637jqi] Hybrid cpu=3.00%,33MB, cid=3,10, timer=62,10,97, clock=0,46,2,0,0,0,0,0,0, objs=(pkt:392,raw:1,fua:391,msg:452,oth:1,buf:130)
[2024-12-24 18:35:48.341][INFO][1][06637jqi] RTC: Server conns=2, rpkts=(140,rtp:131,stun:1,rtcp:8), spkts=(146,rtp:130,stun:1,rtcp:29), rtcp=(pli:1,twcc:9,rr:1), snk=(97,a:48,v:48,h:1), rnk=(1,1,h:0,m:2), fid=(id:0,fid:140,ffid:0,addr:1,faddr:140)
[2024-12-24 18:35:50.488][INFO][1][416551jh] Process: cpu=2.00%,33MB, threads=2
[2024-12-24 18:35:51.132][INFO][1][3082f725] <- RTC RECV #12, udp 1374, pps 1/137, schedule 1374

TRANS_BY_GPT4

@winlinvip winlinvip changed the title According to the log, fps is always 0,please The log indicates that the frames per second (fps) value is consistently zero. Dec 24, 2024
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

2 participants