|
At the crossroad of New media, Engineering, Research and Development
|
|
Archive for ‘Video’ Category
Nov
03
2011
Stream your Windows desktop using ffmpegI’ve already covered how to do this with vlc a while back in parts 1 followed by part 2. I just found out that something very similar in results can be done with ffmpeg. ffmpeg has recently added support for directshow filters which now allows one to capture the screen and stream and/or save it. Here is how you can do this: 1.) Grab a copy of the Screen Capture DirectShow source filter from Unreal Streaming Technologies. It’s about half way down that page. They have both the UScreenCapture X86 Edition and the X64 Edition (depending on your OS installation). I used the 64 bit filter on a Windows 7 64 bit installation. 2.) Install the filter and make sure you make the following changes to your windows registry using regedit. The default frame rate for UScreenCapture filter is 10 f/s and we need to boost this to 30 frames/sec. You need to find the key HKLM\SOFTWARE\UNREAL\Live\UScreenCapture and insert a DWORD value of 30 for FrameRate (You have to create FrameRate, it does not exist by default). Once you’ve done the registry tweak, reboot. 3.) Install the latest greatest version of ffmpeg for your windows version from Zeranoe. I grabbed the 64 bit Static build since I didn’t want to deal with libraries and such. Extract it and stick it somewhere on your hard drive. Remember the path to this folder since we will need it later. 4.) Open a command line window and cd to the directory where you extracted ffmpeg into, find the bin directory and cd into it. This is were the ffmpeg executable resides. In my case (I extracted the ffmpeg files into “Program Files” directory) it is C:\Program Files\ffmpeg-git-059707e-win64-static\bin. 5.) If you’ve made it this far, hand in there, we’re almost home. Now you need to issue the command that gets the screen streaming going. But first we need to find out the name of the Screen filter device. So issue the following command:
In the output look for a device called “UScreenCapture“. Hopefully if everything is working with the directshow filter you have a entry in the list. That’s the name of our device that we need to pass onto ffmpeg. While you’re there also look for your audio device entry as well. Mine was the truncated word “Stereo Mix (Realtek High Defini” (Yes mine was missing the end of that line). Jot that down somewhere as well. I will show you how to get audio going as well. 6.) So first step is to get video going. Assuming you have a “UScreenCapture” device (You could use another directshow filter if you like, this will work with most of them. I just used the Unreal filter for the heck of it), here is the command to start encoding and sending video:
7.) On the receiving machine you should be able to use vlc, ffmpeg or mplayer to catch the stream. In vlc simply open the Network stream rtp://@:6666 , in ffmpeg you can use the command ffplay -i udp://:6666 or using mplayer you can issue the command mplayer -framedrop -double udp://:6666 . 8.) Now to optionally add sound to the whole thing we can use this command on the encoding machine (instead of step 6). You need to know the device name for your sound card and you probably want to turn the volume down (at least initially) on the decoding machine.
Mar
05
2010
How to stream live HDV/DV to iphone…..In this guide I’ll show you how to stream live HDV/DV video to your iphone using a linux box (Ubuntu 9.10) with firewire input running vlc/ffmpeg and a Imac with OSX 10.6.2 running mediastreamsegmenter and apache2. Start out with the iPhone streaming media overview. Without understanding this document you’ll have a hard time getting things working. First things first, you need to have a working Ubuntu 9.10 machine. I’m using a small footprint 2.4Ghz Core2Duo machine with PCI firewire 400 card in it. For video input I’m using a Canon HV30 set to HDV mode (1080i/60) connected via firewire. Next you need to follow the instructions on this page (steps 0-5) to get a working ffmpeg with x264 and aac encoding. Without this working you’re not going anywhere….sorry. If you’re trying this on a different Ubuntu installation follow the other links to get a working ffmpeg setup. Then install vlc using “sudo apt-get install vlc“. I used vlc as my encoder frontend as I understand it better than ffmpeg. You can use just straight ffmpeg as well if you can figure out how to get it to encode the live HDV stream over firewire. You’ll also need dvgrab utility. Install it using “sudo apt-get install dvgrab“. Now we want to make sure the internal firewire module is working so type this command and see if you get a vlc window with the camera output in it (make sure you turn the camera ON and hook it up first). Next we need to create a media stream out of our linux box and ship it over UDP to the Imac. The vlc command below gets the job done. Remember you’re sudo’ing and need to provide the password after you enter the command. So now we can go over to the mac and see if we receive the video stream. For that just run VLC for OSX and open UDP network port on port 1234 (udp://). If things are working nicely you should see a 320×240 video from you HDV camera on the Imac. Now that we have the video on the mac, we need to use the “mediastreamsegmenter” command line tool to create HTML5 video stream out of it. mediastreamsegmenter listens on a UDP port for incoming transport stream chops it (by default) into 10 sec. “mini” transport stream files and writes these mini files to wherever you tell it. This location is important since it needs to be accessible to your webserver. Remember, at the end of the chain (day), the webserver is doing all the heavy lifting of delivering the mini transport stream files to your iphone. mediastreamsegmenter also produces a file of type .m3u8 Something you might not know is that apple ships standard OSX with apache builtin. All you have to do is use the following command to get it started. Now you should be able to open up your browser on your iphone/ipod touch and punch in http://192.168.1.97 (assuming the Imac is reachable from your phone) and see the streaming video (You might have to turn on “Plugins” feature under settings/safari on your device. Mine was turned off and drove me crazy until I figured it out). If Plugins is turned off, the index.html page will load, but no video. Hopefully there is enough meat here to get you guys started……btw. I hear the following command (or variations of) can be used on linux side (instead of vlc). I haven’t tried it and can’t confirm if it works. Some excellent information can be found on Carson McDonald’s blog: Feb
05
2010
Movist…..will it be the next VLC for mac….The answer to that is maybe, we’ll see. But all that aside if you’re interested in a minimalistic video player that can handle more codecs than VLC and is generally faster then give Movist a try. The unique thing about the player is that it allows you to switch codec engines between ffmpeg and quicktime based on file extensions. Oh and did I say it’s FREE aswell
Jan
19
2010
DisplayPort does true 4K video….plus other stuff….Well, it’s taken a bit of time, but I think with the announcement of DP1.2 specs last December, the specs (and hopefully soon the vendors) are ready for True Digital Cinema home implementation. The DisplayPort connector supports 1, 2, or 4 data pairs in a main link that also carries clock and optional audio signals, each with a symbol rate of 1.62, 2.7, or 5.4 Gbit/s. The video signal path supports 6 to 16 bits per color channel. This allows the updated DisplayPort 1.2 specification to drive 4K x 2K display (3840×2160) with 30 bits per pixel and 3D over a single 2m cable. DP 1.2 supports a maximum of 5.4Gbps per lane, with 4 lanes providing a whopping 21.6Gbps throughput, more than enough for 10-bit 4xHD resolution (3840×2160). To achieve the 21.6 Gbps rate, the per-lane data rate is doubled from 2.7 Gbps to 5.4 Gbps max, over the four lanes that exist in the standard cable. For a single display, this enables up to 3840 x 2400 maximum resolution at 60Hz, or a 3D display (120Hz) at 2560 x 1600. Display Port 1.2′s massive data rate will enable Multiple-Streaming, support for stereoscopic images beyond full HD, a high-speed data channel, and support for mini connectors. Multi-Streaming — is the ability to transport multiple independent uncompressed display and audio streams over a single cable. This enables the use of multiple monitors connected by cable in a daisy chain or hub configuration. Whereas the current Display v1.1a standard can support one 2560 x 1600 monitor at 60Hz, DisplayPort v1.2 can support two such monitors with one port, or four 1920 x 1200 monitors. Another new feature is the ability to support high-speed, bi-directional data transfer, allowing USB 2.0 or Ethernet data to be carried within a standard DisplayPort cable. For DisplayPort v1.2, the maximum data rate of this “AUX” channel has been increased from 1 Mbps (Mega-bit-per-second) to 720 Mbps, providing suitable bandwidth for USB 2.0. The DisplayPort cable can therefore support USB data to/from the display to support Display USB functions, in addition to sending the video and audio information. Standard Ethernet can also be transported in the DisplayPort cable. On the audio front DisplayPort v1.2 adds the following new enhancements:
DisplayPort v1.2 also includes improved support for Full HD 3D Stereoscopic displays:
The only thing on my wish-list that they (VESA) omitted is support for true 4K DCinema (4096×2048) resolution. But I guess you can’t have everything……and there is always DP1.3 Jan
14
2010
OpenShot Video Editor 1.0 released…..iMovie for Linux is here.For those of you who don’t know OpenShot Video Editor(TM) is an open-source program that creates, modifies, and edits video files. OpenShot provides extensive editing and compositing features, and has been designed as a practical tool for working with high-definition video including HDV and AVCHD. Jonathan Thomas and crew have reached their 1.0 milestone (congrats OpenShot’s Features include:
There are 4 ways to install OpenShot: LiveDVD, PPA, DEB Installer, and the Build Wizard. Grab it here.
Oct
22
2009
National Film Board of Canada’s New Iphone/Ipod Touch App….I usually don’t tend to write about apps, but this one got my attention. Download the FREE NFB app and you get access to over a thousand films, documentaries, animations and trailers on your IPhone or Ipod Touch. I think (hope) that this move will be the trickle before the storm that will finally open the flood gates of media archives being made available to people everywhere. It is a real shame that these works are usually housed/guarded in some concrete bunker, being only available to specialists. I will not bore you with my opinions on archives/copyrights/rights management of our collective cultural treasures by the “high priests”……Let’s just say I’m crawling out of my skin in joy that NFB has taken the (hopefully) first step Jul
20
2009
Samson strikes again…..This time with Q3….I love the Samson guys, they introduce a product, listen to the customers, improve the product and release it at a more affordable price. Q3 is their latest creation and it goes straight after all you pod/vod casters out there. Need to do a interview, gotta have good video….and need to have the best sound, well if you’ve got $250 bucks then Q3 is your friend. The Q3 Handy Video Recorder brings Samsons renowned audio technology to the camcorder, making it the best sounding video camcorder you’ve ever heard. So throw away your Creative Vado/Flip HD gadget and step up to video with “Real” sound. After all “Apocalypse Now” still looks good on VHS ’cause it had kick ass audio. The Q3 uses the same microphone capsules as our industry-leading H4n Handy Recorder and is perfect for recording anything where great audio and video are a must. From live musical performances and rehearsals, interviews, conferences to video podcasts, journalism, education, recitals, weddings or sports, the Q3′s pristine audio quality takes your videos to another level. The Q3 puts a little bit of video and a whole lot of audio together in one quick and easy to use camcorder that lets you produce great movies on the go. Features:
I came across The Basics’ “With this ship” video this morning and I figured I had to share it. Great music and a fantastic video created by Aussie director and animator Matt Arnold. May
06
2009
Touchless, Gestrual Interface, Powered by ElectrostaticsGreat video showing a bizarre and novel way of creating a gesture based interface. You literally touch nothing….Air…..and the interface does the rest. Pretty interesting project. According to Justin Schunick of the team at Northeastern University, the interface uses an array of copper electrodes to sense a certain change in the electric field created by the device. The black material covering the electrodes shows how the interface can be hidden beneath surfaces to create a completely invisible interface. It is simple black felt you can buy at any fabric store. The total cost of this prototype was around $60.00 USD. They created custom software to communicate with the microcontroller running the show with C++. This enables the use of the device as a new type of XYZ computer mouse. Think nintendo wii controller without the controller — or minority report without the gloves. This can potentially be revolutionary as far as HCI goes. May
06
2009
Augmented Reality Magic…..or simply MAGIC!!!Came across this video today and my first thought was…..magic??….Hmmm…..gotta be a video editing trickbut once I watched it for the fourth time it slowly started to click. This is by far the most innovative use of AR I’ve seen…..It’s fascinating…..It’s Magic BTW. Marco writes:
this is 100% real-time stuff – No post-processing. Programmed In C++ with OpenFrameworks, OpenCV, ARToolkitPlus, MacCam and other Open Source goodies…
It’s called Subprime and is an animated musing on our current financial crisis. The tag line is: “Watch the American housing market spiral out of control”. Really cool…. Nov
11
2008
COGE: Opensource mac VJ software…..If you like Quartz Composer and are into VJ/Visual software, CoGe might just be for you. It’s got clip triggering, effects, mixing and playback modules. Check out the CoGe forums for more info…..For now here is a “Intro to CoGe 0.85b” and “What’s New in 0.93b release” videos:
Have Fun!!! Aug
25
2008
DivXLand Media Subtitler will subtitle your movies in seconds…..I’ve always had problems with this and now really appreciate the value of DMS (DivXLand Media Subtitler). You see I own a small HD media player that’s connected to my TV. The trouble with this little gadget is that it does not support subtitle files. That’s not a problem anymore since DMS allows me to embed the subtitles into the Divx/Xvid file before I watch it. DivXLand Media Subtitler key features: Fantastic windows only application and free to download. Aug
25
2008
Quick Media Converter brings Windows GUI sanity to ffmpeg…..For those of you who’ve hated the opensource ffmpeg command line media conversion tool, here is Quick Media Converter. It’s a nice looking front-end for ffmpeg that hides the command line complexity of this swiss army like media converter. So What can you do with Quick Media Converter?
It’s a Windows only utility and is free to download. Aug
18
2008
More Siggraph Madness….Is anything real nowadays?….More crazy image-enhanced video rendering papers from University of Washington being presented at Siggraph08. I just can’t get enough of these new applications of combining crappy video and some still frames to produce eye popping results. Most of the experiments in this video were done using a standard video camera and a hi-res still camera. The results were combined, some secret sauce added and you end up with these killer results. I for one can’t wait for editing packages to include some of these research topics as new features….Can you say UNREAL Jul
12
2008
Kraak and Smaak’s visual flipbook feastThis brand new Kraak and Smaak video is just too cool. Makes me want to do some flipbooking of my own. Great visuals and well fantastic music to boot…..enjoy Jun
26
2008
Transcode and stream DV to mpeg4 via firewire using VLC and Ubuntu 8.04 (Hardy Heron)Well kids are you ready for todays lesson in transcoding DV video. So first you need a decent machine. I’m using a P4 2.4Ghz oldie that has Firewire on-board and am chewing up 50% CPU for NTSC encoding. Then you need to get Ubuntu 8.04 installed. Once that’s done use the following command to install vlc (Video Lan Client): The above command (in case you’re wondering) will literally open device zero on the firewire chain and redirect it’s raw output into the VLC program. VLC is told to accept input from a pipe in rawdv format and to transcode it to mpeg4 Video @ 1Mb/s with mpeg1-layer3 audio @ 192 Kb/s. Once the above command is running you’ll need to go to your receiving machine (the machine who’s IP you supplied in the command above), run VLC and from the File menu choose “Open Network Stream” and go with the default UDP/RTP on port 1234 (or whatever port you chose in the encoder command line). Another neat thing you can do with your new found opensource goody bag is capture DV from your camera/settop box and save it in mpeg4 format for archival purposes (or mpeg2 for editing maybe). I’m not gonna get into the details, but assuming you’ve done the above commands, skip the encoder command and issue the following command to get your DV stream saved: Have Fun…. |