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 > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th May 2024, 21:09   #21  |  Link
Zarxrax
Registered User
 
Join Date: Dec 2001
Posts: 1,226
Quote:
Originally Posted by Myrsloik View Post
Avs+ version?
As I mentioned, I am using it in avisynth+. I'm a little confused by your question, as it appears there is a single version of the plugin that works in both vapoursynth and avs+, right?
Zarxrax is offline   Reply With Quote
Old 11th May 2024, 21:39   #22  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,110
Without problems here Avs+ 3.7.3 (r4066, master, x86_64)

Include in your script:

Version()
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 11th May 2024, 22:04   #23  |  Link
Zarxrax
Registered User
 
Join Date: Dec 2001
Posts: 1,226
Hmmm, okay I seem to have resolved the issue.
I had Avs+ 3.7.3 r3849. I have updated to 3.7.3 r4003, and BSSource is loading audio now.
I had previously only looked at the "3.7.3" part, so I thought I was up to date.
Zarxrax is offline   Reply With Quote
Old 5th October 2024, 23:29   #24  |  Link
isidroco
Registered User
 
Join Date: Nov 2008
Posts: 51
Thanks for BestSource2, using (55MB) sample "20090227_letterman-x264_m2ts_1080i.mp4" taken from:
https://forum.videohelp.com/threads/...le#post2608363
ffms2 gives slighlty wrong num/den FPS (500000/16697)
LSmashVideoSource thinks it's PAL 25fps and duplicate all frames
LWLibavVideoSource gives 2x FPS 60000/1001
DirectshowSource gives slightly wrong 10000000/333667 FPS

BSSource is the only one which gives correct FPS 30000/1001
isidroco is offline   Reply With Quote
Old 6th October 2024, 08:52   #25  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,588
Quote:
Originally Posted by isidroco View Post
Thanks for BestSource2, using (55MB) sample "20090227_letterman-x264_m2ts_1080i.mp4" taken from:
https://forum.videohelp.com/threads/...le#post2608363
ffms2 gives slighlty wrong num/den FPS (500000/16697)
LSmashVideoSource thinks it's PAL 25fps and duplicate all frames
LWLibavVideoSource gives 2x FPS 60000/1001
DirectshowSource gives slightly wrong 10000000/333667 FPS

BSSource is the only one which gives correct FPS 30000/1001
Nice. Note that many files that appear to be CFR aren't. Especially MP4 ones. They start with a few frames of irregular length quite often.

So even if you get the framerate you expect you could still end up with an audio offset of a few ms.

Everything is shit.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 21st October 2024, 14:06   #26  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 1,032
What's up with this very slow indexing? I guess it tries to decode whole video file.
With LSMASHSource half of encode would be finished when BestSource2 would be still indexing...
VoodooFX is offline   Reply With Quote
Old 21st October 2024, 14:47   #27  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,588
Quote:
Originally Posted by VoodooFX View Post
What's up with this very slow indexing? I guess it tries to decode whole video file.
With LSMASHSource half of encode would be finished when BestSource2 would be still indexing...
The whole file is decoded. Every frame has its checksum calculated. Makes things more reliable than all other source filters.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 21st October 2024, 20:32   #28  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 1,032
Could be there option implemented for faster indexing like LWLibavVideoSource()?
I like that dxva2/d3d11va decoding works here, could speed-up encoding a bit.
VoodooFX is offline   Reply With Quote
Old 21st October 2024, 20:50   #29  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,588
Quote:
Originally Posted by VoodooFX View Post
Could be there option implemented for faster indexing like LWLibavVideoSource()?
I like that dxva2/d3d11va decoding works here, could speed-up encoding a bit.
"Could it be exactly like LWLibavVideoSource()?"

Sure, just download LWLibavVideoSource.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 21st October 2024, 20:58   #30  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 1,032
I meant the faster indexing.
VoodooFX is offline   Reply With Quote
Old 21st October 2024, 23:20   #31  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,588
Quote:
Originally Posted by VoodooFX View Post
I meant the faster indexing.
Me too
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 24th October 2024, 18:14   #32  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,696
Many thanks Myrsloik !
Here your BestSource R8 just served correct framerate 6.004fps from a crappy xvid in .avi webcam source.
The other sourcefilters assumed 25.000fps and borked the stream.
__________________
"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 25th October 2024, 08:48   #33  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,588
Quote:
Originally Posted by Emulgator View Post
Many thanks Myrsloik !
Here your BestSource R8 just served correct framerate 6.004fps from a crappy xvid in .avi webcam source.
The other sourcefilters assumed 25.000fps and borked the stream.
Interesting. Now I'm waiting for someone to report a case where the framerate guessing really fails. Posting a mega VFR file doesn't count.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 26th October 2024, 07:57   #34  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 779
I don't know how to use it.
Test GCC: (GNU) 15.0.0 20241020 (experimental) (SIMD) AVX
I don't know if gcc 15.0.0 works correctly in C++23. Wrapper uses std::format and std:: print or fmt::format replacement.
https://github.com/vapoursynth/bests...6dcff124a6729f

BSAudioSource("myAvi.avi", -1, -1, 0, false, false, 0, 1, "", 100)
Code:
[mp3 @ 0000022278cac380] The dropchanged flag is deprecated.
[mpeg4 @ 0000022278cca160] Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using the mpeg4_unpack_bframes bitstream filter without encoding but stream copy to fix it.
[mp3 @ 0000022278cf0fe0] The dropchanged flag is deprecated.
Input #0, avisynth, from 'AudioBoost.avs':
  Duration: 01:38:45.19, start: 0.000000, bitrate: N/A
  Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
   6.83 M-A:  0.000 fd=   0 aq=  192KB vq=    0KB sq=    0B
BSVideoSource("myAvi.avi", -1, -1, 1, false, 0, 20, false, false, 1, "", 1000, "", 9, "time.txt", 0)
Code:
[mpeg4 @ 000002184d9377b0] The dropchanged flag is deprecated.
[mpeg4 @ 000002184d97eb80] Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using the mpeg4_unpack_bframes bitstream filter without encoding but stream copy to fix it.
[mpeg4 @ 000002184d97b5d0] The dropchanged flag is deprecated.
[mpeg4 @ 000002184d97bcb0] Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using the mpeg4_unpack_bframes bitstream filter without encoding but stream copy to fix it.
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B
Error: Wrapper doesn't support XVID codec

BSSource("myAvi.avi", -1, -1, false, -1, 1, false, 0, 20, false, false, 1, "", 100, 1000, "", 9, "time.txt", 1, -1, 0)
Code:
[avisynth @ 0000012382d187a0] Script error: Invalid arguments to function 'BSSource'.
(AudioBoost.avs, line 8)
AudioBoost.avs: Unknown error occurred
I don't know how to use it.
BSSetDebugOutput(false)
Code:
[avisynth @ 000001869e344350] AviSynth script did not return a clip
AudioBoost.avs: Unknown error occurred
BSSetFFmpegLogLevel(1)
I don't know how to use it.

Edit: Probably too modern a solution for ffmpeg in gcc 15.0.0.
When I have time I will test C++17 with std::to_string.
https://www.sendspace.com/file/rxka3g

Last edited by Jamaika; 26th October 2024 at 08:06.
Jamaika is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 14:43.


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