Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th March 2023, 16:11   #1361  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,002
Quote:
Originally Posted by PoeBear View Post
Loving the new fullscreen mode. Is it possible to add an option (unless I'm missing it) to hide the scrollbars altogether when the video is larger than the display area?
This option has been around for a while, and it's not that hard to find. Menubar > Options > 'Hide video window scrollbars'
And if you go to the last page under Menubar > Options > 'Fonts and colors...' and check 'Video controls color', it will be darker even in normal mode, see post from ErazorTT

Quote:
Originally Posted by ErazorTT View Post
Is it like that, that its supposed to look in dark mode?
https://drive.google.com/file/d/13HY...usp=share_link
Yes, but with the video open, the borders are narrower and the slider side bar is also darker.
But why this question?
__________________
Live and let live

Last edited by gispos; 28th March 2023 at 16:14.
gispos is offline   Reply With Quote
Old 29th March 2023, 16:43   #1362  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,002
'Dark theme' I have to take up this topic again.

Apparently some have not read the last changelog properly.
Code:
Version 2.7.4.1 [2023-03-25] GPo
--------------------------
* Added: Options > Font and Colors > 'Video controls', color of video controls can be changed here (Dark theme).
Dark Theme clearly refers to the video controls, and the video controls are the slider and the buttons.

Also the tooltips in the color options say two things 'Video controls color' and 'Colorize the video controls and slider side bar'

I think I have written it four times here, there are no themes for wxPython (not even for the latest version) and since wxPython uses native OS components some things cannot be changed, neither color nor size.
This includes the window splitter's, the tabs, the menu bar, the borders, the context menu and so on...

With the status bar only the background can be changed but not the font color. And it also looks pretty 'crappy' when everything is dark at the bottom and light at the top.

I tried to get it darker but at the same time still get a visually appealing look.
It's an option that you don't necessarily have to turn on.

Complaints please to Microsoft, because I can not understand that they complicate the theme so much that sytem files must be hacked to use an application wide theme.
__________________
Live and let live
gispos is offline   Reply With Quote
Old 3rd April 2023, 13:36   #1363  |  Link
videoFred
Registered User
 
videoFred's Avatar
 
Join Date: Dec 2004
Location: Terneuzen, Zeeland, the Netherlands, Europe, Earth, Milky Way,Universe
Posts: 689
No sound in the AvsPmod video preview

I have a question:

When loading a file with audio in AvsPmod, I have no sound in the video preview.

When switching to external player (in my case Virtualdub2) there is sound.

Is there a solution for this?

Thank you in advance,
Fred.
__________________
About 8mm film:
http://www.super-8.be
Film Transfer Tutorial and example clips:
https://www.youtube.com/watch?v=W4QBsWXKuV8
More Example clips:
http://www.vimeo.com/user678523/videos/sort:newest
videoFred is offline   Reply With Quote
Old 3rd April 2023, 20:47   #1364  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,002
Quote:
Originally Posted by videoFred View Post
I have a question:

When loading a file with audio in AvsPmod, I have no sound in the video preview.

When switching to external player (in my case Virtualdub2) there is sound.

Is there a solution for this?

Thank you in advance,
Fred.
AvsPmod does not play audio, this was never implemented.
I also have no starting point how this could be realized, had already started an attempt with a python componente which unfortunately failed.
So no audio.

An alternative would be someone who knows avisynth audio and writes a DirectSound plugin for avisynth.
__________________
Live and let live

Last edited by gispos; 3rd April 2023 at 20:50.
gispos is offline   Reply With Quote
Old 3rd April 2023, 23:13   #1365  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Avisynth+ support audio cache same old avs now
kedautinh12 is online now   Reply With Quote
Old 3rd April 2023, 23:36   #1366  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,666
Quote:
Originally Posted by kedautinh12 View Post
Avisynth+ support audio cache same old avs now
That has nothing to do with why AvsPmod can't play audio.
Reel.Deel is offline   Reply With Quote
Old 4th April 2023, 10:41   #1367  |  Link
videoFred
Registered User
 
videoFred's Avatar
 
Join Date: Dec 2004
Location: Terneuzen, Zeeland, the Netherlands, Europe, Earth, Milky Way,Universe
Posts: 689
Quote:
Originally Posted by gispos View Post
AvsPmod does not play audio, this was never implemented.
I understand.

No big problem because I can check sound with the external player.

Fred.
__________________
About 8mm film:
http://www.super-8.be
Film Transfer Tutorial and example clips:
https://www.youtube.com/watch?v=W4QBsWXKuV8
More Example clips:
http://www.vimeo.com/user678523/videos/sort:newest
videoFred is offline   Reply With Quote
Old 10th April 2023, 20:04   #1368  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
Same here. I always use AVSPmod mod to code and when I'm ready and everything, I just drag and drop the script to Virtual Dub filtermod to listen to the sound too and check whether it's in sync or not etc.
It is a bit annoying, I should say, but I consider AVSPmod mod as an IDE for coding purposes, so I can sort of live with that.
If one day there will be audio support, even better, but until then, no big deal.
I mean, we've been living without audio in AvsP since 2006, it's 2023 and we're thriving, so I guess we can keep coping without it just fine xD
FranceBB is offline   Reply With Quote
Old 29th April 2023, 15:00   #1369  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,002
The first AvsPmod version with audio playback. Don't expect too much from the 4K playback, but there is a useful function 'Audio scrubbing'. See below.

At the moment (I don't know if this will change) the avisynth audio mixer is used for downmix to stereo (I didn't spend any time on own audio downmix code).
The need for an audio mixer is:
The video output channels can only be directly routed to the device output channels (loudspeakers). But if there are only 2 speakers, no audio can be created.
Or if the device output is fixed to 2 speakers, only 2 of maybe 6 channels will be played back.

The audio mixer can be turned on or off under Video > Play video > 'Downmix audio'.

For faster playback:
There is a new option for the 'Resample Filter', you can enter a function after the avisynth resizer separated by a semicolon.
As default if the options.dat not existing, a Prefetch(1) is used, so Spline36Resize;Prefetch(1)
This gives me 30% more speed when using the 'Resample Filter'.
Spline36Resize;sharpen(0.2).Prefetch(1) is also posible but makes it through the additional filter slower.

I can playback 4K on a QHD monitor with 'Resample Filter;Prefetch(1)' without audio dropouts (max. ~26 fps). Without resample filter it is not possible.
I think with a 4K monitor audio playback with 4K video will not be possible.

Use 'Split Clip' (avsp_split) to temporarily turn off all subsequent filters for non-stuttering audio playback.

Audio scrubbing:
The number of frames to be played can be selected in the context menu of the play button.
There is also the function 'Play scrub', which plays the audio of 36 video frames. Even if 'Audio scrubbing' is switched off.
This function should work well in conjunction with 'Split View' for an audio synchronous check (original vs. encoded).
If 'Split View' is activated, the audio of both clips will be played one after the other. With visual display of the currently used clip.

Preview Filter:
Audio scrubbing and audio mixer are turned off. So only video with 2 channel audio can be played back in the playback.
Or there must be enough device outputs to play all channels. Or you can insert an audio downmix function in the script.

It is the first version with audio, time will tell if and what can or must be changed.

This audio mixers are used.
You can also use your own mixer and add the function to the script, then no downmix will be used in AvsPmod, and the audio will also work with the 'Preview Filter'. Except scrubbing.
But I can already hear the screaming when someone forgets to remove their own audio downmix before encoding.
Code:
channels >= 8:
    'a = ConvertAudioToFloat()'
    'flr = Getchannel(a, 1, 2, 3, 4)'
    'blr = Getchannel(a, 5, 6)'
    'slr = Getchannel(a, 7, 8)'
    'sur = MixAudio(blr, slr, 1.0, 1.0)'
    'mc = mergechannels(flr, sur)'
    'flr = GetChannel(mc, 1, 2)'
    'fcc = GetChannel(mc, 3, 3)'
    'lrc = MixAudio(flr, fcc, 0.3694, 0.2612)'
    'blr = GetChannel(mc, 5, 6)'
    'MixAudio(lrc, blr, 1.0, 0.3694)'
       
channels >= 6:
    'flr = GetChannel(1, 2)'
    'fcc = GetChannel(3, 3)'
    'lrc = MixAudio(flr, fcc, 0.3694, 0.2612)'
    'blr = GetChannel(5, 6)'
    'MixAudio(lrc, blr, 1.0, 0.3694)'
            
channels >= 4:
    'flr = GetChannel(1, 2)'
    'blr = GetChannel(3, 4)'
    'MixAudio(flr, blr, 0.5, 0.5)'
            
channels == 3:
    'flr = GetChannel(1, 2)'
    'fcc = GetChannel(3, 3)'
    'MixAudio(flr, fcc, 0.5858, 0.4142)'
And finally, I have a request:
For me, the 4 channel output does not work with Win10, so I have only stereo available, I can not check whether really all channels are read and directly forwarded to the output.
So if someone has a 6 channel system and hears all 6 channels with the audio mixer turned off, he should let me know so that I no longer have to worry about it.
__________________
Live and let live

Last edited by gispos; 6th May 2023 at 22:01. Reason: Pre-Release link removed
gispos is offline   Reply With Quote
Old 6th May 2023, 14:02   #1370  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,002
AvsPmod 2.7.4.5
Code:
* Added audio playback, for full Info please read the readme_audio.txt
- for faster playback: use 'Split Clip' and put Prefetch after the 'Resample Filter', see below (Options > Resample Filter)
* Added audio scrubbing (audio sound while video frame is scrolling)
* Added to play button context menu:'Play audio', 'Audio scrubbing', 'Audio scrub count'.
* Added to Video > Play video > 'Play audio', 'Play scrub', 'Audio scrubbing', 'Downmix audio' (make a shortcut for 'Play scrub').
* Added to Play button context menu 'Audio volume'. increase/decrease in Decibel.
- Note: There is no level limiter, the audio can get clipping. 
* Added Options > 'Prefetch display conversion' (Test it, I have it enabled).
- the function uses Prefetch(2,2) for RGB conversion for the display. 
- this speeds up the video frame drawing by about 1 to 30% depending on the color format. So also the playback.
- if this function is switched on, the prefetch for the 'Resample filter' (see below) is superfluous and therefore not used.
* Resample Filter (resample zoom):
- it is now posible do use another function after the resample filter, the function must be writen after the resizer separated by a semicolon.
- example: Spline36Resize;Prefetch(1) or Spline36Resize;sharpen(0.2).Prefetch(1) is also posible.
- use prefetch after the resizer for more playback speed when the 'Resample Filter' is enabled.
* The External Player button has got a context menu in which the function of the button can be selected (External Player, Audio scrub).
- audio scrub will play min 36 video frames or 48 if audio scrub count 48 
* Added Menubar > Options > 'Restore fullscreen', when toggle with the middle mouse button.
* Changed color of timeline selection markers for video controls dark theme.
* Improved 'Preview Filter' speed a bit.
* Fixed drawing snapshot if 'Split View alternate' enabled.
* Fixed: rare occurrence when clip frame count is 0 no error handling was done.
* Bugfix: 'Fast Clip' ignored 'Toggle Tags' (Filters could not be switched off with 'Toggle Tags').
* Bugfix: Copy new tab
* Some other changes
__________________
Live and let live
gispos is offline   Reply With Quote
Old 7th May 2023, 15:53   #1371  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
What's with this:



Shouldn't the output be mod2 there?

EDIT:
Similar error in MeGUI, so it's not AvsPmod's fault, strange that it doesn't show error in "red letters" aka Avisynth output.
I've posted there: https://forum.doom9.org/showthread.p...01#post1986801

Last edited by VoodooFX; 7th May 2023 at 17:14.
VoodooFX is offline   Reply With Quote
Old 7th May 2023, 17:04   #1372  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,002
Quote:
Originally Posted by VoodooFX View Post
What's with this:



Shouldn't the output be mod2 there?
Maybe you should change the 91 to 90.
__________________
Live and let live
gispos is offline   Reply With Quote
Old 7th May 2023, 17:19   #1373  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Quote:
Originally Posted by gispos View Post
Maybe you should change the 91 to 90.
No, I don't want it changed.
VoodooFX is offline   Reply With Quote
Old 7th May 2023, 18:52   #1374  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,002
Quote:
Originally Posted by VoodooFX View Post
No, I don't want it changed.
Then complain to the avisynth developers.
Man, this is an avisynth error message, try this with Planar format Spline36Resize(333, 111)
__________________
Live and let live

Last edited by gispos; 7th May 2023 at 18:57.
gispos is offline   Reply With Quote
Old 8th May 2023, 12:54   #1375  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
Quote:
Originally Posted by gispos View Post
The first AvsPmod version with audio playback
...and just like that, 23 years later, I can stop drag-and-dropping .avs files to VirtualDub.
Thank you, Gispos and farewell VirtualDub, my old friend.


EDIT: Houston, we have a problem.

Works like a charm on Windows 10 Enterprise x64 22H2 and Windows Sever 2019 x64, however on Windows XP Professional x86 it starts playing the audio and then:



in particular, with a simple ColorBars(848, 480, pixel_type="YV12") it fails after a few frames


Last edited by FranceBB; 8th May 2023 at 13:08.
FranceBB is offline   Reply With Quote
Old 9th May 2023, 23:57   #1376  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,546
gispos, big hugs !
Finally audio preview, what a nice worrking now.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 10th May 2023, 01:03   #1377  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
And downmix too, thanks very much
kedautinh12 is online now   Reply With Quote
Old 10th May 2023, 13:41   #1378  |  Link
videoFred
Registered User
 
videoFred's Avatar
 
Join Date: Dec 2004
Location: Terneuzen, Zeeland, the Netherlands, Europe, Earth, Milky Way,Universe
Posts: 689
Quote:
Originally Posted by FranceBB View Post
...and just like that, 23 years later, I can stop drag-and-dropping .avs files to VirtualDub.
Thank you, Gispos and farewell VirtualDub, my old friend.
I agree:sound option works great!

Thank you Gispos!

Fred.
__________________
About 8mm film:
http://www.super-8.be
Film Transfer Tutorial and example clips:
https://www.youtube.com/watch?v=W4QBsWXKuV8
More Example clips:
http://www.vimeo.com/user678523/videos/sort:newest
videoFred is offline   Reply With Quote
Old 10th May 2023, 17:28   #1379  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,002
Quote:
Originally Posted by FranceBB View Post
...
EDIT: Houston, we have a problem.
on Windows XP Professional x86 it starts playing the audio and then:


]
Everything could be so beautiful, but no, the FranceBB has to deliver Job's messages.

