NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 338 339 340 341 342 … 433 Next »
Audio filters and Reclock

Audio filters and Reclock
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#11
2011-03-01, 04:18 AM
imilne Wrote:It's only .ts files that it doesn't work with, hence why I suggested being able to select a different audio renderer for them.

Reclock seems fine with everything else.

Iain
For the most part, the audio renderer settings are only for .ts files anyway (and .mpg files if you have <ForceMpgGraph> set to true). Otherwise windows chooses the audio renderer.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#12
2011-03-01, 11:12 AM
sub Wrote:For the most part, the audio renderer settings are only for .ts files anyway (and .mpg files if you have <ForceMpgGraph> set to true). Otherwise windows chooses the audio renderer.

Ok, that probably means we can't fix it that way then, because we'd need to be able to disable it for .ts files but enable it for everything else. Right now, I think we can only globally enable or disable it.

How about plan c), which is a modification of the script idea:

Could you get nPVR to fire off a Notify() event before creating a graph that could be picked up by a plugin.

Code:
"BUILDING_GRAPH_TS"     (for .ts files)
"BUILDING_GRAPH_OTHER"  (for everything else)

It should be very easy to respond to that and enable/disable Reclock as needed before the graph is built and it attempted to auto-insert itself into it. It would also be cleaner and potentially quicker than messing about with external scripts.

If you could build a quick patch that did this, I could give it a go and see if it's a viable solution or not.

Iain
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#13
2011-03-01, 12:17 PM
imilne Wrote:Ok, that probably means we can't fix it that way then, because we'd need to be able to disable it for .ts files but enable it for everything else. Right now, I think we can only globally enable or disable it.

How about plan c), which is a modification of the script idea:

Could you get nPVR to fire off a Notify() event before creating a graph that could be picked up by a plugin.

Code:
"BUILDING_GRAPH_TS"     (for .ts files)
"BUILDING_GRAPH_OTHER"  (for everything else)

It should be very easy to respond to that and enable/disable Reclock as needed before the graph is built and it attempted to auto-insert itself into it. It would also be cleaner and potentially quicker than messing about with external scripts.

If you could build a quick patch that did this, I could give it a go and see if it's a viable solution or not.

Iain

I think the only REAL solution to this would be to get the author of Reclock to make it able to work with multiple filters in the graph.

"I'd rather have a bottle in front of me than a frontal lobotomy"
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#14
2011-03-01, 01:59 PM
Reddwarf Wrote:I think the only REAL solution to this would be to get the author of Reclock to make it able to work with multiple filters in the graph.

I intend to ask, but my current understanding of it is that Reclock only allows one audio stream per process. It's possible that because of what it's designed to do, it won't ever be possible for it to work with multiple filters. How would it know which one to pay attention to for instance? The ultimate real solution would be to never need Reclock (not feasible with mixed fps content) or to never notice the judder (damn my eyes).

Anyway, I've done some more testing and I think my solution may work if sub would be kind enough to tweak things enough to let me try...

Iain
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#15
2011-03-01, 02:04 PM
imilne Wrote:I intend to ask, but my current understanding of it is that Reclock only allows one audio stream per process. It's possible that because of what it's designed to do, it won't ever be possible for it to work with multiple filters. How would it know which one to pay attention to for instance? The ultimate real solution would be to never need Reclock (not feasible with mixed fps content) or to never notice the judder (damn my eyes).

Anyway, I've done some more testing and I think my solution may work if sub would be kind enough to tweak things enough to let me try...

Iain

Hm, is there no way for reclock to know what filter is the active one? I'm pretty sure npvr has to know.

"I'd rather have a bottle in front of me than a frontal lobotomy"
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#16
2011-03-01, 03:00 PM
Reddwarf Wrote:Hm, is there no way for reclock to know what filter is the active one? I'm pretty sure npvr has to know.

I honestly don't know. Certainly with my setup (ac3filter for mpeg and ac3 audio), you end up with two copies of its tray app running, so technically they may both be active. Perhaps sub can help out with understanding what is or isn't possible with how the graphs work and what changes would have to be made to Reclock to make it compatible. It's all black magic to me Smile

I'd still like to test my idea too though.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#17
2011-03-01, 04:13 PM
Quote:Hm, is there no way for reclock to know what filter is the active one? I'm pretty sure npvr has to know.
If the audio path is getting media samples, then it is the active one. The other audio paths get no samples.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#18
2011-03-01, 05:53 PM
sub Wrote:For the most part, the audio renderer settings are only for .ts files anyway (and .mpg files if you have <ForceMpgGraph> set to true). Otherwise windows chooses the audio renderer.

Are you sure about this sub?

I've just discovered that if you tell Reclock to not override the default audio renderer (which is how it normally inserts itself into a graph) then it won't load for all of the following file types: .ts, .avi, .mkv, .wmv, .mp4 - this is what I would expect.

However, if I then change the audio renderer in NPVR to explicitly use Reclock, then it does load for *all* of those files, not just the .ts ones.

This would suggest that allowing an extra option to specify the renderer used for .ts files independently of the other file types might be a possible solution. Reclock could then be avoided for .ts files but used for everything else.

Alternatively, if a plugin could get the graph_started events I suggested, then it could change the <AudioRenderer> config setting, tell NPVR to reload its settings, then hopefully the graph would be built with or without Reclock as needed.

The plugin option also keeps this stuff away from users who don't care about it and means a lot less work for you too Wink

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#19
2011-03-01, 06:19 PM
I double checked, and found it does use the audio renderer setting for all files. It was the audio decoders that are only used for .ts files.

It's unlikely I'd add additional renderer settings. I dont want to ugly up the Settings screen with all sorts of settings for very specific cases that very few people care about. I can probably fire an event to let you know it's about to build a graph, and it's filename.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#20
2011-03-01, 06:38 PM
sub Wrote:It's unlikely I'd add additional renderer settings. I dont want to ugly up the Settings screen with all sorts of settings for very specific cases that very few people care about.
That's what I figured (and agree with).

sub Wrote:I can probably fire an event to let you know it's about to build a graph, and it's filename.

So long as there's a way to know when it's Live TV too, that would be excellent.

Many thanks.

Iain
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Missing Audio NND 39 9,427 2023-06-24, 01:42 PM
Last Post: mvallevand
Information Audio Video Sync Fixed with AC3Filter! gearsofwoe 0 1,140 2022-11-18, 04:36 AM
Last Post: gearsofwoe
  Lav filters. Why? eastavin 6 2,964 2022-05-03, 01:26 AM
Last Post: sub
  Missing Audio - Switching from MPEG-1 to AC3 and vice versa NumberFive 15 4,634 2021-05-06, 01:57 AM
Last Post: raymondjpg
  Colossus 2 Audio issue artmetz 15 4,640 2021-02-10, 07:02 PM
Last Post: shspvr
  DVB-T and selecting audio stream three6zerocool 17 5,229 2021-02-06, 04:22 PM
Last Post: artmetz
  digital audio out Dale Dewing 1 1,457 2020-10-25, 05:24 PM
Last Post: Dale Dewing
  Black screen, no audio, & zero bit recordings mattman1968 1 1,624 2020-09-15, 12:19 AM
Last Post: mattman1968
  Audio Scratch Jzzhn 5 2,404 2020-08-07, 12:57 AM
Last Post: Jzzhn
  Audio Problem jrockow 11 4,922 2020-04-22, 12:07 PM
Last Post: jrockow

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

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

Linear Mode
Threaded Mode