matthutchinson / videosnap Goto Github PK
View Code? Open in Web Editor NEWSimple command line tool to record video and audio from any attached capture device
License: MIT License
Simple command line tool to record video and audio from any attached capture device
License: MIT License
This code is a true gem! I've got it up and running, and it works as stated. My one question: I see that it is possible to record video with no audio, but is it possible tor record audio only (no video)? Any adjustments I could do from my end, or would this require a revision from ground up? Any input or ideas are appreciated! Sorry if this is the improper way to ask, I'm unfamiliar. Thanks for sharing!
I apologize if this has nothing to do with this program; I suspect this is the case, but I've searched about high and low and cannot figure it out. I'm wondering if you might have some time to offer any input/advice.
I'm running on a Mac Mini (Late 2014) 2.6ghz i5, running the public beta of Mojave 10.14.3.
When I execute the program, I immediately get the following output:
GVA encoder info: recomputed for fps: 29.970030, got size in pics: 29, got size in sec: 1.000000
Everything appears to run smoothly after this, and it creates a file that I can view as I would expect...
The thing is: the files won't play on iOS. I see a thumbnail, and when I tap it, the timeline appears to load, but then just nothing happens; no audio, no video.
I've been uploading the files to iCloud Drive and sharing them out to family members; they can only view the files on a Mac (haven't tried on a windows box). Out of 6-7 different iOS devices (mostly running iOS 12), nobody can view the videos (unless they use a Mac).
I've tried several other more direct file transfers to account for iCloud Drive weirdness (e.g. directly to my iPhone X); nothing plays.
The only thing that does work on iOS is to view things through VLC.
Are you aware of any codec changes that might have happened in AVFoundation in Mojave or its betas that might cause this? Any idea how to work around it? I'm going to attempt to un-enrol from the beta and see what happens.
Many thanks for your time and expertise! Feel free to close this without comment if you just don't have time.
What if you want to record a video of an unknown length? Is there a way to have it record the video until you press Ctrl+C?
Rather than taking always capturing video, allow videosnap to take a single frame, and save to an image in a variety of formats (like imagesnap).
Hello. I've been using this happily on newer hardware, but I just inherited an older 2006 era Mac Mini running at 1.66ghz and on Mac OS X.5.8 (Leopard). As per the readme, this should be supported? The thing is, I get "videosnap: Bad CPU type in executable" when running videosnap -l
Any ideas?
Thank you for the awesome utility :)
See Xcode Unit Testing for more details
I would like a CLI for recording a specific part of the screen with Quicktime Player
Current manual method:
Quicktime Player (10.4)
Need to be able to pass TopLeft(x,y) and BottomRight(x,y) to record just that part of the screen.
Hi, the high preset for my 4k webcam (Logi 4k Pro) records in 1080p and I don't see a way to record natively in 4k. Any idea about this?
Let me know if I can help - thanks!
I use command line tool app and i have a crash because "because it attempted to access privacy-sensitive data without a usage description".
I tried to build my own command line tool which record from connected camera but I get the same issue. I tried to add info.plist with NSCameraUsageDescription key and add Request authorization for Capture function but i didn't get any success. It crashes and I get the same error.
When I open two terminals and call videosnap in both at roughly the same time, the second instance waits till the first is done recording and only then starts recording even when using two different webcams. So it is not possible to capture multiple webcam streams at the same time
Investigate animated gif file format for more details.
This is a useful application. I forked it because I need pipes support. While I'm digging around, I noticed that QTKit is deprecated. I'm just about done moving it to AVFoundation. Do you want me to do a pull request when I'm done?
Maybe this is outdated and there's a better Solution but if not then I don't know what people think what is important.
I mean what is practical. I am living on windows still unfortunately though.
Maybe there is a Windows version or a possibility to execute this from
I just have to get the OS X Docker container running. And then I will try this amazing thing. Thank you
Thanks you very much for this tool!
I found out during testing it that it doesn't handle diacritics in a device name properly. (Maybe non-ASCII characters or some issue with UTF-8 vs. UTF-16 encoding?)
kaspar@Matejs-MacBook-Pro Downloads % ./videosnap -l
Found 2 available video devices:
* FaceTime HD Camera (Built-in)
* Kašpar's iPhone XS
kaspar@Matejs-MacBook-Pro Downloads % ./videosnap --no-audio -d "Kašpar's iPhone XS"
Device "Kašpar's iPhone XS" not found - aborting
videosnap is awesome, it gives much better experience compared to ffmpeg on video recording. Onething is that the startup time is quite costly, which is not ideal if you need to record multiple small videos instead of a big one. I wonder if there is a way to speed that up, if not, perhaps allow videosnap to run in server mode where it possible to tell it when to start/stop capture video and it will respond in just a matter of milliseconds.
I was wondering if it was possible to run multiple versions of videosnap (say I have 3 cameras attached) is there a way to launch videosnap on each one simultaneously (perhaps by defining which attached camera I am want for each)? Or will it kill the earlier session when I run the new one?
I am not able to capture any videorecording on connected iPhone. Recording works as expected using QuickTime.
See the verbose output of videosnap -p High -d "$DEVICE_NAME" "$FILENAME"
below:
(caught signal: [2])
(stopping recording)
(finished writing to movie file)
(stopping capture session)
Failed to capture any video
(reason: Cannot Record)
Turns out this is supposedly an issue on Apple side. See https://developer.apple.com/forums/thread/677199?login=true&page=1#692431022
Hi,
I'm trying to capture both audio and video from a USB device (AV to USB). While the video capture works perfectly, the audio is being recorded from my Mac's mic. Is there a flag to force the audio source as well? Thanks :)
Hi,
Thanks for this tool. I’ve been using it a lot for multiple plugged webcams.
Yet, lately the webcams lost their unique identifier, they are all named BRIO. There is no way for me to rename then. It makes it impossible to target one since the name is always the same.
Is there a way, I could target the Port instead (similar to openCV)?
Kind Regards,
Clément
Exact length timing of captured output is imperfect given camera warm up time. Investigate possible fixes so that exact duration can be specified to the milli-second. (use ffmpeg -i to examine video output)
actually I want to use this command line tool to capture video of my iphone which I plugged into my mac when I do some manipulations on it, but after I execute videosnap in my mac: ./video -l, it only list my facetime HD camera, but no my iphone, but I can see my iphone when I open quicktime, any suggestions,thanks.
Target device:
ProductName: Mac OS X
ProductVersion: 10.14.4
BuildVersion: 18E226
Error: abort trap: 6
_Request:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.