PDA

View Full Version : Some TS files played via DLNA cause TV to hang. Please help



mike tv
01-27-2012, 04:18 PM
Hi I've come across a very strange playback issue via DLNA. I am trying to play standard definition MPEG2 TS [DVB-S] from a Humax Foxsat PVR [running MediaTomb] over Ethernet/cat 5 cable on my Philips 32 PFL7606 [Firmware 0.14.93.0]

I noticed it can play a lot of TS files from the Foxsat but not all. When I looked into it there was a pattern. I discovered that its is not able to play the recorded .TS files form certain specific channels. What is really strange is there is a channel: Film 4 and it has a +1 hour version Film 4+1. Its the same programming shown one hour later, but the recorded TS files from Film4+1 don't play where as the TS from Film4 do play!

I did a review of the channels I am interested on the Foxsat and out of the 54 channels I tested the 32PFL7606 couldn't play the TS files from 12 of them.

When the TV tries to play a TS file from one of the *wrong* channels it causes the TV to sort of hang. And sometimes 4 little dots appear and nothing happens the screen stays blank.

I tried my best to analyze the *bad* TS files. I looked at MediaInfo results for the files, FFMEG results, ProjectX log files, VLC log files but I'm just not knowledgeable enough to spot anything wrong in the files.

I also had the same issue streaming copies of the same files from my Mac to the TV using Serviio DLNA software. TS files from *good* channels would play but the TS files from the *bad* channels wouldn't. So its not an issue related to the Foxsat PVR.


Does any one have the skill or software to analyze a 30 second sample of a *good* [Film4] TS and a *bad* TS[Film4+1] and see if they can figure out whats causeing the TV to hang? I can upload the samples if any one could help.

Also Is there any way that the TV could output a log file that I could take a look at?


Any help appreciated. Thanks.

Möp
02-02-2012, 10:03 PM
Did you check the differences in GOP length?
There are maximum GOP-sizes specified for DVD-compliant MPEG2-Streams: 15 frames NTSC, 12 frames PAL: http://documentation.apple.com/... (http://documentation.apple.com/en/compressor/usermanual/index.html#chapter=18%26section=5%26tasks=true)
DVB-MPEG2-Streams, which are broadcasted over DVB-S, contain larger GOPs. Some MPEG-Decoders cannot process these streams properly.

Could you upload the ProjectX-logs?

mike tv
02-06-2012, 05:59 PM
Hi Möp, thanks for the reply.
I'm not quite sure how to check the GOP length. Looking at their MediaInfo details their "Format settings, GOP" seem to be the same.

Its worth noting that the TV plays quite a lot of the DVB-S TS files no problem.

Thank for that link I'll read up on it.





Could you upload the ProjectX-logs?

These are the "normal" log files. I can also get ProjectX to out put a "big" log file. I've also posted the MediaInfo details too.


Project X log for Film 4 TS. This one plays on the Philips TV via DLNA

Monday, February 6, 2012 5:31:24 PM GMT
ProjectX 0.91.00.02 (14.08.2011)

-> working with collection 0

-> save normal log file
-> log 'packets out of sequence' / bit errors
-> log 'missing startcodes'
-> log 'PES header found in ES'
-> log WSS
-> log VPS
-> log RDS
-> log max. 500 warnings/errors
-> write all video data
-> write all other data
-> patch c.d.flagged infos of pictures
-> add sequence end code
-> set resolution in SDE
-> PVA: strictly specs. for audio streams
-> VOB: determine diff. Cell timelines
-> TS: ignore scrambled packets
-> TS: enhanced search for open packets
-> TS: join file segments (of Dreambox®)
-> TS: generate PMT stream dependent
-> get only enclosed PES/TS packets
-> concatenate different recordings
-> ensure 1st PES-packet start with video
-> generate PCR/SCR from PTS

-> write output files to: '/Philips Project x'

-> main I/O-Buffersize in bytes 4096000 bytes

FileSegments:
* (0) /Philips Project x/Film4_20120120_1713.ts
second. Files:
* ---

