NMT:firmware: Difference between revisions

From Lundman Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Transcoding ==
== List of compatible streamers ==
Note that this list is not a complete reference, and all listed products are not confirmed, but in theory llink should work with most Syabas middleware hardware. There is a product list maintained on the [http://www.networkedmediatank.com/wiki/index.php/Products NMT wiki].<br>


Transcoding with llink is a relatively new features (as of llink-2.3.2) which still needs a fair bit of work. Each device will need its own settings, and tweaks.


As an example, Playstation 3 can not play ''.mkv'' files (as of 3.70 anyway). So we ask llink to change any file ending with ''.mkv'' into a different format. Since it is streaming (not writing the whole encoded file on disk before sending) what we send to the PS3 has to be a format capable of streaming. Like that of MPEG-TS. So we convert the file into a ''.mpg'' file, or rather, ''.mkv.mpg''.
''Please add to this list if you have found a player confirmed to work with [[llink]].''


To detect that it is a PS3 that is talking to llink, and not a player that CAN handle ''.mkv'' files, we need to make some match rules. Usually, these operate on the ''User-Agent'' header in HTTP requests, or the ''SERVER:'' tag in UPNP's ''BrowseDirectChildren''.


To define where to find the transcode binary, I have been using ''ffmpeg'', but other programs could probably be used. In fact, one day one might be able to pass it to a "transcode -for ps3" program, wouldn't that be nice.
Syabas NMT powered media players:
* Confirmed: Popcorn Hour A-100, A-110, B-110, A-200, C-200 [http://www.popcornhour.com popcornhour.com]
* Confirmed: Digitek HDX900, HDX1000 [http://hdx1080.com/ hdx1080.com]
* DuneHD Ultra, [http://www.dune-hd.com/ dune-hd.com]
* ISTAR Mini, [http://istarhd.com/ istarhd.com]
* eGreat EG-M31A, EG-M31B [http://www.egreathd.com egreathd.com]
* Shenzhen Elektron EHP-600, 606 Mini [http://www.elektron-china.com/en/viewproduct.asp?id=180 elektron-china.com]
* CMI SYVIO-200 [http://www.cmicable.com/en/products_details.asp?id=307 cmicable.com]
* Dueple 700D [http://www.dueple.se/ dueple.se]
* Kaiboer K-100 [http://www.kaiboerhd.com/views.asp?hw_id=395 kaiboerhd.com]
* Dragontech ioBox-100HD [http://www.dragontechcorp.com/products/iobox-100hd.htm dragontechcorp.com]
* Balocco Box [http://www.telcominstrument.com/p_359_18_43_balocco-lettore-box-multimediale-nmt-media-player-hdtv-full-hd-matrioska-bittorrent-hdmi-mkv-h264-internet-lan-ethernet-browser-web-nas-upnp-p2p-youtube-harddisc.html telcominstrument.com] (eGreat clone)
* Icy Box IB-MP309HW-B [http://www.networkedmediatank.com/showthread.php?tid=16868 www.networkedmediatank.com] does NOT have colour buttons on remote!
* Popbox V8 [http://www.popbox.com/onlinestore/ http://www.popbox.com/onlinestore/]


So, a '''TRANSCODE''' line might look something like:


TRANSCODE|USERAGENT=*playstation*|ext=*.mkv|newext=.mpg|args=./ffmpeg -d -i "%s" -threads 4 -vbsf h264_mp4toannexb -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -ac 2 -vcodec copy -async 2 -
UPnP players
* PlugPlayer app for iPhone and iPad. [http://www.plugplayer.com/ plugplayer.com]
* XBMC, OS X, Live and AppleTV2 tested. [http://xbmc.org/ XBMC]
* EyeController for iDevices and Android
* Softmedia Player


In this case, we detect a PS3 if the ''User-Agent:'' tag contains "playstation" anywhere in it (case-insensitive).
Other or older players:
We only change files of ''.mkv'' type.
We will produce new files of ''.mpg'' type. (MIME type is then based on ''.mpg'' and becomes ''video/mpeg''.)
llink will execute


'''./ffmpeg -d -i "http ://localhost:8001/path/to/video.mkv" -threads 4 -vbsf h264_mp4toannexb -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -ac 2 -vcodec copy -async 2 -'''
* Confirmed: Quartek WHD500-V9 (works fine but problem with skins? Need more test info.)
* Confirmed: AVeL LinkPlayer2, [http://www.iodata.com/en/news/060623.htm iodata.com]
* Confirmed: Buffalo LinkTheater, [http://www.buffalo-technology.com/products/multimedia/linktheater-ag/linktheater-wireless-ag-network-media-player/ buffalo-technology.com]
* Flexcomm Haidee1000, [http://www.flexcomm.com.cn/products/Haidee1000.html flexcomm.com.cn]
* NETGEN NETBOX 7600HD
* Viewsonic hdmr-2000
* Sony Playstation 3
* Sony Bravia TV


The important parts here is '''-i "%s"''' would specify input file, in this case llink will replace '''%s''' with the actual URL to play. Note that ffmpeg appears to be very picky with argument order. Ie, specifying '''-i "%s"''' at the end will not work.
Work done for XBox 360, but unknown if it works yet.
 
'''The final minus "-" is important. It tells ffmpeg to send the stream to stdout. Which is why you have to use ''-f mpegts'' to set the output format.''' Note that stderr would end up in the stream too, so with ffmpeg we use '''-d''' to make it completely silent.
 
If you wish to see what ''User-Agent:'' headers your device send, use
 
./llink -d -v 16
[skin] checking for matching transcoders to user-agent 'Platinum/0.5.3.0, DLNADOC/1.50'
[skin] matches '*latinum*' (ext '*.avi')
 
As far as transcoding goes, we do almost none. Video codec (h264) and audio of the ''.mkv'' file is copied without changing. We are just changing transport encapsulation from ''.mkv'' to ''mpeg-ts''. Very low CPU in this case.
 
 
To test your own transcoding argument, I would recommend running the command line yourself, like this:
 
./ffmpeg -i "http ://localhost:8001/path/to/video.mkv" -threads 4 -vbsf h264_mp4toannexb -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -ac 2 -vcodec copy -async 2 - > test-encode.mpg
 
I removed the -d so you now get ''stderr'' output and can see any encoding errors. I keep the "-" to send to stream, and sent it to a file "> test-encode.mpg". This is to make sure you are using stream, and not doing formats that can not stream. (Like mp4).
 
Then simply test-play the file "test-encode.mpg" on your device to make sure it is ok.
 
In my tests, I am using:
 
ffmpeg version 0.8.4
 
Below, insert any good transcoding options you might find.
 
=== Playstation 3 ===
 
Change MKV to MPG, appears to work for Scene standard tv.
TRANSCODE|USERAGENT=*playstation*|ext=*.mkv|newext=.mpg|args=./ffmpeg -d -i "%s" -threads 4 -vbsf h264_mp4toannexb -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -ac 2 -vcodec copy -async 2 -
 
 
=== XBox 360 ===
 
 
=== Apple ipad ===
 
 
=== Apple ipad 2 ===
 
 
=== Apple iphone ===
 
 
=== Google Android ===
 
Tested with ''Softmedia Player Trial'' and ''Mirage''.
 
TRANSCODE|USERAGENT=*android*|ext=*.avi|newext=.mpg|args=./ffmpeg -d -i "%s" -acodec libmp3lame -ar 48000 -ab 128k -ac 2 -s 720x480 -vcodec libx264 -b 1200k -flags +loop+mv4 -cmp 256 -partitions +parti4x4+partp8x8+partb8x8 -subq 7 -trellis 1 -refs 3 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 1200k -maxrate 1200k -bufsize 1200k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 16:9 -r 30 -g 90 -async 2 -f mpegts -
Almost works, plays fine for a while, but drops to 5 fps or so at times. Appears not to recover.
 
 
=== More here ===
 
EyeCon sends
User-Agent: Eyecon ControlPoint 2.0 | DMC/1.0
 
AcePlayer sends
Absolutely nothing :(
 
MLPlayer Lite
USER-AGENT: Darwin/11.0.0 UPnP/1.0 DLNADOC/1.50
 
PlugPlayer
USER-AGENT: iPad/4.3.2, UPnP/1.0, PlugPlayer/3.8.0
 
YXPlayer
User-Agent: Platinum/0.5.3.0, DLNADOC/1.50
 
Playstation 3
 
X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
User-Agent: UPnP/1.0 DLNADOC/1.50

Latest revision as of 05:56, 27 October 2011

List of compatible streamers

Note that this list is not a complete reference, and all listed products are not confirmed, but in theory llink should work with most Syabas middleware hardware. There is a product list maintained on the NMT wiki.


Please add to this list if you have found a player confirmed to work with llink.


Syabas NMT powered media players:


UPnP players

  • PlugPlayer app for iPhone and iPad. plugplayer.com
  • XBMC, OS X, Live and AppleTV2 tested. XBMC
  • EyeController for iDevices and Android
  • Softmedia Player

Other or older players:

  • Confirmed: Quartek WHD500-V9 (works fine but problem with skins? Need more test info.)
  • Confirmed: AVeL LinkPlayer2, iodata.com
  • Confirmed: Buffalo LinkTheater, buffalo-technology.com
  • Flexcomm Haidee1000, flexcomm.com.cn
  • NETGEN NETBOX 7600HD
  • Viewsonic hdmr-2000
  • Sony Playstation 3
  • Sony Bravia TV

Work done for XBox 360, but unknown if it works yet.