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. |
26th January 2020, 14:11 | #1 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Audio Development
Audio support is finally mostly done. See this blog post for a longer explanation and list of what's currently implemented.
Test5 installer (x64) Test5 portable (x64) Test4 installer (x64) Test4 portable (x64) BestAudioSource thread
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet Last edited by Myrsloik; 2nd August 2020 at 14:12. Reason: New version |
26th January 2020, 15:14 | #2 | Link |
Registered User
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
|
Looks like 1 audio frame has a length of 2 seconds and I can't trim less than that. clip2 = clip2.std.AudioTrim(0, 95999) works, while clip2 = clip2.std.AudioTrim(0, 47999) fails to output any data.
|
26th January 2020, 15:36 | #3 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Quote:
Audio frames are currently 96000 samples so that's well spotted.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
26th January 2020, 19:11 | #6 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Did you actually get the plugin?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
2nd February 2020, 19:30 | #12 | Link |
Registered User
Join Date: Jun 2006
Posts: 452
|
How to choose to output W64 or raw ?
What can I use to play raw audio ? I suppose FFplay should do the trick ? What extra <parameters> do I have to use in example below to play raw-audio ? Here's what I have : vspipe -i betteraudio_test.vpy - [mp3float @ 000001B60C074C00] Could not update timestamps for skipped samples. Samples: 12856320 Sample Rate: 48000 Format Name: Audio32F Sample Type: Float Bits: 32 Channels: 2 Layout: ffplay -f f32le -sample_rate 48000 -channel_layout 3 -i rawaudio.raw Code:
[pcm_f32le @ 000002ce23786700] Channel layout 'stereo' with 2 channels does not match specified number of channels 1: ignoring specified channel layout [f32le @ 000002ce23779180] Estimating duration from bitrate, this may be inaccurate Input #0, f32le, from 'rawaudio.raw': Duration: 00:08:55.68, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_f32le, 48000 Hz, 1 channels, flt, 1536 kb/s [pcm_f32le @ 000002ce237d3280] Channel layout 'stereo' with 2 channels does not match specified number of channels 1: ignoring specified channel layout 24.58 M-A: 0.000 fd= 0 aq= 184KB vq= 0KB sq= 0B f=0/0 One channel produces only noise, while the other plays the music, but much to slow (tempo and pitch are both to low). The woman in this song sounds like a man with a deep voice. Last edited by Pat357; 2nd February 2020 at 20:27. Reason: Adding more information |
2nd February 2020, 20:05 | #13 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
You use -y or --y4m wo add w64 heqaders. A bit confusing but I've basically changed it to mean "add headers". Not sure how to play the raw audio in ffmpeg.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
3rd February 2020, 17:43 | #14 | Link |
Registered User
Join Date: Jun 2006
Posts: 452
|
Finally I figured it out and give it here in case other users want to use ffmpeg to process the output :
To playback or process the raw audio output from Vspipe, do the following : vspipe -i betteraudio_test.vpy - [mp3float @ 000001B60C074C00] Could not update timestamps for skipped samples. Samples: 12856320 Sample Rate: 48000 Format Name: Audio32F Sample Type: Float Bits: 32 Channels: 2 Layout: Notice the following parameters : Code:
Sample Rate: 48000 = -ar 48000 Format Name: Audio32F Sample Type: Float Bits: 32 3 above together = -f f32le Channels: 2 = -ac 2 Code:
vspipe betteraudio_test.vpy - | ffplay -f f32le -ac 2 -ar 48000 -i - Code:
vspipe betteraudio_test.vpy - | ffmpeg -f f32le -ac 2 -ar 48000 -i - <filters> -acodec xxx ... outputfile With Avisynth I've no problems found so far. Last edited by Pat357; 3rd February 2020 at 18:11. |
3rd February 2020, 21:45 | #15 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Quote:
Anyway, here's the general plan:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
4th February 2020, 07:35 | #16 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
Would it be possible to also include the SoundTouch library functionalities to allow adjusting pitch, tempo etc.?
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
4th February 2020, 09:46 | #17 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Start writing a plugin!
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
4th February 2020, 17:30 | #18 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
I'm just a little bit too dumb for that.. not much but enough to not push me over the edge
I was just thinking if it was possible to port the implementation already included in native Avisynth+. Nevertheless, thanks for the work. I tested the plugin briefly in Avs+ to adjust audio (5.1ch FLAC file) tempo for an ugly 24.975 -> 25 fps conversion. It worked without a hitch
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
4th February 2020, 17:43 | #19 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
9th May 2020, 22:47 | #20 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
You found an 11 year old bug from the original AVFS author. Congratulations!
So much for borrowing the w64 code from there. Will be fixed in the next version.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
Thread Tools | Search this Thread |
Display Modes | |
|
|