DJI FPV Video Out to a Mac Tutorial
ฝัง
- เผยแพร่เมื่อ 16 ก.ย. 2024
- Finally! We now have video output for the DJI FPV Goggles without needing to buy the Smart Controller! I'm using the v1 goggles with an Air Unit. This tutorial has nothing to do with the new DJI drone. This is for FPV pilots using the Vista or Air Unit. This step-by-step guide is specifically for users of an Apple Mac. I'm using a MacBook Air, but a MacBook Pro or other modern Mac should work fine as well.
The final command is long, so you can copy and paste it from here:
node index.js -o | ffplay -i - -fast -flags2 fast -fflags nobuffer -flags low_delay -strict experimental -vf "setpts=N/60/TB" -framedrop -sync ext -probesize 32 -analyzeduration 0
Credit goes to Joonas and Jack from D3VL, the og-s, fichek, mavericm1, Jack-Rogers, AndyRC, and many others.
Discord Server: / discord
For those who have issues with the last command working, you can also try this command: node index.js -o | ffplay -i - -analyzeduration 1 -probesize 32 -sync ext
Thank you! I got stuck using a usb-c to usb-c cable! I used a usb to a usb-c and it worked! ALSO everytime I restart my computer and open terminal for a first time I need to change the "cd voc-poc" and "npm install" then enter "node index.js -o | ffplay -i - -fast -flags2 fast -fflags nobuffer -flags low_delay -strict experimental -vf "setpts=N/60/TB" -framedrop -sync ext -probesize 32 -analyzeduration 0".
Hope that helps somebody! Cheers!
Thanks this worked amazingly. could you find a permanent solution for this.
I’m no DEV lol, I can’t code that
tried this for my fix too! wont work !
fired up perfect and tried to test it out so I can use it in the feild tomrrow and cant get it to go again
@@ianazariah restart your computer? and try again? "CD VOC-POC must be changed every time. then run the final long code.
For those who want to execute the command many times:
1. create a file e.g "file_name.command"
2. Paste these lines
cd "path_to_your_voc-poc folder"
node index.js -o | ffplay -i - -fast -flags2 fast -fflags nobuffer -flags low_delay -strict experimental -vf "setpts=N/60/TB" -framedrop -sync ext -probesize 32 -analyzeduration 0
exec $SHELL
3. Open terminal and execute this command to make your script executable:
chmod a+x file_name.command
4. (Optional) Right click on your file_name.command, select "Open with" and then "Other...".
5. From now, each time you want to LIVE hd dji video, just double click to your file and enjoy!
i need help with this please, i tried creating a text edit file with digiview.command and automatically puts an .rtf at the end. when i put in your command and put in both files names. 1 with just .command and the other with .command.rtf it does not work. it says no such file or directory. where exactly do i create this file ? and how
@@JsBlazIN Create the text file in TextEdit. Go to Format > Make Plain Text. Then, when you save, make sure you uncheck "if no extension provided use .txt"
Additionally, to ensure your file paths are correct, hold option and right click the file then copy filepath.
Nice ty
Having some issues with this on my Mac. Followed the steps but am recieving "Invalid data found when precessing input' " on the final step and no video is showing up. Any ideas?
Same issue. Any answers??
@@coltonegbert9766 haven’t figured it out yet. Ended up getting the DJI smart controller to share video to clients.
Same here…help please!
after this my mac stoped to use usb ports :
charger and else ,please send me how to uninstall all this progs thru terminal *((
This is so sweet thank you for showing us how to get it going!!
Fwiw I have to go back a couple steps to get it going again each time or get - "pipe:: Invalid data found when processing input"
By doing the directory thing
"cd voc-poc"
then
"npm install"
again it says it's already up to date, but then allows the final command
"node index.js -o | ffplay -i - -fast -flags2 fast -fflags nobuffer -flags low_delay -strict experimental -vf "setpts=N/60/TB" -framedrop -sync ext -probesize 32 -analyzeduration 0"
to once again successfully open up live video =]
Thank you so much I have been having issues getting this working from the link on how to install this on a Mac but all thanks to you it works well!! LEGEND
pipe:: Invalid data found when processing input
getting that all the time :( Newbie here btw
same issue
bump, same issue, no fix so far found for me
Bump again, no solution found
Also no solution for me :(
This worked like a dream for me. Thanks for the tutorial! After downloading WideFPV, it's super easy to connect and view the goggles on my MBP M1 Max.
What's WideFPV? Where do you download that?
Amazing, worked great on my 2013 MBP! Just a little behind, but great for showing others, what I see in my goggles while flying. Thanks!
So after doing all this, every time I want to use it, do I just open terminal and just paste that last selection of code? Surely I don't have to do all this every time? Thanks
Great video! I made the whole process and plugged in my goggles, but it doesn't show me the video feed, instead I get the note: "pipe:: Invalid data found when processing input".
Do you have a solution to this problem?
How do I install all the packages I installed before?
Thanks in advance for your kindness to spread your wisdom!
did you find a solution to "pipe:: Invalid data found when processing input"?
Thanks a lot man! Very nice and useful tutorial! Keep up the good work!
2024 :
npm install was failing for me. I was able to get to the next step by downgrading node:
brew install node@18
brew unlink node
brew link node@18
node -v
still haven't got video out. I succeeded a year ago but not since then
Hey, thanks for creating this video! Unfortunately I wasn't able to get it to work, I was following along until cd voc-poc command, but once i entered that I didn't get any "feedback". If you could help me resolve this I'd really appreciate it! Thank you!
You are producing amazing FPV Videos buddy ,,,, keep it up and good luck ,,,,, already subscribed ,,,,,,
So I got it to work. Thanks to you. But what is the process to get it to work a second time after restarting the computer and such? I tried just the command in this description but it doesn’t work with just that. Thank you
curious aswell
@@metroeastdroneaerials9252 also waiting for this
@@coolguyfpv found it out. When you re open terminal type cd voc-poc or cd poc-voc I can’t remember which then enter then ls enter and then past final command
@@metroeastdroneaerials9252 amazing thank you 🙏🏻
You’re a legend good sir. Thank you
Liked, subscribed, commented!
Thank you so much for sharing!!! 🙌🏾🙌🏾🙌🏾 Saving these instructions and joining the discord server just in case this gets taken down.
Hi there, I am getting this Error:
Error: Cannot find module '/Users/angel/index.js'
at Function.Module. resolveFilename (node:internal/modules/cis/loader:933:15)
at Function.Module. load (node: internal/modules/cis/loader:778:27)
at Function.executeUserEntryPoint [as runMain]
(node:internal/main/run_main:79:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND'
requireStack: [ ]
}
pipe: Invalid data found when processing input
Any suggestions?
i got the same thing did you get it fixed?
This solution is AMAZING! It works perfectly!!!! Thank you so much... Subscribed
Glad it worked for you!
i cant reach home brew in my terminal. it says zsh: command not found: brew
great thing ,BUT at 8:20 i couldnt read what ou wrote in the command line ??
Thank you very much ... it works really well... I tried it on my MacBook Air 2012... my only question is regarding the lag/delay... which is about 1/2 a second... is there any way to improve this? It doesn’t really matter since is just for the audience but is there anything I can do to improve this? But overall great! Image is crystal clear !!!
Processor is too slow
At 3:25 , my Mac says zsh: command not found: brew... ? can anyone help?
try this change the **Your PC Nam** to suit you. echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/** Your PC Name/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
Hi everyone, i couldnt get this to work with a usbc to usbc cable, but then as soon as i used a usbc to usb cable with the adapter to plug into macbook pro it worked. I don't understand why this would be a constraint but it's worth highlighting that this will not work with usbc to usbc .
stuck at npm install, getting a bunch of errors. do you mind updating this tutorial??
Good day.
I have the same problem it pop up a lot of errors while trying to npm install. Have you found any solution?
yay it worked
getting a load of errors when i sue npm install in the voc-poc directory, not sure why I've tried updating what I can!
Did work for me once and then never againg ! how can i delete all i instaled now? cuac
wow... I will have to try that soon. Would be amazing if it works...
Do you have to type all this code again next time when you want to connect though??
Estou com esse Erro:
node:internal/modules/cjs/loader:1147
throw err;
^
Error: Cannot find module 'usb'
Require stack:
- /Users/user/voc-poc/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object. (/Users/user/voc-poc/index.js:1:13)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users/user/voc-poc/index.js' ]
}
I have done this whole process three times and cannot get it to work. I did get it working initially but now all I get is goggles not found. MBP 2020 Mac OS monterey 12.3.1. I have updated the goggles, made sure I can see them on the fly app so the USB connections are solid. It's driving me crazy. I will pay someone to help me with this.
Doesn't work with my MacBook Pro (14-inch, 2021)
Does this still work? I'm getting an error code when I try this now. Could you possibly help? "Invalid data found when processing input." Thanks in advance!
Same here…
do you know if it will be possible to send the goggle feed to an iphone? Perhaps some third party device?
I can't install the npm , it show error, why
HEY! this is AWESOME! if i want to run this in the feild Is the process as simple as running that last bit of code in terminal when I open it up or or do I need to do everything over again?
thank you so much for making this.
ok reading comments!
Once you go through all that the first time what steps are required for subsequent video out sessions? Is it open terminal and paste in that final command?
Yes, exactly
In my case after unplugging everything it didn’t work just by copying that last command... I had to type in : cd voc-poc And then: ls and then plug everything back and copy that long last command... and it worked
@@diegofneira yes its likely- otherwise index won't be found
why is it so yellow in your video? Was there glitches? Cant wait to try it!
I got it to work at the begin but when i close terminal and open it again it wont open the viewer when i input the last command shown in the video description. Anyone can help?
You can try entering in all the commands again from start to finish
Ive done everything you said and it looked like it worked fine until the end, when the video does not appear and i get this last line:
nan M-V: nan fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
I was getting this issue too! I can't seem to get to fix it. Did you find a solution?
Hello I introduce myself matt fpv driver in France after watching your video I approve that it is functional for me on macbook pro. My question of the day is is there another way to recover the video after the terminal is closed? Because I managed on my side to have the video by redoing the same manipulations on the terminal Thank you for the video
Hi do you know if it works for 24-inch iMac Apple M1 Chip ?
Because I don't want start something It doesn't work and also I can't go back in my last computer set 😟😕
Hey I am having troubles with Mac OS termianl command to show the video. It doesn't pop up if I use that you linked
node index.js -o | ffplay -i - -fast -flags2 fast -fflags nobuffer -flags low_delay -strict experimental -vf "setpts=N/60/TB" -framedrop -sync ext -probesize 32 -analyzeduration 0
What do you use lately on newest mac os please?
I am not sure sorry. It should work on new macs as well. Maybe try running through all the commands again from start to finish?
Thank you 🙏
I hope this works
It didn't worked for me :(
In your opinion, how likely is this to get patched up by DJI? Should we refrain from updating vista / goggle firmware? If it does, is there a way to revert to previous firmware versions?
It would be very heavy handed, but they might. If they did and you upgraded, it would always be possible to downgrade to get this functionality again. So no fear, you'll always be able to do this from now on!
awesome
im stuck on "npm install" it says command not found :-(
You'll need to install node first. Try following this: treehouse.github.io/installation-guides/mac/node-mac.html
brew not found . HElpp
thanks for the great video. unfortunately i have errors everywhere after npm install... what could be the reason?
same here
Are you really not using NVM or did you just think it would be easier for non developers to install Node using brew?
This was meant for non-developers. By all means use whatever tools you'd like if you are more techie.
Tried it on my Mac, it works great, just a latency... on my mac is about 4s 😬 any way to make it better? Your one looks like almost perfect
It very well could be your processing power. Are you doing this on an old mac?
have i the Video output in the goggle and on the Macbook at the same time ?
Yes
Hi bro, nice video. But when I close and reopen terminal and past the last command in your video description, nothing happen. Can you help me ?
Stay safe
Try going through all the commands again from start to finish.
Will try this soon! I have one question, let's say if i need to run it again after closing terminal, I don't have to redo from step 1 correct? just run terminal again and 'node index.js -o | ffplay -i - -fast -flags2 fast -fflags nobuffer -flags low_delay -strict experimental -vf "setpts=N/60/TB" -framedrop -sync ext -probesize 32 -analyzeduration 0' to start the feed again?
thanks in advance!
That is a great question! Absolutely. This is just the initial setup. Once you do this successfully, you can just run that one command and it will work. You can save the command in a shell script, or as an alias if you don't want to type it out every time. Eventually, there will be an app or a hardware device, which will make the barrier of entry a lot smaller for the masses.
@@SoFlyDrones BIG THANKS! an app sounds awesome but this is better than nothing for now! just read that android's is in the work but most likely none for iPhone :( glad that I have the habit of bringing my mac everytime am flying with friends xD
@@jamilasyraf9576 Android isn't going to work for me. I'm an Apple guy! So, if there isn't an iOS solution, seems like a good challenge for me to take on.
If this works on iPad then 👌🏼👌🏼👌🏼👌🏼👌🏼
Will this work for DJI Fpv Combo?
I believe it should, but can't say for sure
Hi there, I'm getting an error:
[h264 @ 0x7fc4bc405d40] Stream #0: not enough frames to estimate rate; consider increasing probesize
Any ideas please? Need this quite urgently. Having issues with the dji smart controller not getting picture for client I will be dealing with tomorrow
Did you find a solution to this? I get the same exact error message.
@@madhatterfpv80 yes I found it doesnt' get enough power on the vista units, so you need to disable overheat protection in the goggles, for obvious reason be careful not leaving air unit powered on too long to overheat. I might also require that you only get picture when you arm
@@exclusiveaerials nice! So I got it to work by restarting the drone and goggles. Worked like a champ.
is this safe for the Mac?
Im getting errors when I go to enter the command from fpv-wtf and cant go any further
same here
Hi ! Hope you can help me... I'm always getting this error :
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
pipe:: Invalid data found when processing input
Thanks in advance! Great video!
Make sure the quad is on and the goggles are getting video from the air unit prior to running the command. Hope that works!
@@SoFlyDrones sadly does not work. Not even with auto temp off :/
I got it once to work, but then it said Module not found....
Did you manage to solve this? I am getting also a "Module not found" message too
Does this works with the DJI fpv drone and goggles V2 aswell ?
No need. The V2 Goggles with the DJI drone outputs to mobile devices without the need for a “hack”.
@@SoFlyDrones yeah but I want to output it to my MacBook
@@Ivan-ov6eb same
the link to discord server is expired. could you please fix it?
Thanks for pointing that out: discord.gg/JD3m3kSfxE
TY
Hi 👋 and Thank you for this 👌 do you know if it is possible to reverse the signal and use usb-c as input?
I am trying to get feed from my imac pro to my dji googles v2 so I can use them with flight simulator 👈
@@GunnarSt1 I’m not sure about that one
Does it work with Dji Goggles 2 (Not the V2).... Anyone?
I tried but I couldn't pass through npm i usb. it doesn't create a node_modules/usb directory and then nodegyp does not compile of course. Let me know if you find a workaround.
I can do most of the commands. but at 6:40 when it's time to npm install the 3 dependencies, I got the error that the usb node module does not get installed. I'm a recent node js developper and I usually developp on Windows. Not OSX so I'm not so familiar with osx. I just bought my first MacBook Air M1 in January.
@@mathieu.tourangeau hello, I am having same problem,
where you able to resolve this issue?
@@rawfa2776 no. I wasn’t able to by pass this error.
anyone try send video via cdmi?
Old stuff! Yesterday it was up to date. ;-)
How can you uninstall this process and brew also ?
Hello so I ran everything and it looks like it is streaming but I don't see the video on the machine. I scrolled up as you suggested and don't see a window any thoughts?