FFMPEG is an encoding/decoding tool , you might need it if you want to live stream a camera to youtube , facebook etc via your Linux machines . The below is a popular error you might encounter if your camera password has special characters like ?,$ etc .
Error:
[tcp @ 0xb4a0c0] Port missing in uri
rtsp://admin:xxxxxxpassword$@cameraip:554/live.sdp: Invalid argument
So in the above error you see, the camera has username ‘admin’ , then ‘password’ and after @ its the cam IP and streaming index. So the special character ‘$’ in the password is causing the problem here . You need the ui encoding here for the special characters . Its called ui percentage encoding , so there will be replacement % values for the special characters like these .So that your URL string won’t give you any argument errors. This wiki link will help you to understand this . So the $ in the above password should be replaced with the valeus %24 , so the whole URL will be rtsp://admin:xxxxxxpassword%24@cameraip:554/live.sdp
Leave a Reply