Mailing List Archive

1 2  View All
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Jarno Suni):

As for comment 22, there is a video sample here
https://drive.google.com/file/d/12cNyfFrD0D05fjPg3QWE8UK5VdQIeYYc/view?usp=sharing
MythFrontend version 31 has hard time starting playback, but if I press
right arrow, I may get is started. However, the display seem zoomed like
shown in previous screenshot I attached. This does not happen, if I use
another media player. This does not happen with all recordings, even when
recorded from same channel.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:24>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by jpilk):

Yes, Myth with recent master plays it zoomed, and after some delay. But
again it plays perfectly if the first 3 Mib are removed as in Comment 13.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:25>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by jpilk):

... but mythcommflag --rebuild reports 'no I-frames found, rewinding' and
there are seektable problems with any start truncation length that I have
tried. It's a short sample. H264 NVDEC with 2x Nvdec adaptive

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:26>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by jpilk):

The 'mythical bookmark' might be confusing this issue. If you have a
'pre-roll' set up, mythtv will normally start playback at the point
corresponding to the programme's listed start time. This will be at the
pre-roll time interval into the file. You would not normally be expected
to see the first few seconds of the recording, but by default dd will give
it to you (and us) as your sample - and myth will use it in its stream
analysis.

I still think that you should reduce the pre-roll when recording a
programme immediately after channel start-up. Later programmes on the
same channel will not have this problem.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:27>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Jarno Suni):

So how do you reduce the pre-roll?

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:28>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by jpilk):

Manage Recordings > Upcoming Recordings > highlight the one at risk >
Select > Edit recording rule > Schedule Options > Start Recording X
minutes early/late (adjust with left/right arrow keys) > Back > Save (will
return to Upcoming recordings and on my system shows the new start time)

'Start 1 minute early' works for me. 'On time' would be a better choice
for a test.

As usual the are many other ways of doing it. This one doesn't assume
that you have a keyboard.

Hope that helps.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:29>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Jarno Suni):

I tried setting 'Start 1 minute early', but Mythfrontend still shows video
zoomed and cropped. Should I make a separate bug report about that? The
setting may help for not getting decode error, but I may still have it, if
I wind by right arrow.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:30>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by jpilk):

Can you say what that setting was *before* you set it to '1 minute early'
? Can you try it at 0? Where in the file is the decode error happening
now?

I played your samples as 'recordings' after cutting the start, overwriting
a similar recording made locally, and running 'mythcommflag --rebuild
--file xxx'. The new (?) partial failure of that last step (Comment 26)
bothers me.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:31>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Klaas de Waal):

The video clip zoomed.ts from comment:24 does play with wrong aspect ratio
on my living room system with Nvidia graphics. I am not the expert on
video coding but IIRC there are bits in the stream that specify the aspect
ratio. Again from memory, these bits are repeated regularly becase you
must always be able to switch a TV on at any given moment so at any
position in the stream. It looks to me that it may be necessary to look
for a longer time in the video stream to find the aspect ratio.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:32>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by jpilk):

