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

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th November 2020, 13:23   #21  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,205
Quote:
Originally Posted by ISmileAtYouuu View Post
the souce file can be too big a resolution which will crash avidemux and staxrip when you open the avs file.


i find 1080p files work and look nice, but 720p videos look nice too. and larger a source video and it will probably not even open the avs file.
Luckily I don't use the first, nor the latter.
I Indexed 4K UHD files many times in Avisynth without any problem, so the programs you're using are probably doing something in 32bit instead of 64bit which makes them crash. Luckily, I'm not gonna have this problem

Quote:
Originally Posted by ISmileAtYouuu View Post
you need movavi video editor, if you follow my guide. if you find some other way for free then please do share. its impossible otherwise to split and have the same files length for the three videos which causes lip sync errors.
Nah, I'm gonna encode the whole video, it's not gonna crash as long as I'm gonna be on x64, as I said, I don't really need to trim anything, so I'm not gonna use any of that.

I was only curious about VR videos, whether there's a particular flag to be passed to x264/x265 or to the container at muxing time to make it recognized as VR. That's all I wanted to know.
FranceBB is offline   Reply With Quote
Old 5th November 2020, 14:16   #22  |  Link
ISmileAtYouuu
Registered User
 
Join Date: Sep 2020
Posts: 15
everything i do is written in the guide in the first post, and my previous reply to you.
ISmileAtYouuu is offline   Reply With Quote
Old 7th November 2020, 22:40   #23  |  Link
ISmileAtYouuu
Registered User
 
Join Date: Sep 2020
Posts: 15
i listened to you that my version of staxrip was probably to blame for my limitation of 14 minute clips, and so i tried this version: https://github.com/Revan654/staxrip/...es/tag/2.0.2.4

that fixed it! now i tried a encode of a full movie from the youtube, beyond the mind's eye, and it worked fine for 1280x960. hey, pretty awesome!

ty, it worked!

https://youtu.be/4XGWXmxmaoE
ISmileAtYouuu is offline   Reply With Quote
Old 7th November 2020, 23:53   #24  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,205
When I hear people saying that things crashes on Avisynth-related programs, it's almost always the case that the RAM is the culprit.
Anyway, I'm glad it fixed your issue.
FranceBB is offline   Reply With Quote
Old 8th November 2020, 10:33   #25  |  Link
ISmileAtYouuu
Registered User
 
Join Date: Sep 2020
Posts: 15
i got a error how i fixed it is, replace the LSMASHSource.dll in Staxrip.2.0.2.4.x64\Apps\Plugins\AVS\L-Smash-Works with the LSMASHSource.dll in C:\Program Files (x86)\AviSynth+\plugins64+
ISmileAtYouuu is offline   Reply With Quote
Old 25th December 2020, 17:04   #26  |  Link
ISmileAtYouuu
Registered User
 
Join Date: Sep 2020
Posts: 15
looks nice. needs a 1920,1080 sized video tthough.:

Code:
video = LSMASHVideoSource("C:\not going wide.mp4").Crop(0, 0, 0, 0).ConvertToYV12(interlaced = false)

audio = LSMASHAudioSource("C:\not going wide.mp4")
AudioDubStep = AudioDub(video, audio)

top_left = LSFmod(AudioDubStep, strength = 200).crop(0, 0, -960, -540).Spline64Resize(900, 800).AddBorders(380,0,0,0) # top left
top_right = LSFmod(AudioDubStep, strength = 200).crop(960, 0, 0, -540).Spline64Resize(900, 800).AddBorders(0,0,380,0) # top right
bottom_left = LSFmod(AudioDubStep, strength = 200).crop(0, 540, -960, 0).Spline64Resize(900, 800).AddBorders(380,0,0,0) # bottom left
bottom_right = LSFmod(AudioDubStep, strength = 200).crop(960, 540, 0, 0).Spline64Resize(900, 800).AddBorders(0,0,380,0) # bottom right

blank = BlankClip(AudioDubStep).crop(960, 540, 0, 0).Spline64Resize(1280, 800)
blankHalf = BlankClip(bottom_right).crop(0, 360, 0, 0)
blankFill = BlankClip(bottom_right)#.crop(0, 400, 0, 0)
blankquarter = BlankClip(blankHalf).crop(0, 220, 0, 0)
blankCorner = BlankClip(top_left)

column1 = StackVertical(blankquarter, blankquarter, blank, blank, blank, blank, blankquarter, blankquarter) # half the width

