Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| tronsmart [2016/09/22 23:42] – andi | hardware:tronsmart_pavo_m9 [2017/12/04 22:57] (current) – andi | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Tronsmart Pavo M9 ====== | + | = Tronsmart Pavo M9 |
| - | Auch einfacher bekannt als " | + | Also known as " |
| - | [[http:// | + | |
| - | === Overview === | + | This seems to be out of production, but some vendors might still sell them. See [[hardware: |
| - | Diese kleine Box, erhältlich bei diversen Händlern aus Fernost ist eigentlich als Settopbox für den Nicht-Smart-TV gedacht. Zeichnet sich aber durch einen HDMI Eingang aus. Dadurch kann sie als günstige Alternative zu anderen Framegrabbern genutzt werden. | + | * Vendor website [[http:// |
| + | * Teardown [[https:// | ||
| - | === Beschaffung === | + | The left HDMI port is an input and the right one an output. |
| - | * ~40$ | + | |
| - | TODO: Links raussuchen | + | |
| + | {{: | ||
| - | === Software === | + | * SoC – Mstar MSO9180D1R quad core Cortex A9 processor up to 1.5GHz with a Mali-450MP2 GPU |
| - | Auf der Box läuft ein Android | + | * System Memory – 1GB DDR3 |
| - | Mit der richtigen App kann man das Video, das aus dem Hardwareencoder fällt in ein ffmpeg auf der Box pipen lassen. | + | * Storage – 8GB eMMC flash + micro SD slot |
| - | [[https://blog.danman.eu/using-tronsmart-pavo-m9-for-hdmi-input-streaming/]] | + | * Video Output / Input – HDMI output up to 4K, HDMI input with PVR and Time Shifting support (up to 1080p), and AV port (Composite + stereo audio) |
| + | * Audio I/O – HDMI Out and In, AV, and optical S/PDIF | ||
| + | * (Main) Video Codecs – H265, VC-1, WMV-HD, MPEG1/2/4 up to 4Kx2K, etc.. | ||
| + | * Audio Codec – MP3, AAC, AC3, DTS-HD Master, TrueHD 7.1 pass-through, | ||
| + | * Connectivity – 10/100M Ethernet, 802.11 b/g/n Wi-Fi (Realtek 8188) | ||
| + | * USB – 1x USB 3.0, 2x USB 2.0 host ports. | ||
| + | * Misc – ON/OFF switch, IR receiver | ||
| + | * Power Supply – 12V/2A | ||
| + | * Dimensions – 15.24 x 15.24 x 4.06 cm | ||
| + | * Weight – ~260 grams | ||
| + | * Android 4.1*, root available without modification | ||
| - | === Skripte | + | == Overview |
| - | Als ffmeg Zeile für die App ZidoStreamer | + | This product seems to be out of production but is sometimes still available from chinese online stores. |
| - | < | + | Its most important feature is the HDMI input which can be used to capture / stream / scale an HDMI signal |
| - | TODO copypasta von der box | + | |
| + | == As a frame rate converter | ||
| + | In 2016/2017 we changed the default [[: | ||
| + | To have this reboot save, one have to install an autostart app to run the " | ||
| + | * [[https:// | ||
| + | |||
| + | |||
| + | == As a ethernet stream source | ||
| + | === ZidoStreamer | ||
| + | The ZidoStreamer app allows to stream the HDMI input via Ethernet / wifi to a stream sink | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | To be able to use ZidoStreamer, | ||
| + | Such a binary can be found e.g. [[https:// | ||
| + | |||
| + | ==== Scripts | ||
| + | Here are some example command lines for ffmpeg that we use: | ||
| + | |||
| + | ===== on android box | ||
| + | |||
| + | stream to ngnix on encoder box | ||
| + | < | ||
| + | / | ||
| </ | </ | ||
| + | ZidoStreamer is set to a video bitrate of 20 Mbit/s and 26 fps. With 25 fps, there is flicker in voctomix. Audio is set so 320 kbit/s, but isn't used. | ||
| - | Folgende zwei Skripte kann man einsetzen um den RTMP Stream | + | |
| - | < | + | |
| - | TODO ffmpeg | + | ====== on encoder cube |
| + | |||
| + | cd / | ||
| + | wget https:// | ||
| + | |||
| + | |||
| + | |||
| + | ======= ffmpeg variant | ||
| + | RTMP stream to voctomix – e.g. as script | ||
| + | < | ||
| + | #!/bin/sh | ||
| + | confdir=" | ||
| + | . $confdir/ | ||
| + | if [ -f $confdir/ | ||
| + | . $confdir/ | ||
| + | fi | ||
| + | |||
| + | ffmpeg | ||
| + | -f flv -i " | ||
| + | -filter_complex " | ||
| + | [0:v] scale=$WIDTH: | ||
| + | [0:a] aresample=$AUDIORATE [a] | ||
| + | " \ | ||
| + | -map " | ||
| + | -c:v rawvideo \ | ||
| + | -pix_fmt yuv420p \ | ||
| + | -map " | ||
| + | -c:a pcm_s16le \ | ||
| + | -f matroska \ | ||
| + | tcp:// | ||
| </ | </ | ||
| - | Dieses Skrit hat den vorteil, dass Audio, was über die HDMI Verbindung geschickt wird im voctomix | + | This script has the advantage of making audio from the HDMI stream available to voctomix, so that audio and video are in sync. This is particularly useful when the lecturer plays a video with a lot of spoken text. This audio source can then be selected in voctomix. |
| - | Oder alternativ mit gstreamer: | + | |
| - | < | + | ======= gstreamer variant |
| - | TODO gstreamer script copypasta | + | |
| + | Alternative version using gstreamer: | ||
| + | < | ||
| + | #!/bin/sh | ||
| + | confdir=" | ||
| + | . $confdir/ | ||
| + | if [ -f $confdir/ | ||
| + | . $confdir/ | ||
| + | fi | ||
| + | |||
| + | gst-launch-1.0 -vvv\ | ||
| + | rtmpsrc location=rtmp:// | ||
| + | h264parse ! avdec_h264 !\ | ||
| + | videoscale ! \ | ||
| + | videoconvert ! \ | ||
| + | videorate ! \ | ||
| + | video/ | ||
| + | mux. \ | ||
| + | \ | ||
| + | audiotestsrc freq=550 !\ | ||
| + | audio/ | ||
| + | mux. \ | ||
| + | \ | ||
| + | matroskamux name=mux !\ | ||
| + | tcpclientsink host=localhost port=10002 | ||
| </ | </ | ||
| + | |||
| + | == Bild Rot/ | ||
| + | |||
| + | Wir haben öfters das Problem beobachtet, dass die Bildausgabe des Tronsmart am HDMI-In einer Decklink MiniRecorder komplett Dunkelrot, Dunkelgrün oder komplett Schwarz ist, obwohl der Tronsmart nachweißlich auf die korrekte Auflösung eingestellt ist und am Beamer oder Fernseher korrekt funktioniert. Das Problem kann durch zwischenschalten des HDMI-to-SDI-Wandlers und grabben der Slides vom SDI-In der MiniRecorder behoben werden. | ||
| + | |||
| + | Tests zeigten, dass manchmal das Tauschen des HDMI-Kabels hilft, manchmal aber auch nicht. Auch das Tauschen des Tronsmarts hilft nicht immer. Diese Beobachtungen legen nahe, dass das Problem nicht alleine am Kabel noch am Tronsmart und vmtl. auch nicht an der Karte liegt. Warscheinlicher ist eine Kombination der Faktoren mit Umgebungs-RF, | ||
| + | |||
| + | --Mazdermind, | ||