From: yomguy <> Date: Thu, 10 Mar 2011 16:10:29 +0000 (+0000) Subject: hacking usb video streaming X-Git-Tag: 0.9~143 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7fd6ac2fa28be43518eacfe8a2cc868cb597b46c;p=telecaster-client.git hacking usb video streaming --- diff --git a/tools/ffmpeg_dv_jack_fifo_usb b/tools/ffmpeg_dv_jack_fifo_usb index f8da11b..a04f771 100755 --- a/tools/ffmpeg_dv_jack_fifo_usb +++ b/tools/ffmpeg_dv_jack_fifo_usb @@ -1,25 +1,26 @@ #!/bin/bash -set -e + set -e case "$1" in start) - fifo=/tmp/video_fifo + fifo=/tmp/video_fifo2 if [ ! -e $fifo ]; then mkfifo $fifo fi - dir=$HOME/archives/2010/VIDEOS/ + dir=$HOME/archives/2011 now=`date -R` + file=$dir/video_test2.ogg - ffmpeg -f video4linux2 -i /dev/video1 -f jack -i ffmpeg -f ogg -r 20 -s 320x240 -vcodec libtheora -b 364k -acodec libvorbis -ab 64k -y $fifo -map 0.0 -map 1.0 & + ffmpeg -f video4linux2 -i /dev/video0 -f jack -i ffmpeg -r 20 -f ogg -vcodec libtheora -s 320x240 -b 380k -acodec libvorbis -ab 64k -ar 44100 -ac 1 -y $file -map 0.0 -map 1.0 & - sleep 5 + sleep 3 jack_connect jack_rack:out_1 ffmpeg:input_1 #jack_connect jack_rack:out_1 ffmpeg:input_2 - sleep 1 - cat $fifo | tee "$dir/video_test-$now.ogg" | oggfwd -d "TeleCaster Live Video Services" -g "Vocal" -n "TeleCaster Live Video" localhost 8000 source2parisson /telecaster_live_video.ogg & + sleep 2 + cat $file | tee $file.ogg | oggfwd -d "TeleCaster Live Video Services" -g "Vocal" -n "TeleCaster Live Video" localhost 8000 source2parisson /telecaster_live_video.ogg & ;; stop)