Skip to content

Instantly share code, notes, and snippets.

View Saentist's full-sized avatar
🎯
Focusing

Saentist

🎯
Focusing
  • Sofia, Bulgaria
View GitHub Profile
@Saentist
Saentist / gist:80faf615f42997d55e193879557d81be
Created December 13, 2024 11:10
FFMpeg Generate LHLS data
Generate LHLS data
ffmpeg -f lavfi -re -i smptebars=size=320x200:rate=30 -f lavfi -i sine=frequency=1000:sample_rate=48000 -pix_fmt yuv420p -c:v libx264 -b:v 180k -g 60 -keyint_min 60 -profile:v baseline -preset veryfast -c:a aac -b:a 96k -f mpegts - | manifest-generator -l 3 -d 2
working with a MIC 750 TL-X (which happens to generate a bit more 8)) with the below config. and yes,
this works fine along with the sensors of the platform growatt_solar.
```yaml
uart:
tx_pin: GPIO4
rx_pin: GPIO5
baud_rate: 9600
modbus:
#!/usr/bin/env python
import sys
import urllib2
import codecs
from contextlib import closing
class Track:
def __init__(self, length, title, path):
self.length = length
@Saentist
Saentist / ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md
Created August 9, 2019 14:07 — forked from Brainiarc7/ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md
This gist will generate an Intel QSV-enabled FFmpeg build using the open source Intel Media SDK. Testbed used: Ubuntu 18.04LTS. A fallback is also provided for the intel vaapi driver where needed.

Build FFmpeg with Intel's QSV enablement on an Intel-based validation test-bed:

Build platform: Ubuntu 18.04LTS

Ensure the platform is up to date:

sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade

Install baseline dependencies first (inclusive of OpenCL headers+)