VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. The webcam from this website https://www.sibiu.ro/webcamfeeds/webcam2.jpg is jpg, and I have to refresh the page every second to see a live image. I have tried FFMPEG to convert the images to a stream, but it stops after 20 seconds. I used
    Code:
    ffmpeg -loop 1 -i https://www.sibiu.ro/webcamfeeds/webcam2.jpg -vcodec mpeg4 output.mp4
    Error message:
    Code:
    [tcp @ 0000014b2cadf180] Connection to tcp://www.sibiu.ro:443 failed: Error number -138 occurred
    [image2 @ 0000014b2c9d5500] Could not open file : https://www.sibiu.ro/webcamfeeds/webcam2.jpg
    https://www.sibiu.ro/webcamfeeds/webcam2.jpg: I/O error
    Also, how can I output live video to vlc?
    Quote Quote  
  2. Your ffmpeg command line worked for me. It was still appending after 110 frames, when I stopped it with Ctrl+C. The resulting video played properly, though at 25 fps. Adding -r 1.0 might take care of that.

    This worked to pipe to VLC:

    Code:
    ffmpeg -loop 1 -r 1.0 -i https://www.sibiu.ro/webcamfeeds/webcam2.jpg -f avi -vcodec rawvideo -pixel_format rgb8 - | "G:\Program Files\videolan\vlc\vlc.exe" -
    But often paused for several seconds the skipped ahead. I think frames aren't coming from the source at 1 frame per second so VLC is attempting to re-sync every now ant then. If I set a frame rate of less than 1.0 VLC couldn't play the video.

    Piping to ffplay worked much better:

    Code:
    ffmpeg -loop 1 -r 1.0 -i https://www.sibiu.ro/webcamfeeds/webcam2.jpg -f avi -vcodec rawvideo -pixel_format rgb8 - | "G:\Program Files\ffmpeg64\bin\ffplay.exe" -
    Last edited by jagabo; 4th Nov 2020 at 11:26.
    Quote Quote  
  3. ...
    Last edited by Andrei2; 6th Nov 2020 at 08:26.
    Quote Quote  
  4. It still doesen't work properly. It shows 5 fps, but it is actually a frame at 2 seconds. The video is 10 minutes length after 3 minutes of conversion. And it has a huge file size. It still stops after a few minutes with this error:
    HTML Code:
    [https @ 00000208b2067380] HTTP error 500 Internal Server Errorrate= 220.0kbits/s speed=4.89x
    [image2 @ 00000208b2034e40] Could not open file : https://www.sibiu.ro/webcamfeeds/webcam2.jpg
    https://www.sibiu.ro/webcamfeeds/webcam2.jpg: I/O error
    Last edited by Andrei2; 6th Nov 2020 at 07:51.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!