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

Windows 10: no errors in console, but no video window? #5

Open
danbritt opened this issue May 12, 2021 · 4 comments
Open

Windows 10: no errors in console, but no video window? #5

danbritt opened this issue May 12, 2021 · 4 comments

Comments

@danbritt
Copy link

danbritt commented May 12, 2021

Wondering if anyone knows what might be going on here. I'm getting output in the console with no errors, but no window pops up with the video. Also, if I try the other commands to write out to .bin or .mp4 file, no file shows up.

Here is the output I see in the command window when trying to pipe to ffplay. Command window is ran as administrator:

D:\drone stuff\voc-poc-master>node index.js -o | ffplay -i - -analyzeduration 1 -probesize 32 -sync ext
ffplay version N-102494-g2899fb61d2 Copyright (c) 2003-2021 the FFmpeg developers
  built with gcc 10-win32 (GCC) 20210408
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libvmaf --enable-vulkan --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --enable-libglslang --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
  libavutil      57.  0.100 / 57.  0.100
  libavcodec     59.  1.100 / 59.  1.100
  libavformat    59.  0.101 / 59.  0.101
  libavdevice    59.  0.100 / 59.  0.100
  libavfilter     8.  0.101 /  8.  0.101
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100

Any help would be appreciated! Thanks!

Edit: I tried on another pc just to see if there was some kind of issue in my environment. Same thing. No errors in console, but no video showing up.

@moetop
Copy link

moetop commented May 12, 2021

Do you have it connected to a video source (an Air unit or vista) ? I had the same thing. I get no output without a video source and it just displays the video raw, no HUD. As soon as I connected to my air unit it displayed.

@danbritt
Copy link
Author

danbritt commented May 12, 2021

I did have it hooked up to a vista unit. I could see the video feed in the goggles. I also tried with the drone armed (since the goggles only start recording once the drone is armed, I figured that might have something to do with it, but it didn't help.)

Also, a little more info:
The output in my original post is missing a bit of info. That is what I see when I kill the console command and restart it. But the first time I run the command in the console, I get this output which has more lines at the bottom:

D:\drone stuff\voc-poc-master>node index.js -o | ffplay -i - -analyzeduration 1 -probesize 32 -sync ext
ffplay version N-102494-g2899fb61d2 Copyright (c) 2003-2021 the FFmpeg developers
  built with gcc 10-win32 (GCC) 20210408
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libvmaf --enable-vulkan --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --enable-libglslang --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
  libavutil      57.  0.100 / 57.  0.100
  libavcodec     59.  1.100 / 59.  1.100
  libavformat    59.  0.101 / 59.  0.101
  libavdevice    59.  0.100 / 59.  0.100
  libavfilter     8.  0.101 /  8.  0.101
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100
[h264 @ 000001c0cc4c9100] Stream #0: not enough frames to estimate rate; consider increasing probesize
[h264 @ 000001c0cc4c9100] decoding for stream 0 failed
Input #0, h264, from 'pipe:':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 960x720, 60 tbr, 1200k tbn
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

According to videos I've seen on youtube, this output looks fine, except the numbers on the last line are supposed to be changing as the feed streams in, and in my case, they are all staying at 0 even though I can see the feed in my goggles.

What I've tried:

  • I made sure the bulk transfer endpoint is using WinUSB
  • Tried using 2 different usb cables that are known to work
  • Tried on 2 different PCs, both running Windows 10
  • Arming the drone
  • Starting the program before and after powering up the drone

@danbritt
Copy link
Author

Solved
I was watching ItsBlunty's video on this (https://www.youtube.com/watch?v=4io3k1wD4-U&t=0s) and at the beginning, he's showing a portion of discord chat and it's mentioned that you either need to turn auto thermal management off, or have the drone armed.

For me, arming the drone didn't do anything, but turning the auto thermal management off fixed it and I'm now getting the video feed on my pc.

This may be an important bit of info to add to the troubleshooting section of the readme.

@MACKNUS-INC
Copy link

Have this exact same problem and it does not work to arm the quad.

I dont really want to turn off auto temp control.

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

3 participants