+> Input File 0: '/Philips Project x/Film4_20120120_1713.ts' (27,145,152 bytes)
-> Filetype is TS (generic PES Container)
-> demux
-> Service ID 0x2404
-> PMT 0x010A refers to these usable streams:
Video:
PID: 0x0931(#6)(MPEG-2)
Audio:
PID: 0x0932{eng}(#150)(Mpg2)
PID: 0x0933{NAR}(#151)(Mpg2)
Teletext:
PID: 0x0934(eng_s888 eng_i100 )(#70)
Subpict.:
PID: 0x0935(eng_0x10_p2_a2 )

!> missing sync. byte @ 0
!> found sync. byte @ 4
ok> PID 0x0934 has PES-ID 0xBD (private stream 1) (TTX) (5384 #29)
ok> PID 0x0931 has PES-ID 0xE0 (MPEG Video) (16904 #89)
!> PID 0x010A (PMT) (39752 #208) -> ignored
ok> PID 0x0932 has PES-ID 0xC0 (MPEG Audio) (41288 #216)
!> PID 0x0000 (PAT) (66440 #347) -> ignored
ok> PID 0x0933 has PES-ID 0xC0 (MPEG Audio) (72776 #380)
-> video basics: 704*576 @ 25fps @ 0.6735 (4:3) @ 15000000 bps - vbv 98
-> starting export of video data @ GOP# 0
!> dropping useless B-Frames @ GOP# 0 / new Timecode 00:00:00.000
ok> PID 0x0935 has PES-ID 0xBD (private stream 1) (SubID 0x20) (369224 #1924)
packs: 140609 100% 27145152

++> Mpg Video: PID 0x0931 / PesID 0xE0 / SubID 0x00 :
-> Video: fr-ct-1p-cg-og-dg -> 1225-1-0-102-0-0
-> Video length: 1225 frames @ 00:00:49.000
-> GOP summary: min. 18, max. 36 fields; contains interlaced frames
-> avg. nom. bitrate 3735650bps (min/max: 2160800/5454000)
-> set first sequenceheader bitrate to 5454000bps
---> new File: /Philips Project x/Film4_20120120_1713.m2v

++> Teletext: PID 0x0934 / PesID 0xBD / SubID 0x19 :

++> Mpg Audio: PID 0x0932 / PesID 0xC0 / SubID 0x00 :
-> check CRC of AC-3 / MPEG-Audio L1,2
-> remove CRC in MPEG-Audio L1,2
-> add frames
-> Audio PTS: first packet 12:13:35.057, last packet 12:14:24.617
-> Video PTS: start 1.GOP 12:13:35.707, end last GOP 12:14:24.707
-> adjusting audio at video-timeline
-> src_audio: MPEG-1, Layer2, 48000Hz, stereo, 192kbps, CRC @ 00:00:00.000
audio frames: wri-pre-skip-ins-add 2042-0-0-0-0 @ 00:00:49.008 done...
---> new File: '/Philips Project x/Film4_20120120_1713.mp2'

++> Mpg Audio: PID 0x0933 / PesID 0xC0 / SubID 0x00 :
-> check CRC of AC-3 / MPEG-Audio L1,2
-> remove CRC in MPEG-Audio L1,2
-> add frames
-> Audio PTS: first packet 12:13:35.177, last packet 12:14:24.737
-> Video PTS: start 1.GOP 12:13:35.707, end last GOP 12:14:24.707
-> adjusting audio at video-timeline
-> src_audio: MPEG-1, Layer2, 48000Hz, jstereo, 128kbps, CRC @ 00:00:00.000
audio frames: wri-pre-skip-ins-add 2042-0-0-0-0 @ 00:00:49.008 done...
---> new File: '/Philips Project x/Film4_20120120_1713-02.mp2'

++> Subpicture: PID 0x0935 / PesID 0xBD / SubID 0x20 :
Multicolor OFF / switches 00000000
-> selected DVB subpicture color model: (0) 4 colors ; fixed to page id:
-> export format: sup
-> temp. file: Film4_20120120_1713.sp (36459 bytes)
-> Subpicture PTS: first packet 12:13:37.726, last packet 12:14:21.947
-> Video PTS: start 1.GOP 12:13:35.707, end last GOP 12:14:24.707
-> adjusting subpicture at video-timeline
-> source is DVB Subtitle...
7 subpictures written...
---> new File: /Philips Project x/Film4_20120120_1713.sup

summary of created media files:
.Video (m2v): 1225 Frames 00:00:49.000 '/Philips Project x/Film4_20120120_1713.m2v'
Audio 00 (mp2): 2042 Frames 00:00:49.008 0-0-0-0 '/Philips Project x/Film4_20120120_1713.mp2'
Audio 01 (mp2): 2042 Frames 00:00:49.008 0-0-0-0 '/Philips Project x/Film4_20120120_1713-02.mp2'
SubPicture 00: 7 subpictures '/Philips Project x/Film4_20120120_1713.sup'
=> 24,880,569 bytes written...
-> we have 5 warnings/errors.



Project X log for Film 4+1 TS. This one does not play on the Philips TV via DLNA


Monday, February 6, 2012 5:33:21 PM GMT
ProjectX 0.91.00.02 (14.08.2011)

-> working with collection 0

-> save normal log file
-> log 'packets out of sequence' / bit errors
-> log 'missing startcodes'
-> log 'PES header found in ES'
-> log WSS
-> log VPS
-> log RDS
-> log max. 500 warnings/errors
-> write all video data
-> write all other data
-> patch c.d.flagged infos of pictures
-> add sequence end code
-> set resolution in SDE
-> PVA: strictly specs. for audio streams
-> VOB: determine diff. Cell timelines
-> TS: ignore scrambled packets
-> TS: enhanced search for open packets
-> TS: join file segments (of Dreambox®)
-> TS: generate PMT stream dependent
-> get only enclosed PES/TS packets
-> concatenate different recordings
-> ensure 1st PES-packet start with video
-> generate PCR/SCR from PTS

-> write output files to: '/Philips Project x'

-> main I/O-Buffersize in bytes 4096000 bytes

FileSegments:
* (0) /Philips Project x/Film4+1_20120120_1714.ts
second. Files:
* ---

+> Input File 0: '/Philips Project x/Film4+1_20120120_1714.ts' (17,869,632 bytes)
-> Filetype is TS (generic PES Container)
-> demux
-> Service ID 0x2409
-> PMT 0x0107 refers to these usable streams:
Video:
PID: 0x0937(#8)(MPEG-2)
Audio:
PID: 0x0938{eng}(#154)(Mpg2)
PID: 0x0939{NAR}(#155)(Mpg2)
Teletext:
PID: 0x093A(eng_s888 eng_i100 )(#72)
Subpict.:
PID: 0x093B(eng_0x10_p2_a2 )

!> missing sync. byte @ 0
!> found sync. byte @ 4
ok> PID 0x093A has PES-ID 0xBD (private stream 1) (TTX) (6344 #34)
ok> PID 0x0937 has PES-ID 0xE0 (MPEG Video) (6728 #36)
ok> PID 0x0938 has PES-ID 0xC0 (MPEG Audio) (19400 #102)
!> PID 0x0107 (PMT) (49928 #261) -> ignored
!> PID 0x0000 (PAT) (68744 #359) -> ignored
ok> PID 0x0939 has PES-ID 0xC0 (MPEG Audio) (83144 #434)
-> video basics: 704*576 @ 25fps @ 0.6735 (4:3) @ 15000000 bps - vbv 98
-> starting export of video data @ GOP# 0
!> dropping useless B-Frames @ GOP# 0 / new Timecode 00:00:00.000
ok> PID 0x093B has PES-ID 0xBD (private stream 1) (SubID 0x20) (512456 #2670)
packs: 92325 100% 17869632

++> Mpg Video: PID 0x0937 / PesID 0xE0 / SubID 0x00 :
-> Video: fr-ct-1p-cg-og-dg -> 1150-1-0-97-0-0
-> Video length: 1150 frames @ 00:00:46.000
-> GOP summary: min. 12, max. 24 fields; contains interlaced frames
-> avg. nom. bitrate 2522836bps (min/max: 1686800/4168000)
-> set first sequenceheader bitrate to 4168000bps
---> new File: /Philips Project x/Film4+1_20120120_1714.m2v

++> Teletext: PID 0x093A / PesID 0xBD / SubID 0x19 :

++> Mpg Audio: PID 0x0938 / PesID 0xC0 / SubID 0x00 :
-> check CRC of AC-3 / MPEG-Audio L1,2
-> remove CRC in MPEG-Audio L1,2
-> add frames
-> Audio PTS: first packet 12:14:37.702, last packet 12:15:24.262
-> Video PTS: start 1.GOP 12:14:38.512, end last GOP 12:15:24.512
-> adjusting audio at video-timeline
-> src_audio: MPEG-1, Layer2, 48000Hz, stereo, 192kbps, CRC @ 00:00:00.000
!> 6 frame(s) (144ms) added @ 00:00:45.864
audio frames: wri-pre-skip-ins-add 1917-0-0-0-6 @ 00:00:46.008 done...
---> new File: '/Philips Project x/Film4+1_20120120_1714.mp2'

++> Mpg Audio: PID 0x0939 / PesID 0xC0 / SubID 0x00 :
-> check CRC of AC-3 / MPEG-Audio L1,2
-> remove CRC in MPEG-Audio L1,2
-> add frames
-> Audio PTS: first packet 12:14:38.022, last packet 12:15:24.342
-> Video PTS: start 1.GOP 12:14:38.512, end last GOP 12:15:24.512
-> adjusting audio at video-timeline
-> src_audio: MPEG-1, Layer2, 48000Hz, jstereo, 64kbps, CRC @ 00:00:00.000
!> 2 frame(s) (48ms) added @ 00:00:45.960
audio frames: wri-pre-skip-ins-add 1917-0-0-0-2 @ 00:00:46.008 done...
---> new File: '/Philips Project x/Film4+1_20120120_1714-02.mp2'

++> Subpicture: PID 0x093B / PesID 0xBD / SubID 0x20 :
Multicolor OFF / switches 00000000
-> selected DVB subpicture color model: (0) 4 colors ; fixed to page id:
-> export format: sup
-> temp. file: Film4+1_20120120_1714.sp (72603 bytes)
-> Subpicture PTS: first packet 12:14:40.724, last packet 12:15:22.134
-> Video PTS: start 1.GOP 12:14:38.512, end last GOP 12:15:24.512
-> adjusting subpicture at video-timeline
-> source is DVB Subtitle...
16 subpictures written...
---> new File: /Philips Project x/Film4+1_20120120_1714.sup

summary of created media files:
.Video (m2v): 1150 Frames 00:00:46.000 '/Philips Project x/Film4+1_20120120_1714.m2v'
Audio 00 (mp2): 1917 Frames 00:00:46.008 0-0-0-6 '/Philips Project x/Film4+1_20120120_1714.mp2'
Audio 01 (mp2): 1917 Frames 00:00:46.008 0-0-0-2 '/Philips Project x/Film4+1_20120120_1714-02.mp2'
SubPicture 00: 16 subpictures '/Philips Project x/Film4+1_20120120_1714.sup'
=> 16,050,599 bytes written...
-> we have 7 warnings/errors.



Here is the Media Info details too


Media Info for Film4 TS. This one plays on the Philips TV via DLNA.

General
ID : 2041 (0x7F9)
Complete name : /Philips Project x/Film4_20120120_1713.ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 25.9 MiB
Duration : 49s 533ms
Overall bit rate mode : Variable
Overall bit rate : 4 361 Kbps

Video
ID : 2353 (0x931)
Menu ID : 9220 (0x2404)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
Codec ID : 2
Duration : 49s 240ms
Bit rate mode : Variable
Bit rate : 3 852 Kbps
Maximum bit rate : 15.0 Mbps
Width : 704 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Active Format Description : Pillarbox 4:3 image
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.380
Stream size : 22.6 MiB (87%)

Audio #1
ID : 2354 (0x932)
Menu ID : 9220 (0x2404)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 4
Duration : 49s 536ms
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 1.13 MiB (4%)
Language : English

Audio #2
ID : 2355 (0x933)
Menu ID : 9220 (0x2404)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Mode : Joint stereo
Codec ID : 4
Duration : 49s 464ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 773 KiB (3%)
Language : nar

Text #1
ID : 2356 (0x934)-100
Menu ID : 9220 (0x2404)
Format : Teletext
Language : English

Text #2
ID : 2356 (0x934)-888
Menu ID : 9220 (0x2404)
Format : Teletext Subtitle
Language : English

Text #3
ID : 2357 (0x935)
Menu ID : 9220 (0x2404)
Format : DVB Subtitle
Codec ID : 6
Duration : 46s 764ms
Delay relative to video : 2s 59ms
Language : English

Menu
ID : 266 (0x10A)
Menu ID : 9220 (0x2404)
Duration : 49s 533ms
List : 2353 (0x931) (MPEG Video) / 2354 (0x932) (MPEG Audio, English) / 2355 (0x933) (MPEG Audio, nar) / 2356 (0x934) () / 2357 (0x935) (DVB Subtitle, English)
Language : / English / nar / / English



MediaInfo for Film4+1 TS. This one does not play on the Philips TV via DLNA.

General
ID : 2041 (0x7F9)
Complete name : /Philips Project x/Film4+1_20120120_1714.ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 17.0 MiB
Duration : 46s 369ms
Overall bit rate mode : Variable
Overall bit rate : 3 058 Kbps

Video
ID : 2359 (0x937)
Menu ID : 9225 (0x2409)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
Codec ID : 2
Duration : 46s 0ms
Bit rate mode : Variable
Bit rate : 2 664 Kbps
Maximum bit rate : 15.0 Mbps
Width : 704 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Active Format Description : Pillarbox 4:3 image
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.263
Stream size : 14.6 MiB (86%)

Audio #1
ID : 2360 (0x938)
Menu ID : 9225 (0x2409)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 4
Duration : 46s 320ms
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 1.06 MiB (6%)
Language : English

Audio #2
ID : 2361 (0x939)
Menu ID : 9225 (0x2409)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Mode : Joint stereo
Codec ID : 4
Duration : 46s 296ms
Bit rate mode : Constant
Bit rate : 64.0 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 362 KiB (2%)
Language : nar

Text #1
ID : 2362 (0x93A)-100
Menu ID : 9225 (0x2409)
Format : Teletext
Language : English

Text #2
ID : 2362 (0x93A)-888
Menu ID : 9225 (0x2409)
Format : Teletext Subtitle
Language : English

Text #3
ID : 2363 (0x93B)
Menu ID : 9225 (0x2409)
Format : DVB Subtitle
Codec ID : 6
Duration : 43s 803ms
Delay relative to video : 2s 292ms
Language : English

Menu
ID : 263 (0x107)
Menu ID : 9225 (0x2409)
Duration : 46s 369ms
List : 2359 (0x937) (MPEG Video) / 2360 (0x938) (MPEG Audio, English) / 2361 (0x939) (MPEG Audio, nar) / 2362 (0x93A) () / 2363 (0x93B) (DVB Subtitle, English)
Language : / English / nar / / English

Möp
02-08-2012, 01:00 PM
Thank you for the log files.
You find the GOP-lenghts in the "++> Mpg Video:"-section in the log of ProjectX.

It seems that we don't have a GOP-Problem here. It must be something else.
Film 4 TS which plays fine:

-> GOP summary: min. 18, max. 36 fields; contains interlaced frames
Film 4+1 which doesn't play:

-> GOP summary: min. 12, max. 24 fields; contains interlaced frames
Thats means the MPEG2-Decoder can handle large GOPs.

Let's check:
[x] You already have the latest ProjectX-Release.
[x] Format, resolution, aspect ratio: identical
[x] Bit rate: 4 361 Kbps plays fine, 3 058 Kbps not.

I'm sorry I think I can't help you. I'm not an expect, just had the GOP-Problem with different DVD-Players.
[ ] What about USB-Playback? Is it the same behaviour compared to DLNA?

mike tv
02-09-2012, 02:51 PM
I'm sorry I think I can't help you. I'm not an expert..

No need to apologize. That link you posted previously and the info on GOP has been educational for me. :)



.
[ ] What about USB-Playback? Is it the same behaviour compared to DLNA?
I'm going to do some test on that and I'll post back with my results.

Thanks again

mike tv
02-14-2012, 05:40 PM
I'm after discovering that if I let the TV try and play some of problem .TS files [via DLNA] for long enough it will eventually play them !

If I press play, then the TV screen goes black and if I leave it for around 2 mins the file plays perfectly. However there are some that don't play. I left them for around 5-6 mins and the TV eventually just moves on to the next file in the folder.

bruzzel
02-24-2012, 10:46 AM
Hi,
i am just reading in thi sforum and found this topic.
I have nearly the same problem :
Streaming is done by mediatomb installed on a dreambox DM800SE HD. (internal HDD)
Streaming of open HD movies (ARD/ZDF/ARTE...) is ok, i can watch them on the TV
Streaming of HD+ movies (RTL/SAT/Kabel...) is not ok, the TV tries to open the file, but display stays black.
The funny thing is, when i cut the ads with DVR-Studio and save the .ts file back to HDD in Dreambox, then i can watch this movie on my TV via streaming.
BTW. Both, Dreambox and TV, have a valid HD+ Smartcard and both have the latest software.
What happens, has anyone a good idea?
Regards
Reinhard

mike tv
02-29-2012, 05:53 PM
the TV tries to open the file, but display stays black.


When the screen goes black have you tried simply leaving it alone and waiting? I was surprised to find if I waited for 2 or 3 minutes or more some problem files actually did eventually played. Its not ideal but its better than nothing.

There is another issue with your situation, the TV isn't actually DLNA certified to play streamed HD content. The DLNA cert only has it covered for SD: MPEG_TS_SD_EU
Having said that, I have been able to play some HD .ts files via DLNA. I haven't tested it too much though as I don't have a lot of HD content to test with.

DLNA Cert for 32PFL7606 http://certification.dlna.org/certs/REG70044771.pdf