Mezzmo@ ウィキ

MezzmoのREGZA用設定ファイルのカスタマイズ

最終更新:

dlnereg

- view
管理者のみ編集可
mezzmoは数あるトランスコーディングできるDLNAサーバの中でも一発でレグザを認識してくれてSD画質ですがレグザで視聴できました。
でも1920x1080のソースはそのまま見たいということでデジ備忘さんの記事を元に研究してやってみました。
デジ備忘http://www.degi.saloon.jp/

デジ備忘さんやその他先達の方々の記事を見ながら、ffmpegのオプションを見ながら一つ一つ試していきました。
その結果1920x1080のmp4の動画をリアルタイムトランスコードさせながら
レグザでガクガクさせずにスムースに見ることができました。
まさに体験版の期限が切れる直前に出来上がりでしたが。(これに気をよくして購入しました。)

PCはWindows7、CPUはcore i7 860(2.8Ghz) メモリは4GBです。

C:\ProgramData\Conceiva\Mezzmo\DeviceProfilesにあるToshibaJapan.prfを退避させ
元の場所にToshibaJapan.prfのコピーを置いてテラパッドで開いて書き換えを試しては再生、
書き換えを試しては再生を繰り返して出来上がった成果です。

ToshibaJapan.prfのデフォルトの状態とモディファイ後を掲載しました。
変更した内容も載せています。

ただし調べたとはいえよく理解しないまま適当にやってうまくいっただけなので理由はわかりません。
もしかしたら、これでなにかの不具合が出るかもしれませんが、そのときはまた設定を変えてみます。

知っている人はもっと適切な数値を入れられんだろうな・・・。




デフォルトのREGZA用プロファイル

  1. <MezzmoDeviceProfile>
  2. <version>113</version>
  3. <device>
  4. <guid>52D3586C-FD51-4f9c-A124-A9976C285EF5</guid>
  5. <name manufacturer="Toshiba" model="TV (Japan)" profileactive="1" needstimebasedseek="1" />
  6. <useragent>JPN UPnP/1.0 DLNADOC/1.50 Intel_SDK_for_UPnP_devices/1.2</useragent>
  7. <useragent>Allegro-Software-WebClient/5.12 DLNADOC/1.50</useragent>
  8. <xavclient></xavclient>
  9. <mezzmoserver></mezzmoserver>
  10. <transcoding enabled="1" minimumstreamingsize="1024000" waitmsbeforestreaming="2000" contentlength="5" />
  11. <devicedescription>GenericDeviceDescription.xml</devicedescription>
  12. <videomax width="720" height="480" />
  13. <imagemax width="4096" height="4096" />
  14. </device>
  15. <descriptiondeliveryrules>
  16. <!-- delivery description rules specify what the device will see for each file. A file is considered to be supported if
  17. it matches a format, audio/video codecs within that format and any codec limits in this device profile. Best fit is
  18. if one of the 2 stream from a format description matches the original file. Preferred transcoded format describes
  19. the best quality format a device can play. Transcoded list is all combinations of formats that we can encode to,
  20. possibly including preferred transcoded and baseline. When building a file description, Mezzmo follows the following
  21. rules order: supported, bestfit, preferredtranscoded, transcodedlist, baseline, nonsupported -->
  22. <!-- please note that if transcoding is disabled or baseline and preferredtranscoded are set to no,
  23. then the nonsupported flag is automatically set to yes. If transcoding is disabled, then only supported and
  24. nonsupported rules are checked and used. -->
  25. <supported>yes</supported>
  26. <!-- baseline, bestfit, transcodedlist, nonsupported and preferredtranscoded can be either one of: yes, no, auto
  27. yes = always deliver, no = never deliver, auto = deliver if not delivered already by one of the rules above it -->
  28. <bestfit>auto</bestfit>
  29. <preferredtranscoded>auto</preferredtranscoded>
  30. <transcodedlist>auto</transcodedlist>
  31. <baseline>auto</baseline>
  32. <nonsupported>auto</nonsupported>
  33. </descriptiondeliveryrules>
  34. <avcontainer id="mpeg" name="mpeg_ntsc" encode="1" mimetype="video/mpeg" baseline="1" dlnaprofile="MPEG_PS_NTSC" format="dvd" preferredtranscoded="1" supportschunked="1">
  35. <video>
  36. <format id="mpeg2video" encode="1" codec="mpeg2video" preferredtranscoded="1">
  37. <dimensions width="352" height="240" />
  38. <dimensions width="352" height="480" />
  39. <dimensions width="480" height="480" />
  40. <dimensions width="544" height="480" />
  41. <dimensions width="704" height="480" />
  42. <dimensions width="720" height="480" />
  43. <maxbitrate>9000000</maxbitrate>
  44. <copyts>0</copyts>
  45. <samequality>0</samequality>
  46. <gop>18</gop>
  47. <bitrate>8600000</bitrate>
  48. <bufsize>1835008</bufsize>
  49. <framerate>29.97</framerate>
  50. </format>
  51. </video>
  52. <audio>
  53. <format id="ac3" encode="1" codec="ac3" preferredtranscoded="1">
  54. <channels>2</channels>
  55. <channels>6</channels>
  56. <bitrate>320000</bitrate>
  57. <maxbitrate>448000</maxbitrate>
  58. <minbitrate>64000</minbitrate>
  59. <samplingrate>48000</samplingrate>
  60. </format>
  61. </audio>
  62. <audio>
  63. <format id="mp3" encode="0">
  64. </format>
  65. </audio>
  66. <audio>
  67. <format id="mp2" encode="0">
  68. </format>
  69. </audio>
  70. <ffmpegadditional>-threads 4 -aspect 4:3 -pix_fmt yuv420p -copyinkf -sc_threshold 1000000000 -coder ac -qmin 1 -cmp 2 -subcmp 2 -flags +loop -mbd bits -bsf h264_mp4toannexb -fflags +genpts+ignidx+igndts -deinterlace</ffmpegadditional>
  71. </avcontainer>
  72. <avcontainer id="mpegts" name="mpegts" encode="0" format="mpegts" mimetype="video/vnd.dlna.mpeg-tts" dlnaprofile="MPEG_TS_JP_T" preferredtranscoded="0">
  73. <video>
  74. <format id="mpeg1video" encode="0">
  75. </format>
  76. </video>
  77. <video>
  78. <format id="mpeg2video" encode="0">
  79. </format>
  80. </video>
  81. <audio>
  82. <format id="ac3" encode="0">
  83. </format>
  84. </audio>
  85. <audio>
  86. <format id="mp3" encode="0">
  87. </format>
  88. </audio>
  89. <audio>
  90. <format id="mp2" encode="0">
  91. </format>
  92. </audio>
  93. </avcontainer>
  94. <avcontainer id="mp3" name="mp3" encode="0" mimetype="audio/mp3" baseline="1" dlnaprofile="MP3">
  95. <audio>
  96. <format id="mp3" encode="0" codec="libmp3lame">
  97. <maxbitrate>320000</maxbitrate>
  98. <minbitrate>32000</minbitrate>
  99. <maxsamplingrate>48000</maxsamplingrate>
  100. <minsamplingrate>32000</minsamplingrate>
  101. </format>
  102. </audio>
  103. </avcontainer>
  104. <avcontainer id="s16be" name="lpcm" encode="1" mimetype="audio/L16" baseline="1" dlnaprofile="LPCM" preferredtranscoded="1">
  105. <audio>
  106. <format id="s16be" encode="1" codec="pcm_s16be" preferredtranscoded="1">
  107. <channels>2</channels>
  108. <bitrate>1536000</bitrate>
  109. <maxbitrate>1536000</maxbitrate>
  110. <minbitrate>8000</minbitrate>
  111. <maxsamplingrate>48000</maxsamplingrate>
  112. <minsamplingrate>32000</minsamplingrate>
  113. <samplingrate>48000</samplingrate>
  114. <samplingrate>44100</samplingrate>
  115. </format>
  116. </audio>
  117. </avcontainer>
  118. <avcontainer id="jpeg" name="jpeg_lrg" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_LRG">
  119. <image>
  120. <format id="jpeg" encode="1" mimetype="image/jpeg" codec="98" quality="2">
  121. <maxdimensions width="4096" height="4096" />
  122. <maxbits>24</maxbits>
  123. </format>
  124. </image>
  125. </avcontainer>
  126. <avcontainer id="jpeg" name="jpeg_med" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_MED" preferredtranscoded="1">
  127. <image>
  128. <format id="jpeg" encode="1" mimetype="image/jpeg" codec="98" preferredtranscoded="1">
  129. <maxdimensions width="1024" height="768" />
  130. <maxbits>24</maxbits>
  131. </format>
  132. </image>
  133. </avcontainer>
  134. <avcontainer id="jpeg" name="jpeg_sm" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_SM" preferredthumbnail="1">
  135. <image>
  136. <format id="jpeg" encode="1" mimetype="image/jpeg" codec="98">
  137. <maxdimensions width="640" height="480" />
  138. <maxbits>24</maxbits>
  139. </format>
  140. </image>
  141. </avcontainer>
  142. <avcontainer id="jpeg" name="jpeg_tn" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_TN" preferredthumbnail="0">
  143. <image>
  144. <format id="jpeg" encode="1" mimetype="image/jpeg" codec="98" quality="2">
  145. <maxdimensions width="160" height="160" />
  146. <maxbits>24</maxbits>
  147. </format>
  148. </image>
  149. </avcontainer>
  150. </MezzmoDeviceProfile>
  151.  

変更内容

10行目の<transcoding enabled="1" minimumstreamingsize="1024000" waitmsbeforestreaming="2000" contentlength="5" />を
<transcoding enabled="1" minimumstreamingsize="57344000" waitmsbeforestreaming="20000" contentlength="5" />と変更。
変更箇所1.minimumstreamingsize="1024000"→"57344000"と60倍ぐらいの数値に変えました。
変更箇所2.waitmsbeforestreaming="2000"→"20000"とストリームを開始するまでの時間を2秒から20秒に変更します。
(これで500MB溜まるか20秒が来たらストリームを開始するという設定になるそうです。)

12行目の<videomax width="720" height="480" />→<videomax width="1920" height="1080" />に変更します。
変更箇所width="720" height="480"→width="1920" height="1080"とフルHDまで表示させることにします。

37行目から42行目の以下の記述を削除します。
<dimensions width="352" height="240" />
<dimensions width="352" height="480" />
<dimensions width="480" height="480" />
<dimensions width="544" height="480" />
<dimensions width="704" height="480" />
<dimensions width="720" height="480" />

または1行だけ残して
<dimensions width="1920" height="1080" />
としておくとテレビで再生したときに画面表示にテレビ SD 4:3 ステレオと表示されていたのが
テレビ HD 4:3 ステレオと表示されてちょっとうれしくなります。

43行目の<maxbitrate>9000000</maxbitrate>→<maxbitrate>54000000</maxbitrate>と数字を6倍します。
    (8倍にしたらガクガクでした。6倍がちょうどよいのかもしれません。)

47行目の<bitrate>8600000</bitrate>→<bitrate>51600000</bitrate>と6倍の数値を入れます。
    (8倍にしたらガクガクでした。6倍がちょうどよいのかもしれません。)

※Windows7のサンプルビデオのWMV形式のWILDLIFEが見られなくなったためいろいろ試したら
47行目の<bitrate>の数字をいじることで解消しました。
方法としては元の数字に近い倍数を入れてみました。
47行目の<bitrate>51600000</bitrate>→<bitrate>17200000</bitrate>ともともとの設定の2倍の数値に減らしたら見られるようになりました。
47行目の<bitrate>8600000</bitrate>→<bitrate>17200000</bitrate>でも問題なくHD動画を見られます。


48行目の<bufsize>1835008</bufsize>→<bufsize>11010048</bufsize>と6倍の数値を入れます。
    (8倍にしたらガクガクでした。6倍がちょうどよいのかもしれません。)
