Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

view UDP output? #2

Open
jonbjohns opened this issue Feb 3, 2023 · 3 comments
Open

view UDP output? #2

jonbjohns opened this issue Feb 3, 2023 · 3 comments

Comments

@jonbjohns
Copy link

using liveView.py. I get feedback that my camera is unlocked and the live view stream starts, but I've been unable to view it.

I tried the capture example
ffmpeg -i 'udp://224.0.0.100:10101?&localaddr=10.100.1.100' -vcodec copy output.mp4

I get a large response. it seems like it is going, but I don't see a file generated where I triggered the command:

ffmpeg version 2023-02-02-git-7d49fef8b4-full_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-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --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-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      57. 44.100 / 57. 44.100
  libavcodec     59. 61.100 / 59. 61.100
  libavformat    59. 37.100 / 59. 37.100
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 56.100 /  8. 56.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100

I also tried using VLC and got nothing back. I've tried

udp://224.0.0.100:10101
udp://10.100.1.100
udp://10.100.1.100:5678

based on the examples in liveView.py and got no response

@ea
Copy link
Owner

ea commented Feb 3, 2023

Thanks for trying it out!

Live view images/video is transmitted over multicast UDP which can be tricky to set up correctly on the client side and can be buggy. That ffmpeg command should work , but can be unstable (and might also depend on the firewall settings).

Are you on linux ? If you can start wireshark listening on the wifi interface , you should be able to see the packets, to at least confirm that the camera is transmitting.

Alternatively, trying a couple of times might get it working.

I'll try to make a custom client/script that does it correctly when I get some more free time.

@jonbjohns
Copy link
Author

i'm on windows.

@ea
Copy link
Owner

ea commented Feb 6, 2023

Ah, ok. I'll give it a try on Windows to see if it will work. As I mentioned, multicast UDP can be problematic due to many reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants