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 usedError message:Code:ffmpeg -loop 1 -i https://www.sibiu.ro/webcamfeeds/webcam2.jpg -vcodec mpeg4 output.mp4Also, how can I output live video to vlc?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
+ Reply to Thread
Results 1 to 4 of 4
-
-
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" -
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.
-
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.
Similar Threads
-
Need to Append JPG to MP4 file
By Novice20 in forum Newbie / General discussionsReplies: 9Last Post: 30th Oct 2022, 08:35 -
Unable to extract LPCM audio from MJPG video stream
By JJonah in forum AudioReplies: 4Last Post: 6th Feb 2020, 05:45 -
Avisynth+ not refreshing in VirtualDub2
By Chief Mouse in forum Video ConversionReplies: 2Last Post: 6th Sep 2019, 16:18 -
[SOLVED] [ffmpeg] How to build a 5s MP4 from JPG to match video file?
By yetanotherlogin in forum EditingReplies: 4Last Post: 8th Oct 2018, 17:29 -
How do I convert PDF to JPG?
By gary11364 in forum ComputerReplies: 34Last Post: 20th Jul 2017, 04:27