Opened 11 years ago

Closed 10 years ago

#5388 closed defect (fixed)

ITV HD does not work

Reported by: anonymous Owned by: Janne Grunau
Priority: minor Milestone: 0.22
Component: mythtv Version: head
Severity: medium Keywords:
Cc: stuartm Ticket locked: no

Description

I am trying to get ITV HD working on MythTV. The channel is meant to be exclusive to FreeSat? and ITV don't want it to work with Sky HD boxes until they sort out a contract with them.

In order to prevent it working they are supposedly advertising their stream as a h.222 stream when in fact it is h.264.

I have managed to get MythTV to recognize the channel, which shows up as "10510", but playing back anything is not currently possible.

Looking at the logs, it seems that MythTV is incorrectly detecting the video stream as MPEG-1 video, but it is detecting the audio stream correctly as A52. Here's an extract from the log

2008-05-22 03:52:39.357 AFD: Stream #0, has id 0x3401 codec id MPEG1VIDEO, type Video, bitrate 0 at 0x0x19bc630

There is a thread over at Digital Spy which is following the happenings with the channel here: http://www.digitalspy.co.uk/forums/showthread.php?t=788062

Any help in getting this working would be appreciated.

Attachments (3)

itvhd.diff (648 bytes) - added by anonymous 11 years ago.
itvhd2.diff (570 bytes) - added by foobum@… 11 years ago.
Patch output pmt to support ITV HD
itvhdfix.diff (1.0 KB) - added by robert.mcnamara@… 11 years ago.
Fix for ITV HD without hacking the PID

Download all attachments as: .zip

Change History (18)

comment:1 Changed 11 years ago by Janne Grunau

Owner: changed from Isaac Richards to Janne Grunau
Status: newassigned

comment:2 Changed 11 years ago by anonymous

A patch to get ITV HD working has been posted on the mailing list.

Not ideal, but gets it working

http://mythtv.org/pipermail/mythtv-users/2008-June/224375.html

Changed 11 years ago by anonymous

Attachment: itvhd.diff added

comment:3 Changed 11 years ago by anonymous

A more specific patch which looks for ITV HD's specific stream id instead of generically converting all MPEG-1 into h.264 HD.

comment:4 Changed 11 years ago by stuartm

Cc: stuartm added
Milestone: unknown0.22
Version: unknownhead

comment:5 Changed 11 years ago by anonymous

It seems ITV are using some advanced h.264 techniques which are not yet supported by FFMPEG yet.

The following is logged when viewing ITV HD

[h264 @ 0x7fdcd2dea0d0]Interlaced pictures + spatial direct mode is not implemented

Although you do get picture and sound with the patch, there is corruption in the picture due to the unimplemented feature.

comment:6 Changed 11 years ago by cpwp@…

I've applied this patch to 0.21-fixes but still can't get any picture/sound on the ITV HD channel.

Any ideas?

Charlie

2008-08-27 22:04:33.431 Forcing h.264 for ITV HD workaround
2008-08-27 22:04:33.468 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'
2008-08-27 22:04:34.009 AFD: Opened codec 0xa450360, id(H264) type(Video)
2008-08-27 22:04:34.010 AFD: codec AC3 has 2 channels
2008-08-27 22:04:34.033 AFD: Opened codec 0xb068cd0, id(AC3) type(Audio)
2008-08-27 22:04:34.108 Opening audio device 'default'. ch 2(2) sr 48000
2008-08-27 22:04:34.108 Opening ALSA audio device 'default'.
2008-08-27 22:04:34.129 NVP: Enabling Audio
2008-08-27 22:04:34.276 NVP: Prebuffer wait timed out 10 times.
2008-08-27 22:04:34.726 NVP: Prebuffer wait timed out 10 times.
200-08-27 22:04:35.176 NVP: Prebuffer wait timed out 10 times.

comment:7 Changed 11 years ago by njaal@…

I see that ffmpeg has indeed updated libavcodec (some time ago) to fix the interlaced issue. It's a total show-stopper for DVB-t users in Norway at least, making everything extremely blocky. Any thoughts about updating libavcodec within mythtv in the near future?

/N

Changed 11 years ago by foobum@…

Attachment: itvhd2.diff added

Patch output pmt to support ITV HD

comment:8 Changed 11 years ago by foobum@…

Different patch that changes the stream type in the output pmt so that ITV HD works in livetv. Frame size is detected correctly for me without avformatdecoder changes.. See #5645 for ffmpeg resync to fix interlaced + spatial direct issue.

Changed 11 years ago by robert.mcnamara@…

Attachment: itvhdfix.diff added

Fix for ITV HD without hacking the PID

comment:9 Changed 11 years ago by robert.mcnamara@…

This patch should fix ITV HD-- please apply to current trunk as there is another fix to the mpeg TS parser that is relies on. Is working here reliably, but I am not in the UK so cannot test on anything but samples. Please let me know.

comment:10 Changed 11 years ago by robert.mcnamara@…

An FYI, attempting to send ITV HD to VDPAU causes GPU crashes and system freezes here. Not sure if it's the clip I've got or the method I'm employing, but for now, use this patch with Xv-blit.

comment:11 Changed 11 years ago by robert.mcnamara@…

Upon further testing, I think it *is* my sample that's to blame. Can someone (bearing in mind that it may lock your system) try this patch + ITVHD + VDPAU? As far as I can tell it *is* being correctly passed to h264_vdpau. If ITV HD consistently crashes VDPAU, we need to submit samples to Nvidia, as they are asking for files that crash the GPU to improve the driver.

comment:12 in reply to:  11 Changed 11 years ago by dlknight@…

With latest trunk do I need all three patches or just the itvhdfix.diff? I'm going to test this with latest NVIDIA driver 180.16 and let you know how I get on. Live TV was bombing out when using VDPAU and itvhd.diff/itvhd2.diff.

Dave K.

comment:13 Changed 10 years ago by bradley.kite@…

Hi.

Just thought I'd provide some feedback:

I've tested these patches, and although having some sort of autodetection would be a better solution (itvhdfix.diff) it doesnt seem to work on my setup.

I've also tested itvhd2.diff which detects this based on the PID.

Regards -- Brad.

comment:14 in reply to:  13 Changed 10 years ago by dlknight@…

Replying to bradley.kite@gmail.com:

Hi.

Just thought I'd provide some feedback:

I've tested these patches, and although having some sort of autodetection would be a better solution (itvhdfix.diff) it doesnt seem to work on my setup.

I've also tested itvhd2.diff which detects this based on the PID.

Regards -- Brad.

My findings are the same as brad, itvhdfix.diff does not work, no video on live playback just sound. itvhd2.diff works fine on live playback.

Regards

Dave K.

comment:15 Changed 10 years ago by Janne Grunau

Resolution: fixed
Status: assignedclosed

(In [21572]) fixup for ITV HD PMT, video stream is marked as private stream. Fixes #5388

Note: See TracTickets for help on using tickets.