VideoHelp Forum




+ Reply to Thread
Page 9 of 75
FirstFirst ... 7 8 9 10 11 19 59 ... LastLast
Results 241 to 270 of 2222
  1. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    @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 --
    Quote Quote  
  2. Originally Posted by El Heggunte View Post

    For now, yes it's still impossible. For the notes, the Directshow filters CAN be called via command-line: dsmux.exe for example, is a CLI for Haali's Matroska Muxer. Two problems though: 1) it uses only Haali's muxer, and 2) certainly Haali's muxer doesn't support HEVC + most probably it also dislikes VfW-in-Matroska.

    P.S.: you can go straight to MKV if you use the MPC-HC/BE Matroska Muxer (included in its standalone filters's package),
    there really is no need for an intermediate AVI file anymore
    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
    @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 --
    not sure if i get it - so youre saying that it would be nice to somehow have the x265 encode in graphstudio ?
    guess it would be
    Quote Quote  
  3. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by Jacobr View Post
    ...................

    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 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.
    Quote Quote  
  4. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    build 0.3+355-23d8d29c5242, compiled with GCC 4.8.0 by MasterNobody
    Image Attached Files
    Quote Quote  
  5. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  6. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    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.
    Quote Quote  
  7. 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
    Quote Quote  
  8. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Originally Posted by vhelp View Post
    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 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.
    Quote Quote  
  9. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Originally Posted by Jacobr View Post
    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
    You're trying to create a progress bar then? You've got a working script though to run the bat files in order?
    Quote Quote  
  10. Originally Posted by DarrellS
    You're trying to create a progress bar then? You've got a working script though to run the bat files in order?
    well, the problem is that when im encoding i don't know when avs->y4m conversion will finish, so i have to have sthg. frame count would allow me to get that progress bar or anything working, cos i would then compare exisiting to expected filesize i think (i know im most probably missing sthg simple and doing things hard way )

    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.
    Quote Quote  
  11. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    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
    then use ffmpeg to convert to .y4m video, then you read "its" studin/output data with your front-end gui tool:

    Code:
    ffmpeg -i video.avs -an -f yuv4mpegpipe -pix_fmt yuv420p -y video.y4m
    i always add -y because i sometimes get a message to overwrite or not. this way no interuption.

    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.
    Quote Quote  
  12. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    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;

    Image Attached Files
    Quote Quote  
  13. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Originally Posted by vhelp View Post
    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.
    Quote Quote  
  14. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Originally Posted by El Heggunte View Post
    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've seen that girl before. She's pretty popular I believe. We like sexy film leader
    Quote Quote  
  15. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  16. Member
    Join Date
    Aug 2013
    Location
    China
    Search PM
    Originally Posted by El Heggunte View Post
    NOTICE:

    These binaries were compiled with MSys + MinGW. Unlike a certain random x265.exe compiled with Microsoft Visual Studio and uploaded to a dubious file-sharing site , these builds run fine under Windows Vista and Windows XP, and differently from what some people have been induced to believe, an AVX-capable machine is not "mandatory" if one wants to encode with x265
    (of course a machine with AVX instructions will do the job faster --- or less slowly ---, but this is not what matters for the time being).

    Code:
    [C:\]
    =>x265
    
    Syntax: x265 [options] infile [-o] outfile
        infile can be YUV or Y4M
        outfile is raw HEVC bitstream
    Options:
    
    Standalone Executable Options:
    -h/--help                       Show this help text
       --cpuid                      Limit SIMD arch 1:None 2:SSE2 .. 8:AVX2 (default:0 auto)
       --threads                    Number of threads for thread pool (default:CPU core count)
       --gops                       Number of GOPS to encode in parallel (default:1)
       --log                        Logging level 0:ERROR 1:WARNING 2:INFO(default) 3:DEBUG -1:NONE
       --csv                        `Comma separated value' log file, appends one line per run
       --no-progress                Disable progress reports
    -o/--output                     Bitstream output file name
    
    Input Options:
       --input                      Raw YUV or Y4M input file name
       --input-depth                Bit-depth of input file (YUV only) (default: 8)
       --width                      Source picture width, auto-detect if Y4M
       --height                     Source picture height, auto-detect if Y4M
       --rate                       Frame rate, auto-detect if Y4M
       --frame-skip                 Number of frames to skip at start of input file
    -f/--frames                     Number of frames to be encoded (default=all)
    
    Reconstructed video options (debugging):
    -r/--recon                      Reconstructed image YUV or Y4M output file name
       --recon-depth                Bit-depth of output file (default:InternalBitDepth)
    
    Quad-Tree analysis:
       --wpp                        Enable Wavefront Parallel Processing
       --no-wpp                     Disable Wavefront Parallel Processing
    -s/--ctu                        Maximum CU size (default: 64x64)
       --tu-intra-depth             Max TU recursive depth for intra CUs
       --tu-inter-depth             Max TU recursive depth for inter CUs
    
    Temporal / motion search options:
       --me                         Motion search method 0:dia 1:hex 2:umh 3:star(default) 4:hm-orig 5:full
       --merange                    Motion search range (default: 64)
       --bpredrange                 Motion search range for bipred refinement (default:4)
       --rect                       Enable rectangular motion partitions Nx2N and 2NxN
       --no-rect                    Disable rectangular motion partitions Nx2N and 2NxN
       --amp                        Enable asymmetric motion partitions, requires --rect
       --no-amp                     Disable asymmetric motion partitions
       --rdo                        Enable rate distortion-based mode decision
       --no-rdo                     Enable mode decision without rate distortion optimization
       --max-merge                  Maximum number of merge candidates (default: 5)
       --early-skip                 Enable early SKIP detection
       --no-early-skip              Disable early SKIP detection
       --fast-cbf                   Enable Cbf fast mode
       --no-fast-cbf                Disable Cbf fast mode
    
    Spatial / intra options:
       --rdpenalty                  penalty for 32x32 intra TU in non-I slices. 0:disabled 1:RD-penalty 2:maximum
       --tskip                      Enable intra transform skipping
       --no-tskip                   Disable intra transform skipping
       --tskip-fast                 Enable fast intra transform skipping
       --no-tskip-fast              Disable fast intra transform skipping
       --strong-intra-smoothing     Enable strong intra smoothing for 32x32 blocks
       --no-strong-intra-smoothing  Disable strong intra smoothing for 32x32 blocks
       --constrained-intra          Constrained intra prediction (use only intra coded reference pix
    els)
       --no-constrained-intra       Disable constrained intra prediction (use only intra coded reference pixels)
    
    Slice decision options:
    -i/--keyint                     Intra period in frames, (-1: only first frame)
    -b/--bframes                    Maximum number of consecutive b-frames (now it only enables B GOP structure)
    -w/--weightp                    Enable weighted prediction in P slices
       --no-weightp                 Disable weighted prediction in P slices
       --weightbp                   Enable weighted (bidirectional) prediction in B slices
       --no-weightbp                Disable weighted (bidirectional) prediction in B slices
    
    QP and rate distortion options:
    -q/--qp                         Base QP for CQP mode (default: 30)
       --cbqpoffs                   Chroma Cb QP Offset
       --crqpoffs                   Chroma Cr QP Offset
       --rdoq                       Enable RDO quantization
       --no-rdoq                    Disable RDO quantization
       --rdoqts                     Enable RDO quantization with transform skip
       --no-rdoqts                  Disable RDO quantization with transform skip
       --signhide                   Hide sign bit of one coeff per TU (rdo)
       --no-signhide                Disable hide sign bit of one coeff per TU (rdo)
    
    Sample Adaptive Offset loop filter:
       --sao                        Enable Sample Adaptive Offset
       --no-sao                     Disable Sample Adaptive Offset
       --sao-lcu-bounds             0: right/bottom boundary areas skipped  1: non-deblocked pixels
    are used
       --sao-lcu-opt                0: SAO picture-based optimization, 1: SAO LCU-based optimization
    
    
    SEI options:
       --hash                       Decoded Picture Hash SEI 0: disabled, 1: MD5, 2: CRC, 3: Checksum
    EDITs:

    HOW TO COMPILE THE DÄMN THING

    https://forum.videohelp.com/threads/357754-%5BHEVC%5D-x265-EXE-mingw-builds?p=2259093&v...=1#post2259093

    BINARIES

    x265_0.3+238-88e0c10bf47b.7z --- patched source-code included

    x265_0.3+81-3cadbb2d0150.zip <= this is the last revision that still contains the --gops option

    x265-MinGW-20130729.rar --- initial build

    [ more info @ https://bitbucket.org/multicoreware/x265/commits/all ]

    INSTRUCTIONS:

    unzip, unrar, enjoy, profit
    x265_0.3+405-a5a265b57844
    http://www.mediafire.com/download/0td6a58so2dv6wr/x265_0.3%2B405-a5a265b57844.7z
    un7z, enjoy, profit
    Quote Quote  
  17. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by tnti View Post
    ..............................

    x265_0.3+405-a5a265b57844
    http://www.mediafire.com/download/0td6a58so2dv6wr/x265_0.3%2B405-a5a265b57844.7z
    Thanks a lot

    But now, and just out of curiosity, are there already many anime fans doing 16bpp encodes
    Last edited by El Heggunte; 17th Aug 2013 at 11:34.
    Quote Quote  
  18. Member
    Join Date
    Aug 2013
    Location
    China
    Search PM
    Originally Posted by El Heggunte View Post
    Originally Posted by tnti View Post
    ..............................

    x265_0.3+405-a5a265b57844
    http://www.mediafire.com/download/0td6a58so2dv6wr/x265_0.3%2B405-a5a265b57844.7z
    Thanks a lot

    But now, and just out of curiosity, are there already many anime fans doing 16bpp encodes


    not sure, I just know that we can process 16bit in AVS
    Quote Quote  
  19. Originally Posted by El Heggunte
    But now, and just out of curiosity, are there already many anime fans doing 16bpp encodes?
    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 crap nice </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 ?
    Quote Quote  
  20. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    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).
    Quote Quote  
  21. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    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.
    Quote Quote  
  22. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    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()
    then, the app(s) will run correctly and a window will open and so on. its ok to manually point "work" directory's location, as in ".. -y h:\video.hm10" for instance.
    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;
    Quote Quote  
  23. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    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.
    Quote Quote  
  24. 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?
    Quote Quote  
  25. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    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.
    Quote Quote  
  26. 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.
    Quote Quote  
  27. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    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.
    Quote Quote  
  28. @BaaGGHo
    BD Player, game, if I encode mp4 CHUVC?
    I interprete something like this "if I encode mp4 to CHUVC(?) (HEVC, but keep replying in your terms), Will it be played in BD player?
    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.
    Keep enjoying mp4 to avi as long as you can, as long as you want, without any problem.
    Just, Do Not Download anything when you come across, bcoz probably you will never need it.
    Quote Quote  
  29. Originally Posted by vhelp View Post
    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.

    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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!