This will be difficult.
1.) Under Win10 64bit there are no problems with the AvsPmod 32bit version for me.
2.) I don't have a 32bit system for testing.

What misleads me is that a few sounds are played and then there is an error. I would expect that no sound is heard or that AvsPmod crashes immediately.

So wrong pointer or audio can not be created = no sound
Buffer size is not correct (too small) = crashes

You need to check a few things.
1.) Does the audio scrubbing work?
In the context menu of the play button set the scrub count to 1.
Set there also Audio scrubbing to on.
And now run the video with the right arrow key. What happens?

2) In the context menu of the 'External Player' button select Audio scrub.
Does the audio play without error message when you click on the button?
__________________
Live and let live
gispos is offline   Reply With Quote
Old 12th May 2023, 10:56   #1380  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
Quote:
Originally Posted by gispos View Post
You need to check a few things.
1.) Does the audio scrubbing work?
In the context menu of the play button set the scrub count to 1.
Set there also Audio scrubbing to on.
And now run the video with the right arrow key. What happens?
Done:




it started playing, I could hear the sound just fine, went on for a few seconds, then:




Quote:
Originally Posted by gispos View Post
2) In the context menu of the 'External Player' button select Audio scrub.
Does the audio play without error message when you click on the button?
Uhmmm if this is what you mean, it was already selected:




What's interesting is that after making it crash, if I try to do it again then it crashes much faster, after just 1 sec.

Something fishy is going on here... uhmmmmmmm
FranceBB is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.