NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 21 22 23 24 25 … 102 Next »
PostProcessing.bat, Can I do this?

 
  • 0 Vote(s) - 0 Average
PostProcessing.bat, Can I do this?
three6zerocool
Offline

Member

Posts: 237
Threads: 33
Joined: Jul 2019
#1
2023-09-23, 08:39 AM
Thought I had better make a new thread.
This is a follow on to the Windows 10 vs 11 thread.

I believe I have discovered a way to resolve the micro-stutter issue mentioned in the other thread.

As mentioned, I am having problems playing back STB recordings in Kodi.

The thought occurred to me that if Kodi has issues playing back the TS files, what would happen if I converted to a different format.
I tried the following using the FFmpeg in NextPVR/Other folder.

ffmpeg -i d:\smackdown.ts -map 0 -c copy d:\smackdown.mp4

It created a new mp4 file in around 10 seconds on my rig.
When I tested the above file in Kodi, to my surprise it plays perfectly, and does not exhibit the micro-stutters that the original TS recording has.

I am wondering if I can use postprocessing.bat to issue the above ffmpeg conversion automatically?, OR could I use the transcoding feature of NextPVR.

I am thinking postprocessing would be best, as I believe it is not recoding the original video.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#2
2023-09-23, 07:24 PM
Remuxing is much faster then transcoding. If you use aac audio I would use post processing and create a fast start mp4 since they can play in the web client.

Kodi should be demuxing before playing, which in theory world extract the a/v streams from either container, sounds like the Cube is flawed

Martin
three6zerocool
Offline

Member

Posts: 237
Threads: 33
Joined: Jul 2019
#3
2023-09-23, 09:08 PM
The odd thing is that Kodi has zero issues with DVB-T channel content, only channels from my STB, which is MySkyHDi box.

I noticed when messing around with re-muxing with default settings of FFmpeg, it mentions things, such it has changed timestamps, and changed the order of upper and lower frames.

Makes me think that it is something to do with how Sky convert NTSC broadcast material to my country's PAL, and in particular, how they order the frames.
ie. They are processing a 720p source into 1080i for the Sky Set Top Box for some channels, and these are the problematic ones, whereas ones like Sky Movies have no issues.

Kodi has always been werid for me, as in the past when recording STB content, I have had to use deinterlacing bob invert mode.
Other thing Kodi does not seem to perform right is aspect on New Zealand channels that are broadcast in 720x576.
(ie.  Get squished up image on Kodi, whereas NextPVR clients just play it correctly.)

I found a postprocessing script on the forums that is only a few lines, and basically calls up comskip with one variable, which I assume is recordings file name.
So am altering it to call up the FFmpeg executable, and will see if I can make it work.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#4
2023-09-23, 09:52 PM
Before blaming Kodi try Kodi for Windows. Every flavour of Android is different but you need to report this on the Kodi forum or GitHub if you expect anything to change.

Remuxing to mp4 will not change video characteristics for GOP

I would fully expect that 576i DVB-T should display properly on Kodi since that is defacto SD . If that is from the STB with fixed 720p it is your STB
three6zerocool
Offline

Member

Posts: 237
Threads: 33
Joined: Jul 2019
#5
2023-09-24, 02:16 AM
>Before blaming Kodi try Kodi for Windows. Every flavour of Android is different but you need to report this on the Kodi forum or GitHub if you expect anything to change.

I did try Shield and it definitely does not have the stutter, but have not tried windows yet, as it seems kinda waste of time having a back end PVR server, and then a PC as a client, vs a media device like Shield, Chromecast, Fire Stick etc.

>Remuxing to mp4 will not change video characteristics for GOP

Maybe not, but it removes the micro-stutter issue I have had.  Perhaps simply remuxing does something helpful?
I tried remuxing as a TS file, and the stutter persists.

>I would fully expect that 576i DVB-T should display properly on Kodi since that is defacto SD . If that is from the STB with fixed 720p it is your STB

No, Kodi doesn't display any of the 576i DVB-T channels here in NZ correctly, instead it has black bars on the left and right, and is squished.  It does not seem to detect it as 16x9 aspect.
To display correctly, I have to go into the OSD Video settings, and change aspect to 16x9.
It has been like that for literally 'years and years'

They are channels here in NZ such as TVNZ1+1,  TVNZ2_1, Bravo+1  (all DVB-T channels)

If I run Kodi on Shield, or Raspberry PI, or any device for that matter, it will not pickup the aspect correctly on the above mentioned channels.