column2 = StackVertical(blankquarter, blankquarter, blankCorner, top_left, bottom_left, blankCorner, blankquarter, blankquarter)
column3 = StackVertical(blankquarter, blankquarter, blankCorner, top_right, bottom_right, blankCorner, blankquarter, blankquarter)

column6 = StackVertical(blankquarter, blankquarter, blank, blank, blank, blank, blankquarter, blankquarter).crop(400,0,0,0) #800
column5 = StackVertical(blankquarter, blankquarter, blank, blank, blank, blank, blankquarter, blankquarter).crop(0,0,-240,0) #480

step5 = StackHorizontal(column6, column1, column2, column3, column1, column5)

return (step5)
ISmileAtYouuu is offline   Reply With Quote
Old 26th December 2020, 21:46   #27  |  Link
ISmileAtYouuu
Registered User
 
Join Date: Sep 2020
Posts: 15
i wanted to convert my video collection, but i have a lot of videos, so i made them all 16:9 aspect ratio, 1920, 1080, then i had to make the avs files.

So i automated making the avs files, this mapes .mp4 files, change the extension to avs. heres how to make the files in c++ first:

Code:
/// using ofstream constructors.
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <stdio.h>
#include <dirent.h>

using namespace std;

int main(void) {
   DIR *dr;
   struct dirent *en;
   dr = opendir("E:/"); //open all or present directory
   if (dr) {
      while ((en = readdir(dr)) != NULL) {
         printf("%s\n", en->d_name); //print all directory name

         std::ofstream outfile (en->d_name);

         outfile <<
         "video = LSMASHVideoSource(\"E:\\" << en->d_name << "\").Crop(0, 0, 0, 0).ConvertToYV12(interlaced = false)\n"
        <<
        "audio = LSMASHAudioSource(\"E:\\" << en->d_name << "\")\n"
        <<
        "AudioDubStep = AudioDub(video, audio)\n"
        <<
        "top_left = LSFmod(AudioDubStep, strength = 200).crop(0, 0, -960, -540).Spline64Resize(900, 800).AddBorders(380,0,0,0) \# top left\n"
        <<
        "top_right = LSFmod(AudioDubStep, strength = 200).crop(960, 0, 0, -540).Spline64Resize(900, 800).AddBorders(0,0,380,0) \# top right\n"
        <<
        "bottom_left = LSFmod(AudioDubStep, strength = 200).crop(0, 540, -960, 0).Spline64Resize(900, 800).AddBorders(380,0,0,0) \# bottom left\n"
        <<
        "bottom_right = LSFmod(AudioDubStep, strength = 200).crop(960, 540, 0, 0).Spline64Resize(900, 800).AddBorders(0,0,380,0) \# bottom right\n"
        <<
        "blank = BlankClip(AudioDubStep).crop(960, 540, 0, 0).Spline64Resize(1280, 800)\n"
        <<
        "blankHalf = BlankClip(bottom_right).crop(0, 360, 0, 0)\n"
        <<
        "blankFill = BlankClip(bottom_right)#.crop(0, 400, 0, 0)\n"
        <<
        "blankquarter = BlankClip(blankHalf).crop(0, 220, 0, 0)\n"
        <<
        "blankCorner = BlankClip(top_left)\n"
        <<
        "column1 = StackVertical(blankquarter, blankquarter, blank, blank, blank, blank, blankquarter, blankquarter) \# half the width\n"
        <<
        "column2 = StackVertical(blankquarter, blankquarter, blankCorner, top_left, bottom_left, blankCorner, blankquarter, blankquarter)\n"
        <<
        "column3 = StackVertical(blankquarter, blankquarter, blankCorner, top_right, bottom_right, blankCorner, blankquarter, blankquarter)\n"
        <<
        "column6 = StackVertical(blankquarter, blankquarter, blank, blank, blank, blank, blankquarter, blankquarter).crop(400,0,0,0) \#800\n"
        <<
        "column5 = StackVertical(blankquarter, blankquarter, blank, blank, blank, blank, blankquarter, blankquarter).crop(0,0,-240,0) \#480\n"
        <<
        "step5 = StackHorizontal(column6, column1, column2, column3, column1, column5)\n"
        <<
        "return (step5)\n";

         outfile.close();

      }
      closedir(dr); //close all directory
   }
   return(0);
}
here's how to change the files extension:

