2012年5月2日 星期三

數碼廣播 - PVR 問題 - 一些有關 info.ini 的資料

數碼廣播 - PVR 問題 - 一些有關 info.ini 的資料
http://www.hkepc.com/forum/viewthread.php?tid=1620430

發表於 2011-6-4 00:25 | 只看該作者

PVR 問題

最近換左部stb, 我而家想用部新既stb去播番之前舊機錄既pvr, 但係就只係出到video而無audio, 因為兩部stb錄出黎既file都係~.ts, 係電腦都播到及出到聲, 我估計係info.ini呢個file唔同而出唔到聲, 唔知咁多位師兄有冇計仔幫幫我


發表於 2011-6-4 04:14 | 只看該作者

你的想法應該正確,我也在研究如何把 DVBViewer 錄的 .ts 放在機頂盒播放。我從以下這個網站﹝經 Google translate﹞找到一些有關 info.ini 的資料,不過不完整:
http://translate.google.com/translate?hl=en&sl=auto&tl=en&u=http%3A%2F%2Fwww.homecinema-fr.com%2Fforum%2Fviewtopic.php%3Ff%3D1284%26t%3D29948456%26sid%3D0b0c793302224c081fe2556ded3d505a%26start%3D360

先要用機頂盒錄各台一兩分鐘然後比較。主要是要找出各 PID 的位置,檔案大小,錄制日期及時間﹝好似放在 directory 內﹞,錄制時間長度。我用 PRIMA PM-698 機頂盒,數據分析如下﹝Hex 數據以 little endian 格式儲存﹞。其他機頂盒相信大同小異:

Untitled.jpg



PID (Dec)PID (Hex)用途
110006e本港台 LCN=11
111 (=110+1)006f本港台 video
112 (=110+2)0070本港台 audio 1
113 (=110+3)0071本港台 audio 2
114 (=110+4)0072本港台 subtitle 1 CHI/CHS
115 (=110+5)0073本港台 subtitle 2 ENG
810032a翡翠台 LCN=81
811 (=810+1)032b翡翠台 video
812 (=810+2)032c翡翠台 audio 1
813 (=810+3)032d翡翠台 audio 2
815 (=810+5)032f翡翠台 subtitle 1 CHI
816 (=810+6)0330翡翠台 subtitle 2 ENG
817 (=810+7)0331翡翠台 subtitle 3 CHS
8200334J2 LCN=82
8210335J2 video
8220336J2 audio 1
8230337J2 audio 2
8250339J2 subtitle 1 CHI



其餘亞視各台 PID 用途和本港台相近 (video + 2 audio + 2 subtitle);
其餘無線各台 PID 用途和翡翠台相近 (video + 3 audio + 3 subtitle)。

理論上可以寫個簡單程式輸出 info.ini,不過我個程式還未開始寫。

========================================================================

發表於 2011-6-5 05:35 | 只看該作者

師兄既分析果然詳盡, 但係小弟黎講就可能深左少少, 以下都係我小小既分享, 希望幫到師兄寫野用

我只係好單純咁用notepad去開info.ini, 我觀察到唔同台係會有自己唔同既info.ini, (i.e. j2, 高清翡翠 及 標清翡翠 係會有3款唔同既info.ini, 如此類推) 當節目係同一個台錄既時候, 呢個file係可以互通
例子:
我係stb-a錄左高清翡翠既"魔法擂台", 我而家想用stb-b播番呢個節目, 我就可以利用番之前係stb-b所錄得既高清翡翠"華麗明星賽"既pvr當中, 抽取其info.ini並取代"魔法擂台"既info.ini, 咁樣做就可以成功播放出所有聲軌及畫面

但係就有另一個問題出現, 就係播放時間不吻合
例子:
假設"華麗明星賽"既pvr我只係錄得30分鐘, 呢個info.ini亦只會有30分紀錄, 所以本身錄左60分鐘既"魔法擂台"亦被"限制"播放30分鐘 ; 反之亦然, 假設"華麗明星賽"既pvr只有兩條聲軌, 而"魔法擂台"有3條聲軌的話, 最終"魔法擂台"亦只有兩條聲軌可以被播出

其實我如果有辨法寫到一個無限時間及聲軌既info.ini出黎, 豈不是己經解決左問題

ps1, stb-a 為"頂天立地" / stb-b為"4gen 484l"
ps2, 師兄你個套睇到file既binary code既software叫咩野名?我想用佢黎改info.ini


========================================================================

發表於 2011-6-5 10:35 | 只看該作者

