Hi, I just wanted to share an example that gave me some headache as it was the first time I was using this software at all. At first, I just didn’t know where to start, there were so many unknown aspects at once. The problem is that most examples were either too short or relied on avisynth which doesn’t use Python and so has a different syntax. I also didn’t know when and how to load plugins etc. — Now, I have figured everything out. So, I would like to give a short and concise example on how to use the degrain function in vapoursynth-mvtools. If you like, feel free to include it somewhere or just leave it as a resolved issue so other people can find it. This is my way of expressing my gratitude for your excellent software. Thank you!
On my Macbook, I have Homebrew installed. Using this, I just installed vapoursynth-mvtools including vapoursynth itself using brew install mvtools ffms2. ffms2 is used to load the video. I put together the following Python script and saved it to a file degrain2.vpy:
I then ran it using vspipe -y degrain2.vpy my_prores_video.raw. The -y is important so it can be converted using ffmpeg afterwards; the output could also be piped using - | and then the ffmpeg command instead of an output filename, but I didn’t take the time to work out how I would have to change in the ffmpeg command to make that work.
I then converted back to ProRes: ffmpeg -i my_prores_video.raw -c:v prores_ks -profile:v 4 my_prores_video-out.mov
I have omitted audio output because I was not using audio on this clip. To include audio, you could add e. g. -c:a pcm_s16le to the ffmpeg command, before the output file name.
Now that I know how to input, process and output, I can play with the options to achieve even better results. The original page seems to be down at the moment, but you can easily find it, e. g., on the Internet Archive.
Hi, I just wanted to share an example that gave me some headache as it was the first time I was using this software at all. At first, I just didn’t know where to start, there were so many unknown aspects at once. The problem is that most examples were either too short or relied on avisynth which doesn’t use Python and so has a different syntax. I also didn’t know when and how to load plugins etc. — Now, I have figured everything out. So, I would like to give a short and concise example on how to use the degrain function in vapoursynth-mvtools. If you like, feel free to include it somewhere or just leave it as a resolved issue so other people can find it. This is my way of expressing my gratitude for your excellent software. Thank you!
On my Macbook, I have Homebrew installed. Using this, I just installed vapoursynth-mvtools including vapoursynth itself using
brew install mvtools ffms2
. ffms2 is used to load the video. I put together the following Python script and saved it to a filedegrain2.vpy
:I then ran it using
vspipe -y degrain2.vpy my_prores_video.raw
. The-y
is important so it can be converted using ffmpeg afterwards; the output could also be piped using- |
and then the ffmpeg command instead of an output filename, but I didn’t take the time to work out how I would have to change in the ffmpeg command to make that work.I then converted back to ProRes:
ffmpeg -i my_prores_video.raw -c:v prores_ks -profile:v 4 my_prores_video-out.mov
I have omitted audio output because I was not using audio on this clip. To include audio, you could add e. g.
-c:a pcm_s16le
to the ffmpeg command, before the output file name.Now that I know how to input, process and output, I can play with the options to achieve even better results. The original page seems to be down at the moment, but you can easily find it, e. g., on the Internet Archive.