VLC desktop recording and streaming


C:\Program Files (x86)\VideoLAN\VLC>vlc.exe screen:// :screen-fps=10 :sout=#transcode{vcodec=h264,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=}:duplicate{dst=std{mux=mp4,access=file,dst="d:\tmp\screencast.mp4"}}

Converting img, avi, mpg

mencoder input.avi -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy other_options -o output.mpg
ffmpeg -i file.avi -vcodec mpeg4 -f mpeg output.mp4
avconv -i input.avi -qscale 1 -ac 2 -c:v mpeg2video output.mpg


Merge audio music via VLC

"c:\Program Files\VideoLAN\VLC\vlc.exe" -vvv "d:\audio.mp3" "d:\Silence-5seconds.mp3" 
--sout-keep --sout=#gather{} --sout=#standard{access=file,mux=raw,dst=d:\out.mp3} --sout-all

Facebook POST via PHP

APP access tokens are used to get information that your app is privileged to access. And in some cases where publish_stream is granted from an app user, you can use it to post to that user's wall, without needing a USER access token.

Raspberry Pi - input button in pythoon

Raspberry Pi (B)

import RPi.GPIO as GPIO
import time
import os

#adjust for where your switch is connected
buttonPin = 3

while True:
  #assuming the script to call is long enough we can ignore bouncing
  if (GPIO.input(buttonPin)<>1):
    #this is the script that will be called (as root)
    os.system("echo Hello world")

Blinking SMS symbol Nokia

Menu -> Zprávy -> Volby -> Zprávy SIM -> Smazat vše

Blinking SMS symbol Nokia

Messaging>Options>SIM messages->Delete all

Mateřské školky Plzeň

Change internet settings in windows


@echo off
if "%1"=="static" goto static
if "%1"=="dhcp" goto dhcp
echo Usage: %0 (static^|dhcp)
goto end2
echo Setting static IP of
netsh int ipv4 set address "Local Area Connection" static 1
echo Setting primary DNS server to
netsh int ipv4 set dnsservers "Local Area Connection" static primary
goto end

Multiwii - GPS and altitude hold


Subscribe to RSS