Mailing List Archive

leanfront problem with UK recording
Hi John

I am trying to resolve outstanding problems with leanfront. You supplied
a recording that will not play through leanfront, although it plays with
mythfrontend and vlc. I have not managed to figure out what is different
about that recording. Do you know which specific recordings fail? Is it
a particular station, or a transcoding option, or something else that
sets the failing ones apart? The one you supplied is a minute of an
orchestra playing classical music, and I have been struggling without
success to get leanfront to play it.

Peter

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: leanfront problem with UK recording [ In reply to ]
On 26/09/2020 17:48, Peter Bennett wrote:
> Hi John
>
> I am trying to resolve outstanding problems with leanfront. You supplied
> a recording that will not play through leanfront, although it plays with
> mythfrontend and vlc. I have not managed to figure out what is different
> about that recording. Do you know which specific recordings fail? Is it
> a particular station, or a transcoding option, or something else that
> sets the failing ones apart? The one you supplied is a minute of an
> orchestra playing classical music, and I have been struggling without
> success to get leanfront to play it.
>
> Peter
>
Hi Peter: This remains a mystery to me. I haven't properly tracked the
postprocessing history of some of these recordings, but IIRC that one
was DVB-T2 h264 1080i/p with multichannel sound. It and ones like it
will play well in leanfront (although I have only stereo) after stream
stripping with ffmpeg or conversion to mkv using procedures similar to
the ones you suggest in the leanfront wiki. Unfortunately the results
may then not play and skip properly via the normal frontend or DLNA, or
the elapsed-time display in some mode may have problems.

I used to think that the mix of progressive and interlaced frames was to
blame, but that doesn't seem to be the case. At present my script
appears to be using just " -vcodec copy -acodec copy ". I'll have
another look at it.

Cheers,

John
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: leanfront problem with UK recording [ In reply to ]
On 26/09/2020 19:34, John Pilkington wrote:
> On 26/09/2020 17:48, Peter Bennett wrote:
>> Hi John
>>
>> I am trying to resolve outstanding problems with leanfront. You
>> supplied a recording that will not play through leanfront, although it
>> plays with mythfrontend and vlc. I have not managed to figure out what
>> is different about that recording. Do you know which specific
>> recordings fail? Is it a particular station, or a transcoding option,
>> or something else that sets the failing ones apart? The one you
>> supplied is a minute of an orchestra playing classical music, and I
>> have been struggling without success to get leanfront to play it.
>>
>> Peter
>>
> Hi Peter:  This remains a mystery to me.  I haven't properly tracked the
> postprocessing history of some of these recordings, but IIRC that one
> was DVB-T2 h264 1080i/p with multichannel sound.  It and ones like it
> will play well in leanfront (although I have only stereo) after stream
> stripping with ffmpeg or conversion to mkv using procedures similar to
> the ones you suggest in the leanfront wiki.  Unfortunately the results
> may then not play and skip properly via the normal frontend or DLNA, or
> the elapsed-time display in some mode may have problems.
>
> I used to think that the mix of progressive and interlaced frames was to
> blame, but that doesn't seem to be the case.   At present my script
> appears to be using just " -vcodec copy -acodec copy ".  I'll have
> another look at it.
>
> Cheers,
>
> John

I just recorded another concert from BBC Two HD. This was stereo only,
but the behaviour is much the same; leanfront doesn't play the original
but the ffmpeg-processed version seem fine.

Before running this I had trimmed the original recording at video
keyframes using a dd-like tool. There are complaints about reference
frames and pts but the main difference for leanfront is probably the
stream count.

{{{

ionice -c3 mythffmpeg -hide_banner -ignore_unknown -ss 0.0000 -t
5341.0800 -i /home/john/SGs/RecsSG2/20102_20200926182800.ts -vcodec
copy -acodec copy
/mnt/sdb1/TScut_work/20102_20200926182800_484470_001.ts

[mpegts @ 0x5636f52bf880] write_section_data: PID 0x1c86 CRC error
[mpegts @ 0x5636f52bf880] write_section_data: PID 0x1c97 CRC error

Last message repeated 1 times
[h264 @ 0x5636f52c3800] mmco: unref short failure
[h264 @ 0x5636f52c3800] number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x5636f52c3800] Increasing reorder buffer to 3
[mpegts @ 0x5636f52bf880] start time for stream 2 is not set in
estimate_timings_from_pts

[mpegts @ 0x5636f52bf880] start time for stream 4 is not set in
estimate_timings_from_pts

[mpegts @ 0x5636f52bf880] start time for stream 5 is not set in
estimate_timings_from_pts

[mpegts @ 0x5636f52bf880] PES packet size mismatch

[mpegts @ 0x5636f52bf880] Packet corrupt (stream = 3, dts = 4821140316).

[mpegts @ 0x5636f52bf880] stream 2 : no TS found at start of file,
duration not set
[mpegts @ 0x5636f52bf880] Could not find codec parameters for stream 2
(Audio: aac_latm, 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize'
options

Input #0, mpegts, from '/home/john/SGs/RecsSG2/20102_20200926182800.ts':
Duration: 01:29:02.13, start: 48224.520189, bitrate: 4266 kb/s
Stream #0:0[0x65]: Video: h264 (High), yuv420p(tv, bt709,
progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x66](eng): Audio: aac_latm (LC), 48000 Hz, stereo, fltp
Stream #0:2[0x6a](eng): Audio: aac_latm, 0 channels, fltp
Stream #0:3[0x69](eng): Subtitle: dvb_subtitle
Codec 0x17813 is not in the full list.
Stream #0:4[0x1c86]: Data: unknown_codec
Codec 0x17813 is not in the full list.
Stream #0:5[0x1c97]: Data: unknown_codec

Output #0, mpegts, to
'/mnt/sdb1/TScut_work/20102_20200926182800_484470_001.ts':
Metadata:
encoder : Lavf58.45.100
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive),
1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
Stream #0:1(eng): Audio: aac_latm (LC), 48000 Hz, stereo, fltp
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)

Press [q] to stop, [?] for help
frame=133527 fps=2144 q=-1.0 Lsize= 2476058kB time=01:29:01.96
bitrate=3797.1kbits/s speed=85.8x
video:2304369kB audio:83455kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 3.695191%
running: ionice -c3 mythcommflag -q --rebuild --file
/home/john/SGs/RecsSG2/20102_20200926182800.ts
MythTV Commercial Flagger, building seek table for:
Bernard Haitink, The Enigmatic Maestro
Rebuild started at Sat Sep 26 22:14:44 2020
Rebuild completed at Sat Sep 26 22:15:34 2020
Output file is /home/john/SGs/RecsSG2/20102_20200926182800.ts.

}}}
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org