[FFmpeg-user] stream frames using Ethernet camera

Naveen.B navins.2006 at gmail.com
Tue Sep 5 11:08:04 EEST 2023


I try with your suggestion, I don't see any error in the terminal window,
but I do not see any stream of Images from the ethernet camera,

C:\Naveen\projects\DMS\hardware\ficosa\a0\SCANIA_ffmpeg-6.0\bin>ffmpeg
-rtsp_transport udp -i "rtsp://192.168.9.78:5004"
ffmpeg version 6.0-essentials_build-www.gyan.dev Copyright (c) 2000-2023
the FFmpeg developers
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-w32threads --disable-autodetect --enable-fontconfig
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib
--enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq
--enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg
--enable-libvpx --enable-mediafoundation --enable-libass
--enable-libfreetype --enable-libfribidi --enable-libvidstab
--enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm
--enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc
--enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
--enable-libtheora --enable-libvo-amrwbenc --enable-libgsm
--enable-libopencore-amrnb --enable-libopus --enable-libspeex
--enable-libvorbis --enable-librubberband
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100




On Thu, Aug 31, 2023 at 11:26 PM Anatoly <anatoly at kazanfieldhockey.ru>
wrote:

> On Thu, 31 Aug 2023 16:27:47 +0200
> "Naveen.B" <navins.2006 at gmail.com> wrote:
>
> > Hello,
> >
> > I have an ethernet camera connected to my ethernet port and I need to
> > stream those Images using ffmpeg command,
> > source address: 192.168.9.78
> > UDP port: 5004
> >
> > ffmpeg command: ffmpeg eth0 -i udp://192.168.9.78:5004
> > error:
> > C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>ffmpeg eth0 -i
> > udp:// 192.168.9.78:5004
> what is 'eth0'?
> > ffmpeg version 2022-06-20-git-56419428a8-full_build-www.gyan.dev
> ...snip...
> > [udp @ 000002a7b2923c00] bind failed: Error number -10048 occurred
> > udp://192.168.9.78:5004: Unknown error
> Obviously, this does mean that ffmpeg can't start listen for incoming
> connection on 192.168.9.78 port 5004. Do you have 92.168.9.78 on your
> machine?
> I think it is very unlikely that -i udp:// is what you want. Because
> using 'raw' UDP you can't 'establish connection' from PC to camera. This
> is because there's no such a thing in UDP itself.
> Roughly saying, with UDP, tranmitter side just blindly sends packets
> from it's ip:port to receiver's ip:port without even knowing if there
> receiver is present at all.
> Doing this way, you theoretically must input your PCs ip:port
> somewhere in camera settings, because this in the only way for camera
> to know where to send packets (PC just can't 'connect' with 'raw' UDP).
> That's why upper level protocol (running on top of UDP) is typycally
> used for negotitating/establishing connection with camera, such as
> rtsp, rtp...
> So probably you need something like
> ffmpeg -rtsp_transport udp -i
> 'rtsp://USERNAME:PASSWORD@IPADDRESS:PORT/stream-url'
> Look at your camera manual, if available, to find out which protocol
> camera use.
> ffmpeg protocols documentation:
> https://ffmpeg.org/ffmpeg-protocols.html
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list