Hi,
directly Popcorn cannot stream from vdr-streamdev because streamdev server does not provide necessary info by default. I used 0.3.4 as a basis - I believe this patch would work for 0.4 without modification.
With this patch I've been able to stream SD stuff. Need more investigating for HD H.264 stuff, I can hear sound but no picture.
More info about NMT (Networked media tank) devices etc: http://www.networkedmediatank.com/wiki/index.php/Main_Page
What is done on this patch: - Add remote control shortcuts (red, green, yellow and blue) to select wanted stream format (Yellow worked for me with PCH) - Added automated audio track selection to default URL (+1) - Added suffix for URL (TS w/ "C-123-123-123.ts or S-12-123-123.ts", ".ps", ".vdr" for PES and ".mpeg" for ES, extern no suffix) - Added 5000000 bytes prebuf-tag to shorten prebuffer time - Added remove control shortcut for selecting channels (channel number < 1000) - Added "vod" tag for PCH to recognize "video-on-demand"
These small enhancements are inside anchor tag and they do not affect other browsers, just MSP-compatible browsers - so in theory this patch could be built-in for streamdev. But naturally my vision is to have own GUI for MSP. But first need to verify that streaming works - and it does. Just some HD fix is needed.
On PCH menu set Webservices URL: http://%5Byour.VDR%5D:3000/PES/all.html (This should be the default - you can change formats easily with RGYB buttons)
Actual web page is not beautiful compared what you can do with MSP plugins - but this is a start.
Best regards, Jori
----------- vdr server # diff /usr/src/vdr/PLUGINS/src/streamdev/server/menuHTTP.c /usr/src/vdr_plugins/streamdev-0.3.4/server/menuHTTP.c 201c201 < (std::string) "[<a href="/TS/" + self + "" TVID="RED">TS</a>] "); ---
(std::string) "[<a href=\"/TS/" + self + "\">TS</a>]
"); 203c203 < (std::string) "[<a href="/PS/" + self + "" TVID="GREEN">PS</a>] "); ---
(std::string) "[<a href=\"/PS/" + self + "\">PS</a>]
"); 205c205 < (std::string) "[<a href="/PES/" + self + "" TVID="YELLOW">PES</a>] "); ---
(std::string) "[<a href=\"/PES/" + self +
"">PES</a>] "); 207c207 < (std::string) "[<a href="/ES/" + self + "" TVID="BLUE">ES</a>] "); ---
(std::string) "[<a href=\"/ES/" + self + "\">ES</a>]
"); 339,349d338 < std::string suffix; < < switch (streamType) { < case stTS: suffix = (std::string) ".ts"; break; < case stPS: suffix = (std::string) ".ps"; break; < case stPES: suffix = (std::string) ".vdr"; break; < case stES: suffix = (std::string) ".mpeg"; break; < default: < case stExtern: suffix = (std::string) ""; break; < } < 351,357c340,341 < line += (std::string) "<A href="" + (std::string) current->GetChannelID().ToString() + "+1" + suffix + "" vod prebuf=5000000"; < < if (current->Number() < 1000) { < line += " TVID="" + (std::string) (const char*) itoa(current->Number()) + """; < } < < line += (std::string) ">" + current->Name() + "</A>"; ---
line += (std::string) "<a href=\"" + (std::string)
current->GetChannelID().ToString() + "">" +
current->Name() + "</a>";
370c354 < "+" + (const char*)itoa(index) + suffix + "" class="apid" vod>" + current->Alang(i) + "</a>"; ---
"+" + (const char*)itoa(index) + "\"
class="apid">" + current->Alang(i) + "</a>"; 374c358 < "+" + (const char*)itoa(index) + suffix + "" class="dpid" vod>" + current->Dlang(i) + "</a>"; ---
"+" + (const char*)itoa(index) + "\"
class="dpid">" + current->Dlang(i) + "</a>";
On Tue, 4 Nov 2008 11:59:10 +0100, jori.hamalainen wrote
- Added automated audio track selection to default URL (+1)
Is it a problem for PCH to receive multiple audio tracks?
- Added suffix for URL (TS w/ "C-123-123-123.ts or S-12-123-123.ts",
".ps", ".vdr" for PES and ".mpeg" for ES, extern no suffix)
I wonder why these are needed?
These small enhancements are inside anchor tag and they do not affect other browsers, just MSP-compatible browsers - so in theory this patch could be built-in for streamdev. But naturally my vision is to have own GUI for MSP.
I filed a feature request in the streamdev bugtracker: http://www.vdr-developer.org/mantisbt/view.php?id=494
I wouldn't want to commit it to streamdev, if it's only a temporary solution (until an MSP plugin is available). Drop me a line if you think it makes sense to commit it anyway.
Frank
- Added automated audio track selection to default URL (+1)
Is it a problem for PCH to receive multiple audio tracks?
PCH itself supports multiple audio (and subtitle) tracks at least on other formats - but I believe that with VDR it might not be working. I need to test this more when I get back to my PCH.
http://www.hdd-player.de/syabas/showthread.php?tid=1777&page=1
I don't know if this URL recommendation is because of the initial tests made by some guys where they received video but not audio. I think this +1 as a default might become a problem with channels with multiple sound tracks. Maybe there could be additional feature that do not automatically add +1 if count.apid > 1?
I made a new patch (attached at the end) - if 1 audio channel - add +1 because it would not harm PC clients - but enable pch to work - if more audio channels - do not add - PCH users needs to select language for that channel
<ol class="items"> <li value="1"><A href="C-15-3-17.ts" vod prebuf=5000000 TVID="1">YLE TV1</A> <a href="C-15-3-17+1.ts" class="apid" vod>fra</a> <a href="C-15-3-17+2.ts" class="apid" vod>dut</a></li> <li value="2"><A href="C-15-3-33+1.ts" vod prebuf=5000000 TVID="2">YLE TV2</A></li> <li value="3"><A href="C-0-2-49+1.ts" vod prebuf=5000000 TVID="3">MTV3</A></li>
- Added suffix for URL (TS w/ "C-123-123-123.ts or S-12-123-123.ts",
".ps", ".vdr" for PES and ".mpeg" for ES, extern no suffix)
I wonder why these are needed?
I think PCH uses filename based analyzing for stream type recognition. It was at the web forum above that URL like "/PES/*.vdr" should work.
That is what I quickly implemented to see if this was required as streaming previously did not work. And with this patch I was able to stream channels.
I don't know if this is the problem because streamdev is returning same MIME- type (video/mpeg) for all video streams and PCH needs to load some parser-modules based on actual stream.
These small enhancements are inside anchor tag and they do not affect other browsers, just MSP-compatible browsers - so in theory this patch could be built-in for streamdev. But naturally my vision is to have own GUI for MSP.
I filed a feature request in the streamdev bugtracker: http://www.vdr-developer.org/mantisbt/view.php?id=494
I wouldn't want to commit it to streamdev, if it's only a temporary
solution
(until an MSP plugin is available). Drop me a line if you think it makes
sense
to commit it anyway.
MSP plug-in is very VERY far away. My interest on the MSP-plugin might increase if H.264 HD would work over streamdev to PCH. Without unable to see HD - I can use vanilla VDR to view TV with no additional work.. :)
But with this patch the PCH and VDR universes would come closer. But not fully integrated. Without this patch if you are testing PCH/streamdev - you need to do static web pages to form URLs and TAGs needed by PCH. This patch allows to easily test with all channels found on VDR channels.conf.
MSP plugin would need be like vdradmin to be fully usable. Changing vdradmin is a big task. XXV MSP-plugin would be other option (but I don't like it - too complicated to setup).
Ideally MSP plugin should implement all vdradmin-am features - epg browsing - epg searches - setting timers - streaming live channels - streaming files (currently possible only via SMB-mount)
With PCH & MSP you could have feature rich setup as a VDR front-end. Similar to vomp and mediamvp - but upto full HD 1080p support without any micro judder. And simultaneously have nice setup to view other HQ media on disk & network.
So I guess if you see it possible to add this into tree - please do it. But if you see adding filename suffix a bad decision then don't. For my own experiments I can do this patching manually. And the patch is already out there for interested people to find.
Now the problem is that h.264 streaming is not working. It should happen via TS-container? And for this probably streamdev should be modified. I cannot tell why it is not working as PCH does not give any clue on it. Just returns to menu.
Best regards, Jori
New patch is here (against 0.3.4): vdr server # diff menuHTTP.c menuHTTP.orig.c 201c201 < (std::string) "[<a href="/TS/" + self + "" TVID="RED">TS</a>] "); ---
(std::string) "[<a href=\"/TS/" + self + "\">TS</a>]
"); 203c203 < (std::string) "[<a href="/PS/" + self + "" TVID="GREEN">PS</a>] "); ---
(std::string) "[<a href=\"/PS/" + self + "\">PS</a>]
"); 205c205 < (std::string) "[<a href="/PES/" + self + "" TVID="YELLOW">PES</a>] "); ---
(std::string) "[<a href=\"/PES/" + self +
"">PES</a>] "); 207c207 < (std::string) "[<a href="/ES/" + self + "" TVID="BLUE">ES</a>] "); ---
(std::string) "[<a href=\"/ES/" + self + "\">ES</a>]
"); 339,341c339,341 < std::string suffix; < std::string autoaudio = ""; < int count = 0; ---
line += (std::string) "<li value=\"" + (const char*)
itoa(current->Number()) + "">";
line += (std::string) "<a href=\"" + (std::string)
current->GetChannelID().ToString() + "">" +
current->Name() + "</a>";
342a343
int count = 0;
345,349d345 < < if (count == 1) { < autoaudio = "+1"; < } < 352,369d347 < < switch (streamType) { < case stTS: suffix = (std::string) ".ts"; break; < case stPS: suffix = (std::string) ".ps"; break; < case stPES: suffix = (std::string) ".vdr"; break; < case stES: suffix = (std::string) ".mpeg"; break; < default: < case stExtern: suffix = (std::string) ""; break; < } < < line += (std::string) "<li value="" + (const char*) itoa(current->Number()) + "">"; < line += (std::string) "<A href="" + (std::string) current->GetChannelID().ToString() + autoaudio + suffix + "" vod prebuf=5000000"; < < if (current->Number() < 1000) { < line += " TVID="" + (std::string) (const char*) itoa(current->Number()) + """; < } < line += (std::string) ">" + current->Name() + "</A>"; < 376c354 < "+" + (const char*)itoa(index) + suffix + "" class="apid" vod>" + current->Alang(i) + "</a>"; ---
"+" + (const char*)itoa(index) + "\"
class="apid">" + current->Alang(i) + "</a>"; 380c358 < "+" + (const char*)itoa(index) + suffix + "" class="dpid" vod>" + current->Dlang(i) + "</a>"; ---
"+" + (const char*)itoa(index) + "\"
class="dpid">" + current->Dlang(i) + "</a>";
PCH itself supports multiple audio (and subtitle) tracks at least on other formats - but I believe that with VDR it might not be working. I need to test this more when I get back to my PCH.
I ran some tests. PCH can replay audio on multi stream. But it cannot switch the stream. I am using PES format to stream a SD channel. So based on this I could remove the +1 autoparameter from URL.
Now the problem is that h.264 streaming is not working. It should happen via TS-container? And for this probably streamdev should be modified. I cannot tell why it is not working as PCH does not give any clue on it. Just returns to menu.
I made some tests with HD channel:
TS-stream: PCH shows MPEG2TS, H.264 and AC3. H.264 dimension was unknown (resolution) - no sound - clock is not running (showing 0:00:00) - so in theory stream recognition works - but H.264 parsing does not (unknown rez) - I don't know the TS standard - how clock is transmitted. Or is it because TS tables? PES-stream: unknown stream, MPEG2 (false) and MPEG2 audio. Dimension unknown - but I hear sound - clock is running (counting seconds)
This is with previous PCH firmware. I need to upgrade firmware to latest and check if there is any changes.
//Jori
On Tue, 4 Nov 2008 15:31:21 +0100, jori.hamalainen wrote
PCH itself supports multiple audio (and subtitle) tracks at least on other formats - but I believe that with VDR it might not be working. I need to test this more when I get back to my PCH.
http://www.hdd-player.de/syabas/showthread.php?tid=1777&page=1
I don't know if this URL recommendation is because of the initial tests made by some guys where they received video but not audio. I think this +1 as a default might become a problem with channels with multiple sound tracks. Maybe there could be additional feature that do not automatically add +1 if count.apid > 1?
As of PES, without a "+audio_pid_index" all audio and dolby pids will be streamed. So on a channel with only one audio pid, a "+1" won't make any difference. For channels with multiple audio/dolby pids, the streamdev html page already contains specific links for each. Look for the <a>-tags with class apid and dpid respectively. Rather add the vod/prebuf/tvid attributes there.
With ES it's obvious that you get either video or audio, never both at the same time. By default (without +index) you get the video pid. If there is none (radio channel) you get the first audio pid.
According to an open bug report, PS actually sends PES.
Finally TS normally doesn't consider the actual audio pid. It streams most relevant pids (not only audio and video) according to the PMT. This format should be the best choice. It may not have worked by the time the guy at the NMT forum tried the first time, as streamdev didn't have a PAT repacker by that time. It is part of streamdev 0.3.4. Have you tried TS?
- Added suffix for URL (TS w/ "C-123-123-123.ts or S-12-123-123.ts",
".ps", ".vdr" for PES and ".mpeg" for ES, extern no suffix)
I wonder why these are needed?
I think PCH uses filename based analyzing for stream type recognition. It was at the web forum above that URL like "/PES/*.vdr" should work.
I doubt that *.vdr is known as an official filename extension for PES files. Maybe any (possibly otherwise unknown) extension would do? Could you verify that?
So I guess if you see it possible to add this into tree - please do it. But if you see adding filename suffix a bad decision then don't. For my own experiments I can do this patching manually. And the patch is already out there for interested people to find.
Filename suffixes have already been suggested a while ago. I'd be fine with them if they are necessary.
Now the problem is that h.264 streaming is not working. It should happen via TS-container? And for this probably streamdev should be modified. I cannot tell why it is not working as PCH does not give any clue on it. Just returns to menu.
Haven't checked if the PES remuxer actually supports h.264. TS would be a better choice anyway.
Good luck, Frank
Frank Schmirler schrieb:
On Tue, 4 Nov 2008 15:31:21 +0100, jori.hamalainen wrote
PCH itself supports multiple audio (and subtitle) tracks at least on other formats - but I believe that with VDR it might not be working. I need to test this more when I get back to my PCH.
http://www.hdd-player.de/syabas/showthread.php?tid=1777&page=1
I don't know if this URL recommendation is because of the initial tests made by some guys where they received video but not audio. I think this +1 as a default might become a problem with channels with multiple sound tracks. Maybe there could be additional feature that do not automatically add +1 if count.apid > 1?
As of PES, without a "+audio_pid_index" all audio and dolby pids will be streamed. So on a channel with only one audio pid, a "+1" won't make any difference. For channels with multiple audio/dolby pids, the streamdev html page already contains specific links for each. Look for the <a>-tags with class apid and dpid respectively. Rather add the vod/prebuf/tvid attributes there.
With ES it's obvious that you get either video or audio, never both at the same time. By default (without +index) you get the video pid. If there is none (radio channel) you get the first audio pid.
According to an open bug report, PS actually sends PES.
Finally TS normally doesn't consider the actual audio pid. It streams most relevant pids (not only audio and video) according to the PMT. This format should be the best choice. It may not have worked by the time the guy at the NMT forum tried the first time, as streamdev didn't have a PAT repacker by that time. It is part of streamdev 0.3.4. Have you tried TS?
The TS from the streamdev is not recognized by the PCH (neither SD nor HD). I tried to remux SD through vlc and this works quite well. I assume that the PCH only supports a certain "flavour" of TS packets because if you remux HD material with a TS-Remuxer for the PCH (see http://www.hdd-player.de/syabas/showthread.php?tid=2285 or http://www.hdd-player.de/syabas/showthread.php?tid=3353 ) it works. Maybe it would be a solution to patch the streamdev plugin in a way that it generates a TS valid for the PCH.
- Added suffix for URL (TS w/ "C-123-123-123.ts or S-12-123-123.ts",
".ps", ".vdr" for PES and ".mpeg" for ES, extern no suffix)
I wonder why these are needed?
I think PCH uses filename based analyzing for stream type recognition. It was at the web forum above that URL like "/PES/*.vdr" should work.
I doubt that *.vdr is known as an official filename extension for PES files. Maybe any (possibly otherwise unknown) extension would do? Could you verify that?
PCH supports VDR recordings since firmware 080221. The VDR PES format is not really "detected" but the *.vdr extension is used to recognize it.
So I guess if you see it possible to add this into tree - please do it. But if you see adding filename suffix a bad decision then don't. For my own experiments I can do this patching manually. And the patch is already out there for interested people to find.
Filename suffixes have already been suggested a while ago. I'd be fine with them if they are necessary.
Now the problem is that h.264 streaming is not working. It should happen via TS-container? And for this probably streamdev should be modified. I cannot tell why it is not working as PCH does not give any clue on it. Just returns to menu.
It is a problem of the TS itself, if you remux it with TS-Doctor or TS4Np it works quite well (see above).
Helge.
Haven't checked if the PES remuxer actually supports h.264. TS would be a better choice anyway.
Good luck, Frank
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
The TS from the streamdev is not recognized by the PCH (neither SD nor
HD).
I tried to remux SD through vlc and this works quite well. I assume that
the
PCH only supports a certain "flavour" of TS packets because if you remux
HD
material with a TS-Remuxer for the PCH (see http://www.hdd-player.de/syabas/showthread.php?tid=2285 or http://www.hdd-player.de/syabas/showthread.php?tid=3353 ) it works. Maybe it would be a solution to patch the streamdev plugin in a way that
it
generates a TS valid for the PCH.
I ran some experiments on streamdev and mplayer on vdr machine. And upgraded PCH firmware to latest - no change.
Here is two outputs of command ran after each other. I am using SSH and not forwarding X (hence the error message):
Look VIDEO line of 1st entry: H264 and 2nd entry: MPEG2. Also difference on PROGRAM N. parameter.
--------------- MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 3, Stepping: 4) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Warning unknown option threads at line 10 mplayer: could not open config files /root/.lircrc and /etc/lircrc mplayer: No such file or directory Failed to read LIRC config file ~/.lircrc.
Playing http://localhost:3000/C-0-13-3805.ts. Resolving localhost for AF_INET6... Connecting to server localhost[::1]: 3000... connect error: Connection refused Resolving localhost for AF_INET... Connecting to server localhost[127.0.0.1]: 3000... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) TS file format detected. VIDEO H264(pid=514) AUDIO MPA(pid=648) NO SUBS (yet)! PROGRAM N. 3805 Stream not seekable! FPS seems to be: 25.000000 X connection to localhost:10.0 broken (explicit kill or server shutdown). --------------- MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 3, Stepping: 4) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Warning unknown option threads at line 10 mplayer: could not open config files /root/.lircrc and /etc/lircrc mplayer: No such file or directory Failed to read LIRC config file ~/.lircrc.
Playing http://localhost:3000/C-0-13-3805.ts. Resolving localhost for AF_INET6... Connecting to server localhost[::1]: 3000... connect error: Connection refused Resolving localhost for AF_INET... Connecting to server localhost[127.0.0.1]: 3000... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) Stream not seekable! TS file format detected. VIDEO MPEG2(pid=514) AUDIO MPA(pid=648) NO SUBS (yet)! PROGRAM N. 0 Stream not seekable!
Too many audio packets in the buffer: (1429 in 8391088 bytes). Maybe you are playing a non-interleaved stream/file or the codec failed? For AVI files, try to force non-interleaved mode with the -ni option. MPEG: FATAL: EOF while searching for sequence header. Video: Cannot read properties. ========================================================================== Forced audio codec: hwdts Forced audio codec: hwac3 Cannot find codec for audio format 0x50. Read DOCS/HTML/en/codecs.html! Audio: no sound Video: no video ---------------
So I believe there might be a problem even inside streamdev for TS-streams. And like said on last night's email - the clock does not run on PCH for TS streams. Can there be invalid PCR-clock or problem with PTS?
I also have similar experience what Helge is writing. If I WGET a TS-stream to a file, PCH does not play it. But after cutting file with TS Packet Editor, PCH plays the file correctly. So actual video/audio streams are OK, but something on the stream is not working well and TSPE fixes that.
I doubt that *.vdr is known as an official filename extension for PES
files.
Maybe any (possibly otherwise unknown) extension would do? Could you
verify that?
PCH supports VDR recordings since firmware 080221. The VDR PES format is
not really
"detected" but the *.vdr extension is used to recognize it.
Yes, I believe this is a work-around made by Syabas to play VDR-files over SMB/CIFS-mount, and how to recognize them.
Filename suffixes have already been suggested a while ago. I'd be fine with them if they are necessary.
Ok, the filename suffices are not standard or? Like .vdr is not standard with PES-format. So please use it as a patch, but perhaps suffixes should be made to more standard ones.
//Jori
On Wed, 05 Nov 2008 13:02:22 +0100, Helge Lenz wrote
The TS from the streamdev is not recognized by the PCH (neither SD nor HD). I tried to remux SD through vlc and this works quite well. I assume that the PCH only supports a certain "flavour" of TS packets because if you remux HD material with a TS-Remuxer for the PCH (see http://www.hdd-player.de/syabas/showthread.php?tid=2285 or http://www.hdd-player.de/syabas/showthread.php?tid=3353 ) it works. Maybe it would be a solution to patch the streamdev plugin in a way that it generates a TS valid for the PCH.
TS-Doctor seems to log what it had to fix. Did it give you a hint?
Frank
TS-Doctor seems to log what it had to fix. Did it give you a hint?
Here is recording from Voom HD via VDR-Streamdev and WGET to disk. I hope this log gives any hints. PCH does not play this raw recording. PCH replay clock does not run/count.
What I can tell this just deletes two subtitle PIDS (swe and fin) and then complains about video_full_range_flag (I believe color values 0-255 used instead of 16-240 or similar).
On TS-Doctor I did not press start yet - I don't want to loose original file and I didn't want to create another copy of it at this late time.
- Jori
Opening file Z:\Nomads\One_world.ts
Scanning for TRP fill packets Scanning for PIDs Found 7 different PIDs $0202: 93% $0289: 2% $0012: 3% $0288: 2% $18CF: 0% $0260: 0% $025D: 0%
Scanning for PATs
----------- PAT 0 ----------- Table ID : 0 Section Syntax Indicator : 1 Reserved Bit 0 : 0 Reserved Bit 1 : 1 Reserved Bit 2 : 1 Section Length : 13 Transport Stream ID : 13 Reserved Bit 3 : 0 Reserved Bit 4 : 0 Version Number : 0 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0
Program Number : $0EDD Map PID : $18CF
CRC32 : $9692CCD9 = $9692CCD9 -----------------------------
Found 1 different PATs Found 1 different PMT PIDs Scanning for PMTs
----------- PMT 0 ----------- Packet : 2347 PID : $18CF Table ID : 2 Section Syntax Indicator : 1 Section Length : 79 Program Number : 3805 Version Number : 6 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0 PCR PID : $0202
Program Info Length : 6 Program Info : $09, $04, $0B, $00, $FC, $89
Stream Type : 27 Description : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video Elementary PID : $0202 ES Info Length : 0
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) Elementary PID : $0289 ES Info Length : 9 ES Info : $6A, $01, $00, $0A, $04, $65, $6E, $67, $00 ES Info Text : j____eng_
Stream Type : 3 Description : ISO/IEC 11172 Audio Elementary PID : $0288 ES Info Length : 6 ES Info : $0A, $04, $66, $72, $65, $00 ES Info Text : __fre_
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data Elementary PID : $025D ES Info Length : 10 ES Info : $59, $08, $73, $77, $65, $12, $00, $02, $00, $02 ES Info Text : Y_swe_____
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data Elementary PID : $0260 ES Info Length : 10 ES Info : $59, $08, $66, $69, $6E, $12, $00, $02, $00, $02 ES Info Text : Y_fin_____
CRC32 : $4C3E165C = $4C3E165C -----------------------------
Found 1 different PMTs
Selecting PMT with PID $18CF at position 2347 CRC OK! Deleting PMT entry: PID $025D type 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data Deleting PMT entry: PID $0260 type 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data 2 entries deleted from stream list (not found in stream)!
0. stream_type : 27 = AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video elementary_pid : $0202 ES_info_length : 0
1. stream_type : 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) elementary_pid : $0289 ES_info_length : 9
2. stream_type : 3 = ISO/IEC 11172 Audio elementary_pid : $0288 ES_info_length : 6
PCR PID is $0202
Created PAT:
----------- PAT 0 ----------- Table ID : 0 Section Syntax Indicator : 1 Reserved Bit 0 : 0 Reserved Bit 1 : 1 Reserved Bit 2 : 1 Section Length : 13 Transport Stream ID : 6 Reserved Bit 3 : 1 Reserved Bit 4 : 1 Version Number : 11 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0
Program Number : $0001 Map PID : $18CF
CRC32 : $02D8FB18 = $02D8FB18 -----------------------------
Created PMT:
----------- PMT 0 ----------- Packet : 2347 PID : $18CF Table ID : 2 Section Syntax Indicator : 1 Section Length : 49 Program Number : 1 Version Number : 6 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0 PCR PID : $0202
Program Info Length : 6 Program Info : $09, $04, $0B, $00, $FC, $89
Stream Type : 27 Description : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video Elementary PID : $0202 ES Info Length : 0
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) Elementary PID : $0289 ES Info Length : 9 ES Info : $6A, $01, $00, $0A, $04, $65, $6E, $67, $00 ES Info Text : j____eng_
Stream Type : 3 Description : ISO/IEC 11172 Audio Elementary PID : $0288 ES Info Length : 6 ES Info : $0A, $04, $66, $72, $65, $00 ES Info Text : __fre_
CRC32 : $29870363 = $29870363 -----------------------------
First PTS is 6082305662 18:46:21.174 Last PTS is 6470731262 19:58:17.014 First DTS is 0 00:00:00.000 First PCR is 1824663518700 18:46:20.130 First PCR´ is 6082211729 18:46:20.130 Duration of video stream is 388425600 01:11:55.840
The following PIDs will be imported into new stream: $0202, $0289, $0288
Scanning for video details Video format: H264 1920x1088, Interlaced / 25 fps / High@4.0
-------- H264 Video --------- profile_idc : 100 constrained_set0_flag : 0 constrained_set1_flag : 1 constrained_set2_flag : 0 constrained_set3_flag : 0 reserved_zero_4bits : 0 level_idc : 40 seq_parameter_set_id : 0 chroma_format_idc : 1 bit_depth_luma_minus8 : 0 bit_depth_chroma_minus8 : 0 qpprime_y_zero_transform_bypass_flag : 0 seq_scaling_matrix_present_flag : 0 log2_max_frame_num_minus4 : 8 pic_order_cnt_type : 0 log2_max_pic_order_cnt_lsb_minus4 : 5 num_ref_frames : 2 gaps_in_frame_num_value_allowed_flag : 0 pic_width_in_mbs_minus1 : 119 pic_height_in_map_units_minus1 : 33 frame_mbs_only_flag : 0 mb_adaptive_frame_field_flag : 0 direct_8x8_inference_flag : 1 frame_cropping_flag : 0 vui_parameters_present_flag : 1 aspect_ratio_info_present_flag : 1 aspect_ratio_idv : 1 overscan_info_present_flag : 1 overscan_appropriate_flag : 1 video_signal_type_present_flag : 1 video_format : 5 video_full_range_flag : 1 colour_description_present_flag : 1 colour_primaries : 1 transfer_characteristics : 1 matrix_coefficients : 1 chroma_loc_info_present_flag : 1 chroma_sample_loc_type_top_field : 0 chroma_sample_loc_type_bottom_field : 0 timing_info_present_flag : 1 num_units_in_tick : 1 time_scale : 50 fixed_frame_rate_flag : 1 -----------------------------
WARNING: video_full_range_flag is set! Reset video_full_range_flag !
Scanning for audio details Audio stream 1: AC3 5.1 48000Hz (ENG) Audio stream 2:
TS-Doctor seems to log what it had to fix. Did it give you a hint?
Actually I started fixing it what was analyzed on my previous mail, log starts with: - Transfering this back to PCH is out to todays tuning time so I need to test later if this fixed file works..
Starting at packet 1 00:00:00.000 ERROR: For video PID 0202 000000E2: Wrong PSCPrefix ERROR: For video PID 0202 0000034A: Wrong PSCPrefix ERROR: For audio PID 0289 00000374: Wrong PSCPrefix ERROR: For video PID 0202 00000464: Wrong PSCPrefix ERROR: For video PID 0202 00000689: Wrong PSCPrefix ERROR: For audio PID 0288 000006FA: Wrong PSCPrefix ERROR: For video PID 0202 00000797: Wrong PSCPrefix ERROR: For audio PID 0289 00000936: Wrong PSCPrefix ERROR: For video PID 0202 00000AAD: Wrong PSCPrefix ERROR: For video PID 0202 00000BE9: Wrong PSCPrefix ERROR: For video PID 0202 00000E5D: Wrong PSCPrefix ERROR: For audio PID 0289 00000EED: Wrong PSCPrefix ERROR: For audio PID 0288 00000F3D: Wrong PSCPrefix ERROR: For video PID 0202 00000F6B: Wrong PSCPrefix ERROR: For video PID 0202 000011E6: Wrong PSCPrefix ERROR: For video PID 0202 000012CA: Wrong PSCPrefix ERROR: For audio PID 0289 00001497: Wrong PSCPrefix ERROR: For video PID 0202 0000150F: Wrong PSCPrefix ERROR: For video PID 0202 00001606: Wrong PSCPrefix ERROR: For audio PID 0288 0000176A: Wrong PSCPrefix ERROR: For audio PID 0289 00001A55: Wrong PSCPrefix ERROR: For video PID 0202 00001B3A: Wrong PSCPrefix ERROR: For video PID 0202 00001C1D: Wrong PSCPrefix ERROR: For video PID 0202 00001F00: Wrong PSCPrefix ERROR: For audio PID 0288 00001F91: Wrong PSCPrefix ERROR: For audio PID 0289 00002002: Wrong PSCPrefix Changed Sequence Parameter Set (0) video_full_range_flag in packet 8509 byte 66 Changed Sequence Parameter Set (1) video_full_range_flag in packet 13944 byte 66 Changed Sequence Parameter Set (2) video_full_range_flag in packet 19456 byte 66 Changed Sequence Parameter Set (3) video_full_range_flag in packet 25012 byte 66 Changed Sequence Parameter Set (4) video_full_range_flag in packet 30762 byte 66 Changed Sequence Parameter Set (5) video_full_range_flag in packet 35777 byte 66 Changed Sequence Parameter Set (6) video_full_range_flag in packet 40240 byte 66 Changed Sequence Parameter Set (7) video_full_range_flag in packet 46654 byte 66 Changed Sequence Parameter Set (8) video_full_range_flag in packet 51820 byte 66 Changed Sequence Parameter Set (9) video_full_range_flag in packet 57143 byte 66 Changed Sequence Parameter Set (10) video_full_range_flag in packet 62383 byte 66 Changed Sequence Parameter Set (11) video_full_range_flag in packet 68247 byte 66 Changed Sequence Parameter Set (12) video_full_range_flag in packet 73638 byte 66 Changed Sequence Parameter Set (13) video_full_range_flag in packet 78518 byte 66 Changed Sequence Parameter Set (14) video_full_range_flag in packet 83863 byte 66 Changed Sequence Parameter Set (15) video_full_range_flag in packet 88345 byte 66 Changed Sequence Parameter Set (16) video_full_range_flag in packet 93983 byte 66 Changed Sequence Parameter Set (17) video_full_range_flag in packet 99676 byte 66 Changed Sequence Parameter Set (18) video_full_range_flag in packet 105316 byte 66 Changed Sequence Parameter Set (19) video_full_range_flag in packet 110869 byte 66 Changed Sequence Parameter Set (20) video_full_range_flag in packet 116289 byte 66 Changed Sequence Parameter Set (21) video_full_range_flag in packet 122216 byte 66 Changed Sequence Parameter Set (22) video_full_range_flag in packet 127798 byte 66 Changed Sequence Parameter Set (23) video_full_range_flag in packet 134387 byte 66 Changed Sequence Parameter Set (24) video_full_range_flag in packet 139956 byte 66 Changed Sequence Parameter Set (25) video_full_range_flag in packet 144809 byte 66 WARNING: For audio PID 0289 AC3 properties changed at 00:00:11.995 (5.1 48kHz >>> 2.0 48kHz) WARNING: For audio PID 0289 AC3 properties changed at 00:00:12.251 (2.0 48kHz >>> 5.1 48kHz) Changed Sequence Parameter Set (26) video_full_range_flag in packet 152317 byte 66 Changed Sequence Parameter Set (27) video_full_range_flag in packet 158986 byte 66 Changed Sequence Parameter Set (28) video_full_range_flag in packet 164565 byte 66 ......... and this video_full_range_flag repeats for all packets so I omit those. .......... Changed Sequence Parameter Set (8765) video_full_range_flag in packet 49209979 byte 66 Changed Sequence Parameter Set (8766) video_full_range_flag in packet 49216141 byte 66 Changed Sequence Parameter Set (8767) video_full_range_flag in packet 49219851 byte 66 Changed Sequence Parameter Set (8768) video_full_range_flag in packet 49225679 byte 66 Changed Sequence Parameter Set (8769) video_full_range_flag in packet 49232456 byte 66 Changed Sequence Parameter Set (8770) video_full_range_flag in packet 49238660 byte 66
--------- NAL Unit Type Statistic --------- Slices : 647370 Data Partition A : 0 Data Partition B : 0 Data Partition A : 0 IDR Picture : 0 SEI : 125437 Sequence Parameter Set : 8771 Picture Parameter Set : 8771 AUD : 107895 End of Sequence : 0 End of Stream : 0 Filler : 3441 Slices : 0 Seq. Param. Set Ext. : 0
Cutted packets at the beginning: 0 Cutted packets at the end: 0 Discarded packets (not needed): 1571903 Changed Sequence Parameter Sets: 8771 of 8771
ERRORS : 10 WARNINGS : 46
Speed: 6,7 MBytes/sec Duration: 00:22:07
TS-Doctor seems to log what it had to fix. Did it give you a hint?
And here is the fixed file opened:
Opening file E:\One_world_fixed.ts
Scanning for TRP fill packets Scanning for PIDs Found 5 different PIDs $18CF: 0% $0202: 96% $0289: 2% $0288: 2% $0000: 0%
Scanning for PATs
----------- PAT 0 ----------- Table ID : 0 Section Syntax Indicator : 1 Reserved Bit 0 : 0 Reserved Bit 1 : 1 Reserved Bit 2 : 1 Section Length : 13 Transport Stream ID : 6 Reserved Bit 3 : 1 Reserved Bit 4 : 1 Version Number : 11 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0
Program Number : $0001 Map PID : $18CF
CRC32 : $02D8FB18 = $02D8FB18 -----------------------------
Found 1 different PATs Found 1 different PMT PIDs Scanning for PMTs
----------- PMT 0 ----------- Packet : 1 PID : $18CF Table ID : 2 Section Syntax Indicator : 1 Section Length : 49 Program Number : 1 Version Number : 6 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0 PCR PID : $0202
Program Info Length : 6 Program Info : $09, $04, $0B, $00, $FC, $89
Stream Type : 27 Description : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video Elementary PID : $0202 ES Info Length : 0
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) Elementary PID : $0289 ES Info Length : 9 ES Info : $6A, $01, $00, $0A, $04, $65, $6E, $67, $00 ES Info Text : j____eng_
Stream Type : 3 Description : ISO/IEC 11172 Audio Elementary PID : $0288 ES Info Length : 6 ES Info : $0A, $04, $66, $72, $65, $00 ES Info Text : __fre_
CRC32 : $29870363 = $29870363 -----------------------------
Found 1 different PMTs
Selecting PMT with PID $18CF at position 1 CRC OK!
0. stream_type : 27 = AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video elementary_pid : $0202 ES_info_length : 0
1. stream_type : 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) elementary_pid : $0289 ES_info_length : 9
2. stream_type : 3 = ISO/IEC 11172 Audio elementary_pid : $0288 ES_info_length : 6
PCR PID is $0202
Created PAT:
----------- PAT 0 ----------- Table ID : 0 Section Syntax Indicator : 1 Reserved Bit 0 : 0 Reserved Bit 1 : 1 Reserved Bit 2 : 1 Section Length : 13 Transport Stream ID : 6 Reserved Bit 3 : 1 Reserved Bit 4 : 1 Version Number : 11 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0
Program Number : $0001 Map PID : $18CF
CRC32 : $02D8FB18 = $02D8FB18 -----------------------------
Created PMT:
----------- PMT 0 ----------- Packet : 1 PID : $18CF Table ID : 2 Section Syntax Indicator : 1 Section Length : 49 Program Number : 1 Version Number : 6 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0 PCR PID : $0202
Program Info Length : 6 Program Info : $09, $04, $0B, $00, $FC, $89
Stream Type : 27 Description : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video Elementary PID : $0202 ES Info Length : 0
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) Elementary PID : $0289 ES Info Length : 9 ES Info : $6A, $01, $00, $0A, $04, $65, $6E, $67, $00 ES Info Text : j____eng_
Stream Type : 3 Description : ISO/IEC 11172 Audio Elementary PID : $0288 ES Info Length : 6 ES Info : $0A, $04, $66, $72, $65, $00 ES Info Text : __fre_
CRC32 : $29870363 = $29870363 -----------------------------
First PTS is 6082305662 18:46:21.174 Last PTS is 6470731262 19:58:17.014 First DTS is 0 00:00:00.000 First PCR is 1824663518700 18:46:20.130 First PCR´ is 6082211729 18:46:20.130 Duration of video stream is 388425600 01:11:55.840
The following PIDs will be imported into new stream: $0202, $0289, $0288
Scanning for video details Video format: H264 1920x1088, Interlaced / 25 fps / High@4.0
-------- H264 Video --------- profile_idc : 100 constrained_set0_flag : 0 constrained_set1_flag : 1 constrained_set2_flag : 0 constrained_set3_flag : 0 reserved_zero_4bits : 0 level_idc : 40 seq_parameter_set_id : 0 chroma_format_idc : 1 bit_depth_luma_minus8 : 0 bit_depth_chroma_minus8 : 0 qpprime_y_zero_transform_bypass_flag : 0 seq_scaling_matrix_present_flag : 0 log2_max_frame_num_minus4 : 8 pic_order_cnt_type : 0 log2_max_pic_order_cnt_lsb_minus4 : 5 num_ref_frames : 2 gaps_in_frame_num_value_allowed_flag : 0 pic_width_in_mbs_minus1 : 119 pic_height_in_map_units_minus1 : 33 frame_mbs_only_flag : 0 mb_adaptive_frame_field_flag : 0 direct_8x8_inference_flag : 1 frame_cropping_flag : 0 vui_parameters_present_flag : 1 aspect_ratio_info_present_flag : 1 aspect_ratio_idv : 1 overscan_info_present_flag : 1 overscan_appropriate_flag : 1 video_signal_type_present_flag : 1 video_format : 5 video_full_range_flag : 0 colour_description_present_flag : 1 colour_primaries : 1 transfer_characteristics : 1 matrix_coefficients : 1 chroma_loc_info_present_flag : 1 chroma_sample_loc_type_top_field : 0 chroma_sample_loc_type_bottom_field : 0 timing_info_present_flag : 1 num_units_in_tick : 1 time_scale : 50 fixed_frame_rate_flag : 1 -----------------------------
Scanning for audio details Audio stream 1: AC3 5.1 48000Hz (ENG) Audio stream 2:
On Sat, 8 Nov 2008 00:12:47 +0100, jori.hamalainen wrote
TS-Doctor seems to log what it had to fix. Did it give you a hint?
Actually I started fixing it what was analyzed on my previous mail, log starts with: - Transfering this back to PCH is out to todays tuning time so I need to test later if this fixed file works..
Starting at packet 1 00:00:00.000 ERROR: For video PID 0202 000000E2: Wrong PSCPrefix
(...)
ERROR: For audio PID 0289 00002002: Wrong PSCPrefix
It seems that those messages refer to the very beginning of the stream only. I assume PSCPrefix is the PES PACKET_START_CODE_PREFIX. Maybe the PSCPrefix message is logged for incomplete PES packets at the beginning of the stream.
----------- PMT 0 ----------- Packet : 2347
Apparently TS packet 2347 is the first with the PMT. So it might also be possible that TS-doctor complains about PES packets of yet "unknown" PIDs, as no PMT has been transmitted yet.
----------- PMT 0 ----------- Packet : 1
The fixed file starts with a PMT packet. Could PCH be choking on the fact that the TS stream starts right in the middle of nowhere?
Otherwise I don't see any major difference from the output of TS-doctor. Sorry, I'm a little bit lost here.
What I can tell this just deletes two subtitle PIDS (swe and fin)
Maybe streamdevs cStreamdevPatFilter::GetPid() filtered too much. Could you recompile streamdev with debug output enabled:
cd STREAMDEV_SRC_DIR; make clean; DEBUG=1 make all
Plese post the debug output (sent to stderr) as well as the messages from the log.
Frank
TS-Doctor seems to log what it had to fix. Did it give you a hint?
Actually I started fixing it what was analyzed on my previous mail, log starts with: - Transfering this back to PCH is out to todays tuning time so I need to test later if this fixed file works..
Starting at packet 1 00:00:00.000 ERROR: For video PID 0202 000000E2: Wrong PSCPrefix (...) ERROR: For audio PID 0289 00002002: Wrong PSCPrefix
It seems that those messages refer to the very beginning of the stream only. I assume PSCPrefix is the PES PACKET_START_CODE_PREFIX. Maybe the PSCPrefix message is logged for incomplete PES packets at the beginning of the stream.
Here is what TS-Doctor developer answered on NMT forums
------ the PSCPrefix error is not a big problem because this error is only at the beginning of the stream. This error shows that the header of some PES packets are not starting with the right value, so that every of this not compliant packets are ignored (discarded).
The video_full_range_flags lines are only for debugging if there are problems with the flag. You can ignore them because they are not marked as errors or warnings! ------
----------- PMT 0 ----------- Packet : 1
The fixed file starts with a PMT packet. Could PCH be choking on the fact that the TS stream starts right in the middle of nowhere?
I think this is a good quess. I don't know how much PCH reads the stream for PMT table (first 10kB, first 100kB,...?), so if it does not have it in time it quits the stream.
So could streamdev be easily modified to provide PMT at stream start? And could PMT be rewritten later if new streams are found. With this I mean on first PMT you have audio/video-stream. And subtitle appears 60 seconds from the start so give new PMT with private subtitles streams as well?
--
How about the other symptom I was giving output. My VDR machine and its mplayer. Sometimes it recognizes stream as MPEG-2, and sometimes H.264. What do you believe, problem with TS stream or problem with Mplayer stream recognition.
What is the best linux tool to diagnoze problems on TS? TS-Doctor is windows software and does not run under terminal emulator.
What I can tell this just deletes two subtitle PIDS (swe and fin)
Maybe streamdevs cStreamdevPatFilter::GetPid() filtered too much.
I don't believe this is problem, as not all shows have subtitles. But they could have empty packets submitted?
Could you recompile streamdev with debug output enabled:
cd STREAMDEV_SRC_DIR; make clean; DEBUG=1 make all
Plese post the debug output (sent to stderr) as well as the messages from
the log.
I need to check this one when I have access..
- Jori
What is the best linux tool to diagnoze problems on TS? TS-Doctor is windows software and does not run under terminal emulator.
did you try to use the Wine ?
No, according to developer it works ok with Wine.
But my criteria is that it does not run under terminal emulator == command line. Like via SSH from my work place to home VDR.
I found dvbsnoop - but it is per packet dumper - not higher level analyzer. Like answer my question what is wrong on my stream.
What is the best linux tool to diagnoze problems on TS? TS-Doctor is windows software and does not run under terminal emulator.
did you try to use the Wine ?
No, according to developer it works ok with Wine.
But my criteria is that it does not run under terminal emulator == command line. Like via SSH from my work place to home VDR.
I found dvbsnoop - but it is per packet dumper - not higher level analyzer. Like answer my question what is wrong on my stream.
you can try this
ffmpeg -i, or ffprobe -show_streams or MediaInfo http://sourceforge.net/project/showfiles.php?group_id=86862&package_id=9...
# ffprobe -h FFprobe version SVN-rUNKNOWN, Copyright (c) 2007-2008 Stefano Sabatini libavutil version: 49.6.0 libavcodec version: 51.54.0 libavformat version: 52.13.0 built on May 22 2008 10:25:52, gcc: 4.2.4 20080512 (prerelease) (Debian 4.2.3-6) usage: ffprobe [options] infiles Simple Audio and Video prober
Main options: -k keep going even in case of error, always returns 0 -pretty pretty print numerical values, more human readable -read_packets read packets info -read_frames read frames info -show_files show file info -show_frames show frames info, implies the option -read_frames and -read_packets -show_packets show packets info, implies the option -read_packets -show_streams show streams info -show_tags show tags info
you can try this
Thanks for the tip - now there is a bit more information about the streams in Linux environment. But they just indentify the streams - do not analyze them against the standards? Or inform about validity of PAT/PMT and where they are found on TS etc.
ffmpeg -i,
FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al. Input #0, mpegts, from '/mnt/backup/Nomads/One_world.ts': Duration: 01:11:56.0, start: 67581.009756, bitrate: 17160 kb/s Program 3805 Stream #0.0[0x202]: Video: h264, yuv420p, 1920x1088 [PAR 1:1 DAR 30:17], 25.00 tb(r) Stream #0.1[0x289](eng): Audio: liba52, 48000 Hz, 5:1, 384 kb/s Stream #0.2[0x288](fre): Audio: mp2, 48000 Hz, stereo, 256 kb/s Stream #0.3[0x25d](swe): Subtitle: dvbsub Stream #0.4[0x260](fin): Subtitle: dvbsub Must supply at least one output file
ffprobe -show_streams
FFprobe version SVN-r53, Copyright (c) 2007-2008 Stefano Sabatini Input #0, mpegts, from '/mnt/backup/Nomads/One_world.ts': Duration: 01:11:56.0, start: 67581.009756, bitrate: 17160 kb/s Program 3805 Stream #0.0[0x202]: Video: h264, yuv420p, 1920x1088 [PAR 1:1 DAR 30:17], 25.00 tb(r) Stream #0.1[0x289](eng): Audio: liba52, 48000 Hz, 5:1, 384 kb/s Stream #0.2[0x288](fre): Audio: mp2, 48000 Hz, stereo, 256 kb/s Stream #0.3[0x25d](swe): Subtitle: dvbsub Stream #0.4[0x260](fin): Subtitle: dvbsub No accelerated IMDCT transform found [STREAM] codec_name=h264 decoder_time_base=1/25 codec_type=video r_frame_rate=25.000000 r_frame_rate_num=25 r_frame_rate_den=1 width=1920 height=1088 gop_size=12 has_b_frames=0 sample_aspect_ratio=1/1 display_aspect_ratio=30/17 pix_fmt=yuv420p index=0 time_base=1/90000 start_time=67581.214022 duration=4315.800000 nb_frames=0 [/STREAM] [STREAM] codec_name=liba52 decoder_time_base=0/1 codec_type=audio sample_rate=48000.000000 channels=6 bits_per_sample=0 index=1 time_base=1/90000 language=eng start_time=67581.009756 duration=N/A nb_frames=0 [/STREAM] [STREAM] codec_name=mp3 decoder_time_base=0/1 codec_type=audio sample_rate=48000.000000 channels=2 bits_per_sample=0 index=2 time_base=1/90000 language=fre start_time=67581.038367 duration=4315.560000 nb_frames=0 [/STREAM] [STREAM] codec_name=dvbsub decoder_time_base=0/1 codec_type=subtitle index=3 time_base=1/90000 language=swe start_time=67581.009756 duration=4316.004267 nb_frames=0 [/STREAM] [STREAM] codec_name=dvbsub decoder_time_base=0/1 codec_type=subtitle index=4 time_base=1/90000 language=fin start_time=67581.009756 duration=4316.004267 nb_frames=0 [/STREAM]
MediaInfo
http://sourceforge.net/project/showfiles.php?group_id=86862&package_id=9...
mediainfo /mnt/backup/Nomads/One_world.ts General ID : D Complete name : /mnt/backup/Nomads/One_world.ts Format : MPEG-TS File size : 8.62 GiB Duration : 1h 11mn Overall bit rate : 17.2 Mbps
Video ID : 514 (0x202) Menu ID : 3805 (0xEDD) Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.0 Format settings, CABAC : Yes Format settings, ReFrames : 2 frames Duration : 1h 11mn Bit rate : 15.8 Mbps Width : 1 920 pixels Height : 1 088 pixels Display aspect ratio : 16/9 Frame rate : 25.000 fps Resolution : 24 bits Colorimetry : 4:2:0 Scan type : Progressive
Audio #1 ID : 648 (0x288) Menu ID : 3805 (0xEDD) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Bit rate mode : Constant Bit rate : 256 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Resolution : 16 bits Video delay : -176ms Language : French
Audio #2 ID : 649 (0x289) Menu ID : 3805 (0xEDD) Format : AC-3 Format/Info : Audio Coding 3 Bit rate mode : Constant Bit rate : 384 Kbps Channel(s) : 6 channels Channel positions : Front: L C R, Surround: L R, LFE Sampling rate : 48.0 KHz Video delay : -205ms Language : English
On Tue, 11 Nov 2008 13:02:48 +0100, jori.hamalainen wrote
----------- PMT 0 ----------- Packet : 1
The fixed file starts with a PMT packet. Could PCH be choking on the fact that the TS stream starts right in the middle of nowhere?
I think this is a good quess. I don't know how much PCH reads the stream for PMT table (first 10kB, first 100kB,...?), so if it does not have it in time it quits the stream.
So could streamdev be easily modified to provide PMT at stream start? And could PMT be rewritten later if new streams are found. With this I mean on first PMT you have audio/video-stream. And subtitle appears 60 seconds from the start so give new PMT with private subtitles streams as well?
I opened a bug report (http://www.vdr-developer.org/mantisbt/view.php?id=496) and posted a quick hack which should strip off all packets before the first PAT and probably some packets before the first PMT (hopefully not including the PMT). The PMT part needs to be elaborated. Sending a PMT with basic information first should be possible and sounds like a good idea. I'll take a look into this the next days.
How about the other symptom I was giving output. My VDR machine and its mplayer. Sometimes it recognizes stream as MPEG-2, and sometimes H.264. What do you believe, problem with TS stream or problem with Mplayer stream recognition.
Could have the same cause...
Frank
So could streamdev be easily modified to provide PMT at stream start?
I opened a bug report
(http://www.vdr-developer.org/mantisbt/view.php?id=496)
and posted a quick hack which should strip off all packets before the
first
PAT and probably some packets before the first PMT (hopefully not
including
the PMT). The PMT part needs to be elaborated. Sending a PMT with basic information first should be possible and sounds like a good idea. I'll
take
a look into this the next days.
Thanks - I patched my streamdev with that patch and I'll test it after I get access to my PCH..
I hope when PCH finds PAT has some patience to read stream for particular PMT.
- Jori
On Wed, 12 Nov 2008 15:23:40 +0100, jori.hamalainen wrote
So could streamdev be easily modified to provide PMT at stream start?
I opened a bug report
(http://www.vdr-developer.org/mantisbt/view.php?id=496)
and posted a quick hack which should strip off all packets before the
first
PAT and probably some packets before the first PMT (hopefully not
including
the PMT). The PMT part needs to be elaborated. Sending a PMT with basic information first should be possible and sounds like a good idea. I'll
take
a look into this the next days.
Thanks - I patched my streamdev with that patch and I'll test it after I get access to my PCH..
I hope when PCH finds PAT has some patience to read stream for particular PMT.
Revised the patch in the bugtracker. It guarantees that the first packet is PAT, second is PMT. Untested however.
Frank
Thanks - I patched my streamdev with that patch and I'll test it after I get access to my PCH..
I hope when PCH finds PAT has some patience to read stream for particular PMT.
This is after the first patch..
ffprobe and mediainfo recognizes the streams totally different. Ffprobe says MPEG1video and mediainfo AVC. Also note that mediainfo says No PAT/PMT..
# mplayer C-0-13-3805.ts MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 3, Stepping: 4) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Warning unknown option threads at line 10 mplayer: could not open config files /root/.lircrc and /etc/lircrc mplayer: No such file or directory Failed to read LIRC config file ~/.lircrc.
Playing C-0-13-3805.ts. TS file format detected. VIDEO MPEG2(pid=514) AUDIO MPA(pid=648) NO SUBS (yet)! PROGRAM N. 0 TS_PARSE: COULDN'T SYNC MPEG: FATAL: EOF while searching for sequence header. Video: Cannot read properties.
# ffprobe -show_streams C-0-13-3805.ts FFprobe version SVN-r53, Copyright (c) 2007-2008 Stefano Sabatini libavutil version: 49.6.0 libavcodec version: 51.53.0 libavformat version: 52.12.0 built on Nov 12 2008 15:57:32, gcc: 4.1.2 (Gentoo 4.1.2 p1.0.2) Input #0, mpegts, from 'C-0-13-3805.ts': Duration: 00:00:27.3, start: 60871.262611, bitrate: 17210 kb/s Stream #0.0[0x288]: Audio: mp2, 48000 Hz, stereo, 256 kb/s Stream #0.1[0x289]: Audio: liba52, 48000 Hz, 5:1, 384 kb/s Stream #0.2[0x202]: Video: mpeg1video, 90000.00 tb(r) Stream #0.3[0x25d]: Audio: liba52 No accelerated IMDCT transform found No accelerated IMDCT transform found [STREAM] codec_name=mp2 decoder_time_base=0/1 codec_type=audio sample_rate=48000.000000 channels=2 bits_per_sample=0 index=0 time_base=1/90000 start_time=60871.262611 duration=N/A nb_frames=0 [/STREAM] [STREAM] codec_name=liba52 decoder_time_base=0/1 codec_type=audio sample_rate=48000.000000 channels=6 bits_per_sample=0 index=1 time_base=1/90000 start_time=60871.369689 duration=27.264000 nb_frames=0 [/STREAM] [STREAM] codec_name=mpeg1video decoder_time_base=0/1 codec_type=video r_frame_rate=90000.000000 r_frame_rate_num=90000 r_frame_rate_den=1 width=0 height=0 gop_size=12 has_b_frames=0 sample_aspect_ratio=0/1 display_aspect_ratio=0/0 pix_fmt=??? index=2 time_base=1/90000 start_time=60871.262611 duration=27.371078 nb_frames=0 [/STREAM] [STREAM] codec_name=liba52 decoder_time_base=0/1 codec_type=audio sample_rate=0.000000 channels=0 bits_per_sample=0 index=3 time_base=1/90000 start_time=60871.262611 duration=27.371078 nb_frames=0 [/STREAM]
------------
# mediainfo C-0-13-3805.ts General Complete name : C-0-13-3805.ts Format : MPEG-TS Format profile : No PAT/PMT File size : 56.2 MiB Duration : 27s 440ms Overall bit rate : 17.2 Mbps
Video ID : 514 (0x202) Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.0 Format settings, CABAC : Yes Format settings, ReFrames : 2 frames Duration : 27s 440ms Bit rate : 15.8 Mbps Width : 1 920 pixels Height : 1 088 pixels Display aspect ratio : 16/9 Frame rate : 25.000 fps Resolution : 24 bits Colorimetry : 4:2:0 Scan type : Progressive
Audio #1 ID : 648 (0x288) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Bit rate mode : Constant Bit rate : 256 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Resolution : 16 bits Video delay : -383ms
Audio #2 ID : 649 (0x289) Format : AC-3 Format/Info : Audio Coding 3 Bit rate mode : Constant Bit rate : 384 Kbps Channel(s) : 6 channels Channel positions : Front: L C R, Surround: L R, LFE Sampling rate : 48.0 KHz Video delay : -276ms
Hexdump start of the file
dvbsnoop V1.4.50 -- http://dvbsnoop.sourceforge.net/
------------------------------------------------------------ SECT-Packet: 00000001 PID: (Unkown PID), Length: 517 (0x0205) from file: C-0-13-3805.ts ------------------------------------------------------------ 0000: 47 02 02 12 83 48 76 3b f3 dc 0e f2 5b 00 16 a9 G....Hv;....[... 0010: 17 bb 55 e6 bf 72 98 56 3a 43 a9 e7 26 3f 03 71 ..U..r.V:C..&?.q 0020: 08 49 8b e7 b5 db c6 1e 8e fa 86 5e ea ca 5b e0 .I.........^..[. 0030: 0c e8 b6 7b da 0a 39 a1 99 e6 29 bf 7d f4 14 e7 ...{..9...).}... 0040: 31 7e 8c 8c a8 f5 6a cd d2 36 20 7f 45 a5 90 fd 1~....j..6 .E... 0050: b0 95 de da 75 0e 8c 5a ff a8 39 65 2b a7 28 ba ....u..Z..9e+.(. 0060: d2 49 6a 8c 51 ee 72 08 16 0d 60 fb 5d 12 b4 54 .Ij.Q.r...`.]..T 0070: 66 0d 6f dc 71 0d cd 51 6c 8d bc 89 e9 6c 25 58 f.o.q..Ql....l%X 0080: 0f bb 92 04 d0 18 4c 96 e2 bb 53 14 cb 91 9c 88 ......L...S..... 0090: ee 6d 5f 30 7a f2 24 f9 8b a2 00 13 08 31 80 1b .m_0z.$......1.. 00a0: cb 85 da c2 a1 fe c9 69 2e 34 e8 85 cd 31 1f 37 .......i.4...1.7 00b0: 7b cf ee f1 7b 30 b4 a8 98 fd 43 50 47 02 02 13 {...{0....CPG... 00c0: e7 12 ce 7b 4d e1 f5 9c e7 50 09 1e 31 9d fc 1c ...{M....P..1... 00d0: d0 90 c9 c6 66 01 7f 20 70 9e 02 a2 1d 4f 78 34 ....f.. p....Ox4 00e0: a2 78 2a 56 bd a1 5b eb 09 6a 22 bc 7d 00 6d c7 .x*V..[..j".}.m. 00f0: 05 3b bb c7 57 33 2a 4c 64 d4 f8 81 ab 34 42 d8 .;..W3*Ld....4B. 0100: c4 08 b4 1c 7e 68 cf 04 2b c5 f9 3f 4d 62 8a dc ....~h..+..?Mb.. 0110: 2f b8 04 56 d4 1f 77 ea 23 d2 ad 42 f8 a4 f8 19 /..V..w.#..B.... 0120: c0 01 07 6f e5 7b 51 81 d5 4c 6d c4 18 d7 87 a8 ...o.{Q..Lm..... 0130: 47 bd b2 14 17 be 62 5d 87 e9 0f 3d 91 61 43 ce G.....b]...=.aC. 0140: 57 c6 e9 b2 1f 5f 5e 60 eb 0c e4 f3 a7 48 96 a3 W...._^`.....H.. 0150: d8 db 65 ea d6 ac ee f8 40 9e 7d 32 d4 65 ec e2 ..e.....@.}2.e.. 0160: 13 58 ab e6 d9 54 1f 62 7e d6 10 56 15 d6 97 c2 .X...T.b~..V.... 0170: 69 7a 77 72 39 c8 c9 b9 47 02 02 14 7d 89 ba f8 izwr9...G...}... 0180: cf e1 94 3f b3 b5 44 13 5b 90 3b 9c 8a 09 a6 ad ...?..D.[.;..... 0190: 61 95 5b c8 69 90 5f e9 f3 df 87 54 1c 66 46 8d a.[.i._....T.fF. 01a0: 22 3a 17 80 f5 d3 de 01 7e 0f d3 63 b2 1d 5c 44 ":......~..c..\D 01b0: dc 5d 4f c9 b5 a4 a8 20 f5 d9 bc 31 0f c0 79 82 .]O.... ...1..y. 01c0: 9d cb a7 1a 33 c0 39 8d 99 9d c0 dc 7a df d4 da ....3.9.....z... 01d0: e2 4f 14 7e a8 a3 40 99 ce 0e 02 50 bb 34 10 d2 .O.~..@....P.4.. 01e0: e6 52 01 c5 96 99 b5 7a 20 5d 1b 49 00 e2 02 66 .R.....z ].I...f 01f0: d3 07 3d 19 ab 3f b0 85 f3 a8 18 ac 21 4f a2 05 ..=..?......!O.. 0200: d7 d0 86 2a b8 ...*.
Frank Schmirler schrieb:
On Tue, 11 Nov 2008 13:02:48 +0100, jori.hamalainen wrote
----------- PMT 0 ----------- Packet : 1
The fixed file starts with a PMT packet. Could PCH be choking on the fact that the TS stream starts right in the middle of nowhere?
I think this is a good quess. I don't know how much PCH reads the stream for PMT table (first 10kB, first 100kB,...?), so if it does not have it in time it quits the stream.
So could streamdev be easily modified to provide PMT at stream start? And could PMT be rewritten later if new streams are found. With this I mean on first PMT you have audio/video-stream. And subtitle appears 60 seconds from the start so give new PMT with private subtitles streams as well?
I opened a bug report (http://www.vdr-developer.org/mantisbt/view.php?id=496) and posted a quick hack which should strip off all packets before the first PAT and probably some packets before the first PMT (hopefully not including the PMT). The PMT part needs to be elaborated. Sending a PMT with basic information first should be possible and sounds like a good idea. I'll take a look into this the next days.
How about the other symptom I was giving output. My VDR machine and its mplayer. Sometimes it recognizes stream as MPEG-2, and sometimes H.264. What do you believe, problem with TS stream or problem with Mplayer stream recognition.
Could have the same cause...
Frank
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
After your patch TSDoctor does not find a PAT at all! Tested with both versions of the patch.
Somebody in the NMT forum claims that he has it working with vdr-1.7.1 without any modifications. H264 streams should work too according to this post: http://www.networkedmediatank.com/showthread.php?tid=1696&pid=92157
Hope this helps. Helge.
Hi
I know this user, I have made test with him and confirm it work as it in vdr 1.7.1 with latest streamdev CVS and no more patch (simply add dot ts at the end of url) , only problem I got is streaming is working only with Arte HD on Astra 19.2, all other channel start buffering (a long time) and show nothing in TS mode , tests made on BBC HD (28.2) , Anixe HD + Astra HD promo(19.2)
I do a wget of stream and red the file from popcorn and all was nice, so it is surely more a network problem (too slow) for my case
There was also something strange on streaming, even if I choose the audio track with the plus argument, the both audio track are available from popcorn. It should not if I understand well how streamdev push the stream .. isn't it ?
Best regards
Selon Helge Lenz h.lenz@gmx.de:
Somebody in the NMT forum claims that he has it working with vdr-1.7.1 without any modifications. H264 streams should work too according to this post: http://www.networkedmediatank.com/showthread.php?tid=1696&pid=92157
Hope this helps. Helge.
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
On Thu, 13 Nov 2008 09:39:18 +0100, dplu wrote
There was also something strange on streaming, even if I choose the audio track with the plus argument, the both audio track are available from popcorn. It should not if I understand well how streamdev push the stream .. isn't it ?
In HTTP TS streaming mode current streamdev will always stream all PIDs according to PMT regardless of the selected audio track. The audio track selection would only apply to input devices which do not provide sections.
Regards, Frank
On Thu, 13 Nov 2008 01:43:01 +0100, Helge Lenz wrote
After your patch TSDoctor does not find a PAT at all! Tested with both versions of the patch.
Ouch - uploaded v3 of the patch. Again untested (sorry, I can't do any tests here).
Somebody in the NMT forum claims that he has it working with vdr- 1.7.1 without any modifications. H264 streams should work too according to this post:
http://www.networkedmediatank.com/showthread.php?tid=1696&pid=92157
I think we're on the right track. From vdr-1.7.1 changelog: + The new class cPatPmtGenerator is used to generate a PAT/PMT pair that precedes the TS data in Transfer Mode.
Frank
After your patch TSDoctor does not find a PAT at all! Tested with both versions of the patch.
Ouch - uploaded v3 of the patch. Again untested (sorry, I can't do any
tests here).
I tried to v3 patch offline from my PCH (just wget to a file and run mediainfo & ffprobe etc). There seems to be progress - now ffprobe (and ffmpeg) indicates some errors in start of stream - which could be explained.
I cannot wait to get back home to see my PCH.. If finally it would work?
//Jori
----
Mplayer now tries to play it: - (Does not show "Program N. 0" anymore)
# mplayer C-0-13-3805.ts -vo null MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 3, Stepping: 4) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Warning unknown option threads at line 10 mplayer: could not open config files /root/.lircrc and /etc/lircrc mplayer: No such file or directory Failed to read LIRC config file ~/.lircrc.
Playing C-0-13-3805.ts. TS file format detected. VIDEO H264(pid=514) AUDIO A52(pid=649) NO SUBS (yet)! PROGRAM N. 3805 FPS seems to be: 25.000000 Opening video filter: [pp=li] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== ========================================================================== Forced audio codec: hwdts Forced audio codec: hwac3 Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to AC3, 384000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) ========================================================================== AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample) Starting playback... VDec: vo config request - 1920 x 1088 (preferred colorspace: Planar YV12) [PP] Using external postprocessing filter, max q = 6. VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.76:1 - prescaling to correct movie aspect. VO: [null] 1920x1088 => 1920x1088 Planar YV12 [h264 @ 0x8776a50]B picture before any references, skipping??,?% 0 0 [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]no frame! Error while decoding frame! [h264 @ 0x8776a50]B picture before any references, skipping??,?% 1 0 [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]no frame! Error while decoding frame! [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors,?% 1 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors,?% 2 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors,?% 3 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors1.2% 4 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors1.2% 7 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors1.1% 8 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors1.1% 9 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors1.1% 10 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors1.1% 11 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors1.1% 13 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors1.1% 15 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors1.1% 17 0 [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors1.1% 18 0
----
mediainfo does not complain "missing PAT/PMT" anymore
# mediainfo C-0-13-3805.ts General ID : D Complete name : C-0-13-3805.ts Format : MPEG-TS File size : 21.3 MiB Duration : 10s 160ms Overall bit rate : 17.6 Mbps
Video ID : 514 (0x202) Menu ID : 3805 (0xEDD) Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.0 Format settings, CABAC : Yes Format settings, ReFrames : 2 frames Duration : 10s 160ms Bit rate : 16.3 Mbps Width : 1 920 pixels Height : 1 088 pixels Display aspect ratio : 16/9 Frame rate : 25.000 fps Resolution : 24 bits Colorimetry : 4:2:0 Scan type : Progressive
Audio #1 ID : 648 (0x288) Menu ID : 3805 (0xEDD) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Bit rate mode : Constant Bit rate : 256 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Resolution : 16 bits Video delay : -152ms Language : French
Audio #2 ID : 649 (0x289) Menu ID : 3805 (0xEDD) Format : AC-3 Format/Info : Audio Coding 3 Bit rate mode : Constant Bit rate : 384 Kbps Channel(s) : 6 channels Channel positions : Front: L C R, Surround: L R, LFE Sampling rate : 48.0 KHz Video delay : -227ms Language : English
Text ID : 605 (0x25D) Menu ID : 3805 (0xEDD) Format : DVB Subtitles Language : Swedish
----
Note - some errors on stream now.. Is this because streams (PIDs) are recognized because PAT/PMT is ok, and the first data is received starting in the middle of GOP?
# ffprobe -show_streams C-0-13-3805.ts FFprobe version SVN-r53, Copyright (c) 2007-2008 Stefano Sabatini libavutil version: 49.6.0 libavcodec version: 51.53.0 libavformat version: 52.12.0 built on Nov 12 2008 15:57:32, gcc: 4.1.2 (Gentoo 4.1.2 p1.0.2) [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]non existing PPS referenced [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]B picture before any references, skipping [h264 @ 0xb7dbae30]decode_slice_header error [h264 @ 0xb7dbae30]no frame! Input #0, mpegts, from 'C-0-13-3805.ts': Duration: 00:00:09.9, start: 18801.741267, bitrate: 18060 kb/s Program 3805 Stream #0.0[0x202]: Video: h264, yuv420p, 1920x1088 [PAR 1:1 DAR 30:17], 25.00 tb(r) Stream #0.1[0x289](eng): Audio: liba52, 48000 Hz, 5:1, 384 kb/s Stream #0.2[0x288](fre): Audio: mp2, 48000 Hz, stereo, 256 kb/s Stream #0.3[0x25d](swe): Subtitle: dvbsub Stream #0.4[0x260](fin): Subtitle: dvbsub No accelerated IMDCT transform found [STREAM] codec_name=h264 decoder_time_base=1/25 codec_type=video r_frame_rate=25.000000 r_frame_rate_num=25 r_frame_rate_den=1 width=1920 height=1088 gop_size=12 has_b_frames=0 sample_aspect_ratio=1/1 display_aspect_ratio=30/17 pix_fmt=yuv420p index=0 time_base=1/90000 start_time=18801.968133 duration=9.680000 nb_frames=0 [/STREAM] [STREAM] codec_name=liba52 decoder_time_base=0/1 codec_type=audio sample_rate=48000.000000 channels=6 bits_per_sample=0 index=1 time_base=1/90000 language=eng start_time=18801.741267 duration=9.472000 nb_frames=0 [/STREAM] [STREAM] codec_name=mp3 decoder_time_base=0/1 codec_type=audio sample_rate=48000.000000 channels=2 bits_per_sample=0 index=2 time_base=1/90000 language=fre start_time=18801.816922 duration=9.360000 nb_frames=0 [/STREAM] [STREAM] codec_name=dvbsub decoder_time_base=0/1 codec_type=subtitle index=3 time_base=1/90000 language=swe start_time=18805.870622 duration=N/A nb_frames=0 [/STREAM] [STREAM] codec_name=dvbsub decoder_time_base=0/1 codec_type=subtitle index=4 time_base=1/90000 language=fin start_time=18801.741267 duration=9.906867 nb_frames=0 [/STREAM]
On Thu, 13 Nov 2008 13:32:14 +0100, jori.hamalainen wrote
I tried to v3 patch offline from my PCH (just wget to a file and run mediainfo & ffprobe etc). There seems to be progress - now ffprobe (and ffmpeg) indicates some errors in start of stream - which could be explained.
Glad to here that :)
Note - some errors on stream now.. Is this because streams (PIDs) are recognized because PAT/PMT is ok, and the first data is received starting in the middle of GOP?
Definitely. In TS mode streamdev simply forward all TS packets without looking into them (except for PAT/PMT of course). So there will be incomplete PES packets in the beginning and video will usually start right in the middle of a GOP.
Frank
I tried to v3 patch offline from my PCH (just wget to a file and run mediainfo & ffprobe etc). There seems to be progress - now ffprobe (and ffmpeg) indicates some errors in start of stream - which could be explained.
Glad to here that :)
I was able to quickly test PCH. Still no picture, but now stream types are partially recognized. Video to H.264 but sound as DTS (should be AC-3). Video dimension is not known (should be 1080i)
And replay clock is still not running, showing just 0:00:00..
--
On mplayer-side still some false data time to time, Program n. 0 and video MPEG2 (correct PID) # mplayer http://127.0.0.1:3000/TS/C-0-13-3805.ts MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team
Playing http://127.0.0.1:3000/TS/C-0-13-3805.ts. Resolving 127.0.0.1 for AF_INET6... Couldn't resolve name for AF_INET6: 127.0.0.1 Connecting to server 127.0.0.1[127.0.0.1]: 3000... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) Stream not seekable! TS file format detected. VIDEO MPEG2(pid=514) AUDIO MPA(pid=648) NO SUBS (yet)! PROGRAM N. 0 Stream not seekable!
----
on other run it works partially (wrong audio?).. # mplayer http://127.0.0.1:3000/TS/C-0-13-3805+2.ts MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team
Playing http://127.0.0.1:3000/TS/C-0-13-3805+2.ts. Connecting to server 127.0.0.1[127.0.0.1]: 3000... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) TS file format detected. VIDEO H264(pid=514) AUDIO MPA(pid=648) NO SUBS (yet)! PROGRAM N. 3805 Stream not seekable! FPS seems to be: 25.000000 Opening video filter: [pp=li] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== ========================================================================== Forced audio codec: hwdts Forced audio codec: hwac3 Cannot find codec for audio format 0x50. Read DOCS/HTML/en/codecs.html! Audio: no sound Starting playback... VDec: vo config request - 1920 x 1088 (preferred colorspace: Planar YV12) [PP] Using external postprocessing filter, max q = 6. VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.76:1 - prescaling to correct movie aspect. VO: [xv] 1920x1088 => 1920x1088 Planar YV12 [ASPECT] Warning: No suitable new res found! [ASPECT] Warning: No suitable new res found! [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping
So it comes to my mind that should Streamdev start sending streams at first GOP start seen?
-----Original Message----- From: vdr-bounces@linuxtv.org on behalf of jori.hamalainen@teliasonera.com Sent: Thu 13-Nov-08 16:50 To: vdr@linuxtv.org Subject: RE: [vdr] Small VDR-streamdev patch for Popcorn Hour NMT
I tried to v3 patch offline from my PCH (just wget to a file and run mediainfo & ffprobe etc). There seems to be progress - now ffprobe (and ffmpeg) indicates some errors in start of stream - which could be explained.
Glad to here that :)
I was able to quickly test PCH. Still no picture, but now stream types are partially recognized. Video to H.264 but sound as DTS (should be AC-3). Video dimension is not known (should be 1080i)
And replay clock is still not running, showing just 0:00:00..
--
On mplayer-side still some false data time to time, Program n. 0 and video MPEG2 (correct PID) # mplayer http://127.0.0.1:3000/TS/C-0-13-3805.ts MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team
Playing http://127.0.0.1:3000/TS/C-0-13-3805.ts. Resolving 127.0.0.1 for AF_INET6... Couldn't resolve name for AF_INET6: 127.0.0.1 Connecting to server 127.0.0.1[127.0.0.1]: 3000... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) Stream not seekable! TS file format detected. VIDEO MPEG2(pid=514) AUDIO MPA(pid=648) NO SUBS (yet)! PROGRAM N. 0 Stream not seekable!
----
on other run it works partially (wrong audio?).. # mplayer http://127.0.0.1:3000/TS/C-0-13-3805+2.ts MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team
Playing http://127.0.0.1:3000/TS/C-0-13-3805+2.ts. Connecting to server 127.0.0.1[127.0.0.1]: 3000... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) TS file format detected. VIDEO H264(pid=514) AUDIO MPA(pid=648) NO SUBS (yet)! PROGRAM N. 3805 Stream not seekable! FPS seems to be: 25.000000 Opening video filter: [pp=li] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== ========================================================================== Forced audio codec: hwdts Forced audio codec: hwac3 Cannot find codec for audio format 0x50. Read DOCS/HTML/en/codecs.html! Audio: no sound Starting playback... VDec: vo config request - 1920 x 1088 (preferred colorspace: Planar YV12) [PP] Using external postprocessing filter, max q = 6. VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.76:1 - prescaling to correct movie aspect. VO: [xv] 1920x1088 => 1920x1088 Planar YV12 [ASPECT] Warning: No suitable new res found! [ASPECT] Warning: No suitable new res found! [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping
I tried to v3 patch offline from my PCH (just wget to a file and run mediainfo & ffprobe etc). There seems to be progress - now ffprobe (and ffmpeg) indicates some errors in start of stream - which could be explained.
I ran the file through ts-doctor and got following output and PCH plays the file ok. Recognizes audio as AC3 (without fix as DTS as reported previously).
- Jori
Opening file Z:\mnt\backup\Nomads\C-0-13-3805.ts
Scanning for TRP fill packets Scanning for PIDs Found 7 different PIDs $18CF: 0% $0202: 93% $0289: 2% $0012: 3% $0288: 2% $0260: 0% $025D: 0%
Scanning for PATs
----------- PAT 0 ----------- Table ID : 0 Section Syntax Indicator : 1 Reserved Bit 0 : 0 Reserved Bit 1 : 1 Reserved Bit 2 : 1 Section Length : 13 Transport Stream ID : 13 Reserved Bit 3 : 0 Reserved Bit 4 : 0 Version Number : 0 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0
Program Number : $0EDD Map PID : $18CF
CRC32 : $9692CCD9 = $9692CCD9 -----------------------------
Found 1 different PATs Found 1 different PMT PIDs Scanning for PMTs
----------- PMT 0 ----------- Packet : 2953 PID : $18CF Table ID : 2 Section Syntax Indicator : 1 Section Length : 79 Program Number : 3805 Version Number : 6 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0 PCR PID : $0202
Program Info Length : 6 Program Info : $09, $04, $0B, $00, $FC, $89
Stream Type : 27 Description : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video Elementary PID : $0202 ES Info Length : 0
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) Elementary PID : $0289 ES Info Length : 9 ES Info : $6A, $01, $00, $0A, $04, $65, $6E, $67, $00 ES Info Text : j____eng_
Stream Type : 3 Description : ISO/IEC 11172 Audio Elementary PID : $0288 ES Info Length : 6 ES Info : $0A, $04, $66, $72, $65, $00 ES Info Text : __fre_
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data Elementary PID : $025D ES Info Length : 10 ES Info : $59, $08, $73, $77, $65, $12, $00, $02, $00, $02 ES Info Text : Y_swe_____
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data Elementary PID : $0260 ES Info Length : 10 ES Info : $59, $08, $66, $69, $6E, $12, $00, $02, $00, $02 ES Info Text : Y_fin_____
CRC32 : $4C3E165C = $4C3E165C -----------------------------
Found 1 different PMTs
Selecting PMT with PID $18CF at position 2953 CRC OK! Deleting PMT entry: PID $025D type 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data Deleting PMT entry: PID $0260 type 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data 2 entries deleted from stream list (not found in stream)!
0. stream_type : 27 = AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video elementary_pid : $0202 ES_info_length : 0
1. stream_type : 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) elementary_pid : $0289 ES_info_length : 9
2. stream_type : 3 = ISO/IEC 11172 Audio elementary_pid : $0288 ES_info_length : 6
PCR PID is $0202
Created PAT:
----------- PAT 0 ----------- Table ID : 0 Section Syntax Indicator : 1 Reserved Bit 0 : 0 Reserved Bit 1 : 1 Reserved Bit 2 : 1 Section Length : 13 Transport Stream ID : 6 Reserved Bit 3 : 1 Reserved Bit 4 : 1 Version Number : 11 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0
Program Number : $0001 Map PID : $18CF
CRC32 : $02D8FB18 = $02D8FB18 -----------------------------
Created PMT:
----------- PMT 0 ----------- Packet : 2953 PID : $18CF Table ID : 2 Section Syntax Indicator : 1 Section Length : 49 Program Number : 1 Version Number : 6 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0 PCR PID : $0202
Program Info Length : 6 Program Info : $09, $04, $0B, $00, $FC, $89
Stream Type : 27 Description : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video Elementary PID : $0202 ES Info Length : 0
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) Elementary PID : $0289 ES Info Length : 9 ES Info : $6A, $01, $00, $0A, $04, $65, $6E, $67, $00 ES Info Text : j____eng_
Stream Type : 3 Description : ISO/IEC 11172 Audio Elementary PID : $0288 ES Info Length : 6 ES Info : $0A, $04, $66, $72, $65, $00 ES Info Text : __fre_
CRC32 : $29870363 = $29870363 -----------------------------
First PTS is 1692177132 05:13:21.968 Last PTS is 1693048332 05:13:31.648 First DTS is 0 00:00:00.000 First PCR is 507621736500 05:13:20.805 First PCR´ is 1692072455 05:13:20.805 Duration of video stream is 871200 00:00:09.680
The following PIDs will be imported into new stream: $0202, $0289, $0288
Scanning for video details Video format: H264 1920x1088, Interlaced / 25 fps / High@4.0
-------- H264 Video --------- profile_idc : 100 constrained_set0_flag : 0 constrained_set1_flag : 1 constrained_set2_flag : 0 constrained_set3_flag : 0 reserved_zero_4bits : 0 level_idc : 40 seq_parameter_set_id : 0 chroma_format_idc : 1 bit_depth_luma_minus8 : 0 bit_depth_chroma_minus8 : 0 qpprime_y_zero_transform_bypass_flag : 0 seq_scaling_matrix_present_flag : 0 log2_max_frame_num_minus4 : 8 pic_order_cnt_type : 0 log2_max_pic_order_cnt_lsb_minus4 : 5 num_ref_frames : 2 gaps_in_frame_num_value_allowed_flag : 0 pic_width_in_mbs_minus1 : 119 pic_height_in_map_units_minus1 : 33 frame_mbs_only_flag : 0 mb_adaptive_frame_field_flag : 0 direct_8x8_inference_flag : 1 frame_cropping_flag : 0 vui_parameters_present_flag : 1 aspect_ratio_info_present_flag : 1 aspect_ratio_idv : 1 overscan_info_present_flag : 1 overscan_appropriate_flag : 1 video_signal_type_present_flag : 1 video_format : 5 video_full_range_flag : 1 colour_description_present_flag : 1 colour_primaries : 1 transfer_characteristics : 1 matrix_coefficients : 1 chroma_loc_info_present_flag : 1 chroma_sample_loc_type_top_field : 0 chroma_sample_loc_type_bottom_field : 0 timing_info_present_flag : 1 num_units_in_tick : 1 time_scale : 50 fixed_frame_rate_flag : 1 -----------------------------
WARNING: video_full_range_flag is set! Reset video_full_range_flag !
Scanning for audio details Audio stream 1: AC3 5.1 48000Hz (ENG) Audio stream 2: Error: Invalid packet 1, skipped! Error: illegal_adaptation_field_type
Starting at packet 2 00:00:00.000 ERROR: For video PID 0202 00000148: Wrong PSCPrefix ERROR: For video PID 0202 0000026F: Wrong PSCPrefix ERROR: For audio PID 0288 0000029A: Wrong PSCPrefix ERROR: For video PID 0202 000004B5: Wrong PSCPrefix ERROR: For audio PID 0289 00000595: Wrong PSCPrefix ERROR: For video PID 0202 000005EA: Wrong PSCPrefix ERROR: For video PID 0202 000007F9: Wrong PSCPrefix ERROR: For video PID 0202 00000948: Wrong PSCPrefix ERROR: For audio PID 0288 00000AF2: Wrong PSCPrefix ERROR: For audio PID 0289 00000B50: Wrong PSCPrefix ERROR: For video PID 0202 00000B70: Wrong PSCPrefix ERROR: For video PID 0202 00000CB8: Wrong PSCPrefix ERROR: For video PID 0202 00000F07: Wrong PSCPrefix ERROR: For video PID 0202 0000103D: Wrong PSCPrefix ERROR: For audio PID 0289 000010F7: Wrong PSCPrefix ERROR: For video PID 0202 0000127D: Wrong PSCPrefix ERROR: For audio PID 0288 0000132B: Wrong PSCPrefix ERROR: For video PID 0202 000013A3: Wrong PSCPrefix ERROR: For video PID 0202 000015A1: Wrong PSCPrefix ERROR: For video PID 0202 00001670: Wrong PSCPrefix ERROR: For audio PID 0289 000016A5: Wrong PSCPrefix ERROR: For audio PID 0288 00001B30: Wrong PSCPrefix ERROR: For video PID 0202 00001B9F: Wrong PSCPrefix ERROR: For video PID 0202 00001BFD: Wrong PSCPrefix ERROR: For audio PID 0289 00001C5F: Wrong PSCPrefix ERROR: For video PID 0202 00001EFE: Wrong PSCPrefix ERROR: For video PID 0202 00001F4F: Wrong PSCPrefix ERROR: For video PID 0202 000020CF: Wrong PSCPrefix ERROR: For video PID 0202 0000215E: Wrong PSCPrefix ERROR: For audio PID 0289 000021F1: Wrong PSCPrefix ERROR: For video PID 0202 00002291: Wrong PSCPrefix ERROR: For audio PID 0288 0000236F: Wrong PSCPrefix Changed Sequence Parameter Set (0) video_full_range_flag in packet 14177 byte 66 Changed Sequence Parameter Set (1) video_full_range_flag in packet 19213 byte 66 Changed Sequence Parameter Set (2) video_full_range_flag in packet 25840 byte 66 Changed Sequence Parameter Set (3) video_full_range_flag in packet 31405 byte 66 Changed Sequence Parameter Set (4) video_full_range_flag in packet 36853 byte 66 Changed Sequence Parameter Set (5) video_full_range_flag in packet 42392 byte 66 Changed Sequence Parameter Set (6) video_full_range_flag in packet 47884 byte 66 Changed Sequence Parameter Set (7) video_full_range_flag in packet 53756 byte 66 Changed Sequence Parameter Set (8) video_full_range_flag in packet 60588 byte 66 Changed Sequence Parameter Set (9) video_full_range_flag in packet 66330 byte 66 Changed Sequence Parameter Set (10) video_full_range_flag in packet 71884 byte 66 Changed Sequence Parameter Set (11) video_full_range_flag in packet 77397 byte 66 Changed Sequence Parameter Set (12) video_full_range_flag in packet 83455 byte 66 Changed Sequence Parameter Set (13) video_full_range_flag in packet 88846 byte 66 Changed Sequence Parameter Set (14) video_full_range_flag in packet 94193 byte 66 Changed Sequence Parameter Set (15) video_full_range_flag in packet 99668 byte 66 Changed Sequence Parameter Set (16) video_full_range_flag in packet 105360 byte 66 Changed Sequence Parameter Set (17) video_full_range_flag in packet 109953 byte 66 Changed Sequence Parameter Set (18) video_full_range_flag in packet 115524 byte 66
--------- NAL Unit Type Statistic --------- Slices : 1434 Data Partition A : 0 Data Partition B : 0 Data Partition A : 0 IDR Picture : 0 SEI : 277 Sequence Parameter Set : 19 Picture Parameter Set : 19 AUD : 239 End of Sequence : 0 End of Stream : 0 Filler : 0 Slices : 0 Seq. Param. Set Ext. : 0
Cutted packets at the beginning: 0 Cutted packets at the end: 0 Discarded packets (not needed): 3827 Changed Sequence Parameter Sets: 19 of 19
ERRORS : 11 WARNINGS : 0
Speed: 4.2 MBytes/sec Duration: 00:00:05
On Thu, 13 Nov 2008 19:28:54 +0100, jori.hamalainen wrote
I tried to v3 patch offline from my PCH (just wget to a file and run mediainfo & ffprobe etc). There seems to be progress - now ffprobe (and ffmpeg) indicates some errors in start of stream - which could be explained.
I ran the file through ts-doctor and got following output and PCH plays the file ok. Recognizes audio as AC3 (without fix as DTS as reported previously).
(...)
Error: Invalid packet 1, skipped! Error: illegal_adaptation_field_type
Starting at packet 2 00:00:00.000
A hexdump of the first few packets from both, the original and the fixed stream, would be fine.
Frank
A hexdump of the first few packets from both, the original and the fixed
stream, would be fine.
Ok, here is plain hexdump. If dvbsnoop is needed, just ask.. :)
- Jori
Non-fixed version (* means repeating lines):
00000000 47 40 00 10 00 00 b0 0d 00 0d 01 00 00 0e dd 18 |G@..............| 00000010 cf 96 92 cc d9 ff ff ff ff ff ff ff ff ff ff ff |................| 00000020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 000000b0 ff ff ff ff ff ff ff ff ff ff ff ff 47 58 cf 02 |............GX..| 000000c0 52 02 b0 4f 0e dd cd 00 00 e2 02 f0 06 09 04 0b |R..O............| 000000d0 00 fc 89 1b e2 02 f0 00 06 e2 89 f0 09 6a 01 00 |.............j..| 000000e0 0a 04 65 6e 67 00 03 e2 88 f0 06 0a 04 66 72 65 |..eng........fre| 000000f0 00 06 e2 5d f0 0a 59 08 73 77 65 12 00 02 00 02 |...]..Y.swe.....| 00000100 06 e2 60 f0 0a 59 08 66 69 6e 12 00 02 00 02 4c |..`..Y.fin.....L| 00000110 3e 16 5c 00 00 00 00 00 00 00 00 00 00 00 00 00 |>..............| 00000120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000170 00 00 00 00 00 00 00 00 47 02 02 18 46 ad 9e 74 |........G...F..t| 00000180 ea 60 2f c5 6f 1d 90 4d ba 35 7a 20 23 b8 25 c6 |.`/.o..M.5z #.%.| 00000190 af bf e2 d7 67 aa 62 63 12 80 f8 15 40 a0 cb 3c |....g.bc....@..<| 000001a0 a5 7f 9c dd ec 5f cc 4f d5 80 5d 9e 66 4f 8c d9 |....._.O..].fO..| 000001b0 5e 9f 2b e2 0b b2 fe ff aa be 23 91 3d e7 d3 dd |^.+.......#.=...| 000001c0 e9 dd 4a ae ca c5 1d 02 3b 8b 2a 87 68 fe 1a fa |..J.....;.*.h...| 000001d0 b5 e5 b4 04 73 44 57 4b 7c 98 e1 fb 3c a4 ff 61 |....sDWK|...<..a| 000001e0 ae 72 0a cc c8 59 7b 38 05 54 eb 38 a9 f9 34 88 |.r...Y{8.T.8..4.| 000001f0 b4 24 58 df c8 c2 44 ed ed 72 c2 a9 84 d3 d2 01 |.$X...D..r......| 00000200 64 81 75 8c b2 fd 53 0f 80 76 5f 8e ff d9 38 6e |d.u...S..v_...8n| 00000210 60 d7 e9 ac ae e7 1d 15 11 e2 38 80 b8 e6 75 c6 |`.........8...u.| 00000220 31 77 f2 b5 96 01 8f dd 62 05 5b c4 d2 85 ae 68 |1w......b.[....h| 00000230 27 57 9c e2 47 02 02 19 1d 6e 3f a8 28 ff 88 ab |'W..G....n?.(...| 00000240 59 84 a2 85 3b af ac 50 dc a7 24 29 73 35 f2 c8 |Y...;..P..$)s5..| 00000250 e6 b1 8f 1f a0 79 0a a1 08 6c e4 ba 70 e3 a1 d4 |.....y...l..p...| 00000260 d5 be 2a a8 d7 db 76 c9 4d e1 29 47 04 aa 62 cb |..*...v.M.)G..b.| 00000270 46 88 89 fd 40 b6 a2 fc 76 ec aa ab ef d6 42 5d |F...@...v.....B]| 00000280 18 2a 76 4e ac 34 29 c7 04 3a f2 e2 dd d6 5f 0a |.*vN.4)..:...._.| 00000290 33 01 98 87 cb 99 9a 84 16 f1 f9 b1 bb 54 cb 26 |3............T.&| 000002a0 d3 46 04 ae 35 23 ab 07 1d 4c a8 ab f7 f5 2f c6 |.F..5#...L..../.| 000002b0 36 59 2d c8 34 33 64 94 57 2c d5 30 34 6b 04 35 |6Y-.43d.W,.04k.5| 000002c0 0b b7 cd 18 f4 55 46 16 c6 d0 1c aa dd 40 cb bf |.....UF......@..| 000002d0 d1 3c 59 bd ec bd 94 9b 5f 67 a5 b8 d0 0d 7d 77 |.<Y....._g....}w| 000002e0 79 b5 fe 4b 19 bb f1 0b 88 a9 44 8d b7 a6 f6 84 |y..K......D.....| 000002f0 47 02 02 1a 25 29 ec 42 25 f9 9a f5 8c f3 95 0e |G...%).B%.......| 00000300 32 ae 25 02 e7 c3 f6 a6 f6 1a fb e0 d3 53 9f e3 |2.%..........S..| 00000310 b0 eb 75 78 a2 ae 0d bc 28 95 71 7c 9c 20 7a a2 |..ux....(.q|. z.| 00000320 c6 af 98 c8 fc 05 33 6f 55 7f 05 5d 6b d8 3a 3d |......3oU..]k.:=| 00000330 83 31 60 87 8e c1 21 67 e0 f4 07 6f c0 67 9b 71 |.1`...!g...o.g.q|
---------------
fixed version 00000000 47 40 00 10 00 00 b0 0d 00 06 d7 00 00 00 01 f8 |G@..............| 00000010 cf 02 d8 fb 18 ff ff ff ff ff ff ff ff ff ff ff |................| 00000020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 000000b0 ff ff ff ff ff ff ff ff ff ff ff ff 47 58 cf 10 |............GX..| 000000c0 00 02 b0 31 00 01 cd 00 00 e2 02 f0 06 09 04 0b |...1............| 000000d0 00 fc 89 1b e2 02 f0 00 06 e2 89 f0 09 6a 01 00 |.............j..| 000000e0 0a 04 65 6e 67 00 03 e2 88 f0 06 0a 04 66 72 65 |..eng........fre| 000000f0 00 29 87 03 63 ff ff ff ff ff ff ff ff ff ff ff |.)..c...........| 00000100 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00000170 ff ff ff ff ff ff ff ff 47 02 02 18 46 ad 9e 74 |........G...F..t| 00000180 ea 60 2f c5 6f 1d 90 4d ba 35 7a 20 23 b8 25 c6 |.`/.o..M.5z #.%.| 00000190 af bf e2 d7 67 aa 62 63 12 80 f8 15 40 a0 cb 3c |....g.bc....@..<| 000001a0 a5 7f 9c dd ec 5f cc 4f d5 80 5d 9e 66 4f 8c d9 |....._.O..].fO..| 000001b0 5e 9f 2b e2 0b b2 fe ff aa be 23 91 3d e7 d3 dd |^.+.......#.=...| 000001c0 e9 dd 4a ae ca c5 1d 02 3b 8b 2a 87 68 fe 1a fa |..J.....;.*.h...| 000001d0 b5 e5 b4 04 73 44 57 4b 7c 98 e1 fb 3c a4 ff 61 |....sDWK|...<..a| 000001e0 ae 72 0a cc c8 59 7b 38 05 54 eb 38 a9 f9 34 88 |.r...Y{8.T.8..4.| 000001f0 b4 24 58 df c8 c2 44 ed ed 72 c2 a9 84 d3 d2 01 |.$X...D..r......| 00000200 64 81 75 8c b2 fd 53 0f 80 76 5f 8e ff d9 38 6e |d.u...S..v_...8n| 00000210 60 d7 e9 ac ae e7 1d 15 11 e2 38 80 b8 e6 75 c6 |`.........8...u.| 00000220 31 77 f2 b5 96 01 8f dd 62 05 5b c4 d2 85 ae 68 |1w......b.[....h| 00000230 27 57 9c e2 47 02 02 19 1d 6e 3f a8 28 ff 88 ab |'W..G....n?.(...| 00000240 59 84 a2 85 3b af ac 50 dc a7 24 29 73 35 f2 c8 |Y...;..P..$)s5..| 00000250 e6 b1 8f 1f a0 79 0a a1 08 6c e4 ba 70 e3 a1 d4 |.....y...l..p...| 00000260 d5 be 2a a8 d7 db 76 c9 4d e1 29 47 04 aa 62 cb |..*...v.M.)G..b.| 00000270 46 88 89 fd 40 b6 a2 fc 76 ec aa ab ef d6 42 5d |F...@...v.....B]| 00000280 18 2a 76 4e ac 34 29 c7 04 3a f2 e2 dd d6 5f 0a |.*vN.4)..:...._.| 00000290 33 01 98 87 cb 99 9a 84 16 f1 f9 b1 bb 54 cb 26 |3............T.&| 000002a0 d3 46 04 ae 35 23 ab 07 1d 4c a8 ab f7 f5 2f c6 |.F..5#...L..../.| 000002b0 36 59 2d c8 34 33 64 94 57 2c d5 30 34 6b 04 35 |6Y-.43d.W,.04k.5| 000002c0 0b b7 cd 18 f4 55 46 16 c6 d0 1c aa dd 40 cb bf |.....UF......@..| 000002d0 d1 3c 59 bd ec bd 94 9b 5f 67 a5 b8 d0 0d 7d 77 |.<Y....._g....}w| 000002e0 79 b5 fe 4b 19 bb f1 0b 88 a9 44 8d b7 a6 f6 84 |y..K......D.....| 000002f0 47 02 02 1a 25 29 ec 42 25 f9 9a f5 8c f3 95 0e |G...%).B%.......| 00000300 32 ae 25 02 e7 c3 f6 a6 f6 1a fb e0 d3 53 9f e3 |2.%..........S..| 00000310 b0 eb 75 78 a2 ae 0d bc 28 95 71 7c 9c 20 7a a2 |..ux....(.q|. z.| 00000320 c6 af 98 c8 fc 05 33 6f 55 7f 05 5d 6b d8 3a 3d |......3oU..]k.:=| 00000330 83 31 60 87 8e c1 21 67 e0 f4 07 6f c0 67 9b 71 |.1`...!g...o.g.q|
The PMT was broken. Uploaded patch v4.
I updated the patch - and here is output via mplayer (3 fails to stream - one success). I changed this to HTML format so I can highlight some lines.. So almost with every run the streamdev is returning different PAT/PMT or whatever.. These are ran in a line, no pause after SIGINT (^C) was given.
- Jori
---------------
vdr Nomads # mplayer -vo null -ao null http://localhost:3000/TS/C-0-13-3805.ts MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team
Playing http://localhost:3000/TS/C-0-13-3805.ts. Resolving localhost for AF_INET... Connecting to server localhost[127.0.0.1]: 3000... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) Stream not seekable! TS file format detected. VIDEO MPEG2(pid=514) NO AUDIO! NO SUBS (yet)! PROGRAM N. 0 Stream not seekable!
MPlayer interrupted by signal 2 in module: enable_cache nop_streaming_read error : Interrupted system call
MPlayer interrupted by signal 2 in module: video_read_properties MPEG: FATAL: EOF while searching for sequence header. Video: Cannot read properties. No stream found.
Exiting... (End of file) vdr Nomads # mplayer -vo null -ao null http://localhost:3000/TS/C-0-13-3805.ts
Playing http://localhost:3000/TS/C-0-13-3805.ts. Resolving localhost for AF_INET... Connecting to server localhost[127.0.0.1]: 3000... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) Stream not seekable! TS file format detected. VIDEO MPEG2(pid=514) AUDIO A52(pid=649) NO SUBS (yet)! PROGRAM N. 0 Stream not seekable!
MPlayer interrupted by signal 2 in module: video_read_properties
MPlayer interrupted by signal 2 in module: enable_cache nop_streaming_read error : Interrupted system call TS_PARSE: COULDN'T SYNC MPEG: FATAL: EOF while searching for sequence header. Video: Cannot read properties. ========================================================================== Forced audio codec: hwdts Forced audio codec: hwac3 Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to AC3, 384000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) ========================================================================== AO: [null] 48000Hz 2ch ac3 (1 bytes per sample) Video: no video Starting playback... A:14065.9 ( 3:54:25.9) of 0.0 (unknown) ??,?% 0% Exiting... (Quit)
vdr Nomads # mplayer -vo null -ao null http://localhost:3000/TS/C-0-13-3805.ts
Playing http://localhost:3000/TS/C-0-13-3805.ts. Resolving localhost for AF_INET... Connecting to server localhost[127.0.0.1]: 3000... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) Stream not seekable! TS file format detected. VIDEO MPEG2(pid=514) AUDIO A52(pid=649) NO SUBS (yet)! PROGRAM N. 0 Stream not seekable!
MPlayer interrupted by signal 2 in module: video_read_properties
MPlayer interrupted by signal 2 in module: enable_cache
MPlayer interrupted by signal 2 in module: enable_cache
MPlayer interrupted by signal 2 in module: video_read_properties vdr Nomads # mplayer -vo null -ao null http://localhost:3000/TS/C-0-13-3805.ts
Playing http://localhost:3000/TS/C-0-13-3805.ts. Resolving localhost for AF_INET... Connecting to server localhost[127.0.0.1]: 3000... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) TS file format detected. VIDEO H264(pid=514) AUDIO A52(pid=649) NO SUBS (yet)! PROGRAM N. 3805 Stream not seekable! FPS seems to be: 25.000000 Opening video filter: [pp=li] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== ========================================================================== Forced audio codec: hwdts Forced audio codec: hwac3 Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to AC3, 384000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) ========================================================================== AO: [null] 48000Hz 2ch ac3 (1 bytes per sample) Starting playback... VDec: vo config request - 1920 x 1088 (preferred colorspace: Planar YV12) [PP] Using external postprocessing filter, max q = 6. VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.76:1 - prescaling to correct movie aspect. VO: [null] 1920x1088 => 1920x1088 Planar YV12 [h264 @ 0x8776a50]B picture before any references, skipping??,?% 0 0 7% [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]B picture before any references, skipping [h264 @ 0x8776a50]decode_slice_header error [h264 @ 0x8776a50]no frame! Error while decoding frame! [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors,?% 1 0 33% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors,?% 4 0 6% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors0.1% 13 0 41% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors0.1% 14 0 33% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors0.1% 17 0 5% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors0.1% 20 0 0% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors0.1% 23 0 4% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors0.1% 27 0 25% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors0.1% 33 0 1% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors0.1% 38 0 23% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors.1% 45 0 46% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors.1% 54 0 2% [h264 @ 0x8776a50]concealing 6960 DC, 6960 AC, 6960 MV errors.1% 61 0 31% A:14082.7 V:14084.9 A-V: -2.164 ct: -0.344 87/ 87 92% 5% 0.1% 67 0 27%
MPlayer interrupted by signal 2 in module: enable_cache
MPlayer interrupted by signal 2 in module: video_read_frame A:14082.8 V:14085.0 A-V: -2.257 ct: -0.348 88/ 88 90% 5% 0.1% 68 0 44% Exiting... (Quit)
On Fri, 14 Nov 2008 14:42:10 +0100, jori.hamalainen wrote
The PMT was broken. Uploaded patch v4.
I updated the patch - and here is output via mplayer (3 fails to stream - one success). I changed this to HTML format so I can highlight some lines.. So almost with every run the streamdev is returning different PAT/PMT or whatever.. These are ran in a line, no pause after SIGINT (^C) was given.
Maybe PAT/PMT still isn't correct. Output of TS-Doctor plus hexdump of original and fixed stream would be better. Sorry - I cannot test myself here.
Frank
Maybe PAT/PMT still isn't correct. Output of TS-Doctor plus hexdump of original and fixed stream would be better. Sorry - I cannot test myself here.
If you have some FTP-site I can provide you the files. Or I can send to gmail.
ts-doctor log Opening file G:\Nomads\sd_test\C-0-13-3805.ts
Scanning for TRP fill packets Scanning for PIDs Found 7 different PIDs $18CF: 0% $0202: 93% $0288: 2% $0012: 3% $0289: 2% $0260: 0% $025D: 0%
Scanning for PATs
----------- PAT 0 ----------- Table ID : 0 Section Syntax Indicator : 1 Reserved Bit 0 : 0 Reserved Bit 1 : 1 Reserved Bit 2 : 1 Section Length : 13 Transport Stream ID : 13 Reserved Bit 3 : 1 Reserved Bit 4 : 1 Version Number : 0 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0
Program Number : $0EDD Map PID : $18CF
CRC32 : $CCA359A7 = $CCA359A7 -----------------------------
Found 1 different PATs Found 1 different PMT PIDs Scanning for PMTs
----------- PMT 0 ----------- Packet : 1 PID : $18CF Table ID : 2 Section Syntax Indicator : 1 Section Length : 79 Program Number : 3805 Version Number : 6 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0 PCR PID : $0202
Program Info Length : 6 Program Info : $09, $04, $0B, $00, $FC, $89
Stream Type : 27 Description : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video Elementary PID : $0202 ES Info Length : 0
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) Elementary PID : $0289 ES Info Length : 9 ES Info : $6A, $01, $00, $0A, $04, $65, $6E, $67, $00 ES Info Text : j____eng_
Stream Type : 3 Description : ISO/IEC 11172 Audio Elementary PID : $0288 ES Info Length : 6 ES Info : $0A, $04, $66, $72, $65, $00 ES Info Text : __fre_
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data Elementary PID : $025D ES Info Length : 10 ES Info : $59, $08, $73, $77, $65, $12, $00, $02, $00, $02 ES Info Text : Y_swe_____
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data Elementary PID : $0260 ES Info Length : 10 ES Info : $59, $08, $66, $69, $6E, $12, $00, $02, $00, $02 ES Info Text : Y_fin_____
CRC32 : $4C3E165C = $4C3E165C -----------------------------
Found 1 different PMTs
Selecting PMT with PID $18CF at position 1 CRC OK! Deleting PMT entry: PID $025D type 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data Deleting PMT entry: PID $0260 type 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data 2 entries deleted from stream list (not found in stream)!
0. stream_type : 27 = AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video elementary_pid : $0202 ES_info_length : 0
1. stream_type : 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) elementary_pid : $0289 ES_info_length : 9
2. stream_type : 3 = ISO/IEC 11172 Audio elementary_pid : $0288 ES_info_length : 6
PCR PID is $0202
Created PAT:
----------- PAT 0 ----------- Table ID : 0 Section Syntax Indicator : 1 Reserved Bit 0 : 0 Reserved Bit 1 : 1 Reserved Bit 2 : 1 Section Length : 13 Transport Stream ID : 6 Reserved Bit 3 : 1 Reserved Bit 4 : 1 Version Number : 11 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0
Program Number : $0001 Map PID : $18CF
CRC32 : $02D8FB18 = $02D8FB18 -----------------------------
Created PMT:
----------- PMT 0 ----------- Packet : 1 PID : $18CF Table ID : 2 Section Syntax Indicator : 1 Section Length : 49 Program Number : 1 Version Number : 6 Current Next Indicator : 1 Section Number : 0 Last Section Number : 0 PCR PID : $0202
Program Info Length : 6 Program Info : $09, $04, $0B, $00, $FC, $89
Stream Type : 27 Description : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video Elementary PID : $0202 ES Info Length : 0
Stream Type : 6 Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3) Elementary PID : $0289 ES Info Length : 9 ES Info : $6A, $01, $00, $0A, $04, $65, $6E, $67, $00 ES Info Text : j____eng_
Stream Type : 3 Description : ISO/IEC 11172 Audio Elementary PID : $0288 ES Info Length : 6 ES Info : $0A, $04, $66, $72, $65, $00 ES Info Text : __fre_
CRC32 : $29870363 = $29870363 -----------------------------
First PTS is 2188548940 06:45:17.210 Last PTS is 2188833340 06:45:20.370 First DTS is 0 00:00:00.000 First PCR is 656554845000 06:45:16.846 First PCR´ is 2188516150 06:45:16.846 Duration of video stream is 284400 00:00:03.160
The following PIDs will be imported into new stream: $0202, $0289, $0288
Scanning for video details Video format: H264 1920x1088, Interlaced / 25 fps / High@4.0
-------- H264 Video --------- profile_idc : 100 constrained_set0_flag : 0 constrained_set1_flag : 1 constrained_set2_flag : 0 constrained_set3_flag : 0 reserved_zero_4bits : 0 level_idc : 40 seq_parameter_set_id : 0 chroma_format_idc : 1 bit_depth_luma_minus8 : 0 bit_depth_chroma_minus8 : 0 qpprime_y_zero_transform_bypass_flag : 0 seq_scaling_matrix_present_flag : 0 log2_max_frame_num_minus4 : 8 pic_order_cnt_type : 0 log2_max_pic_order_cnt_lsb_minus4 : 5 num_ref_frames : 2 gaps_in_frame_num_value_allowed_flag : 0 pic_width_in_mbs_minus1 : 119 pic_height_in_map_units_minus1 : 33 frame_mbs_only_flag : 0 mb_adaptive_frame_field_flag : 0 direct_8x8_inference_flag : 1 frame_cropping_flag : 0 vui_parameters_present_flag : 1 aspect_ratio_info_present_flag : 1 aspect_ratio_idv : 1 overscan_info_present_flag : 1 overscan_appropriate_flag : 1 video_signal_type_present_flag : 1 video_format : 5 video_full_range_flag : 1 colour_description_present_flag : 1 colour_primaries : 1 transfer_characteristics : 1 matrix_coefficients : 1 chroma_loc_info_present_flag : 1 chroma_sample_loc_type_top_field : 0 chroma_sample_loc_type_bottom_field : 0 timing_info_present_flag : 1 num_units_in_tick : 1 time_scale : 50 fixed_frame_rate_flag : 1 -----------------------------
WARNING: video_full_range_flag is set! Ignore video_full_range_flag !
Scanning for audio details Audio stream 1: AC3 5.1 48000Hz (ENG) Audio stream 2:
Starting at packet 2 00:00:00.000 WARNING: video_full_range_flag on Changed Sequence Parameter Set (0) video_full_range_flag in packet 1056 byte 66 ERROR: For PID 18CF 2862: Packet discontinuity 0,13 WARNING: video_full_range_flag on Changed Sequence Parameter Set (1) video_full_range_flag in packet 6520 byte 66 WARNING: video_full_range_flag on Changed Sequence Parameter Set (2) video_full_range_flag in packet 11915 byte 66 WARNING: video_full_range_flag on Changed Sequence Parameter Set (3) video_full_range_flag in packet 18213 byte 66 WARNING: video_full_range_flag on Changed Sequence Parameter Set (4) video_full_range_flag in packet 23635 byte 66 WARNING: video_full_range_flag on Changed Sequence Parameter Set (5) video_full_range_flag in packet 29192 byte 66 WARNING: video_full_range_flag on Changed Sequence Parameter Set (6) video_full_range_flag in packet 34590 byte 66
--------- NAL Unit Type Statistic --------- Slices : 462 Data Partition A : 0 Data Partition B : 0 Data Partition A : 0 IDR Picture : 0 SEI : 91 Sequence Parameter Set : 7 Picture Parameter Set : 7 AUD : 77 End of Sequence : 0 End of Stream : 0 Filler : 0 Slices : 0 Seq. Param. Set Ext. : 0
Cutted packets at the beginning: 0 Cutted packets at the end: 0 Discarded packets (not needed): 1097 Changed Sequence Parameter Sets: 7 of 7
ERRORS : 0 WARNINGS : 7
Speed: 3.8 MBytes/sec Duration: 00:00:01
hexdump orig 00000000 47 40 00 10 00 00 b0 0d 00 06 d7 00 00 00 01 f8 |G@..............| 00000010 cf 02 d8 fb 18 ff ff ff ff ff ff ff ff ff ff ff |................| 00000020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 000000b0 ff ff ff ff ff ff ff ff ff ff ff ff 47 58 cf 10 |............GX..| 000000c0 00 02 b0 31 00 01 cd 00 00 e2 02 f0 06 09 04 0b |...1............| 000000d0 00 fc 89 1b e2 02 f0 00 06 e2 89 f0 09 6a 01 00 |.............j..| 000000e0 0a 04 65 6e 67 00 03 e2 88 f0 06 0a 04 66 72 65 |..eng........fre| 000000f0 00 29 87 03 63 ff ff ff ff ff ff ff ff ff ff ff |.)..c...........| 00000100 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00000170 ff ff ff ff ff ff ff ff 47 02 02 10 41 30 04 5c |........G...A0.| 00000180 13 f9 b3 79 af bb 5b 39 33 e1 a0 bf 67 24 70 e5 |...y..[93...g$p.| 00000190 b9 a8 21 33 c7 85 c1 25 6d f3 13 3e c2 d5 f0 76 |..!3...%m..>...v| 000001a0 7f 0f ba 4a 12 df 27 4c d0 04 b0 0f 29 47 a1 8a |...J..'L....)G..| 000001b0 ae 7a cf 6d f9 2d b5 c4 d0 09 e6 0f f6 07 0c 98 |.z.m.-..........| 000001c0 66 6d f6 d2 dc 62 de d6 4f 5a 9d 96 80 2f 0b 0a |fm...b..OZ.../..| 000001d0 82 b2 31 0c fd 28 2d e4 d2 92 e6 6e 9c 98 f1 75 |..1..(-....n...u| 000001e0 36 80 67 07 da 10 38 57 0b 9a ef 5c 5f 82 f0 a5 |6.g...8W..._...| 000001f0 e4 2c 1d 96 7a 6e c8 73 42 d7 eb b3 6a ef 23 ca |.,..zn.sB...j.#.| 00000200 a9 7a 18 ea 28 e0 f9 d9 f9 d3 68 05 0e 10 a0 9d |.z..(.....h.....| 00000210 5c b1 0b 02 5c fb 90 94 ab 0a 37 ac 37 b4 b7 42 |........7.7..B| 00000220 35 ac 86 86 25 61 6e 19 30 26 6c e9 bb 62 08 91 |5...%an.0&l..b..| 00000230 f0 aa 92 73 47 02 02 11 63 b9 01 f6 9d 34 bf ce |...sG...c....4..| 00000240 1a f8 03 27 16 e3 d1 82 cc a5 e3 04 01 af 3f 40 |...'..........?@| 00000250 90 5f ea 65 aa 7c c6 0a b1 62 14 40 3d 1d b8 52 |._.e.|...b.@=..R| 00000260 e4 d5 61 c9 fd 98 7f e5 7b 6f fb 25 b8 f3 9f 81 |..a.....{o.%....| 00000270 17 92 de 7a 84 78 d1 9e 06 cd 26 b6 63 64 33 38 |...z.x....&.cd38| 00000280 83 d2 c5 37 12 89 40 b8 a6 26 93 0c e0 c1 40 38 |...7..@..&....@8| 00000290 45 2f 98 99 f6 0b 12 9b 2f ab be 2c 9f 37 33 df |E/....../..,.73.| 000002a0 86 ea 3f 4b f2 a1 64 14 45 d0 20 ed 7a 5d 2e c9 |..?K..d.E. .z]..| 000002b0 4e 04 04 8c 26 f9 cf 69 f5 b7 d9 68 23 ed 18 ae |N...&..i...h#...| 000002c0 a0 b4 da 3b 9c 76 04 a0 75 b3 f8 31 27 6b c1 86 |...;.v..u..1'k..| 000002d0 76 0b 9d 68 2e a8 d3 8b cc 90 c1 86 45 01 40 6b |v..h........E.@k| 000002e0 b0 94 d8 7e 0f b7 62 87 e5 65 52 e9 62 87 de 6b |...~..b..eR.b..k| 000002f0 47 02 02 12 4b c4 df 3f 6d 0e c2 88 f8 59 9f bc |G...K..?m....Y..|
hexdump fixed 00000000 47 40 00 10 00 00 b0 0d 00 06 d7 00 00 00 01 f8 |G@..............| 00000010 cf 02 d8 fb 18 ff ff ff ff ff ff ff ff ff ff ff |................| 00000020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 000000b0 ff ff ff ff ff ff ff ff ff ff ff ff 47 58 cf 10 |............GX..| 000000c0 00 02 b0 31 00 01 cd 00 00 e2 02 f0 06 09 04 0b |...1............| 000000d0 00 fc 89 1b e2 02 f0 00 06 e2 89 f0 09 6a 01 00 |.............j..| 000000e0 0a 04 65 6e 67 00 03 e2 88 f0 06 0a 04 66 72 65 |..eng........fre| 000000f0 00 29 87 03 63 ff ff ff ff ff ff ff ff ff ff ff |.)..c...........| 00000100 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00000170 ff ff ff ff ff ff ff ff 47 02 02 10 41 30 04 5c |........G...A0.| 00000180 13 f9 b3 79 af bb 5b 39 33 e1 a0 bf 67 24 70 e5 |...y..[93...g$p.| 00000190 b9 a8 21 33 c7 85 c1 25 6d f3 13 3e c2 d5 f0 76 |..!3...%m..>...v| 000001a0 7f 0f ba 4a 12 df 27 4c d0 04 b0 0f 29 47 a1 8a |...J..'L....)G..| 000001b0 ae 7a cf 6d f9 2d b5 c4 d0 09 e6 0f f6 07 0c 98 |.z.m.-..........| 000001c0 66 6d f6 d2 dc 62 de d6 4f 5a 9d 96 80 2f 0b 0a |fm...b..OZ.../..| 000001d0 82 b2 31 0c fd 28 2d e4 d2 92 e6 6e 9c 98 f1 75 |..1..(-....n...u| 000001e0 36 80 67 07 da 10 38 57 0b 9a ef 5c 5f 82 f0 a5 |6.g...8W..._...| 000001f0 e4 2c 1d 96 7a 6e c8 73 42 d7 eb b3 6a ef 23 ca |.,..zn.sB...j.#.| 00000200 a9 7a 18 ea 28 e0 f9 d9 f9 d3 68 05 0e 10 a0 9d |.z..(.....h.....| 00000210 5c b1 0b 02 5c fb 90 94 ab 0a 37 ac 37 b4 b7 42 |........7.7..B| 00000220 35 ac 86 86 25 61 6e 19 30 26 6c e9 bb 62 08 91 |5...%an.0&l..b..| 00000230 f0 aa 92 73 47 02 02 11 63 b9 01 f6 9d 34 bf ce |...sG...c....4..| 00000240 1a f8 03 27 16 e3 d1 82 cc a5 e3 04 01 af 3f 40 |...'..........?@| 00000250 90 5f ea 65 aa 7c c6 0a b1 62 14 40 3d 1d b8 52 |._.e.|...b.@=..R| 00000260 e4 d5 61 c9 fd 98 7f e5 7b 6f fb 25 b8 f3 9f 81 |..a.....{o.%....| 00000270 17 92 de 7a 84 78 d1 9e 06 cd 26 b6 63 64 33 38 |...z.x....&.cd38| 00000280 83 d2 c5 37 12 89 40 b8 a6 26 93 0c e0 c1 40 38 |...7..@..&....@8| 00000290 45 2f 98 99 f6 0b 12 9b 2f ab be 2c 9f 37 33 df |E/....../..,.73.| 000002a0 86 ea 3f 4b f2 a1 64 14 45 d0 20 ed 7a 5d 2e c9 |..?K..d.E. .z]..| 000002b0 4e 04 04 8c 26 f9 cf 69 f5 b7 d9 68 23 ed 18 ae |N...&..i...h#...| 000002c0 a0 b4 da 3b 9c 76 04 a0 75 b3 f8 31 27 6b c1 86 |...;.v..u..1'k..| 000002d0 76 0b 9d 68 2e a8 d3 8b cc 90 c1 86 45 01 40 6b |v..h........E.@k| 000002e0 b0 94 d8 7e 0f b7 62 87 e5 65 52 e9 62 87 de 6b |...~..b..eR.b..k| 000002f0 47 02 02 12 4b c4 df 3f 6d 0e c2 88 f8 59 9f bc |G...K..?m....Y..|
Yesterday it happened - I tested Frank's patch and got a success for Streamdev - PopcornHour streaming. SD/HD channels streams nicely with TS-format so now more need to fiddle with PES-format streaming.
Patch v4 can be found on streamdev-site http://www.vdr-developer.org/mantisbt/view.php?id=496
On top of it a small modification must be applied by hand, found on same site on 'message section' as "retransmit PAT". I believe there will be a merge to source tree as patches fix some other non-standard TS features as well.
For streaming H.264 HD channels you also need H.264 patch for VDR core.
--
Another way of making PCH to stream is to use latest VDR with Klaus' TS support and Streamdev. Here is a success report on NMT forum and list of patches for VDR needed.
http://www.networkedmediatank.com/showthread.php?tid=1696&page=2
--
Thanks Frank for your support on 'my project'. Now I am able to watch my HD channels with full quality and no micro-judders etc. Now we PCH users need a MSP plugin to provide web pages for PCH's browser, I have something like 'vdradmin-am for PCH' in my mind.
BR, Jori
On 18 Nov 2008, at 18:11, jori.hamalainen@teliasonera.com wrote:
esterday it happened - I tested Frank's patch and got a success for Streamdev - PopcornHour streaming. SD/HD channels streams nicely with TS-format so now more need to fiddle with PES-format streaming.
Can you post a quick review of how using popcorn clients with VDR works, with screenshots etc?
Torgeir Veimo schrieb:
On 18 Nov 2008, at 18:11, jori.hamalainen@teliasonera.com wrote:
esterday it happened - I tested Frank's patch and got a success for Streamdev - PopcornHour streaming. SD/HD channels streams nicely with TS-format so now more need to fiddle with PES-format streaming.
Can you post a quick review of how using popcorn clients with VDR works, with screenshots etc?
Screenshots would be nice.
esterday it happened - I tested Frank's patch and got a success for Streamdev - PopcornHour streaming. SD/HD channels streams nicely with TS-format so now more need to fiddle with PES-format streaming.
Can you post a quick review of how using popcorn clients with VDR works, with screenshots etc?
Sure it is possible after I get access to PCH at home.
But still this success was a "back end system" -success so there is no fancy GUI for PCH. PCH just shows the same web page as PC would show, as I enter the http://vdr:3000/TS/all.html -web page with it.
---
I see there is not much screenshots on the web on PCH GUI. But here is one example what users can do with skins & MSP & Apache & Tomcat or PHP.
http://www.networkedmediatank.com/showthread.php?tid=7974
- Use can see more GUI captures on this Skins -section of the forum
---
Here are some MSP plugins generated by users - and which you can test with your PC like PCH would run it. So these are fully available under PCH's web services menu.
http://www.mspsite.com/index.php?c=8
Apple movie trailers: http://plugin.mspsite.com/action/showservice.jsp?homePath=http://www.mspport al.com/community&serviceid=AppleMovieTrailers&res=1280x720
I think MSP plugin would be best option for PCH GUI for the VDR. Easy to customize and expand compared to 'hard code features' into Streamdev's menuhttp.c-file. So the MSP plugin for VDR just needs to sit on VDR machine - generate read data via SVDRP and generate screens with correct URLs for channels and correct mount point URLs for recordings (first mount VDR 'video' drive to PCH and tell plugin the mount name of PCH).
Please note that we have been talking VDR-PCH interaction. Perhaps it should be changed to VDR-NMT as NMT (Networked Media Tank) is more like a standard - so all devices compatible with this streaming TS and MSP for UI should work.
There are more NMT players: HDX 1000, M31B, DVP-570X, PCH
Best regards, Jori
Can you post a quick review of how using popcorn clients with VDR works, with screenshots etc?
Better screenshots - What you get with PCH
http://myhdworld.multiply.com/photos/album/2/POPCORN_HOUR_Screenshots
Hi,
I want to ask you about actual state of streamdev-server for NMT Popcornhour (A-110). I have vdr-1.7.0 and streamdev-0.3.4 with patch patpmt_first_v5.diff.
Streamimg to Popcornhour is practically O.K. (without image failure), but sometimes popcornhour freezes and hard restart is needed. And sometimes it takes a long time at buffering (between select channel and start playing). VLC clients works fine.
I want to ask you about some additional patches for streamdev or some advices for solve this issues.
Thank you
Regards Tomas S.
2008/11/20 jori.hamalainen@teliasonera.com:
Can you post a quick review of how using popcorn clients with VDR works, with screenshots etc?
Better screenshots - What you get with PCH
http://myhdworld.multiply.com/photos/album/2/POPCORN_HOUR_Screenshots
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Hello,
I am trying to view HD movies with vdr-1.6.0 and mplayer 1.0rc2-4.3.2. Of course, because I am using Nexus output, vdr has to resample the files to SD (720x576). Even if my vdrbox has a E4500 Core2Duo and 2GB RAM, 1080p movies are jerky (sound and image). After more tests, I noticed a different behaviour, according I run mplayer alone, or from vdr :
mplayer alone - the two cores were used at the same level.
mplayer via vdr - one core is at 100% and the second is about 40%
Is there any way to tune vdr to run mplayer using hte 2 cores ? Did I missed something ?
Thanks
Streamimg to Popcornhour is practically O.K. (without image failure), but sometimes popcornhour freezes and hard restart is needed. And sometimes it takes a long time at buffering (between select channel
and start playing).
On my DVB-C x2 setup I see that I cannot stream, but this is because I don't have resources available for decrypting HD-streams for live streaming. Usually video start with small (3-5s) delay, and you can see it when PCH displays what audio track it is going to play.
But I've never had my device locked up (A100) with streamdev. Just this 'unavailable' channel so it is trying to buffer, then after 20s returns to menu. Perhaps streamdev should be able to announce if it cannot get the requested stream by sending pre-rendered MPEG-clip with "channel unavailable because of resources".
I want to ask you about some additional patches for streamdev or some
advices for solve this issues.
I think you should capture streams with WGET to your VDR disk, try to play them with PCH, and if you see a failure, then run it with tsdoctor (runs with wine) and communicate it with vdr-streamdev author Frank. He was very helpfull on generating PCH patches 1-5 to streamdev, I just tested those on my setup.
- Jori
Maybe streamdevs cStreamdevPatFilter::GetPid() filtered too much. Could you recompile streamdev with debug output enabled:
cd STREAMDEV_SRC_DIR; make clean; DEBUG=1 make all
Plese post the debug output (sent to stderr) as well as the messages from the log.
This trace has been done after PAT/PMT ver 1 patch.. I have not ran it yet, I want to test PAT-1st-packet-patch first, to see if it helps.
stderr: constructor hsRequest command GET /C-0-13-3805.ts HTTP/1.0 Request command User-Agent: Wget/1.11.1 header command Accept: */* header command Host: 127.0.0.1:3000 Host-Header header command Connection: Keep-Alive header command process before channelfromstring: type() param() filespec(C-0-13-3805) fileext(.ts) query() Apid is 0 after channelfromstring * GetDevice(const cChannel*, int) * ------------------------------- * Found following device: 0xb63cd8a8 (1) * NOT suspended Initializing Remuxer for full channel transfer cStreamdevPatFilter("Voom HD")OUT: |HTTP/1.0 200 OK| OUT: |Content-Type: video/mpeg| OUT: || streamer start start streamer cStreamdevLiveStreamer::Attach() cStreamdevPatFilter: PMT pid for channel Voom HD: 6351Creating Receiver to respect changed pids Attaching new receiver cStreamdevLiveStreamer::Attach() LiveReceiver->Activate(1) activate streamer Writer start cStreamdevPatFilter PMT scanner adding PID 514 (ISO/IEC 14496-10 Video (MPEG-4 part 10/AVC, aka H.264))cStreamdevPatFilter PMT scanner: adding PID 649 (ISO/IEC 13818-1 Private PES data) AC3cStreamdevPatFilter PMT scanner adding PID 648 (ISO/IEC 11172 Audio)cStreamdevPatFilter PMT scanner: adding PID 605 (ISO/IEC 13818-1 Private PES data) DVBSUBcStreamdevPatFilter PMT scanner: adding PID 608 (ISO/IEC 13818-1 Private PES data) DVBSUBKilling live receiver LiveReceiver->Activate(0) Creating Receiver to respect changed pids Attaching new receiver cStreamdevLiveStreamer::Attach() LiveReceiver->Activate(1) Desctructing Live streamer stopping streamer cStreamdevLiveStreamer::Detach() LiveReceiver->Activate(0) destructing writer Max. Transmit Blocksize was: 261767 cStreamdevLiveStreamer::Detach() Killing live receiver Desctructing streamer
Log from /var/log/messagesNov 12 23:16:09 vdr vdr: [30581] Streamdev: Accepted new client (HTTP) 127.0.0.1:56782 Nov 12 23:16:09 vdr vdr: [30581] CAM 4: assigned to device 1 Nov 12 23:16:10 vdr vdr: [30604] streamdev-writer thread started (pid=30563, tid=30604) Nov 12 23:16:10 vdr vdr: [30605] streamdev-livestreaming thread started (pid=30563, tid=30605) Nov 12 23:16:10 vdr vdr: [30606] receiver on device 1 thread started (pid=30563, tid=30606) Nov 12 23:16:10 vdr vdr: [30607] TS buffer on device 1 thread started (pid=30563, tid=30607) Nov 12 23:16:10 vdr vdr: [30608] ecmhandler 0 filter thread started (pid=30563, tid=30608) Nov 12 23:16:10 vdr vdr: [30607] TS buffer on device 1 thread ended (pid=30563, tid=30607) Nov 12 23:16:10 vdr vdr: [30606] buffer stats: 128592 (6%) used Nov 12 23:16:10 vdr vdr: [30606] receiver on device 1 thread ended (pid=30563, tid=30606) Nov 12 23:16:10 vdr vdr: [30609] receiver on device 1 thread started (pid=30563, tid=30609) Nov 12 23:16:10 vdr vdr: [30610] TS buffer on device 1 thread started (pid=30563, tid=30610) Nov 12 23:16:10 vdr vdr: [30568] changing pids of channel 103 from 514+514:648=fra;649=eng:0:0 to 514+514:648=fra;649=eng:605=sve,608=fin:0 Nov 12 23:16:11 vdr vdr: [30568] changing pids of channel 129 from 513+513:644=eng;645=eng:0:0 to 513+513:644=eng;645=eng:604=sve,607=fin:0 Nov 12 23:16:24 vdr vdr: [30581] client (HTTP) 127.0.0.1:56782 has closed connection Nov 12 23:16:24 vdr vdr: [30581] streamdev: closing streamdev connection to 127.0.0.1:56782 Nov 12 23:16:24 vdr vdr: [30605] streamdev-livestreaming thread ended (pid=30563, tid=30605) Nov 12 23:16:24 vdr vdr: [30604] streamdev-writer thread ended (pid=30563, tid=30604) Nov 12 23:16:24 vdr vdr: [30610] TS buffer on device 1 thread ended (pid=30563, tid=30610) Nov 12 23:16:24 vdr vdr: [30581] buffer stats: 359832 (8%) used Nov 12 23:16:24 vdr vdr: [30609] buffer stats: 218832 (10%) used Nov 12 23:16:24 vdr vdr: [30609] receiver on device 1 thread ended (pid=30563, tid=30609)