70行目の<ffmpegadditional>-threads 4 -aspect 4:3 -pix_fmt yuv420p -copyinkf -sc_threshold 1000000000 -coder ac -qmin 1 -cmp 2 -subcmp 2 -flags +loop -mbd bits -bsf h264_mp4toannexb -fflags +genpts+ignidx+igndts -deinterlace</ffmpegadditional>の
  • threads 4→-threads 6にcpuのコア数+アルファということでこの数字に変更

モディファイ後のREGZA用プロファイル(ちと古い)

※11年12月29日現在のREGZA用設定ファイルは→こちらをクリック
  1. <MezzmoDeviceProfile>
  2. <version>113</version>
  3. <device>
  4. <guid>52D3586C-FD51-4f9c-A124-A9976C285EF5</guid>
  5. <name manufacturer="Toshiba" model="TV (Japan)" profileactive="1" needstimebasedseek="1" />
  6. <useragent>JPN UPnP/1.0 DLNADOC/1.50 Intel_SDK_for_UPnP_devices/1.2</useragent>
  7. <useragent>Allegro-Software-WebClient/5.12 DLNADOC/1.50</useragent>
  8. <xavclient></xavclient>
  9. <mezzmoserver></mezzmoserver>
  10. <transcoding enabled="1" minimumstreamingsize="57344000" waitmsbeforestreaming="20000" contentlength="5" />
  11. <devicedescription>GenericDeviceDescription.xml</devicedescription>
  12. <videomax width="1920" height="1080" />
  13. <imagemax width="4096" height="4096" />
  14. </device>
  15. <descriptiondeliveryrules>
  16. <!-- delivery description rules specify what the device will see for each file. A file is considered to be supported if
  17. it matches a format, audio/video codecs within that format and any codec limits in this device profile. Best fit is
  18. if one of the 2 stream from a format description matches the original file. Preferred transcoded format describes
  19. the best quality format a device can play. Transcoded list is all combinations of formats that we can encode to,
  20. possibly including preferred transcoded and baseline. When building a file description, Mezzmo follows the following
  21. rules order: supported, bestfit, preferredtranscoded, transcodedlist, baseline, nonsupported -->
  22. <!-- please note that if transcoding is disabled or baseline and preferredtranscoded are set to no,
  23. then the nonsupported flag is automatically set to yes. If transcoding is disabled, then only supported and
  24. nonsupported rules are checked and used. -->
  25. <supported>yes</supported>
  26. <!-- baseline, bestfit, transcodedlist, nonsupported and preferredtranscoded can be either one of: yes, no, auto
  27. yes = always deliver, no = never deliver, auto = deliver if not delivered already by one of the rules above it -->
  28. <bestfit>auto</bestfit>
  29. <preferredtranscoded>auto</preferredtranscoded>
  30. <transcodedlist>auto</transcodedlist>
  31. <baseline>auto</baseline>
  32. <nonsupported>auto</nonsupported>
  33. </descriptiondeliveryrules>
  34. <avcontainer id="mpeg" name="mpeg_ntsc" encode="1" mimetype="video/mpeg" baseline="1" dlnaprofile="MPEG_PS_NTSC" format="dvd" preferredtranscoded="1" supportschunked="1">
  35. <video>
  36. <format id="mpeg2video" encode="1" codec="mpeg2video" preferredtranscoded="1">
  37. <maxbitrate>54000000</maxbitrate>
  38. <copyts>0</copyts>
  39. <samequality>0</samequality>
  40. <gop>18</gop>
  41. <bitrate>51600000</bitrate>
  42. <bufsize>11010048</bufsize>
  43. <framerate>29.97</framerate>
  44. </format>
  45. </video>
  46. <audio>
  47. <format id="ac3" encode="1" codec="ac3" preferredtranscoded="1">
  48. <channels>2</channels>
  49. <channels>6</channels>
  50. <bitrate>320000</bitrate>
  51. <maxbitrate>448000</maxbitrate>
  52. <minbitrate>64000</minbitrate>
  53. <samplingrate>48000</samplingrate>
  54. </format>
  55. </audio>
  56. <audio>
  57. <format id="mp3" encode="0">
  58. </format>
  59. </audio>
  60. <audio>
  61. <format id="mp2" encode="0">
  62. </format>
  63. </audio>
  64. <ffmpegadditional>-threads 6 -aspect 4:3 -pix_fmt yuv420p -copyinkf -sc_threshold 1000000000 -coder ac -qmin 1 -cmp 2 -subcmp 2 -flags +loop -mbd bits -bsf h264_mp4toannexb -fflags +genpts+ignidx+igndts -deinterlace</ffmpegadditional>
  65. </avcontainer>
  66. <avcontainer id="mpegts" name="mpegts" encode="0" format="mpegts" mimetype="video/vnd.dlna.mpeg-tts" dlnaprofile="MPEG_TS_JP_T" preferredtranscoded="0">
  67. <video>
  68. <format id="mpeg1video" encode="0">
  69. </format>
  70. </video>
  71. <video>
  72. <format id="mpeg2video" encode="0">
  73. </format>
  74. </video>
  75. <audio>
  76. <format id="ac3" encode="0">
  77. </format>
  78. </audio>
  79. <audio>
  80. <format id="mp3" encode="0">
  81. </format>
  82. </audio>
  83. <audio>
  84. <format id="mp2" encode="0">
  85. </format>
  86. </audio>
  87. </avcontainer>
  88. <avcontainer id="mp3" name="mp3" encode="0" mimetype="audio/mp3" baseline="1" dlnaprofile="MP3">
  89. <audio>
  90. <format id="mp3" encode="0" codec="libmp3lame">
  91. <maxbitrate>320000</maxbitrate>
  92. <minbitrate>32000</minbitrate>
  93. <maxsamplingrate>48000</maxsamplingrate>
  94. <minsamplingrate>32000</minsamplingrate>
  95. </format>
  96. </audio>
  97. </avcontainer>
  98. <avcontainer id="s16be" name="lpcm" encode="1" mimetype="audio/L16" baseline="1" dlnaprofile="LPCM" preferredtranscoded="1">
  99. <audio>
  100. <format id="s16be" encode="1" codec="pcm_s16be" preferredtranscoded="1">
  101. <channels>2</channels>
  102. <bitrate>1536000</bitrate>
  103. <maxbitrate>1536000</maxbitrate>
  104. <minbitrate>8000</minbitrate>
  105. <maxsamplingrate>48000</maxsamplingrate>
  106. <minsamplingrate>32000</minsamplingrate>
  107. <samplingrate>48000</samplingrate>
  108. <samplingrate>44100</samplingrate>
  109. </format>
  110. </audio>
  111. </avcontainer>
  112. <avcontainer id="jpeg" name="jpeg_lrg" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_LRG">
  113. <image>
  114. <format id="jpeg" encode="1" mimetype="image/jpeg" codec="98" quality="2">
  115. <maxdimensions width="4096" height="4096" />
  116. <maxbits>24</maxbits>
  117. </format>
  118. </image>
  119. </avcontainer>
  120. <avcontainer id="jpeg" name="jpeg_med" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_MED" preferredtranscoded="1">
  121. <image>
  122. <format id="jpeg" encode="1" mimetype="image/jpeg" codec="98" preferredtranscoded="1">
  123. <maxdimensions width="1024" height="768" />
  124. <maxbits>24</maxbits>
  125. </format>
  126. </image>
  127. </avcontainer>
  128. <avcontainer id="jpeg" name="jpeg_sm" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_SM" preferredthumbnail="1">
  129. <image>
  130. <format id="jpeg" encode="1" mimetype="image/jpeg" codec="98">
  131. <maxdimensions width="640" height="480" />
  132. <maxbits>24</maxbits>
  133. </format>
  134. </image>
  135. </avcontainer>
  136. <avcontainer id="jpeg" name="jpeg_tn" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_TN" preferredthumbnail="0">
  137. <image>
  138. <format id="jpeg" encode="1" mimetype="image/jpeg" codec="98" quality="2">
  139. <maxdimensions width="160" height="160" />
  140. <maxbits>24</maxbits>
  141. </format>
  142. </image>
  143. </avcontainer>
  144. </MezzmoDeviceProfile>
  145.  
ffmpegadditional
記事メニュー
目安箱バナー