eroji / rtsp2mjpg

RTSP to MJPEG stream conversion using FFmpeg and FFserver
99 stars 41 forks source link

there is error when i try to open the live link #4

Closed scarrrr316 closed 4 years ago

scarrrr316 commented 4 years ago

image it seem that rtsp2mjpg serves start up successfully

but when i try to open the link in google chrome ,it show something in below picture image

can you tell me how to fix it?

scarrrr316 commented 4 years ago

I just change the rtsp link in .yaml file and the port because port80 is used by hapoxy

eroji commented 4 years ago

I assume you are using docker-compose.yaml-armhf? If so, it would be serving on port 8090 and not 80. Your screenshot shows you have nginx container as well, which suggests you are using the docker-compose.yaml which refers to x86_64 images. This would not start up on Pi because the CPU architecture is entirely different.

Here is how I launch it on my Pi. You can see that it binds to port 8090 after docker-compose.

root@octopi:~/rtsp2mjpg# netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      737/sshd            
tcp        0      0 127.0.0.1:5000          0.0.0.0:*               LISTEN      27931/python2       
tcp6       0      0 :::80                   :::*                    LISTEN      738/haproxy         
tcp6       0      0 :::22                   :::*                    LISTEN      737/sshd            
tcp6       0      0 :::443                  :::*                    LISTEN      738/haproxy         
root@octopi:~/rtsp2mjpg# docker-compose -f docker-compose.yaml-armhf up -d
Creating network "rtsp2mjpg_default" with the default driver
Creating rtsp2mjpg_rtsp2mjpg_1 ... done
root@octopi:~/rtsp2mjpg# netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      737/sshd            
tcp        0      0 127.0.0.1:5000          0.0.0.0:*               LISTEN      27931/python2       
tcp6       0      0 :::80                   :::*                    LISTEN      738/haproxy         
tcp6       0      0 :::22                   :::*                    LISTEN      737/sshd            
tcp6       0      0 :::8090                 :::*                    LISTEN      28503/docker-proxy  
tcp6       0      0 :::443                  :::*                    LISTEN      738/haproxy         
scarrrr316 commented 4 years ago

image そうてすね ,thank you,I don’t know that different yaml file are use in different system,because the introduction didn’t tell me,ha ha,hope it work

scarrrr316 commented 4 years ago

it has 1 min delay ,is it normal?

eroji commented 4 years ago

1 min certainly seems excessive. What Pi model are you using? On a Pi4, I was seeing relatively realtime transcode.

scarrrr316 commented 4 years ago

1 min certainly seems excessive. What Pi model are you using? On a Pi4, I was seeing relatively realtime transcode.

I am using raspberry pi 3b+,I dont know why it just have maybe 1 frames per 2-4 second and large delay.And also it start fail somtime ,can you give me another contact method of you?,e.g:telegram,discord,i think using github to contact is inconvenient,thx

scarrrr316 commented 4 years ago

hi??

eroji commented 4 years ago

I been out-of-town. I don't have any other contact method unless you do.

scarrrr316 commented 4 years ago

what is your email addr?i want to send my contact mehtod to you。And what contact method do you want to use?

eroji commented 4 years ago

I added my email in my profile.

eroji commented 4 years ago

Closing this ticket since this is not a code issue.

scarrrr316 commented 4 years ago

i have sant an email to you,did you receive it?

eroji commented 4 years ago

No. Can you put your email in your profile. I'll try and email you instead.

scarrrr316 commented 4 years ago

i have put my contact method in my profile .and i am interest on your name,are you Chinese,haha(chen is a common last name in chinese)?你是華人嗎

scarrrr316 commented 4 years ago

emmm

eroji commented 4 years ago

I added you on Discord. Didn't get any response yet.

scarrrr316 commented 4 years ago

sorry,i didnt check it