Jump to Navigation

Streaming DV Video with audio from a soundcard

using gstreamer-0.10 to stream DV video with audio via alsa, could look like this:

gst-launch \
 oggmux name=mux ! shout2send id=icecast.v2v.cc port=8000 mount=/theora.ogg password=hackme \
 dv1394src ! dvdemux ! dvdec ! ffmpegcolorspace ! theoraenc ! queue ! mux. \
 alsasrc ! audioconvert ! vorbisenc ! queue ! mux. 

Comments

v4l theora streaming

live ogg-theora streaming in linux from a DV device is easy and stable using dvgrab, ffmpeg2theora and oggfwd.

but what is the bst approach when using a video capture card (v4l)?

i never managed to get synchronised audio using VLC as encoder, and any other approach failed (either video, audio or both) completely.

--
http://www.engagetacticalmedia.org

streaming from v4l

i use something like the script pasted below
(note the use of oggfwd-im http://darksnow.radiolivre.org/oggfwd_im , as it allows
to set public icecast flag)

#!/bin/sh

BIN="/opt/bin"
STREAMSERVER=""
PASSWORD=""
MOUNT="/stream.ogg"
NAME=""
URL=""
GENRE=""
DESCRIPTION=""
PUBLIC="1"
DUMP="0"

v4lctl setinput S-Video

$BIN/ffmpeg -vd /dev/video0 \
-f mpeg -pix_fmt yuv420p -ad /dev/dsp -s 320x240 -ac 1 - \
| $BIN/ffmpeg2theora -a 1 -v 5 -x 320 -y 240 -o /dev/stdout - \
| $BIN/oggfwd-im $STREAMSERVER 8000 $PASSWORD $MOUNT $NAME $URL $GENRE $DESCRIPTION $PUBLIC $DUMP

after some tests

after shortly testing the above pipeline yesterday evening,
it turned out that a/v is out of sync.
my current guess is that this is an inherrent problem with DV latency.
its the delay of the camera encoding the video and sending it over firewire. it might still be possible to sync though, further research needed.