Pexeus / LTE-Car

42 stars 12 forks source link

No video appears on the server website #7

Open fiveraptor opened 10 months ago

fiveraptor commented 10 months ago

Hello

I do not have a video on the website. The FPS and bitrate are displayed and updated continuously. The menu on the website says Status Offline and the terminal does not work either. I had to rewrite the onboard stream.js to the new libcamera-vid, because raspivid is no longer supported on the new versions of Raspberry Pi OS and the new V3 camera.

varcommand =libcamera-vid --width ${config.video.width} --height ${config.video.height} -t 0 --framerate ${fps} -b ${bitrate} --analoggain 1.0 --ev 0 -o - | socat - udp-sendto:${config.host}:${config.port_udp},shut-none`

Could it be that I have made a mistake?

Otherwise I simply entered the IP address of my server (in the internal network) and port 3000 in data/config.json. Have I done something wrong or have I forgotten something else that I need to configure?

Server nodejs v15.14.0 Pi nodejs v16.15.0 (the latest version that still supports pigpio)

Pexeus commented 7 months ago

Hi! I just took some time to fix all the Issues i could find. The program is split into the standby service and the code required to drive the car. I have updated the index.js file in /onboard to now start the standby service. After startup, press the start Button on the website to start the full process!

i havent worked with libcamera-vid yet so i cant help you with that. But make sure to try different browsers for the video to be displayed, since the decoder I used isnt really well supported

pinige commented 5 months ago

Hello fiveraptor Have you had any success using libcamera-vid ? If you have had success please could you share how you did it?

This works perfectly with raspivid and the older camera, so I thought I would try it with libcamera and a newer camera but have had no success so far. Any information would be very helpful - thank you.

P.S. full respect to Pexeus - this is awesome !

fantasaga commented 5 months ago

I have been using libcamera-vid from the start, you just need to remove some of the parameters, and you need to change -w and -h to --width and --height.

fantasaga commented 2 months ago

Command in onboard/stream.js (line 16): libcamera-vid --width ${config.video.width} --height ${config.video.height} --timeout 0 --framerate ${fps} -o -. That command is based on my memory, because the working working build SD card got missing somewhere.

fantasaga commented 1 month ago

i use random knockoff camera. And, you dont need to do anything to broadway.js, because i dont think it helps with your problem. Anyway, heres the gdrive

fantasaga commented 1 month ago

https://drive.google.com/file/d/1MSLHiehESxs1ORc2VGxBoymyl_T1rubR/view?usp=sharing

Replace stream.js with this file...