你的想法和我最初時大致相同。會遇到的問題你也提到。看我之前分析每個台前部是相同的,只有 duration 及 file size 會不同。
其實 TVB 一向都是用兩聲軌,不過佈局是似是預了有三聲軌。上界世界盃時相用第三聲軌但始終沒有。你不妨做個三聲軌的 info.ini。

工具
  • 個 Hex Editor 叫做 Hex Editor Neo (http://www.hhdsoftware.com/free-hex-editor)。是 freeware。
  • Mediainfo (http://mediainfo.sourceforge.net/en)。在 View 選 Text,在 Debug -> Advanced mode 打勾,便可以看到 File size (in byte) 及 Duration (in ms) 。
  • Windows 內的 Calculator。在 View 轉做 Scientific View 有 Hex, Dec, Oct, Bin 選。先選 Dec ,輸入十進數值再按 Hex 便可把十進位轉為十六進位。十六進轉十進也是類似。


記著 Hex 放在檔案是用 little endian 格式 (若 0123456789ABCDEF 會按 byte 次序放 EF, CD, AB, 89, 67, 45, 23, 01)。


========================================================================

http://translate.google.com/translate?hl=en&sl=auto&tl=en&u=http%3A%2F%2Fwww.homecinema-fr.com%2Fforum%2Fviewtopic.php%3Ff%3D1284%26t%3D29948456%26sid%3D0b0c793302224c081fe2556ded3d505a%26start%3D360

of mardigan "November 22, 2010 7:28 p.m.

Akira Demod
I start with a patch on the name in Recorder Model:
"Akira-DHB B36HR, HU-PVR, HDMI-PVR" is familiar to users as it is called firmware
"Akira-DHB B36HR / DHB-863HU-PVR" is a little buggy (863 does not exist, it is B36) and incomplete

Then the manipulation:

I begin with an export locally on PC: (Model Akira)
dossier.pvr -> chaîne.ts (PC)
then the creation:
RecTVEdit -> File -> New -> chaîne.ts -> Open -> Continue -> Save
-> "Create a new dossier.pvr with the current date and time" (manually transferred over USB)
(I put the addition. Xml)

At this level: a wish: Power state the name of the new dossier.pvr
I personally prefer Chain-annéemoisjour-heure.pvr As of 8890 :)
(An optional config perhaps?)

I am passing a conversion V1 -> V2.2 of info.ini (NRJ12 SD):
Code: Select all
Offset hex. 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
000000000: 26 25 24 AC 00 00 00 00 00 00 00 00 01 00 00 00 &%$¬............
000000010: 00 00 00 00 00 00 00 00 C8 00 DC 00 DC 00 F0 00 ........È.Ü.Ü.ð.
000000020: 00 00 02 00 E6 00 01 00 66 72 61 00 E8 00 01 00 ÿ...æ ÿ.fra.è ÿ.
000000030: 65 6E 67 00 00 00 00 00 00 00 00 00 00 00 00 00 eng.............
000000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000060: 00 00 00 00 02 00 01 00 FA 00 02 00 66 72 61 00 ........ú...fra.
000000070: 01 00 01 00 00 00 01 00 66 72 61 00 00 00 88 00 ........fra...ˆ.
000000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000F0: 95 DA 59 00 95 DA 59 00 00 00 08 F1 00 00 00 00 (.Z.(.Z....ñ....

Code: Select all
Offset hex. 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
000000000: 26 25 24 AC 00 00 00 00 00 00 00 00 01 00 00 00 &%$¬............
000000010: 00 00 00 00 00 00 00 00 C8 00 DC 00 DC 00 F0 00 ........È.Ü.Ü.ð.
000000020: FF 1F 02 00 E6 20 FF 1F 66 72 61 00 E8 20 FF 1F ÿ...æ ÿ.fra.è ÿ.
000000030: 65 6E 67 00 00 00 00 00 00 00 00 00 00 00 00 00 eng.............
000000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000060: 00 00 00 00 02 00 01 00 FA 00 00 00 66 72 61 00 ........ú...fra.
000000070: 01 00 01 00 00 00 01 00 66 72 61 00 00 00 88 00 ........fra...ˆ.
000000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000F0: 28 14 5A 00 28 14 5A 00 00 00 08 F1 00 00 00 00 (.Z.(.Z....ñ....
000000100: 02 06 FF 1F FF 1F 00 00 ..ÿ.ÿ...
There is significant difference in duration:
5888.661 s original term
5903.400 s duration generated
And now the test of fire:
The video is displayed, the time counter remains at 0, the sound desync (ahead of at least 5 s) and intermittently jerky
But the GOTO walk!
The timecode is used for replay!

In this connection it is in the standard BDAV (Blu-ray Video) probably need to look.


========================================================================

沒有留言:

張貼留言