It doesn't look as if Yle TV1 is a 'part time' channel, unlike BBC FOUR,
but the problem here is much the same: a rapid change in the stream
structure. Here's a not-particularly-elegant analysis.
{{{

[john@HPFed rec22]$ dd bs=1M skip=0 count=1 if=zoomed13557.ts0
of=zoomed13557.ts
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0258292 s, 40.6 MB/s
[john@HPFed rec22]$ mythffmpeg -i zoomed13557.ts 2>&1 | grep -A 8 Video
Stream #0:0[0x136]: Video: h264 (Main), yuv420p(tv, bt709), 1920x1080
[SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x352](fin): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 448 kb/s
Stream #0:2[0x467](fin): Subtitle: dvb_subtitle
Stream #0:3[0x468](swe): Subtitle: dvb_subtitle
Stream #0:4[0x47e](fin): Subtitle: dvb_subtitle
Stream #0:5[0x13ec](fin): Subtitle: dvb_teletext
At least one output file must be specified

[john@HPFed rec22]$ dd bs=1M skip=1 count=1 if=zoomed13557.ts0
of=zoomed13557.ts
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0204484 s, 51.3 MB/s
[john@HPFed rec22]$ mythffmpeg -i zoomed13557.ts 2>&1 | grep -A 8 Video
[mpegts @ 0x8cc840] Could not find codec parameters for stream 0 (Video:
h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, mpegts, from 'zoomed13557.ts':
Duration: 00:00:02.01, start: 45334.824956, bitrate: 4183 kb/s
Stream #0:0[0x136]: Video: h264, none, 50 fps, 50 tbr, 90k tbn, 180k
tbc
Stream #0:1[0x352](fin): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 448 kb/s
Stream #0:2[0x467](fin): Subtitle: dvb_subtitle
Stream #0:3[0x468](swe): Subtitle: dvb_subtitle
Stream #0:4[0x47e](fin): Subtitle: dvb_subtitle
Stream #0:5[0x13ec](fin): Subtitle: dvb_teletext
At least one output file must be specified

[john@HPFed rec22]$ dd bs=1M skip=2 count=1 if=zoomed13557.ts0
of=zoomed13557.ts
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0181638 s, 57.7 MB/s
[john@HPFed rec22]$ mythffmpeg -i zoomed13557.ts 2>&1 | grep -A 8 Video
Stream #0:0[0x136]: Video: h264 (Main), yuv420p(tv, bt709, top first),
1920x1080 [SAR 1:1 DAR 16:9], 25.58 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x352](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 448 kb/s
Stream #0:2[0x355](dut): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 192 kb/s
Stream #0:3[0x467](fin): Subtitle: dvb_subtitle
Stream #0:4[0x13ec](fin): Subtitle: dvb_teletext
At least one output file must be specified

[john@HPFed rec22]$ dd bs=1M skip=3 count=1 if=zoomed13557.ts0
of=zoomed13557.ts
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0236406 s, 44.4 MB/s
[john@HPFed rec22]$ mythffmpeg -i zoomed13557.ts 2>&1 | grep -A 8 Video
Stream #0:0[0x136]: Video: h264 (Main), yuv420p(tv, bt709, top first),
1920x1080 [SAR 1:1 DAR 16:9], 25.92 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x352](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 448 kb/s
Stream #0:2[0x355](dut): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 192 kb/s
Stream #0:3[0x467](fin): Subtitle: dvb_subtitle
Stream #0:4[0x13ec](fin): Subtitle: dvb_teletext
At least one output file must be specified

[john@HPFed rec22]$ dd bs=1M skip=4 count=1 if=zoomed13557.ts0
of=zoomed13557.ts
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00762243 s, 138 MB/s
[john@HPFed rec22]$ mythffmpeg -i zoomed13557.ts 2>&1 | grep -A 8 Video
Stream #0:0[0x136]: Video: h264 (Main), yuv420p(tv, bt709), 1920x1080
[SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x352](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 448 kb/s
Stream #0:2[0x355](dut): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 192 kb/s
Stream #0:3[0x467](fin): Subtitle: dvb_subtitle
Stream #0:4[0x13ec](fin): Subtitle: dvb_teletext
At least one output file must be specified
[john@HPFed rec22]$
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:33>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: mark-kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Jarno Suni):

With another recording from the channel, mythfrontend may freeze on
playback.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:34>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: Mark Kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by s1shed):

Replying to [comment:22 Jarno Suni]:
> I also get segmentation faults occasionally when trying to play
recordings from Yle HD channels in Finland. Now new thing with version 31
of the frontend is that only zoomed left top of video is shown. See the
attachment. The code seems really far from being robust.

With YLE HD channels I've not seen segfaults yet but I have had some
videos that just will not play with Nvidia GPUs with ` W CoreContext
mythplayer.cpp:3154 (UnpauseDecoder) Player(0): Waited 100ms for decoder
to unpause` displayed in the logs. Sometimes when they play they'll be
zoomed in as described above. My Thinkpad with its Intel graphics can play
these same videos but in a zoomed in state. I've also had problems with
recordings that were started while the program was already in progress.

I found that I can remux the files and then they'll play within MythTV.
They can also be played with vlc, mpv, and Kodi without remuxing.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:35>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: Mark Kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by s1shed):

Replying to [comment:35 s1shed]:
> I've also had problems with recordings that were started while the
program was already in progress.

Just now I had a "zoomed in" problem with YLE TV1 HD and ''live TV'' when
a show was already in progress.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:36>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: Mark Kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------
Changes (by Jarno Suni):

* Attachment "myth-live-zoom-freeze.log" added.


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: Mark Kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Jarno Suni):

Replying to [comment:36 s1shed]:

> Just now I had a "zoomed in" problem with YLE TV1 HD and ''live TV''
when a show was already in progress.

I have also had this. But it does not happen always. Also, if I try to
exit to menu by Esc, when this happens, the frontend freezes. I attached
the end of output and error output of

{{{
mythfrontend -v
playback,channel,decode,eit,general,frame,gpu,gpuaudio,gpuvideo,gui,libav,process,system,timestamp
}}}

in https://code.mythtv.org/trac/attachment/ticket/13557/myth-live-zoom-
freeze.log

I am using Intel graphics:


{{{
$ sudo lshw -c video
[sudo] password for jarnos:
*-display
description: VGA compatible controller
product: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:30 memory:f7800000-f7bfffff memory:e0000000-efffffff
ioport:f000(size=64) memory:c0000-dffff

}}}


mythtv-frontend version
2:31.0+fixes.202009171258.b5f1d03fa8~ubuntu20.04.1

BTW I do not seem to have privileges to file a new bug report anymore.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:37>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: Mark Kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Gary Buhrmaster):

Replying to [comment:37 Jarno Suni]:

> BTW I do not seem to have privileges to file a new bug report anymore.

As an aside to your BTW, it was announced on the developer list that as of
Sept 1st trac is closed to new bugs, and one should now use github issues
for the project. That not all the existing documentation has caught up
with that change is a given.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:38>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: Mark Kendall
Type: Bug Report - General | Status: assigned
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Klaas de Waal):

This topic is now continued at Github issue 351,
https://github.com/MythTV/mythtv/issues/351, "Mythtv MPEG-TS demux fails
on playback of YLE recordings".

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:39>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13557: Decode errors [ In reply to ]
#13557: Decode errors
-------------------------------------+------------------------------
Reporter: Jarno Suni | Owner: Mark Kendall
Type: Bug Report - General | Status: closed
Priority: major | Milestone: 32.0
Component: MythTV - Video Decoding | Version: v30-fixes
Severity: high | Resolution: Fixed
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------
Changes (by Klaas de Waal):

* status: assigned => closed
* resolution: => Fixed


Comment:

Fixed in master in commit ebeea33ad284f8827cd6caed6b30d100c4132eaf with
the following commit message:

{{{
Update changed streams on PMT update

On playback, when a new version of the PMT (program map table) is
received, start
updating the streams at the first stream that is changed, beginning with
stream 0,
instead of resetting all streams.
This fixes playback problems that occur when there is a PMT version update
in the
first part of the recording that is scanned before the playback starts.
At the start of the playback there is then a PMT change back to the
previous version;
this change causes a reset of all stream data; the video playback is then
started
with default size of 640x480 and default framerate of 29.97Hz.


}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13557#comment:40>
MythTV <http://www.mythtv.org>
MythTV Media Center

1 2  View All