Jun 22 2013

vlc – add options to plugin

fn=”http://…mjpg”

number = vlc.playlist.add(fn,fn , ” :network-caching=290″);
vlc.playlist.playItem(number)

OR

vlc.playlist.add(fn,fn , ” :network-caching=290″);


May 5 2013

ffmpeg : single image to movie with sound

very simple:
ffmpeg -loop 1 -i bild.jpg -i sound.mp3 out.mov

besser (für 10sek mit x264 codec, größe 640×480) :
ffmpeg -loop 1 -i bild.jpg i Bengu_yarali.mp3 -t 10 -s 640×480 -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -y out.mov


Apr 17 2013

ffmpeg rotate video 90 or 180 degrees


#!/bin/bash

if [ “$2” == “180” ];then
#echo “180 Grad”;
ROTATE=”vflip,hflip”
elif [ “$2” == “90” ];then
#echo “90 Grad”;
ROTATE=”transpose=1″
else
echo -e “$0 mov [180/90]\n\t90 180″
exit
fi

MAX=”-maxrate 3020k -b 3020k -bufsize 2835k ”

#echo ffmpeg -i “$1” -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -vf $ROTATE -y “$1.mov”
#ffmpeg -i “$1” -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -vf “$ROTATE” “/cygdrive/z/09. Private/180/$1″
echo ffmpeg -i \”$1\” -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -vf \”$ROTATE\” -y \’out/$1\’

 


Jun 7 2012

multiple VOB file with multiple audio channels

multiple VOB file with multiple audio tracks into avi
we want to have only VOB 4 to 7

for i in `seq 4 7`; do c=`ls VTS_0$i*| grep VOB| grep -v _0.VOB | tr “\n” ” “`;cat $c > $i.VOB;done

for i in `seq 4 7`;do ffmpeg -i $i.VOB -vcodec libxvid -y -acodec libmp3lame -ac 2 -map 0:0 -map 0:2 -map 0:1 -vb 2M -ar 44100 -ab 128 $i.avi;done


Jan 23 2012

ffmpeg – overlay

copy metadata from m4a to mp3 | ogg

ls *.m4a | while read line; do out=`echo $line|cut -d”.” -f1`; ffmpeg -i “$line” -ab 192k -ar 44100 -y “$out.mp3”  -map_meta_data 0:0 ;done

overlay logo
ffmpeg -i IMG_0247.MOV -vf “movie=wm.png [logo]; [in][logo] overlay=10:10 [out]” -y out.mov