I was looking to stream to twitch.tv from Linux, but none of the existing solutions were embedding the webcam over the captured desktop. Since twitch.tv works with rtmp, and existing scripts were using ffmpeg, it was easy to modify the script to add the camera as an overlay. Here’s the source for anyone interested:
#!/bin/bash API_KEY="live_..." FPS="30" INRES="1920x1200" OUTRES="640x400" ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 \ -f alsa -ac 2 -i default -vcodec libx264 -s "$OUTRES" \ -acodec libmp3lame -ab 128k -ar 44100 -threads 0 \ -vf "movie=/dev/video0:f=video4linux2, scale=120:-1, setpts=PTS-STARTPTS [movie];[in] setpts=PTS-STARTPTS, [movie] overlay=main_w-overlay_w:main_h-overlay_h [out]" \ -f flv "rtmp://live. Read More...
A few months ago, I decided to try out zsh as my default shell. It’s very similar to bash, but is much more powerful. My favourite features so far:
Shared command line history among all sessions. I usually have at least 4-5 shells open, and the command history being shared among them is awesome. Means I don’t have to hunt in which shell I typed that huge pipe command, it’s just available across all the shells! Read More...
Update: The problem is solved now, it was because the parent directory had the +i flag set.
I ran into a weird problem today. I was cleaning up disk space and ran into a file that refused to delete.
geekbox:/media/7/ # rm file.iso
rm: cannot remove `file.iso’: Permission denied
No problem, huh? Did everything I could think of:
geekbox:/media/7/ # rm -f file.iso
Permissions? **geekbox:/media/7/ # **chmod 777 file.iso
**geekbox:/media/7/ # **chown root:root file. Read More...
Inspired by Rohan, I too decided to make a list of the TV shows I have seen/currently seeing. And (hopefully) by the end of next three years, I will have caught up on him. 😉 (The numbers in the bracket are the number of seasons seen).
Friends (10/10) – It’s a good comedy, but the way people watch it over and over again makes me cringe. That 70’s Show (8/8) – I loved it, though it gets a bit boring halfway through. Read More...
…. is an awesome sitcom. 18 episodes of pure humor. If you have not seen it yet, go get it and watch it.
And now, a true incident that happened today (inspired by The IT Crowd, of course).
I happened to go to the server room today.
JP: We are, izzin, having some issues, izzin, with the faculty mail server. It’s, izzin, giving input/output errors, izzin with the disk, izzin. Read More...