HAMNET ATV mit Linux
 
erste Erfahrungen
 
mangels geeigneter Streaming-Software experimentiere ich derzeit mit GStreamer (Befehlszeile))
 
Testbildgenerator:
 
gst-launch-1.0 videotestsrc pattern=1 ! \ video/x-raw, framerate=\(fraction\)20/1, width=100, height=100 ! \ videomixer name=mix ! videoconvert ! ximagesink \ videotestsrc ! \ video/x-raw, framerate=\(fraction\)5/1, width=320, height=240 ! mix.
 
senden auf Icecast Server, folgendes habe ich probiert:
 
Videokamera oder Grabber:

GST 1

gst-launch-1.0 v4l2src device=/dev/video0 norm=PAL ! videorate ! video/x-raw,framerate=10/1 ! videoconvert ! textoverlay font-desc="Sans 24" text="N0CALL" ! theoraenc bitrate=400 keyframe-force=10 ! oggmux ! shout2send ip=db0ohl.ampr.org port=8000 password=atv mount=/live.nsv username=source streamname=N0CALL

GST 0.10

gst-launch-0.10 v4l2src device=/dev/video0 norm=PAL ! ffmpegcolorspace ! theoraenc bitrate=200 keyframe-force=60 ! oggmux ! queue ! shout2send ip=db0tv.ampr.org port=9020 password=atv mount=/live.nsv username=source streamname=N0CALL


Diashow:


gst-launch-1.0 filesrc location="./show1.ogv" ! decodebin ! textoverlay font-desc="Sans 24" text="N0CALL" ! videorate ! video/x-raw,framerate=15/1 ! videoscale ! video/x-raw, width=640, height=480 ! videoconvert ! theoraenc bitrate=500 keyframe-force=10 ! oggmux ! shout2send ip=db0ohl.ampr.org port=8000 password=atv mount=/live.nsv username=source streamname=N0CALL


Einzelbild mit eingebettetem Testbild:

gst-launch-0.10 -e videomixer name=mix ! ffmpegcolorspace ! queue ! theoraenc bitrate=50 keyframe-force=60 ! oggmux ! queue ! shout2send ip=db0tv.ampr.org port=9010 password=atv mount=/live.nsv username=source streamname=N0CALL \ videotestsrc pattern=0 ! video/x-raw-yuv, framerate=5/1, width=100, height=75 ! \ videobox border-alpha=0 top=-380 left=-510 ! mix. \ multifilesrc location="xyz.jpg" caps="image/jpeg,framerate=5/1" ! jpegdec ! \ textoverlay font-desc="Sans 16" text="N0CALL" halign=left shaded-background=true auto-resize=false ! \ ffmpegcolorspace ! video/x-raw-yuv,format=\(fourcc\)AYUV ! mix.


Umleiten eines Streams (mjpeg) vom Smartphone via PC:

gst-launch-0.10 souphttpsrc location=http://192.168.2.102:8080/video ! jpegdec ! videorate ! video/x-raw-yuv,framerate=5/1 ! queue ! theoraenc bitrate=50 keyframe-force=60 ! oggmux ! shout2send ip=db0tv.ampr.org port=9010 password=atv mount=/live.nsv username=source streamname=N0CALL


Besser funktioniert das, wenn ich die Streams auf das Schleifengerät lege und dann zum Server sende.
# modprobe v4l2loopback


 
IP Camera:
 
~> gst-launch-0.10 rtspsrc location=rtsp://192.168.2.103/ipcam_mjpeg.sdp user-id=michael user-pw=topsecret ! rtpjpegdepay ! jpegdec ! textoverlay font-desc="Sans 24" text="N0CALL JO31XY" ! ffmpegcolorspace ! v4l2sink device=/dev/video1 norm=PAL &
 
~> gst-launch-0.10 v4l2src device=/dev/video1 norm=PAL ! ffmpegcolorspace ! theoraenc bitrate=200 keyframe-force=60 ! oggmux ! queue ! shout2send ip=db0tv.ampr.org port=9030 password=atv mount=/live.nsv username=source streamname=N0CALL &

Linux mumble zur Konversation
 
v4l2loopback
gstreamer
oz9aec.net