open cmd, go to directory type: "cd /D folder-location", in folder type "ren *.mp4 *.avs"
ISmileAtYouuu is offline   Reply With Quote
Old 26th December 2020, 21:54   #28  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,223
See Avisynthesizer_Mod, a Windows Explorer SendTo type app.
Creates Avs files, Two modes of operation, concatenates selected files,
or (probably what you want)
Batch Mode, creates an Avs for each selected file [Can Group Select].

Uses Template [extension avst, in Avsynthesizer_Mod TEMPLATE directory] to create AVS files.
https://forum.doom9.org/showthread.p...ynthesizer_mod

EDIT: Simple Batch Mode template.
Code:
#ASYNTHER BATCH-AVISOURCE
# Above BATCH-AVISOURCE shown in GUI for template selection

# Below not enclosed in square brackets, so is Non-Repeating ie Batch Mode, multiple AVS files generated. 
FN = "___FILE___"

AVISource(FN)

Crop(32,0,-32,0) # Or whatever

# ... Etc
EDIT: Maybe something like this [Based on your C source code]

Batch_ISmile.avst
Code:
#ASYNTHER BATCH-ISMILE
# Above BATCH-ISMILE shown in GUI for template selection

FN = "___FILE___"

video = LSMASHVideoSource(FN).Crop(0, 0, 0, 0).ConvertToYV12(interlaced = false)
audio = LSMASHAudioSource(FN)
AudioDubStep = AudioDub(video, audio)
top_left     = LSFmod(AudioDubStep, strength = 200).crop(0, 0, -960, -540).Spline64Resize(900, 800).AddBorders(380,0,0,0) # top left
top_right    = LSFmod(AudioDubStep, strength = 200).crop(960, 0, 0, -540).Spline64Resize(900, 800).AddBorders(0,0,380,0)  # top right
bottom_left  = LSFmod(AudioDubStep, strength = 200).crop(0, 540, -960, 0).Spline64Resize(900, 800).AddBorders(380,0,0,0)  # bottom left
bottom_right = LSFmod(AudioDubStep, strength = 200).crop(960, 540, 0, 0).Spline64Resize(900, 800).AddBorders(0,0,380,0)   # bottom right
blank        = BlankClip(AudioDubStep).crop(960, 540, 0, 0).Spline64Resize(1280, 800)
blankHalf    = BlankClip(bottom_right).crop(0, 360, 0, 0)
blankFill    = BlankClip(bottom_right)#.crop(0, 400, 0, 0)
blankquarter = BlankClip(blankHalf).crop(0, 220, 0, 0)
blankCorner  = BlankClip(top_left)
column1      = StackVertical(blankquarter, blankquarter, blank, blank, blank, blank, blankquarter, blankquarter)           # half the width
column2      = StackVertical(blankquarter, blankquarter, blankCorner, top_left, bottom_left, blankCorner, blankquarter, blankquarter)
column3      = StackVertical(blankquarter, blankquarter, blankCorner, top_right, bottom_right, blankCorner, blankquarter, blankquarter)
column6      = StackVertical(blankquarter, blankquarter, blank, blank, blank, blank, blankquarter, blankquarter).crop(400,0,0,0)  # 800
column5      = StackVertical(blankquarter, blankquarter, blank, blank, blank, blank, blankquarter, blankquarter).crop(0,0,-240,0) # 480
step5        = StackHorizontal(column6, column1, column2, column3, column1, column5)
return (step5)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 26th December 2020 at 22:46.
StainlessS is offline   Reply With Quote
Old 6th January 2021, 22:53   #29  |  Link
ISmileAtYouuu
Registered User
 
Join Date: Sep 2020
Posts: 15
my c++ code opens a folder with a bunch of video files, and makes a list of text names of each video file, then takes that text and adds it to the avs script and makes a new file with the avs script.

then i take that mp4 file and convert it to a avs file.

then i can run the folder with the batch of avs files in staxrip.

also i found a better way to watch the video in virtual desktop video player:

vr software: virtual desktop
virtual desktop video player settings
- direct3d 11 acceleration
- allow stereoscopic 3d videos
- standard
- sphere
- 50m, if your fov is larger than the rift change this to suit your preference
ISmileAtYouuu is offline   Reply With Quote
Old 18th April 2021, 07:59   #30  |  Link
ISmileAtYouuu
Registered User
 
Join Date: Sep 2020
Posts: 15
i went back to try my guide today and changed a few things and then updated my first post.
ISmileAtYouuu is offline   Reply With Quote
Reply

Tags
guide, mctemporaldenoise, resize

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 00:22.


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