Hi Rémy,
Derived from weblook I concocted "WebCam Server for OS/2 (ArcaOS/eComStation)". See WebCam.txt for parameters. See xplay.cmd for use with ffplay.
Acting as an HTTP server for mjpg video is the default. Use "webcam /n" to video stream to named pipe. Use "webcam /s" to video stream to stdout.
CAUTION: This is beta test software! May only be used at your own risk!
Best regards,
Wim.
Hi Wim,
No sound and only video from what I could test.
I tested all options and got video in all cases
video was ok too from webpage pointing to the http webcam server.
I've got repeated message by ffplay but this seems to be normal using logitec webcam
( [mjpeg @ 0x2fba80] unable to decode APP fields )
found:
https://stackoverflow.com/questions/55439184/getting-unable-to-decode-app-fields-while-playing-usb-webcam-stream-through-ff"The mjpeg stream contains a sequence of jpeg images, some are key frames, the complete image, and some are other frames such as delta frames, describing the differences between frames. What Logitech does is embed an H264 stream into the mjpeg stream by attaching H264 data onto the jpeg frames as APP attachments, i.e. it's a stream within a stream"
I did some test with ffmpeg and could record video in different codec.
Adding the video copy frames to mp4 output prevents of getting lot of [mjpeg @ 0x2fba80] unable to decode APP fields message
webcam /s | ffmpeg -f mjpeg -framerate 30 -i - -y -c:v copy -f rawvideo test.mpg
webcam /s | ffmpeg -f mjpeg -framerate 30 -i - -y -t 10s -c:v copy -f mp4 test.mp4 (here, I limited recording to 10s)
webcam /s | ffmpeg -f mjpeg -framerate 30 -i - -y test.avi
I could see that adding a "-" after the /s parm has no effect and this is good to have a syntax like with other programs.
e.g. webcam /s - | ffmpeg -f mjpeg -framerate 30 -i - -y h264.avi
May be webcan could be updated to use - as a generic parm for /s , could it be done ?
Great work.
Regards
Rémy
PS: It looks using a lot of CPUs (between 20% and 45% on 3 of 4 CPUs which looks to be very high ! any idea why ?