-
Notifications
You must be signed in to change notification settings - Fork 30
Stream.show() to use SDT if available in TS files? #38
fxengelbrecht
started this conversation in
Ideas
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.
All reactions
Replies: 7 comments 2 replies
Sounds reasonable, let me look into it.
All reactions
0 replies
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
All reactions
-
👍 1
0 replies
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
- The ✔ is for empty values.
All reactions
0 replies
All reactions
0 replies
futzu,
This looks great. I do have tow requests though:
- Instead of the ✔ can the field be left empty, or set to "Not Specified" or even "N/A" ?
- Can you remove the "\x00" from the end of the Service and Provider names?
All reactions
1 reply
git pull
Media: ../mpegts/wsb.ts Program: 1 Service: Service01 Provider: FFmpeg Stream: pid:256[0x100] type:0x1b Stream: pid:257[0x101] type:0xf Stream: pid:258[0x102] type:0x6 Media: ../mpegts/x2.ts Program: 1 Service: Provider: Stream: pid:309[0x135] type:0x86 Stream: pid:101[0x65] type:0x1b Stream: pid:256[0x100] type:0x4 Media: ../mpegts/xaa.ts Program: 1 Service: E4_Students Provider: inqb8rTV Stream: pid:309[0x135] type:0x86 Stream: pid:101[0x65] type:0x1b Stream: pid:256[0x100] type:0x4
All reactions
futzu
Looks great! Thank you very much for adding this feature.
All reactions
1 reply
I need to pull the code page descriptor if the Service or Provider metadata uses non-utf-8 encodings to decode properly.
All reactions
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
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment