Closed davepearson1628 closed 8 months ago
That link gives me the message:
Page not found
My Apologies, please try (Link Removed)
Regards, Dave
The file has only video h264 and audio ac3 streams, and mythcommflag --rebuild finds keyframe separations of several hundred frames.
It plays for me in leanfront after
ionice -c3 mythffmpeg -hide_banner -ignore_unknown -fflags +genpts -i
In this line the infile and outfile references have been hidden by github. I'll try again:
ionice -c3 mythffmpeg -hide_banner -ignore_unknown -fflags +genpts -i INFILE.ts -vcodec copy -acodec copy -scodec copy -avoid_negative_ts make_zero -f mpegts OUTFILE.ts
Thanks Peter,
I'll try that on my existing recordings, meanwhile, can you see anything in my HD PVR 2 configuration file that might help to avoid me having to run that command:
input=3
audio=3
codec=2
videoratecontrol=1
minvbrrate=9000000
maxvbrrate=20000000
serial=E585-00-00D8CC08
description="Colossus2"
mythtv=true
logpath=/var/log/mythtv
override-loglevel=notice
Regards, Dave.
-----Original message----- From: @.> Sent: Tuesday 5th December 2023 10:13 To: bennettpeter/android-MythTV-Leanfront @.> Cc: Dave Pearson @.>; Author @.> Subject: Re: [bennettpeter/android-MythTV-Leanfront] Unable to play recordings or live tv (Issue #78)
The file has only video h264 and audio ac3 streams, and mythcommflag --rebuild finds keyframe separations of several hundred frames.
It plays for me in leanfront after
ionice -c3 mythffmpeg -hide_banner -ignore_unknown -fflags +genpts -i -vcodec copy -acodec copy -scodec copy -avoid_negative_ts make_zero -f mpegts
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Please note that I have edited my earlier comment so that it now displays the INFILE and OUTFILE correctly.
Here, for info, is the stream analysis of part of the processed file.
Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn Stream #0:1[0x1100]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 384 kb/s
Thanks Peter,
Could you remove the error messages from your post about the incorrect file link, please.
Regards, Dave.
-----Original message----- From: @.> Sent: Tuesday 5th December 2023 11:27 To: bennettpeter/android-MythTV-Leanfront @.> Cc: Dave Pearson @.>; Author @.> Subject: Re: [bennettpeter/android-MythTV-Leanfront] Unable to play recordings or live tv (Issue #78)
Please note that I have edited my earlier comment so that it now displays the INFILE and OUTFILE correctly.
Here, for info, is the stream analysis of part of the processed file.
Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn Stream #0:1[0x1100]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 384 kb/s
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Dave Note that all of the comments about the file format are from John Pilkington. I have not yet looked at your file. Peter
Oops - sorry @Jpilk Peter, do you need the link for the file again - I removed it from my earlier post?
Yes please, I have not yet downloaded the file.
HI Peter,
Please download if from (link removed) Regards, Dave.
@Jpilk modifying that file with your mythffmpeg command made it instantly playable on my Fire Tv. It would be really good, though if I could modify my HD PVR2 configuration file to avoid the problem.
If that’s not possible, I will just have to create a user job to fix the files.
Thanks for your help on this. Regards, Dave
The error message from exoplayer is Target buffer size reached with less than 500ms of buffered media data. (many times) Followed by Playback stuck buffering and not loading.
It looks like John has identified the problem. I don't know anything about HDPVR settings. There are people who use HDPVR successfully with leanfront, perhaps if you post a message in the mailing list somebody may have a setting you can use.
In the meantime I have the test video. I will see if there is a way to increase the buffer size or if there is anything else that will fix the problem.
I have tried dropping the "avoid negative" and "make_zero" arguments from the command line quoted above; they were said to be needed in ffmpeg concatenation but don't seem to make a difference here.
But seektables created either before or after that process are flawed, with step lengths in frames being wildly inconsistent; so I can't edit as I usually do with dvb-t/t2 recordings.
@Jpilk @bennettpeter
Thanks to you both for your help on this. I was able to edit my test recording after using John's original mythffmpeg command, so I'm happy to use that if I cannot get the HD PVR 2 config file to resolve the problem.
I shall take Peter's advice and ask in the mailing list if anyone has a config file that works with Leanfront. Dave.
It's perhaps woth noting here that there's a still-open MythTV issue that has similarities.
https://github.com/MythTV/mythtv/issues/600#issuecomment-1374827390
I recommend running mkvmerge to convert the file to mkv.
mkvmerge -o outfile.mkv infile.ts
I tested this with your test file.
It is very fast and the resulting mkv file will have better performance in leanfront.
You can also copy the resulting output mkv file over the original ts file. Both mythfrontend and leanfront will play the resulting file (mkv video with ts extension) correctly.
Also see the leanfront documentation https://github.com/bennettpeter/android-MythTV-Leanfront#problems
-----Original message----- From: Peter @.> Sent: Thursday 7th December 2023 23:55 To: bennettpeter/android-MythTV-Leanfront @.> Cc: Dave Pearson @.>; Author @.> Subject: Re: [bennettpeter/android-MythTV-Leanfront] Unable to play recordings or live tv (Issue #78)
I recommend running mkvmerge to convert the file to mkv. mkvmerge -o outfile.mkv infile.ts I tested this with your test file. It is very fast and the resulting mkv file will have better performance in leanfront. You can also copy the resulting output mkv file over the original ts file. Both mythfrontend and leanfront will play the resulting file (mkv video with ts extension) correctly.
Also see the leanfront documentation https://github.com/bennettpeter/android-MythTV-Leanfront#problems
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
Thanks Peter,
I'll try that - I've been using the mythffmpeg command suggested by John, but I'll see what mkvemerge does too
Regards, Dave.
Message ID: @.***>
I already had a script to use the ffmpeg option and thought the result might reassure Dave about his new TV.
I've tended to stay with mpeg2ts, not mkv, because I can then usually cut recordings using cutlists defined with the mythfrontend editor. At present, for this test recording, neither format lets me do that.
Thanks to you both for your comments and suggestions - I tried both John's ffmpeg command and Peter's mkvmerge and Found ffmpeg to be the better option as I can then build a seektable and edit the file to remove padding and adverts from my recordings, which I cannot do with mkvmerge.
Regards, Dave.
I'm puzzled again. mythcommflag --rebuild on the download gave me a seektable that was no use for editing. My scripts cut at keyframes, and those found were too far apart.
But my mythtv issue #600 linked to a forum thread and onwards to an .scm file, apparently machine generated and difficult to follow. The souce code is here. Could repay study.
https://git.sdf.org/nb0yjxtr/ffmpeg-mythtv/src/branch/master/
On 10 Dec 2023, at 10:18, Jpilk @.***> wrote:
I'm puzzled again. mythcommflag --rebuild on the download gave me a seektable that was no use for editing. My scripts cut at keyframes, and those found were too far apart.
But my mythtv issue #600 linked to a forum thread and onwards to an .scm file, apparently machine generated and difficult to follow. The souce code is here. Could repay study.
https://git.sdf.org/nb0yjxtr/ffmpeg-mythtv/src/branch/master/
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
Yes, I found that mythcommflag didn’t work, the tinestamps were completely haywire and it was almost impossible to select the cut points I wanted.
This command seems to do the trick:
mythtranscode --buildindex --allkeys --showprogress --infile "$inputfile
Regards, Dave
Message ID: @.***>
Yes, that works for me too. I don't see anything for 'showprogress', though, and STR that --allkeys was redundant. I'll probably retain the mythcommflag --rebuild for my normal dvb-t/t2 recordings 'because it ain't broke' for them.
Cheers, John.
All my tests above were done with leanfront installed on my Sony BRAVIA_TL Android tv, which gives a good 1360x768 picture. I just tried my FireTVstick 4K via HDMI on the same tv with the same build of leanfront.
Both setups fail to play the raw file and both play both remuxes. But on starting playback with the Firestick I see:
'There is no suitable refresh rate for frame rate 23.98'.
Playback then looks fine although the rolling credits on both setups are not as smooth as, say, a current BBC production. I don't guarantee that the config parameters in use are identical.
Yes, I get that Frame Rate message too, it doesn't seem to affect my viewing pleasure, though
Hi,
I've just taken delivery of an Amazon Omni QLED TV and I've installed Leanfront on it. Unfortunately I cannot playback any of my recordings, which are from Hauppauge HD PVR 2 capture devices at 1080P, I cannot play live tv either from the HD PVR 2 devices, however I can play live TV from a DVB-T card. Videos also seem to play back ok.
Are there any settings I need on my backend to get this working (v34 on Ubuntu 23:10)?
I have the same problem on a Fire TV Stick, but I put it down to the stick not being powerful enough.
When I press play, I get a black screen with a spinning circle for a few minutes, then a completely black screen for a few minutes, followed by the spinning circle again.
Eventually, the error message appears:
Playback Failed.
Unexpected Runtime Exception Unexpected runtime error
You should be able to download a sample video file from here: (Link Removed)
Regards, Dave.