NextPVR clients on the same devices display those channels perfectly, but Kodi does not.
Only one fork of Kodi I have tried, 'Mr MC' has ever played those channels correctly.

I have always thought it was something in the way they are broadcast here in NZ tricks Kodi,  but I can inform you with 100% certainty, that Kodi simply cannot display the aspect of those channels correctly, without manually changing the aspect.

And, just to be annoying,  some of the above channels (not all) are on Sky, and via the STB display correctly.  (go figure)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#6
2023-09-24, 05:56 AM
No need to try Windows since it works on the Shield I will drop out of anymore discussion on a one client specific issue.

You probably should report the aspect issue on the Kodi. Funny sub didn't notice this when he wrote the Kodi addon.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#7
2023-09-24, 07:02 AM
(2023-09-24, 05:56 AM)mvallevand Wrote: Funny sub didn't notice this when he wrote the Kodi addon.
I don't remember seeing anything weird with Kodi with our NZ DVB-T channels back in the day. I only ever tested it on a PC though - I wasn't using Android builds with FireStick or any setups like that.

It's been a few major releases of Kodi since I spent any serious time in there though, so things make have changed.
three6zerocool
Offline

Member

Posts: 237
Threads: 33
Joined: Jul 2019
#8
2023-09-24, 09:44 AM
(grin)  I'm just saying what I experience, don't shoot the messenger.

Here are some screengrabs from my NVidia Shield Kodi instance.
(tho it does the same thing for me on Fire TV, Nvidia Shield, Chromecast, AppleTV, and Raspberry Pi.)
(would be reasonably sure that it would do the same on Windows Kodi too)

The first image is channel TVNZ1+1
(you can see the image is not displaying the aspect correctly)

The 2nd Image is the Kodi OSD Video settings display, and you can see the aspect is set to 'normal.'

The last image is the same channel, but with Aspect set to 16x9

If I view the same channel in NextPVR,  it looks exactly the same as the last image from Kodi.
ie. Kodi cannot detect this channels aspect correctly.

I have also tried the above on a 1080p TV as well as 4K,  and the behavior is the same.

You can save the 16x9 aspect as the default aspect, but then if you watch other content such as 4:3, then it gets super stretched
NextPVR displays the same channel perfect, as I believe the video aspect is stated for each resolution in config.xml.

If I am doing something incredibly wrong, please inform me what it is.
Sorry if I upset you.  I realize that this has naught to do with NextPVR,  but as your application has a Kodi plugin,  don't you find it somewhat  interesting?.
three6zerocool
Offline

Member

Posts: 237
Threads: 33
Joined: Jul 2019
#9
2023-09-24, 09:46 AM
Can not see the attachment. weird..... here it is again.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#10
2023-09-24, 05:47 PM
Out of curiosity, I just setup a clean environment with the kodi (current version from https://kodi.tv/download/), and pointed it at a NextPVR backend with DVB-T tuner.

I tried the channels you mentioned (TVNZ1+1, TVNZ2_1, Bravo+1), and all the other mainstream freeview channels. They all displayed the correct aspect ratio. I didn't change any settings at all. I just installed kodi, and enabled the NextPVR addon, and set the IP address to the backend I wanted to use. These channels are all 16:9, and they all displayed the correct 16:9 by default in Kodi.

If you'd instead tried a 576i source through your HDPVR, then yeah I'd totally expect kodi to think every channel was 4:3, since the HDPVR hardware defaults to encoding standard definition content as 4:3.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  ffmpeg in postprocessing fails on spaces in filename Druhl 3 473 2025-03-29, 06:25 PM
Last Post: mvallevand
  postprocessing tsduck on recordings Druhl 3 435 2025-03-07, 02:24 AM
Last Post: mvallevand
  Help with PostProcessing.bat and Episode names TVHelp 3 428 2024-10-06, 10:16 PM
Last Post: mvallevand
  PostProcessing.bat Boots315 6 1,158 2023-06-26, 01:08 AM
Last Post: Boots315
  PostProcessing.bat puck64 15 1,822 2023-06-21, 09:26 AM
Last Post: puck64
  Postprocessing Script folder and VideoredoTVsuite4 not working Spotspot 4 2,108 2020-06-24, 11:16 AM
Last Post: MCEabused
  PostProcessing.bat problem 4zm4r3d02 26 7,610 2020-02-16, 08:24 PM
Last Post: aderlopas

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode