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. |
27th June 2020, 12:04 | #3881 | Link |
Registered User
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
|
Btw audioSplice is kind of broken. I tried to figure it out and seems https://github.com/DJATOM/vapoursynt...dc0ba8c53cef49 fixes it, but at some conditions it now silently crashes. I'm busy with work now and can't debug deeper.
|
27th June 2020, 14:22 | #3882 | 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 |
|
28th June 2020, 07:26 | #3883 | Link | |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
A little help requested
Quote:
|
|
28th June 2020, 18:29 | #3884 | Link |
Registered User
Join Date: Jun 2006
Posts: 452
|
VS-audio-test4 : w64 headers broken again.
It seems that the latest audio-enabled version from VS (VapourSynth64-Portable-R51-audio-test4) has broken adding -w or --w64 headers to the output.
Code:
vspipe -w myaudio.vpy - | ffplay -i pipe: Code:
vspipe --wav myaudio.vpy - | ffplay -i pipe: So WAV header added by --wav still works ok with test4. Also with test4 : Code:
vspipe -w myaudio.vpy test.w64 (and) vspipe --w64 myaudio.vpy test.w64 These also work perfect with test3 : all above players played the resulting test.w64 perfectly Last edited by Pat357; 28th June 2020 at 22:28. |
28th June 2020, 23:51 | #3885 | 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 |
|
29th June 2020, 00:52 | #3886 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
The length of the 'fmt' Subchunk is wrong and the Subchunk 'data' is not found, the same w64 with previous version:
Code:
ChunkID .....: riff ChunkID .....: riff RiffLength ..: 13824128 RiffLength ..: 13824128 Container ...: wave Container ...: wave SubchunkID ..: fmt (Length: 40) SubchunkID ..: fmt (Length: 32) <-------- AudioFormat .: 65534 (WAVE_FORMAT_EXTENSIBLE) AudioFormat .: 65534 (WAVE_FORMAT_EXTENSIBLE) NumChannels .: 6 NumChannels .: 6 SampleRate ..: 48000 SampleRate ..: 48000 ByteRate ....: 1152000 ByteRate ....: 1152000 BlockAlign ..: 24 BlockAlign ..: 24 BitsPerSample: 32 BitsPerSample: 32 ValidBitsPS .: 32 ValidBitsPS .: 32 MaskChannels : 63 (FL FR FC LF BL BR) MaskChannels : 63 (FL FR FC LF BL BR) SubType .....: 3 (Float) SubType .....: 3 (Float) SubchunkID ..: data (Length: 13824000) SubchunkID ..: ? <-------- Offset data .: 128 Duration ....: 12 sec., (0h. 0m. 12s.)
__________________
BeHappy, AviSynth audio transcoder. |
29th June 2020, 19:04 | #3887 | Link |
Registered User
Join Date: Jun 2006
Posts: 452
|
@tebasuna51 : What tool did you use to retrieve the info you posted from an audio file ? Seems extremely useful with detailed output. Is it public available ?
It's a bit strange that the previous version you say also causes missing info in the w64 header, while om my system ffmpeg was able to play the files. What version do you mean by the previous version ? Can you state the date stamps from for example Vspipe ? The version that worked for me was VapourSynth64-Portable-R50-audio3 compiled on 16/06/2020. I believe VapourSynth64-Portable-R50-audio3 has been updated without changing the filename or download location, so it could be that I have a different "previous" version than you... Can you try if the following simple commands work on your previous version ? Code:
vspipe -w myaudio.vpy - | ffplay -i pipe: vspipe --w64 myaudio.vpy - | ffplay -i pipe: Code:
import vapoursynth as vs from vapoursynth import core a1 = core.bas.Source(r"d:\test\audio\samples\mp3\Mena1.mp3", track=-1) a1.set_output() Last edited by Pat357; 29th June 2020 at 19:31. |
29th June 2020, 21:44 | #3888 | Link | ||
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
Quote:
In a previous version the headers are 'simple', corrects but without the channelmask info than offer the 'WAVE_FORMAT_EXTENSIBLE' headers.
__________________
BeHappy, AviSynth audio transcoder. |
||
2nd July 2020, 13:48 | #3889 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
RGB format
In RGB packed samples supported by avisynth the left bottom corner is the 0,0 coordinate. In the RGB24 format of vapoursynth where is this 0,0 ? I am finding in one of my plugins it to be Left Top corner, but in another Left Bottom. My code must be wrong in one of the cases. Request clarify.
|
2nd July 2020, 14:12 | #3891 | 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 |
|
4th July 2020, 11:18 | #3893 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
this works here:
ffmpeg -f vapoursynth -i aaa.vpy -c:v r210 aaa.mov
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
4th July 2020, 13:36 | #3895 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
You can find it in the Apps dialog of staxrip, it provides web, help and download URLs, in many cases it shows a mediafire folder of Patman:
https://www.mediafire.com/folder/vkt.../StaxRip_Tools
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 4th July 2020 at 13:38. |
4th July 2020, 19:46 | #3897 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,752
|
Also you can set up the media-autobuild suite to compile ffmpeg for you, including all the codecs and features you need. Even combinations of licenses which may not be distributed in public.
|
13th July 2020, 12:54 | #3898 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
Input 2 clips and output one frame
I have as input 2 clips A and B. My output C has a copy of B as base on which some new pixels are drawn. I have following questions.
1. Can I specify (ret, B = ret,...) as input string when I want the A clip also be the base for my C. Should I test if they are same and set up a flag for ArInitial, or not required? Can I specify B to be opt and if not specified make it same as ret? 2. If I need to set up a flag then can the arInitial be // Request the source frame on the first call vsapi->requestFrameFilter(n, d->node[0], frameCtx); if( clipsNotSame) vsapi->requestFrameFilter(n, d->node[1], frameCtx); Is such construct allowed? Or there is no need to have if statement? 3. In all frames ready section should I use if(clipsNotSame){ bkg = vsapi->getFrameFilter(n, d->node[1], frameCtx); i VSFrameRef *dst = vsapi->copyFrame(bkg, core); } else VSFrameRef *dst = vsapi->newVideoFrame(fi, width, height, src, core); 4. out of 2 methods getting new video frame and copying with bltbit ior using copyFrame, which is preferable? |
13th July 2020, 14:07 | #3899 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Quote:
1. You mean that you have a function that takes two clips and want to see if they're identical? There's no way to compare clips for equality since the pointers are only a reference object and can (and most likely will) be different for the same clip. The most correct way to solve it is to mark the clip B argument as optional and only use clip A. Code:
Argument list: "clipa:clip;clipb:clip:opt;" 3. Yes, that works. 4. copyFrame, it will always copy the minimal amount of data using an effective method if you're only going to modify a small portion of the frame.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
14th July 2020, 07:17 | #3900 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
Thanks. Being a novice coder, I use with avisynth the ThrowError mssage having printf format for debugging. For vapoursynth for debugging in the areAllFramesReady section what messaging code should I use so that I can see some values on screen?
|
Tags |
speed, vaporware, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|