logo
Most Viewed Last 7 Days
436MHz DATV Up-Converter (483)
DVB-S USB rx (126)
Archive3 - DATV Software (119)
13cm Amplifier (70)
ATV Dx Gallery (63)
ATV using LED Tx (60)

GB3KM streaming with ffmpeg



    Cluster Activity

    Spots per uW band today:
    UK spotter or spotted only.

    Solar data:
    SFI
    76
    A-Index
    6
    K-Index
    2
    Exp.K
    2
    Sunspots
    26
    Activity
    qui
    GMF
    qui
    Aurora?
    no

    My Weather

    Date:18/11/17 Time:17:28
    Temp:3C
    Wind Speed:0mph
    Wind Dir:225deg
    Pressure:1017.24mB
    Humidity:118%
    Dew Point:6.6C
    UKHASnet
    GB3KM streaming with ffmpeg & Gallery

    Just the info of how i stream to BATC.tv with ffmpeg...

    ffmpeg -i /dev/video1 -deinterlace -acodec libmp3lame -s 352x288 -ac 2 -ab 64k -ar 22050 -f flv -r 15 -vcodec libx264 -preset fast -tune zerolatency -b:v 275k -minrate 275k -maxrate 275k -bufsize 275k "rtmp://fms.batc.tv/**********" -f image2 -updatefirst 1 -r 0.003125 -bt 80M -s 240x192 /var/www/thumbs/img%04d.jpg

    This takes input from a hauppauge PVR-USB2, encodes to h.264 with mp3 audio and sends to the server.
    The second part saves a raw image every five minutes from the capture device with a progressive number as file name.

    I then use compare function in php from the webserver on the streaming pc to check if the image is different from the stock testcard images on GB3KM...
    compare -metric PSNR image0005.jpg reference1.jpg

    This returns a value which relates to the difference between the images, lower value means similar image.

    Some more php removes the repeat testcard images and leaves the ones which are different (user images) and then spits out some html to create the image gallery on here:

    www.batc.tv/streams/km

    Hope that's useful for anyone else trying a similar thing!











    Last page added:16/08/17 15:45
    M0DTS.co.uk