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. |
5th November 2020, 13:23 | #21 | Link | ||
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Quote:
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:
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. |
||
7th November 2020, 22:40 | #23 | Link |
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 |
7th November 2020, 23:53 | #24 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
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. |
25th December 2020, 17:04 | #26 | Link |
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) |
26th December 2020, 21:46 | #27 | Link |
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); } open cmd, go to directory type: "cd /D folder-location", in folder type "ren *.mp4 *.avs" |
26th December 2020, 21:54 | #28 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
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 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. |
6th January 2021, 22:53 | #29 | Link |
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 |
Tags |
guide, mctemporaldenoise, resize |
Thread Tools | Search this Thread |
Display Modes | |
|
|