Zidoo X9 and Tronsmart Pavo M9 are TV boxes based on Mstar MSO9180D1R processor and featuring an HDMI input port that can be used for record video from an external source. Danman got a Pavo M9, and managed to successfully hack it to stream the HDMI input to the network using VLC and ffmpeg.
One of his first task was to check out the hardware, and while the board has a different name (HDMI_4K_V1.2 vs MSO9810D1R-TF-V1.2), the board layout appears identical to Zidoo X9 board, so the instructions below should also work on Zidoo’s device.
After doing some tests with VLC server on a Linux computer and running ffmpeg for Android in M9, as well as analyzing the recording app (ZidooRecorder.apk), and finding the app’s source code released by Zidoo (with some NDA protected binaries), he try to adapt the app to stream content instead, and called it ZidoStreamer.
Eventually he managed to stream videos by running VLC on the computer as follows:
1 |
vlc udp://@239.255.0.1:1234 |
starting recording with the recording app using TS container and H.264 codec, and running the following command in the TV box:
1 |
tail -f -c 1000000000 HdmiRecorder/* | ./ffmpeg -i - -vcodec copy -acodec copy -bsf:v dump_extra -f mpegts udp://239.255.0.1:1234 |
It works, but this is not 100% user-friendly, and not optimal as you still need storage to stream data. So works in not completed yet, and his plans are to:
create an app which will be able to start recording without that binary (it should be possible according to some tests I did), set different bitrates/resolutions, omit the recording to file (use just fifo file to avoid flash memory speed bottleneck and limited size – done some successful tests, just need to fix bugs) and allow different output stream types, e.g. rtmp, udp mpegts unicast, tcp mpegts unicast, rtp etc. (this all can be handled by ffmpeg, just needs to be correctly setup).
That’s the plan, and he welcomes others to join/help him. You can find more details on his blog post.
Via HackADay.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress
I wonder why manfucturers don’t include this capability from the start, as it seems a great feature!
Perhaps this could work on other HDMI input android boxes, especially like the Ugoos UG3+, which has dual boot Linux
I’ve been looking at tvheadend as a diy solution for my aging Slingbox ProHd (SB300-100). There’s quite a bit of activity on it:
http://tutorials.wetek.com/tutorial/47
http://freaktab.com/forum/tv-player-support/general-tv-player-dicussions/tvheadend-tvb-and-pvr-discussions/18418-tvheaden-vdr-enigma2-pc-port-for-rk3288-android?p=517430#post517430
http://forum.xda-developers.com/showthread.php?t=2171412
Love to see this supported inside Kodi / XBMC.
Maybe it could be added with a PVR client addon?
http://kodi.wiki/view/PVR
Then it could be accessed as Live TV in Kodi.
Hi:
I come from zidoo team, we have this function, and it could do this function without to storage to stream data, it can directly streaming out via the network . if who want this code, pls contact me.
@mirror
why don’t you post it somewhere? github or pastebin. thx
@mirror
Hi Mirror
Would you be kind and help me to stream live video from the HDMI IN of Zidoo X9s to a network device on the same local networl. Thanks
Do I need to do manual Port Forwarding in the Router of the network in order to be able to stream live video from HDMI IN of Zidoo x9s to other devices of the same network?
@Mike
For me I have to use mac address to bind ip because if not udp unicast didn’t work. Now it is working. Trendnet 1750 ac dd-wrt. I can stream at 20M over wireless. Use Danman zidoostreamer.
Here are the numbers of my router. I am using Netgear router.
Internal IP address of Zidoo X9S: 192.168.1.12
When I use Broadcast: Unicast, Zidoo X9S shows the following on the TV:
IP: 192.168.11.215, Port:7878
udp://@192.168.11.215:7878
My Question: What should I enter in the browser of my PC (on the same local network)?
Should I do Port Forwarding on the router, and what service should I use?
Thanks
The ip address in zidoo unicast must be the same of the pc you want to watch the stream. In pc you can use vlc or kodi to open the stream… Ffmpg must be install. I use forum.zidoo.tv you can join in.
Thank you Serge Bolduc for your help.
I am still missing something. I haven’t succeeded yet to broadcast live video from HDMI IN of Zidoo X9S to a PC on the same network.
On Zidoo X9S: I used Unicast with IP: 192.168.1.12 and Port: 7878 where 192.168.1.12 is the local IP address of the Zidoo X9S device –> Output: udp://@192.168.1.12
On the PC, I used VLC –> Open Network Stream –> Stream –> udp –> address: –> Port:7878 –>Select profile: MPEG-TS –>Stream
On VLC, I used address: 192.168.1.12 or //192.168.1.12, but with no luck.
@Mike
You should use udp://@192.168.1.12 in VLC.
I’ve tried with Multicast in Zidoo X9S: http://www.cnx-software.com/2016/10/10/zidoo-x9s-android-tv-box-hdmi-input-testing-video-recording-pip-and-udp-broadcasting/
@cnxsoft
I tried udp://@192.168.1.12 in VLC, Also, I tried udp://@192.168.1.12:7676 in VLC. It gave me an error in VLC (VLC can’t be opened.
I tried the link with Multicast, It worked with VLC on a PC, but I have to reduce BitRate in HDMI IN
to 1M (instead of 10M). The received video is still bad quality).
The VLC app on Android device doesn’t work. It needs another app.
@Mike
Are you using WiFi to stream the video? You should be able to use 10Mbps over Ethernet.
Unicast, use destination IP. I stream unicast 20M with X9 in wifi.