Entries tagged as videoRelated tags bash bug image processing internet mathematics nautilus programming software usenet fun anti-spam austria comic cw fail gentoo geography german gnu-linux google android debian migration phone photography time lapse microsoft philosophy politics private finance hardware history cloud cryptoTuesday, July 9. 2013Cheap time lapses, II![]() ![]() Some quotes of myself from four years ago: “Cheap” should mean here that you don’t need to spend money on extra hardware like a remote timer or on extra software like Windoze [...] My hope is that I can use gphoto2 with an Android smartphone. Somehow this is still a Linux-post, as Android simply is the most popular Linux distribution to date. Btw, PC and smartphone don’t count as dedicated extra hardware. But you might need to purchase an app and a USB adapter: Meanwhile I use the awesome DSLR Controller on my Android smartphone in USB host-mode to create time-lapse picture sequences on my aging Canon EOS 40D—a thing that wouldn’t work with a diePhone, I guess. This app can do a lot more, of course. Up to now, you have to rely on USB. However, as Wi-Fi enabled DSLR The most elegant solution would of course be located within the camera itself. Canon is still sleeping in this regard, but at least there’s the third-party Magic Lantern firmware add-on for some newer models, also sporting an intervalometer. My 40D is not (yet, but I guess won’t ever be) supported. You should still set the camera to a resolution at or slightly above the HD 1080p resolution, which in my case is 1936×1288. You should fix the aperture and ISO values, and probably also the exposure time. [Update: In addition, fix the white balance. Also, don’t forget to cover the viewfinder with the eyepiece cover on your strap, as otherwise you might get different exposures that result in flickering!] After getting the images to your Linux machine, you need to crop the pictures from 3:2 to 16:9 (in my case 1936×1089) or crop a 1920×1080 patch directly. You can do this with a simple script using ImageMagick: #!/bin/bash
[ ! -z “$1” ] && v=$1 || v=0 [ ! -z “$2” ] && h=$2 || h=0 for img in *JPG; do num=$(echo $img | tr -d ’[:alpha:]_.’) convert $img -crop 1920x1080+$h+$v img_${num}c.jpg done (GNU Parallel didn’t work for me.) You can then issue $ mencoder ’mf://*jpg’ \
-nosound \ -ovc x264 \ -x264encopts nocabac:level_idc=41:bframes=0:bitrate=9500:\ global_header:threads=auto:pass=1 \ -mf type=jpg:fps=24 \ -vf dsize=1920:1080:2 \ -of lavf -lavfopts format=mp4 \ -o timelapse-f24-1080.mp4 to render an HD video into a format that’s also recognized by your smartphone. Finally, you could use OpenShot to edit your videos and add background music. (You could of course compose that music yourself using FOSS as well...)
Posted by Stephan Paukner
in Information Technology, Photography
at
15:28
| Comments (0)
| Trackbacks (0)
Saturday, November 28. 2009Cheap time lapses with gphoto2![]() ![]() “Cheap” should mean here that you don’t need to spend money on extra hardware like a remote timer or on extra software like Windoze (which Canon’s EOS Utility depends on). With a GNU/Linux system, just install gphoto2—in Debian, take version 2.4.5 from ‘squeeze’. After attaching your e.g. Canon EOS camera via USB, you can issue the command $ gphoto2 --auto-detect --force-overwrite --capture-image-and-download --frames 360 --interval 10
to automatically shoot and download images for a time lapse, in this example every 10 seconds for one hour. You should keep all exposure values constant and switch to a lower resolution in advance. You can render an HD video e.g. with $ mencoder mf://*jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:vbitrate=7200 -mf fps=25 -o timelapse.avi
If you make it bad, it might look boring like my very first try: If you make it good, it should look like this. My hope is that I can use gphoto2 with an Android smartphone. Tuesday, October 13. 2009How to download videos from YouTube![]() Although there are some tools available that allow you to grab videos from YouTube to your local storage, I rely on this plain method (rarely, though):
Friday, March 13. 2009Free software vs. Microsoft![]() The fact that the idea of free software is so contrary to the behavior of Microsoft is exactly reflected by how their respective representatives act in their talks. Here’s a quick video edited by myself from sources I found on YouTube: It’s totally up to you who you trust. Thursday, July 17. 2008Context menu entry for video conversion![]() Sometimes I take AVI videos with my Canon PowerShot, and I process some of them with a video editor and export them as MPEG. However, those video formats can’t be streamed, and so I like to convert them to FLV to enable a YouTube-like streaming in web galleries by a flash video player. For convenience, I wanted to use a context menu entry for Nautilus, where I could right-click on a video file and select “Convert video to FLV”. Luckily, Nautilus supports to execute arbitrary scripts from the context menu if you simply place them into ~/.gnome2/nautilus-scripts/. The only disadvantage is that it doesn’t check the file type in advance, thus also showing the video conversion entry for non-video files. However, you can include that logic into the script itself. The script is a little more complicated, as I didn’t know how to better parse the file names. Probably I should have used Perl. Here is my ~/.gnome2/nautilus-scripts/Convert\ video\ to\ FLV:
(Page 1 of 1, totaling 5 entries)
|
AboutCalendar
ArchivesCategoriesShow tagged entriesandroid anti-spam apache astronomy austria automobile ballooning bash bluetooth bug career cloud collecting comic cooking crypto cw debian diy dreams education electronics event fail fashion finance flickr fuerteventura fun gentoo geography german gnu-linux google google earth guitar hardware history image processing internet kernel kids language lanzarote lhc lifestyle linkroll literature ltd machine learning making mallorca mathematics matlab microsoft migration movies munich music nautilus octave pdf perl philately philosophy phone photo gear photography podcast politics postfix private programming public transport rant religion review salzburg samsung science security shtf social web software statistics storage sustainability symbian tablet time lapse transceiver tv usenet venice video virtualization wordplay work www yahoo
Syndicate This BlogFollow meBookmarks
Powered by |