previous Month

January

next Month

March

Archives for February 2018

How do you solve a problem like marina?

Ok that title gag is awful, and probably pommy and dated already.

shaw thing
This is a Shaw 650, there are many like it, but this is mine.

Now I've already done live streaming to YouTube and Facebook simultaneously, I've done it over mobile, last years 'oceanhippie's outside broadcast truck' was nearly portable, if you call a laptop, mixer, inverter, dual battery system and 2.5tons of Toyota Land Cruiser portable. Clearly its not going to fit on a Shaw with no electricity - and I'm a weight nazi to boot.

I've been through various potential setups, many involving a raspberry pi, one involving a second hand pc in an ammo box. (Right)

It comes down to a Raspberry Pi doesn't have any grunt. The PI cam is good. and it works. Even from a pi zero - well it did till I tried to solder an external antenna conection to it now its dead.

To live stream to youtube from a PI zero:

Ok the FFMPEG package for the PI is out of date/or doesn't work missing bits or something. Don't use it. Building from source takes close to eternity by all accounts. Solution download the armel build from here: https://www.johnvansickle.com/ffmpeg/rking ffmpeg for a pi. 

the command:

raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/[your stream key]

Will push it to youtube.

If you want to edit it somewhere with say obs then run up nginx on the obs box and change put rtmp://[ipofnginx]/application instead of youtube.

To stream a proper camcorder using a pi

You will need a Elgato Game Capture HD for this these are getting quite cheap on ebay these days.

The driver for this Will Compile and run fine on Raspberry PI 3! yay! 

The instructions seem short a couple of firmware files, in the end I think this was what I ran:

sudo apt-get install git dmg2img hfsprogs libusb-dev clang make build-essential cmake install libusb-1.0-0-dev
git clone https://github.com/tolga9009/elgato-gchd.git 
wget http://files.elgato.com/gamecapture/gchdm_203_970.dmg
dmg2img gchdm_203_970.dmg -o gchdm_203_970.dmg.img
mkdir /tmp/dmg
sudo mount -o loop -t hfsplus gchdm_203_970.dmg.img /tmp/dmg
sudo mkdir /usr/local/lib/firmware
sudo mkdir /usr/local/lib/firmware/gchd
sudo cp /tmp/dmg/Game\ Capture\ HD.app/Contents/Resources/Firmware/Beddo/mb86h57_h58_idle.bin /usr/local/lib/firmware/gchd/
sudo cp /tmp/dmg/Game\ Capture\ HD.app/Contents/Resources/Firmware/Beddo/mb86h57_h58_enc_h.bin /usr/local/lib/firmware/gchd/

sudo cp /tmp/dmg/Game\ Capture\ HD.app/Contents/Resources/Firmware/Beddo/*assp* /usr/local/lib/firmware/gchd/

cd elgato-gchd
mkdir build
cd build
cmake ..
make
make install

Then I plugged in a Camcorder at 1080p and the Elgato, and ran:

gchd -c yuv -of socket [ipaddress]:[portnumber]

where ip address = ip of a computer running obs and VLC adding a VLC source of udp://@[ipaddress]:[portnumber]

I don't have it straight to youtube yet, but I probably won't need to - I'm building a wifi network round the bay or can stream it to an IP in AWS and pump it to yourube from there.

A little note about utp streams ffmpeg vlc etc. utp streams don't listen in the client server type model. you "push" so ffmpeg udp or gchd socket to the ip of your laptop or whatever. Then on the laptop put the laptop IP into VLC with and @ on the front to receive it. This never seems to be explained anywhere and did my nut in

 

Position: 12° 27.6' S, 130° 48.1' E | Posted: Wed 28th February 2018

Full Metal Jacket.

Some folks on Facebook will watch anything. God your lives must be dull. I even put up a "WARNING! streaming video testing" up first.

if your not trying to answer the question can I stream video ÃƒÆ’¢â‚¬â€¹simultaneously to failbook and poo tube using an old ammo box with a mini pc in it, then the following very dull video is not for you.

It's really dull, for some reason I had issues with failbook, its slightly shorter on failbook as I actually talk a bit by the time I worked out what went wrong:

Project Full Metal jacket, how it It works.

Sign up for a free Amazon account, spin up an EC2 instance of Ubuntu. Build nginx and its rtmp module. Then tell nginx your YouTube key and Facebook keys. Then just push the video stream from OBS to the EC2 Ubuntu instance.

Cost.

  • Ammo box $20 NT General Store
  • lenovo mini pc, 3rg gen i5, hybrid drive 4G ram $210 inc postage
  • elgato game capture $80 ebay
  • camcorder $80 ebay.
  • tripod $10 Darwin Dump.
  • software OBS - free nginx - free
  • server - EC2 micro instance - free

Soon I'll be doing proper streams for NT rugby, the Sailing club etc. My new steady cam / gimbal also went well today. Her's the South Darwin Bunnies in action. Not bad for hand held video (I had a beer in hand too) Steady cam was about $12 plus postage :-)

Double win day! Now I'm off to plug a raspberry pi into a VHF and write an AIS yacht tracker wilts drinking - damn I'm good!

 

Position: 12° 26.3' S, 130° 50.4' E | Posted: Sat 3rd February 2018

previous Month January March next Month

Blog Archives

2024

April (1)

2021

November (1)
July (1)
February (4)
January (1)

2019

December (1)
November (1)
October (1)
July (1)
June (1)
April (2)

2018

December (1)
September (2)
May (1)
March (2)
February (2)
January (2)

2017

May (1)
April (1)
January (1)

2016

November (2)
April (1)
March (2)
January (4)

2015

December (4)
November (2)
October (2)
July (2)
June (1)
April (1)
February (3)

2014

October (2)
September (2)
April (1)
March (1)
February (1)
January (1)

2013

November (1)
October (3)
September (3)
August (2)

2012

June (1)
March (2)

2011

December (1)
November (1)
October (2)
September (3)
June (2)
May (5)
April (6)
March (4)
February (6)
January (1)

2010

December (4)
November (11)
October (10)
September (10)
August (7)
July (5)
June (6)
May (10)
April (10)
March (8)
February (10)
January (5)

2009

December (2)
October (2)
August (2)
July (2)
June (5)
May (4)
April (2)
March (4)
February (2)
January (4)

2008

December (2)
October (7)
August (9)
July (11)
June (10)
May (7)
April (15)
March (16)
February (17)
January (13)

2007

December (7)
November (7)
October (2)
September (1)
July (1)
May (1)
February (1)

2006

July (3)
May (3)
February (1)

2005

December (1)
November (1)
October (1)
September (1)
August (1)
July (1)
May (2)
April (3)
February (2)
January (1)

2004

December (4)