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. |
24th April 2017, 11:40 | #1983 | Link |
Registered User
Join Date: Aug 2014
Posts: 39
|
When i use some avisynth external script, Staxrip keep all temp files at same directory from avs script and video file, it dont even create temp file directory or delete files at end. With normal video encoding without usage of avs script temp folder creation works fine. I try changing temp file directory but everytime it reset and all temp files are stored in avs script directory.
Is there someway to avoid all temp files being leave at avs script directory? |
24th April 2017, 12:03 | #1984 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
there is a exception for following files:
files types without audio: "m4v", "m2v", "y4m", "mpv", "avc", "hevc", "264", "h264", "265", "h265" text based file types: "d2v", "dgi", "dga", "dgim", "avs", "vpy" in the options you can try if defining the temp dir helps in this case. (Options > Paths > Temp Files Directory)
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 24th April 2017 at 12:05. |
24th April 2017, 16:38 | #1985 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
@Natty
@AMED A new build with the channel feature is online.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
24th April 2017, 23:46 | #1987 | Link |
Registered User
Join Date: Dec 2014
Posts: 666
|
This is found in line 7: f3kdb(y = 48, cb = 48, cr = 48, grainy = 48, grainc = 48, keep_tv_range = true) Only happened in stax build v1428 and above
__________________
Asus ProArt Z790 - 13th Gen Intel i9 - RTX 3080 - DDR5 64GB Predator - LG OLED C9 - Yamaha A3030 - Windows 11 x64 - PotPlayerr - Lav - MadVR |
25th April 2017, 00:14 | #1988 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
The dll is supposed to support both avs and vs, avs don't seem to work though, probably I forgot to test it for avs, for avisynth you can try 1.5.1, that's what was probably included before.
http://nmm.me/fh I think there is a issue with your frame rate.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
25th April 2017, 00:50 | #1989 | Link | |
Registered User
Join Date: Oct 2011
Posts: 275
|
Quote:
After messing around for few days i post here few filters I made using last Staxrip versions, some might serve for other users or simply serve as examples : Some overlay filters that i put inside a new [overlay] menu : #Media File overlay, browse for a media file, picture or video, select where to display it ( top left, top right, bottom right etc and center of the screen, and option to add a margin from borders in pixels, for example display at top left with 10px margin from top and right side of the screen, no margin possible if placed on the center of the screen : Code:
File = Margin_px=$enter_text:Margin from borders in pixels, set 0 for no margin (Example: 3)$ Input_File=$select:msg:Type of file selected for the Overlay;Picture - Image|ImageSource;Avi|AviSource;d2v|MPEG2Source;dgi|DGSource;dgim|DGSourceIM;mp4 mov m4v|LSMASHVideoSource;x264 h264 avc x265 h265 hevc ts m2ts mts m2t|LWLibavVideoSource;wmv|DDS2;Other ( FFvideoSource by default )|FFvideoSource$("$browse_file$") Overlay(Input_File,$select:msg:File Overlay Position;Top Left|x=Margin_px,y=Margin_px;Top Right|x=%target_width%-Input_File.width-Margin_px,y=Margin_px;Center Screen|x=(%target_width%/2)-(Input_File.width/2),y=(%target_height%/2)-(Input_File.height/2);Bottom Left|x=Margin_px,y=%target_height%-Input_File.height-Margin_px;Bottom Right|x=%target_width%-Input_File.width-Margin_px,y=%target_height%-Input_File.height-Margin_px$,opacity=$enter_text:Enter Overlay Transparency from 0.0 (transparent) to 1.0 (fully opaque) (example: 0.45)$,mode="blend") Code:
LogoFile = Margin_px=$enter_text:Margin from borders in pixels, set 0 for no margin (Example: 3)$ logo=ImageSource("$browse_file$") Overlay(logo,$select:msg:Logo Overlay Position;Top Left|x=Margin_px,y=Margin_px;Top Right|x=%target_width%-logo.width-Margin_px,y=Margin_px;Center Screen|x=(%target_width%/2)-(logo.width/2),y=(%target_height%/2)-(logo.height/2);Bottom Left|x=Margin_px,y=%target_height%-logo.height-Margin_px;Bottom Right|x=%target_width%-logo.width-Margin_px,y=%target_height%-logo.height-Margin_px$,opacity=$enter_text:Enter Overlay Transparency from 0.0(transparent) to 1.0(fully opaque) (example: 0.45)$,mode="blend") Code:
Logo = Margin_px=$enter_text:Margin from borders in pixels, set 0 for no margin (Example: 3)$ logo=ImageSource($select:msg:Logo picture;Default Logo|"F:\frame.png";Second Logo|"F:\frame2.png";Third Logo|"F:\frame3.png"$) Overlay(logo,$select:msg:Logo Overlay Position;Top Left|x=Margin_px,y=Margin_px;Top Right|x=%target_width%-logo.width-Margin_px,y=Margin_px;Center Screen|x=(%target_width%/2)-(logo.width/2),y=(%target_height%/2)-(logo.height/2);Bottom Left|x=Margin_px,y=%target_height%-logo.height-Margin_px;Bottom Right|x=%target_width%-logo.width-Margin_px,y=%target_height%-logo.height-Margin_px$,opacity=$enter_text:Enter Overlay Transparency from 0.0(transparent) to 1.0(fully opaque) (example: 0.45)$,mode="blend") Code:
Watermark = Subtitle("$enter_text:Add Watermark Text$",$select:msg:Watermark Position;Top Left|x=3,y=0,align=7;Top Center|y=0,align=8;Top Right|x=%target_width%-3,y=0,align=9;Center of The Screen|align=5;Bottom Left|x=3,y=%target_height%,align=1;Bottom Center|y=%target_height%,align=2;Bottom Right|x=%target_width%-3,y=%target_height%,align=3$,font="Aparajita",size=$enter_text:Font Size (Example: 30)$,text_color=$ffffff,halo_color=$000) Code:
Timer = font_height=$enter_text:Font Size (example: 30)$ Showtime(offset_f=$enter_text:Set the Starting Frame Number of the Timer (ex: 0 100 -100)$,$select:msg:Display Position;Top Left|x=font_height*2,y=font_height/1.6;Top Center|y=font_height/1.6;Top Right|x=%target_width%-font_height*2,y=font_height/1.6;Bottom Left|x=font_height*2,y=%target_height%-font_height/4.8;Bottom Center|y=%target_height%-font_height/4.8;Bottom Right|x=%target_width%-font_height*2,y=%target_height%-font_height/4.8$,font="Aparajita",size=font_height,text_color=$ffffff,halo_color=$000) Code:
SMPTE = font_height=$enter_text:Font Size (example: 30)$ ShowSMPTE(offset_f=$enter_text:Set the Starting Frame Number of the Timer (ex: 0 100 -100)$,$select:msg:Display Position;Top Left|x=font_height*2,y=font_height/1.6;Top Center|y=font_height/1.6;Top Right|x=%target_width%-font_height*2,y=font_height/1.6;Bottom Left|x=font_height*2,y=%target_height%-font_height/4.8;Bottom Center|y=%target_height%-font_height/4.8;Bottom Right|x=%target_width%-font_height*2,y=%target_height%-font_height/4.8$,font="Aparajita",size=font_height,text_color=$ffffff,halo_color=$000) Code:
Current Time = font_height=$enter_text:Font Size (example: 30)$ ScriptClip("subtitle(time("+chr(34)+"%H:%M:%S"+chr(34)+"),font="+chr(34)+"Aparajita"+chr(34)+",$select:msg:Display Position;Top Left|x=3,y=1,align=7;Top Center|y=1,align=8;Top Right|x=%target_width%-3,y=1,align=9;Center of The Screen|align=5;Bottom Left|x=3,y=%target_height%,align=1;Bottom Center|y=%target_height%,align=2;Bottom Right|x=%target_width%-3,y=%target_height%,align=3$,size=font_height,text_color=$ffffff,halo_color=$000)") Code:
Frame Number = font_height=$enter_text:Font Size (example: 30)$ ShowFrameNumber(scroll=false,offset=$enter_text:Set the Starting Frame number (ex: 0 100 -100)$,$select:msg:Display Position;Top Left|x=font_height/8,y=font_height/1.6;Top Center|x=(%target_width%-(font_height*2.1))/2,y=font_height/1.6;Top Right|x=%target_width%-font_height*2.2,y=font_height/1.6;Bottom Left|x=font_height/8,y=%target_height%-font_height/4.8;Bottom Center|x=(%target_width%-(font_height*2.1))/2,y=%target_height%-font_height/4.8;Bottom Right|x=%target_width%-font_height*2.2,y=%target_height%-font_height/4.8$,font="Aparajita",size=font_height,text_color=$ffffff,halo_color=$000) Following ones don't need explanations i guess : Code:
ChangeFPS = ChangeFPS($select:msg:Change FPS;60 FPS|60;50 FPS|50;30 FPS|30;25 FPS|25$) Colors = $select:msg:Colors Change;Grey scale|Greyscale;Show Alpha|ShowAlpha;Show Red|ShowRed;Show Green|ShowGreen;Show Blue|ShowBlue;Invert|Invert;Swap UV|SwapUV$ ConvertTo = $select:msg:Convert To;YV12 (PC.709)|ConvertToYV12(matrix="PC.709");YV12 (Rec709)|ConvertToYV12(matrix="Rec709");YV12 (PC.601)|ConvertToYV12(matrix="PC.601");YV12 (Rec601)|ConvertToYV12(matrix="Rec601");YV12 (RBG)|ConvertToYV12(matrix="RBG");YV24 (PC.709) for not mod2|ConvertToYV24(matrix="PC.709")$ Mirror = $select:msg:Mirror Video;Flip Horizontal|FlipHorizontal; Flip Vertical|FlipVertical$ Reverse Video = Reverse Rotate = $select:msg:Rotate Video;Turn 90° Left|TurnLeft;Turn 90° Right|TurnRight;Turn 180°|Turn180$ Some of those like timers or frame display will need adjusting if you change the font used in those examples codes, the ones using subtitle function like watermark or current time should auto adjust them positions no matter the font or the size of the font used. Pictures files used as logo or overlay need to be mod2 most of the times, i could bypass this using ConvertToYV24 at the start of the filter but I'm still not sure yet if this will bring some issues with some footage or colors incorrect, I noticed no differences when leaving the program add his usual ConvertToYV12 then later adding myself manually a ConvertToYV24 filter on the top of it but i need to learn more on this. I started also to do some crop and letterbox aspect ratio filters for 1080p and 1440p footage, again mod2 stuff limits a bit and for example i need to crop 20px on top and 22px on bottom, can't crop 21px on both sides on non mod2 stuff unless converting to ConvertToYV24 ( again not sure on sub effects of this yet ) , anyways here it is a example for mod2 stuff : #LetterBox for 1080p footage ( mod2 compatible ) Code:
LetterBox 1920x1080 Footage = $select:msg:Select Letter Box Aspect-Ratio for your 1920x1080px footage;1.85:1 35mm standard US/UK widescreen|letterbox(20,22);1.896:1 DCI/SMPTE digital cinema container|letterbox(34,34);2.00:1 SuperScope original ratio US studios 1954 to 1960|letterbox(60,60);2.20:1 70mm Todd-AO 1955 - Super Panavision70 1959 to 1983|letterbox(104,104);2.33:1 Techniscope 1960-1976|letterbox(128,128);2.35:1 35mm anamorphic pre-1970|letterbox(132,132);2.37:1 21:9 cinema displays on Tv's from 2009 to 2012|letterbox(134,136);2.39:1 35mm anamorphic post-1970 Panavision/CinemaScope|letterbox(138,138);2.55:1 Original Cinemascope55 before optical sound added to film in 1954- up to 1957|letterbox(164,164);2.66:1 Full frame output from Super 16mm negative when an anamorphic lens system has been used|letterbox(178,180);2.76:1 Ultra Panavision 70 - MGM Camera 65 - 1957 to 1966|letterbox(192,192);3.00:1 Super WideScreen|letterbox(220,220)$ Code:
LetterBox 1920x1080 non mod2 Footage = $select:msg:Select Letter Box Aspect-Ratio for your 1920x1080px footage;1.85:1 35mm standard US/UK widescreen|letterbox(21,21);1.896:1 DCI/SMPTE digital cinema container|letterbox(33,34);2.00:1 SuperScope original ratio US studios 1954 to 1960|letterbox(60,60);2.20:1 70mm Todd-AO 1955 - Super Panavision70 1959 to 1983|letterbox(103,104);2.33:1 Techniscope 1960-1976|letterbox(128,128);2.35:1 35mm anamorphic pre-1970|letterbox(131,132);2.37:1 21:9 cinema displays on Tv's from 2009 to 2012|letterbox(135,135);2.39:1 35mm anamorphic post-1970 Panavision/CinemaScope|letterbox(138,138);2.55:1 Original Cinemascope55 before optical sound added to film in 1954- up to 1957|letterbox(163,164);2.66:1 Full frame output from Super 16mm negative when an anamorphic lens system has been used|letterbox(179,179);2.76:1 Ultra Panavision 70 - MGM Camera 65 - 1957 to 1966|letterbox(192,192);3.00:1 Super WideScreen|letterbox(220,220)$ #Crop options for 1080p not mod2 : Code:
1920x1080px Footage Crop Aspect-Ratios = $select:msg:Select Crop Aspect-Ratio for your 1920x1080px footage;1.85:1 35mm standard US/UK widescreen|crop(0,20,0,-22);1.896:1 DCI/SMPTE digital cinema container|crop(0,34,0,-34);2.00:1 SuperScope original ratio US studios 1954 to 1960|crop(0,60,0,-60);2.20:1 70mm Todd-AO 1955 - Super Panavision70 1959 to 1983|crop(0,104,0,-104);2.33:1 Techniscope 1960-1976|crop(0,128,0,-128);2.35:1 35 mm anamorphic pre-1970|crop(0,132,0,-132);2.37:1 21:9 cinema displays on Tv's from 2009 to 2012|crop(0,134,0,-136);2.39:1 35 mm anamorphic post-1970 Panavision/CinemaScope|crop(0,138,0,-138);2.55:1 Original Cinemascope55 before optical sound added to film in 1954- up to 1957|crop(0,164,0,-164);2.66:1 Full frame output from Super 16 mm negative when an anamorphic lens system has been used|crop(0,178,0,-180);2.76:1 Ultra Panavision 70 - MGM Camera 65 - 1957 to 1966|crop(0,192,0,-192);3.00:1 Super WideScreen|crop(0,220,0,-220)$ A few things i miss and would like to see one day or another : - Possibility in the event command filters to add custom made muxer profiles or custom made encoding profiles filter. Let's say i have multiples mp4 muxing profiles or multiples x265 encoding profiles all having a different name, i would like to do stuff using the event commands like " if encoding profile name is X265_HQ do ..." or " If muxer profile name is MP4_Cover do ..." - What i really miss the most is a easy way to trim a clip in different parts so i can apply different filters to each parts easily , right now we can cut a video in multiples parts and all selected parts are added in form or trim() + trim () + trim () etc. What i would like to do is in the viewer cut the parts i want but get output as part1=trim() part2=trim() part3(trim() into different filter lines and at the end getting a last filter being part1+part2+part3, all those added in form of individual filters so i can apply other filters between those parts Right now i do this manually, the "Cutting" filter is automated, and for good reasons, i can use it in the viewer to cut parts, then add a few dummy filters, then rename "Cutting" to "Cutting1" for example then add part1= to the trim code first part and edit dummy filters previously added to add part2 part3 + trim sections and at the end a dummy filter to return me part1+part2+part3 Maybe i missed it but for now I did not found a good solution to do this stuff in a more automated way using the program possibilities, with this it will be easy to insert a filter between part 1 and part 2 and apply a filter only on part 2 etc - Having a "+" button in the code editor adding a new empty/blank filter that i can edit there without having to add first a dummy filter from main window to manually edit them after in the editor window will be nice. - I saw you added up and down arrows to move filters on the contextual menu, very nice addition, maybe it is possible to add such thing in the code editor too, a couple of arrow in form of buttons maybe ? ( maybe next the option "+" above ). I don't ask for all this to be done, just throwing this here in case one day it becomes easy to do , the last changes really open a lot of new possibilities and i'm more than happy with the program, makes things way easier, and for now did not had time to start messing with powershell, this will need quite some free tiem to experiment stuff with but i will come at some point hopefully. Sorry for the long post and for breaking the forum layout and again thanks a lot for all. Last edited by Yanak; 23rd January 2018 at 00:09. |
|
25th April 2017, 00:53 | #1990 | Link | |
Registered User
Join Date: Dec 2014
Posts: 666
|
Quote:
I used the dll you recommended and placed it in C:\Program Files\AviSynth+\plugins64+ Same Problem
__________________
Asus ProArt Z790 - 13th Gen Intel i9 - RTX 3080 - DDR5 64GB Predator - LG OLED C9 - Yamaha A3030 - Windows 11 x64 - PotPlayerr - Lav - MadVR |
|
25th April 2017, 00:57 | #1991 | Link |
Registered User
Join Date: Dec 2014
Posts: 666
|
Got it working
Moved it to \StaxRip Test Build\Apps\Plugins\both\flash3kyuu_deband Instead
__________________
Asus ProArt Z790 - 13th Gen Intel i9 - RTX 3080 - DDR5 64GB Predator - LG OLED C9 - Yamaha A3030 - Windows 11 x64 - PotPlayerr - Lav - MadVR |
25th April 2017, 00:59 | #1992 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Because it loads the dll with LoadPlugin, you can see that with 'Code Preview', there you can also see the path where you need to replace the dll, the easiest way to open the folder is using the apps dialog.
Main Menu > Apps > Manage > Plugins > AviSynth > flash3kyuu_deband Just type deband in the search field of the apps dialog.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
26th April 2017, 12:54 | #1993 | Link | |
Registered User
Join Date: Aug 2014
Posts: 39
|
Quote:
That big amount of temp files for exception files are a bit annoying to remove everytime. If there is a way to make it save all files sinde a temp directory folder like common encoding would be great. Last edited by chummy; 26th April 2017 at 12:56. |
|
26th April 2017, 16:02 | #1994 | Link |
Registered User
Join Date: Mar 2016
Posts: 5
|
Hi Stax76
There is a bug in version 1.4.3.2 in profile Intel hardware encoding! The hevc codec is output as h265. That is not right! Correct is the file transfer on hevc ... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Encoding using QSVEncC 2.62 x64 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- @echo off C:\Stax\Apps\QSVEncC\QSVEncC64.exe --codec h265 --quality fastest --ref 4 --scenechange --profile main --level 4 --colormatrix bt709 --colorprim bt709 --transfer bt709 --vbr 991 -i E:\Scenarist\00051.m2ts_1eng_temp\DTSEnc.avs -o E:\Scenarist\DTSEnc.h265 cmd.exe /C call "E:\Scenarist\00051.m2ts_1eng_temp\DTSEnc_QSVEncC.bat" Error: Unknown value "h265" for "--codec" Cancel error!
__________________
My Current System:
ASRockZ790 Pro Intel Raptor Lake 13600K 2X16GB DDR5 5600 Kingston SSD NVme Samsung Pro 980 Windows 11 64Bit Enterprise |
26th April 2017, 16:10 | #1995 | Link |
Registered User
Join Date: Mar 2016
Posts: 5
|
Hi Stax76
There is a bug in version 1.4.3.2 in profile Intel hardware encoding! The hevc codec is output as h265. That is not right! Correct is the file transfer on hevc ... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Encoding using QSVEncC 2.62 x64 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- @echo off C:\Stax\Apps\QSVEncC\QSVEncC64.exe --codec h265 --quality fastest --ref 4 --scenechange --profile main --level 4 --colormatrix bt709 --colorprim bt709 --transfer bt709 --vbr 991 -i E:\Scenarist\00051.m2ts_1eng_temp\DTSEnc.avs -o E:\Scenarist\DTSEnc.h265 cmd.exe /C call "E:\Scenarist\00051.m2ts_1eng_temp\DTSEnc_QSVEncC.bat" Error: Unknown value "h265" for "--codec" Cancel error!
__________________
My Current System:
ASRockZ790 Pro Intel Raptor Lake 13600K 2X16GB DDR5 5600 Kingston SSD NVme Samsung Pro 980 Windows 11 64Bit Enterprise |
26th April 2017, 17:09 | #1996 | Link |
Registered User
Join Date: Apr 2003
Location: London Town
Posts: 38
|
I am choosing to convert the source .dstma to 768kbps .dts using ffmpeg as the converter.
StaxRip x64 v1.4.3.2 generated the following line in its script: C:\Users\username\Desktop\StaxRip-x64-1.4.3.2-test\Apps\ffmpeg\ffmpeg.exe -i "S:\source\source_temp\source ID2 English.dtsma" -strict -2 -b:a 768k -ac 6 -y -hide_banner "S:\source\source_temp\source ID2 English_out1.dts" Which then fails (and generates a 0 byte .dts file) with the following error: Input #0, dts, from 'S:\source\source_temp\source ID2 English.dtsma': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p [dca @ 00000000006e35c0] Specified channel layout '5.1' is not supported Stream mapping: Stream #0:0 -> #0:0 (dts (dca) -> dts (dca)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height If i remote the "-ac 6" parameter from the above command then the .dtsma file is transcoded to .dts as expected. It this something I can fix myself in StaxRip or is it a bug that can get fixed? |
1st May 2017, 17:15 | #1997 | Link |
Registered User
Join Date: Apr 2017
Posts: 2
|
Intel H265 error
Hi,
I am using the test version 1.4.3.2 and I am getting the following error for Intel h265: Error: Unknown value "h265" for "--codec" Start: 18:03:22 End: 18:03:22 Duration: 00:00:00 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Encoder output file is missing My Intel graphic card is activated and has quicksync. When I use the check hardware option, I get QuickSyncVideo (hw encoding) unavailable. Any idea why this occurs? My specs are these: Processor - I7-4702MQ with Intel HD Graphics 4600 and Nvidia GeForce GT 750M. |
5th May 2017, 12:30 | #1999 | Link | |
Registered User
Join Date: Oct 2011
Posts: 275
|
Quote:
right click on the audio field and " Open " your flac file. select the audio output format profile and right click again on the audio field and selet " Execute " This should just process the flac file and convert it to the desired output format. Last edited by Yanak; 23rd January 2018 at 00:08. |
|
5th May 2017, 17:16 | #2000 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
@suspiciousBob
It should work with the build from today.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
Thread Tools | Search this Thread |
Display Modes | |
|
|