swarm – lowest common denominator

I’m looking to feed all those fringe devices.
https://caniuse.com/#feat=webm

Once again, I give up. Seems the only way to do it is create fragmented mp4’s and send them so the browser can play the current live piece instead of playing from the beginning. We’ll just wait for webm to be supported everywhere.

wait wait, maybe DashCast.

sudo apt-get install make pkg-config g++ zlib1g-dev firefox-dev libfreetype6-dev libjpeg62-dev libpng12-dev libopenjpeg-dev libmad0-dev libfaad-dev libogg-dev libvorbis-dev libtheora-dev liba52-0.7.4-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libavresample-dev libxv-dev x11proto-video-dev libgl1-mesa-dev x11proto-gl-dev linux-sound-base libxvidcore-dev libssl-dev libjack-dev libasound2-dev libpulse-dev libsdl1.2-dev dvb-apps libavcodec-extra-53 libavdevice-dev libmozjs185-dev

DashCast -vf video4linux2 -v4l2f mjpeg -vfr 30 -vres 1280×720 -v /dev/video0 -af alsa -a plughw:2,0 -conf dashcast.conf -live
DashCast -vf video4linux2 -v4l2f yuyv422 -vfr 30 -vres 720×480 -v /dev/video0 -af alsa -a plughw:2,0 -conf dashcast.conf -live

DashCast -av out.mpg -seg-dur 500 -live-media

*** I did try… Did the conversions fine but then had no way to live stream it to the browser.

Steps: decide on the container (mp4) and codecs, perhaps h264 and aac
janus can’t ‘do’ aac, le’s try opus

ffmpeg -i input.mov  -acodec aac -strict -2 output.mp4

ffmpeg -i people -c:v libx264 -preset slow -crf 22
ffmpeg -y -i /private/nfs/a6/usr4/mydetv/videos/clips/people.mp4 -c:v libx264 -b:v 512k -c:a libfdk_aac -b:a 128k -pass 1 -f mp4 out.mpg
ffmpeg -y -i /private/nfs/a6/usr4/mydetv/videos/clips/people.mp4 -c:v libx264 -b:v 512k -c:a libfdk_aac -b:a 128k -pass 2 -f mp4 out.mpg

ffmpeg -i people -c:v libx264 -preset slow -crf 22
ffmpeg -y -i /private/nfs/a6/usr4/mydetv/videos/clips/people.mp4 -c:v libx264 -b:v 512k -c:a libfdk_aac -b:a 128k -pass 1 -f mp4 out.mpg
ffmpeg -y -i /private/nfs/a6/usr4/mydetv/videos/clips/people.mp4 -c:v libx264 -b:v 512k -c:a libfdk_aac -b:a 128k -pass 2 -f mp4 out.mpg

ffmpeg -y -i /usr4/mydetv/videos/clips/people.mp4 -c:v libx264 -b:v 512k -c:a aac -b:a 128k -pass 2 -f mp4 out.mp4