logo
Most Viewed Last 7 Days
146MHz RD06+RD15 Amp (115)
Detecting a Pulsar at 1420MHz? (97)
Chirp Tx with Red Pitaya - 1 (91)
500W+ 1296MHZ Amp Project (91)
Repeater Contest 2009 (84)
DVB-S USB rx (84)

Home



Cluster Activity

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

Solar data:
SFI
70
A-Index
12
K-Index
2
Exp.K
1
Sunspots
0
Activity
qui
GMF
act
Aurora?
no

My Weather

Date:21/01/18 Time:00:04
Temp:-3.5C
Wind Speed:0mph
Wind Dir:157deg
Pressure:1009.49mB
Humidity:118%
Dew Point:0.1C
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:07/01/18 10:15
M0DTS.co.uk