Stream.show() to use SDT if available in TS files? #38
Replies: 7 comments 2 replies
-
Sounds reasonable, let me look into it. |
Beta Was this translation helpful? Give feedback.
-
try this commit. Git pull. a@fumatica:~/threefive$ cat cli4.py
import sys
from threefive import stream
def do():
args= sys.argv[1:]
for arg in args:
print(f'Media: {arg}')
stream.Stream(arg).show()
if __name__ == "__main__":
do() a@fumatica:~/threefive$ time pypy3 cli4.py ../mpegts/udp.livetv.ts
Media: ../mpegts/udp.livetv.ts
Program: 51
Service b'CNBC HD'
Provider: b'NBCU'
Stream: Pid:510[0x1fe] Type:0x1b
Stream: Pid:511[0x1ff] Type:0x81
Stream: Pid:512[0x200] Type:0x81
Stream: Pid:515[0x203] Type:0x86
|
Beta Was this translation helpful? Give feedback.
-
Multiple programs work too. Program: 3
Service b'VH1 SD\x00'
Provider: ✔
Program: 4
Service b'INFINITY SD\x00'
Provider: ✔
Program: 1704
Service b'704 STAR Movies\x00'
Provider: ✔
Program: 1707
Service b'707 STAR GOLD\x00'
Provider: ✔
Program: 1777
Service b'777 Star Bharat\x00'
Provider: ✔
Program: 110
Service b'DISNEY INTR HD\x00'
Provider: ✔
Program: 6008
Service b'Star Gold 2\x00'
Provider: ✔
Program: 6086
Service b'Star Gold Select\x00'
Provider: ✔
Program: 101
Service b'Disney Channel\x00'
Provider: ✔
Program: 109
Service b'HUNGAMA\x00'
Provider: ✔
Program: 1512
Service b'STAR GOLD HD DD\x00'
Provider: ✔
Program: 1515
Service b'STAR PLUS HD\x00'
Provider: ✔
Program: 103
Service b'DISNEY JUNIOUR\x00'
Provider: ✔
Program: 1527
Service b'STAR MOVIES HD\x00'
Provider: ✔
Program: 6009
Service b'Star Utsav Movie\x00B'
Provider: ✔
Program: 102
Service b'MARVELS HQ\x00'
Provider: ✔
Program: 1518
Service b'Star Bharat HD\x00'
Provider: ✔
Program: 6098
Service b'STAR GOLD SELECT HD\x00'
Provider: ✔
Program: 6013
Service b'Star Movies Select HD\x00'
Provider: ✔
Program: 1460
Service b'Srv_1460\x00'
Provider: ✔
Program: 1
Service ✔
Provider: ✔
Stream: Pid:256[0x100] Type:0x6
Stream: Pid:3837[0xefd] Type:0x1b
Stream: Pid:3838[0xefe] Type:0x81
Stream: Pid:3839[0xeff] Type:0x81
Stream: Pid:3840[0xf00] Type:0x86
Stream: Pid:3841[0xf01] Type:0xc0
Stream: Pid:3842[0xf02] Type:0xc0
Stream: Pid:3843[0xf03] Type:0xc0
|
Beta Was this translation helpful? Give feedback.
-
futzu,
|
Beta Was this translation helpful? Give feedback.
-
futzu Looks great! Thank you very much for adding this feature. |
Beta Was this translation helpful? Give feedback.
-
I am pushing this update to include stream descriptions now. ../mpegts/copy.ts
Program: 21862
Service: Some Channel
Provider: Some provider
Pcr Pid: 336[0x150]
Streams:
Pid: 336[0x150] Type: 0x1b AVC Video
Pid: 337[0x151] Type: 0x81 AC3 Audio
Pid: 338[0x152] Type: 0x81 AC3 Audio
Pid: 339[0x153] Type: 0x6 PES Packets / Private Data
../mpegts/cue.ts
Program: 1
Service: Service01
Provider: FFmpeg
Pcr Pid: 256[0x100]
Streams:
Pid: 256[0x100] Type: 0x6 PES Packets / Private Data
../mpegts/doublescte35.ts
Program: 1
Service:
Provider:
Pcr Pid: 262[0x106]
Streams:
Pid: 262[0x106] Type: 0x1b AVC Video
Pid: 261[0x105] Type: 0x1b AVC Video
Pid: 260[0x104] Type: 0x3 MP2 Audio
Pid: 259[0x103] Type: 0x3 MP2 Audio
Pid: 258[0x102] Type: 0x6 PES Packets / Private Data
Pid: 257[0x101] Type: 0x6 PES Packets / Private Data
Pid: 264[0x108] Type: 0x86 SCTE35 Data
Pid: 263[0x107] Type: 0x6 PES Packets / Private Data |
Beta Was this translation helpful? Give feedback.
-
Would it be possible for Stream.show() to use the SDT if available in TS files? This way the Service Name can be shown along with the program number.
Beta Was this translation helpful? Give feedback.
All reactions