@jacobr, i know that with strongene lentoid (ds) encoder, you can do all that you are trying to do now though w/ x265.exe cli. however, if there were a way to make or trick to bring inside graphstudio, then it might be possile to use avs script w/ intermediate. then anyone with development skills can build their own gui frontend. i was able to do this with the strongene lentoid encoder. but not sure this answers your question, but might give others here ideas to explore and try--
![]()
+ Reply to Thread
Results 241 to 270 of 2222
-
-
Thx for reply, i went through a little bit with that scripting lang im using (autoit3), but i have to say that it's pretty easy to do things as you have built-in functions for *loads* of stuff .
I tried mpc-hc matroska muxer but i dont quite know how to get chapters and attachments working with this. plus the wrong framerate issue ( might correct it in mkvmerge but then - it defeats the purpose of using that ds muxer in the first place)
I also found a fork of graphstudio with cmdline option for grf render but it doesn't work
Originally Posted by vhelp
guess it would be -
I agree, Gabest's Matroska Muxer is very simple and doesn't have a lot of features, however there are things that it can do but mkvmerge cannot. Mkvmerge surely can "import" and "copy" streams muxed in the VfW/ACM mode, but it cannot *create* the damn thing
Also, mkvmerge remains very faithful to the dumbest idiocy from Mencoder ---- I mean, it doesn't understand audio-only AVI files, because <BULLSHIT>"video stream is mandatory!"</BULLSHIT>. Long story short, we still depend on Gabest Matroska Muxer if we want to deal with DTS Express and ATRAC3 sampled @ 48kHz, for example.
-
I found a VBscript that I was able to get my bat files working in but each command waits for me to close the cmd prompt before starting the next command. What can I do to make the window automatically close and run the next command so that I can run the whole process in one command?
Code:Dim objShell Dim blnWaitOnReturn Dim strOriginalCD Dim strCmd Dim intWindowStyle Dim intExitCode Set objShell = WScript.CreateObject("Wscript.Shell") '' if necessary, save the original "Script-Working-Directory" strOriginalCD = objShell.CurrentDirectory intWindowStyle = 1 blnWaitOnReturn = True objShell.CurrentDirectory = "C:\Tools\x265\" strCmd = "%comspec% /K avs2y4m.bat" intExitCode = objShell.Run(strCmd, intWindowStyle, blnWaitOnReturn) objShell.CurrentDirectory = "C:\Tools\x265\" strCmd = "%comspec% /K x265.bat" intExitCode = objShell.Run(strCmd, intWindowStyle, blnWaitOnReturn) objShell.CurrentDirectory = "C:\Tools\x265\" strCmd = "%comspec% /K hvc2mp4+mp3.bat" intExitCode = objShell.Run(strCmd, intWindowStyle, blnWaitOnReturn) '' if necessary, restore the original "Script-Working-Directory" objShell.CurrentDirectory = strOriginalCD
-
i don't use vbscript/vb/visual basic/etc except for ms access vb where i write a lot code. anyway.
isn't their an terminate or close function, ie
objshell.close
objshell.flush
objshell.terminate or return or something like that. -
i actually have a problem with automation too
. So far mp4 mux works, but i can't get the data about frame count and fps from avs2yuv.
i tried various approaches with piping it through '>' and creating bat files but i can't get that line from avs2yuv output
i need this for any kind of progress indicate -
I don't know. That's why I'm asking?
The only thing I could find said the command ends the whole script and not just certain functions in the script. I think I could use an if command (if I knew what that was) to tell it to do certain things if certain other things occurred but I don't know anything about writing VBscript commands. Most sites I've found expect you to already have some experience in writing VB code.
One poster said to remove the blnWaitOnReturn but I think that forces all three bat files to run at one time. Obviously, I need one to run after the other. The script I have works but it forces me to close each window before the next one starts so I might as well just double click each bat file after the previous one has finished like I've been doing.
If I could write one bat file that would execute all three commands sequentially. It's basically the same thing running from a script or a bat file. Just one's preference over the other for running cmd.exe. I don't really care which one it is as long as I can find one that will do the job. -
-
Originally Posted by DarrellS
)
but i can't get the frame number from avs2yuv for some reason
right now i plan to extract mediainfo->vid length(source vid for avs)->frame count->filesize (overkill i guess but what else)
or do we already have stdin support and i dont have to do all that ??Last edited by Jacobr; 16th Aug 2013 at 18:11.
-
no stdin support still. it is at the very bottom of the consortium's todo list though the race is on for someone, anyone, to add that support. maybe possbile through another language via .dll creativity. don't know how to call .dll functions from c/c++/c# from other languages though.
but i can't get the frame number from avs2yuv for some reason
right now i plan to extract mediainfo->vid length(source vid for avs)->frame count->filesize
Code:ffmpeg -i video.avs -an -f yuv4mpegpipe -pix_fmt yuv420p -y video.y4m
nothing is overkill as long as is the only objective or objective(s) any/all work
you may be able to "pipe" to x265 w/out intermedium file in this way.
edit: piping does not work even though some website say you can, but i tried many variations and nothing works. guess we are still stuck with yuv or y4m intermediates.Last edited by vhelp; 16th Aug 2013 at 21:53.
-
i saw this, (waitForExit = false)
read here for further details.
http://social.msdn.microsoft.com/Forums/en-US/a6943478-d870-47b8-b13e-3d8027e91caa/vb-...-orchestration -
Hmmm, while there is no Directshow TS demuxer that supports HEVC,
let's try Gabest's DSM container for the time being
INFO: https://github.com/mpc-hc/mpc-hc/blob/master/include/dsm/dsm.txt
So this post contains:
1) the sample clip Sexy-Film-Leader[HVC1+ALAC].dsm itself, and
2) its source files, for anyone who wants to use them;
-
I may check it out later but I accidentally deleted my x265 folder a while ago while trying to delete an mp3 file and have been putting it back together from files I had saved in other folders and from stuff I posted in the forum. I was going to just restore an image from earlier today when I restarted my computer but to my shock, MS had no backups for me. Not just for today but not any. Don't know how that got turned off.
I made a single batch file from my other bat files anyway that worked by adding a "&" sign between each command.
I wished I could find an encoder setting that would run a little faster. I tried a few things from the PDF but they just slowed things down even slower. There is no need to encode 1080p at 4k settings and my encodes are getting slower and slower. The Lentoid encoder smoked this one at 3 fps. I'm getting a little over .55 fps on this Q6600. There is a threads command they said to use but it does nothing. Task manager shows it using four threads but not a lot of CPU power or memory and the encoder says it's using one thread. -
-
I like that DSMux.exe file too. I've used both the command line muxer and the gui a few times in the past two or three years. Mostly on TS files but a few other formats also. I had to put an old copy in a new build to get it though. I don't think it comes with Haali splitter anymore.
EDIT: From the link it looks like it was put back in by popular demand. -
x265_0.3+405-a5a265b57844
http://www.mediafire.com/download/0td6a58so2dv6wr/x265_0.3%2B405-a5a265b57844.7z
un7z, enjoy, profit -
Last edited by El Heggunte; 17th Aug 2013 at 11:34.
-
-
Originally Posted by El Heggunte
was going to say count me in, but i kinda lack the proper source
<RANT> plus im a bit sad actually after i was just encoding final ep of another at amazing 1.2 fps for a %$&*! whole day and then forgot to change the output file for my GUI testing
, only to have the encode overwritten by some 60 frames of crapnice
</RANT>
back on topic though, while my GUI actually is now able to auto-encode and merge mkv, i was thinking if i can do sthg about tags that get wrong all the time.
I've got avi encoded with, let's say 600 frames of hevc taking like 25 secs, corresponding audio, and i muxed in subs n fonts from original mkv, but the thing is now everything reads
my new file as the same length as the original which is kinda silly. Any ideas ? -
Well, at least I got something working in Virtualdub. I looked at avs2yuv.exe instructions and although it has stdin out "-", I did not see stdin in "-" so I looked at vhelp's
ffmpeg command for yuv4mpegpipe and came up with this command for Virtualdub's external encoder.
Type: Video Encoder
Program: C:\Tools\x265\ffmpeg.exe
Command Arguments: -f rawvideo -s %(width)x%(height) -r %(fpsnum)/%(fpsden) -i - -an -f yuv4mpegpipe -pix_fmt yuv420p -y %(outputname).y4m
Output Filename: %(outputname)
No - Interpret non-zero return as error
Yes - Redirect standard output to log
Yes - Redirect standard error to log
Yes - Delete output file before starting
At least you can open a video in Virtualdub, edit it and save to a y4m file that you can use with the x265 encoder. Virtualdub doesn't do away with the need for the y4m file
yet without stdin in the x265 encoder but it at least it gives you an option to take any video, edit it and save as a y4m file. I tried to add the x265 encoder to the same command
line but it didn't recognize the first command "-q" so I assume that it was using ffmpeg to try and read the x265 encoder. An ffmpeg build with the x265 encoder would sure make
things a lot better (or stdin in the x265 encoder) since you would not need the huge intermediate file and everything could be done with Virtualdub (or anyone else's program that
decided to implement the x265 encoder). -
yes, the "-" is one of ffmpeg's pipe command. i've been testing around with it all night.
there is also {pipe:x, 0 or 1} and {stdin and stdout} and { | } and {< and >} that give you piping methods. but i was not able to get it to work with x265 cli in any of my test gui's. it seems that the methods used to "pipe" inside these utilities don't work properly with different methods of stdin/stdout processing in these console apps, hence the different issues when working with the given console app (ie, x265 cli)'s output, ffmpeg vs ffplay, and so on.
also, the other side of the problems in the console apps functions/features, have to do with version updates, and where some are removed/added/updated/buggy/etc.
some console tools work well with the "-" pipe while others, with the { | } param command. it all depends on the source tool and the external tool accepting these pipe commands, and may also vary from system to system, ie linux, ubunto, mac, windows, scripting, front-end piping, etc.
so, while my gui would accept one, (w/ errors) it would not accept another, with errors, and so on versus when running directly through a dos console window. so i've decided that it is probably best to test these things out in an actual dos console window first, and when working,.. empliment them into the gui later because there are different programming methods that work best for each console utility's internal piping (stdin/stdout) processing. -
took a lot of trial and error test runs, but the only piping i could get working on my system is when using the " - | " param commands together. and it only worked in one of my gui's. what i was missing was in first setting the gui to the directory or folder of the main console app, the one with all the .dll files. it is best to keep all console apps in one folder so that all necessary startup files get loaded. and just pointing the gui's main console app is not enough. i would get a dll errors and such. so, don't just do this: "d:\tools\ffmpeg\ffmpeg.exe + ParamStr" instead, do this:
Code:SetCurrentDir('d:\tools\ffmpeg\') CallDosConsoleApp()
for short quick console runs, (in your lanauge) set your show/hide/hidden flags to true, then you won't see the console app popping up. keep the taskmgr.exe open to see if any console apps get stuck. you can close them, then.
better yet, put all necessary tools inside one folder, maybe call it "hevc projects" and point the gui to that folder.
while searching further on this, i found this code snip, modified it slightly and wrote a quick gui from scratch, though based on darrells's scripting idea. took me an hour to put this together. i'll post the complete source shortly.
http://coding.derkeiler.com/Archive/Delphi/borland.public.delphi.language.objectpascal...4-01/2008.html
Code:Procedure ExecuteShellCommand( cmdline: String; hidden: Boolean ); Const flags : Array [Boolean] of Integer = (SW_SHOWNORMAL, SW_HIDE); Var cmdbuffer: Array [0..1024] of Char; Begin GetEnvironmentVariable( 'COMSPEC', cmdBUffer, Sizeof(cmdBuffer)); StrCat( cmdbuffer, ' /C '); StrPCopy( StrEnd(cmdbuffer), cmdline ); WinExec( cmdbuffer, flags[hidden] ); End;
-
as promised, heres the complete source to the quick gui (scripting method) for creating intermediate video file, playing it, and encoding to hevc videos. use x265.exe or any other video encoder, should work. you'll want to keep the dos console window open so you can see progress going on.
my suggestion, when you are creating your own gui's, that you copy all necessary support files and console apps, including your gui tool into one folder and then run everything from there.
Code:unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) txtCurrentDirLocation: TEdit; btnConvert2y4m: TButton; btnConv2hevc: TButton; btnPlayY4m: TButton; btnPlayHevc: TButton; stCurrentDir: TStaticText; procedure btnConvert2y4mClick(Sender: TObject); procedure FormActivate(Sender: TObject); procedure btnConv2hevcClick(Sender: TObject); procedure btnPlayY4mClick(Sender: TObject); procedure btnPlayHevcClick(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormActivate(Sender: TObject); begin SetCurrentDir(txtCurrentDirLocation.Text); end; Procedure ExeShellCom( cmdline: String; hidden: Boolean ); Const flags : Array [Boolean] of Integer = (SW_SHOWNORMAL, SW_HIDE); Var cmdbuf: Array [0..1024] of Char; Begin GetEnvironmentVariable('COMSPEC', cmdBuf, Sizeof(cmdBuf)); StrCat( cmdbuf, ' /C '); StrPCopy( StrEnd(cmdbuf), cmdline ); WinExec( cmdbuf, flags[hidden] ); End; procedure TForm1.btnConvert2y4mClick(Sender: TObject); begin SetCurrentDir(txtCurrentDirLocation.Text); // encode / convert a video to y4m ExeShellCom('ffmpeg -i video.avs -an -f yuv4mpegpipe -pix_fmt yuv420p -y video.y4m', true); beep; end; procedure TForm1.btnPlayY4mClick(Sender: TObject); begin SetCurrentDir(txtCurrentDirLocation.Text); // play y4m video in a separate window ExeShellCom('ffmpeg.exe -i video.avs -pix_fmt yuv420p -f rawvideo - | ffplay.exe -f rawvideo -pix_fmt yuv420p -s 720x480 -', true); end; procedure TForm1.btnConv2hevcClick(Sender: TObject); begin SetCurrentDir(txtCurrentDirLocation.Text); // encode y4m video to hevc video ExeShellCom('x265.exe --input "video.y4m" --q 20 --keyint 24 --rect --max-merge 1 --hash 0 --no-rdo --no-rdoq --tu-intra-depth 1 --tu-inter-depth 2 --no-tskip --no-tskip-fast --no-wpp --output "video.hm10"', false); end; procedure TForm1.btnPlayHevcClick(Sender: TObject); begin SetCurrentDir(txtCurrentDirLocation.Text); // play hevc (.hm10) in graphstudio (be sure to create/save the "video.grf" by dragging the .hm10 video into graphstudio. ExeShellCom('video.grf', true); end; end.
Last edited by vhelp; 17th Aug 2013 at 20:49.
-
Por lo general puedo convertir mp4 a avi, mi BD jugar a todos ellos sin ningún problema.
Reproductor de BD, juego, si yo codificar mp4 CHUVC?
He descargado todo, pero no sé cómo instalar? Cómo funciona? -
Usually I can convert mp4 to avi, my BD play them all with no problem.
BD Player, game, if I encode mp4 CHUVC?
I downloaded everything, but do not know how to install? How does it work?wrong forum to post your topic in. please post a new topic in the 'video conversion' forum. (i used google translation)
foro equivocado para publicar su tema pulg por favor enviar un tema nuevo en el foro de la "conversión de vídeo. -
vhelp.....Fabulous scripting, but know nothing about programming or compiling. Would provide the file already executable. If you can not provide, I understand your reasons. Congratulations on the beautiful work with this new codec and i will be following your work every day to see results.
Last edited by Marchand; 17th Aug 2013 at 23:05.
-
it was not meant to be a full fledge app, just a demonstration in case it would help some members in their coding.
but i'm making some slight changes to improve the app a little. i'll see what i can do to release it later so anyone interested in trying it out, can. -
@BaaGGHo
BD Player, game, if I encode mp4 CHUVC?
Answer:
NO, at this moment CHUVC (HEVC) is not supported by any stand alone BD players.
May be in future(?) BD players may support HEVC-MKV. Only think about converting mp4 to CHUVC (HEVC)-MKV when you buy very big size (85 inch or more) Ultra HD TV.
Usually I can convert mp4 to avi, my BD play them all with no problem.
Just, Do Not Download anything when you come across, bcoz probably you will never need it. -
vhelp,
I thank you on behalf of all the beginners who are eager to test this excellent codec.
I managed to encode a movie from 04:00 pm to strongene lentoid disponibilizei XLM and encoding it for personal testing here too in videohelp:
https://forum.videohelp.com/threads/357367-HEVC-Encoder-by-Strongene-Lentoid?p=2259750&...=1#post2259750
Thanks
Similar Threads
-
help - how to compile latest "nightly" ffmpeg for win32 (XP) with mingw
By hydra3333 in forum ProgrammingReplies: 32Last Post: 20th May 2017, 00:33 -
x265 vs x264
By deadrats in forum Video ConversionReplies: 71Last Post: 10th Jan 2016, 06:14 -
ffdcaenc (an upgrade to dcaenc)
By El Heggunte in forum AudioReplies: 22Last Post: 9th Dec 2014, 06:09 -
MulticoreWare Annouces x265/HEVC Mission Statement
By enim in forum Latest Video NewsReplies: 4Last Post: 9th Aug 2013, 22:09 -
New PC Build(s)
By thedeificone in forum ComputerReplies: 6Last Post: 25th May 2010, 16:57