Sum up audio-channels of a DV file:

 ffmpeg -i <dvfile>  -ac 1   intermadiate.wav
 ffmpeg -i <dvfile>  -i intermediate.wav   -map 0:0 -map 1:0 -ac 2 -f dv <dvfile>-dual-mono.dv

Streaming still image

Takes a still image like a jpg or png and you can use it as a source in dvswitch

Using image2raw (prefered)

image2raw <imagefile> > <dv-file> ; dvsource-file -l <dv-file>

Using ffmpeg

ffmpeg -loop_input -f image2 -i <PATH TO IMAGE> -target pal-dv - | dvsource-file /dev/stdin

Feedback to secondary-cameramonitor

dvsink-command -- vlc -

Stream from X11 to dvswitch

Remember to adjust resolution to your local screen

ffmpeg -f x11grab -s 1680x1050 -r 25 -i :0.0 -target pal-dv -y - | dvsource-file /dev/stdin

Stream dvswitch to justin.tv

 dvsink-command -h -- ffmpeg -v 4 -i pipe:0 -ab 64k -ar 44100 -threads 0 -vcodec libx264 -acodec libmp3lame -ab 64k -ar 22050 -threads 0 -f flv "rtmp://live.justin.tv/app/live_64012566_e131WzWBJIegthn3A7MuGRNfgawY8h"

Transcode HDV file to DV file for broadcast on Frikanalen

% ffmpeg -i 20050421-tor-2of2.m2t -vf "yadif=1,scale=720:576,tinterlace=5" \
-r 25 -vcodec dvvideo -acodec pcm_s16le -ac 2 -ar 48000 test-interlace.dv

NB. "tinterlace" option is quite interesting, make sure you test the finished DV file with a player that can deinterlace properly ;-)

grupper/video/tips (last edited 2016-08-03 23:45:23 by DaveNoble)