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 > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st September 2015, 12:37   #1  |  Link
Barabba
Registered User
 
Barabba's Avatar
 
Join Date: Jul 2007
Posts: 47
H265 for Virtualdub, how to

Good day to all!

I looked around about this but I just found messy and not clear solutions. We know how farst and reliable is Virtualdub to edit our videos, and all the filters developed for it makes it unique, we can't lose Virtualdub just because it supports only avi and vfw.

The solution exist by external encoder function, but how to use it for me is a bit complicated. I would kindly ask someone explaind here step by step how to configure it, in particular:

1) Where to download the best h265 encoder, an updated version (which can use up to 8 cores). (please include also an AAC audio encoder, thank you)
2) How to setup the external encoder panel, and all the parameters to specify there
3) Eventually which software to suggest for remux the two streams, I suppose Mkvtoolnix will suite that.

PS: I tried Avidemux but it has important limitations: the less useful interface, the less filters and that encder uses only 4 threads max.

Thank you very much!
Barabba is offline   Reply With Quote
Old 1st September 2015, 14:45   #2  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
From the VirtualDub External Encoder Tutorials sticky thread
Quote:
TL;DR
1. Search the Web for .vdprof files (external encoder sets) for the file type you need.
2. Go to Options, External Encoders, Import and import the .vdprof file.
3. Open each imported encoder or muxer and fix the executable path if needed.
Expanded explanation, with screen shots:
  1. Options, External Encoders...
  2. Import, browse to .vdprof file, Open...
  3. Encoders tab, Edit
  4. Browse to executable location (and repeat for all Encoders)
  5. When ready to encode: Export, Using External encoder...
  6. Select desired encoder

The hard part is finding the .vdprofs online at this early date. Here's one (not tested!) adapted from racer-x's post in this VideoHelp thread
Code:
{
   "description": "VirtualDub external encoder profile collection",
   "externalEncoders": {
       "sets": {
           "mp4 x264 crf19 + aac": {
               "videoEncoder": "V x264 crf19",
               "audioEncoder": "A neroaac q035",
               "multiplexer": "M mp4 ffmpeg",
               "description": "mp4",
               "extension": "mp4",
               "processPartial": true,
               "useOutputAsTemp": false
           },
           "mp4 x265 crf24 + aac": {
               "videoEncoder": "V x265 crf24",
               "audioEncoder": "A neroaac q035",
               "multiplexer": "M mp4 ffmpeg",
               "description": "mp4",
               "extension": "mp4",
               "processPartial": true,
               "useOutputAsTemp": false
           }
       },
       "profiles": {
           "A neroaac q035": {
               "name": "A neroaac q035",
               "program": "neroAacEnc.exe",
               "commandArguments": "-q 0.35 -ignorelength -if - -of \"%(tempaudiofile)\"",
               "outputFilename": "%(outputname).aac",
               "type": 1,
               "inputFormat": 1,
               "checkReturnCode": true,
               "logStdout": true,
               "logStderr": true,
               "bypassCompression": true,
               "predeleteOutputFile": true
           },
           "M mp4 ffmpeg": {
               "name": "M ff mp4",
               "program": "ffmpeg.exe",
               "commandArguments": "-i \"%(tempvideofile)\" -i \"%(tempaudiofile)\" -c copy -r %(fps) -f mp4 \"%(outputname)\" ",
               "outputFilename": "",
               "type": 2,
               "inputFormat": 0,
               "checkReturnCode": true,
               "logStdout": true,
               "logStderr": true,
               "bypassCompression": false,
               "predeleteOutputFile": true
           },
           "M mp4 MP4Box": {
               "name": "M mp4 MP4Box",
               "program": "MP4Box.exe",
               "commandArguments": "-add \"%(tempvideofile)\" -add \"%(tempaudiofile)\" \"%(outputname)\" -fps %(fps)",
               "outputFilename": "%(outputname).audio",
               "type": 2,
               "inputFormat": 0,
               "checkReturnCode": true,
               "logStdout": true,
               "logStderr": true,
               "bypassCompression": false,
               "predeleteOutputFile": true
           },
           "M MKVmerge": {
               "name": "M MKVmerge",
               "program": "mkvmerge.exe",
               "commandArguments": "-o \"%(outputname)\" --default-duration 0:%(fpsnum)/%(fpsden)fps \"%(tempvideofile)\" \"%(tempaudiofile)\"",
               "outputFilename": "%(outputname).audio",
               "type": 2,
               "inputFormat": 0,
               "checkReturnCode": true,
               "logStdout": true,
               "logStderr": true,
               "bypassCompression": false,
               "predeleteOutputFile": false
            },
           "V x264 crf19": {
               "name": "V x264 crf19",
               "program": "x264.exe",
               "commandArguments": "--crf 19 --demuxer raw --input-res %(width)x%(height) --fps %(fpsnum)/%(fpsden) -o \"%(tempvideofile)\" -",
               "outputFilename": "%(outputname).264",
               "type": 0,
               "inputFormat": 0,
               "checkReturnCode": true,
               "logStdout": true,
               "logStderr": true,
               "bypassCompression": false,
               "predeleteOutputFile": true
           },
           "V x265 crf24": {
               "name": "V x265 crf24",
               "program": "x265.exe",
               "commandArguments": "--crf 24 --input-res %(width)x%(height) --fps %(fps) -o \"%(tempvideofile)\" -",
               "outputFilename": "%(outputname).hevc",
               "type": 0,
               "inputFormat": 0,
               "checkReturnCode": true,
               "logStdout": true,
               "logStderr": true,
               "bypassCompression": false,
               "predeleteOutputFile": true
            },
            "V Divx265 qp25": {
               "name": "V Divx265 qp25",
               "program": "DivX265_1.3.74.exe",
               "commandArguments": "-i - -s %(width)x%(height) -qp 25 -aqo 3 -709 -o \"%(tempvideofile)\" ",
               "outputFilename": "%(outputname).hevc",
               "type": 0,
               "inputFormat": 0,
               "checkReturnCode": true,
               "logStdout": true,
               "logStderr": true,
               "bypassCompression": false,
               "predeleteOutputFile": true
            }
       }
   }
}

Last edited by raffriff42; 17th March 2017 at 00:15. Reason: (fixed image links)
raffriff42 is offline   Reply With Quote
Old 1st September 2015, 15:51   #3  |  Link
Barabba
Registered User
 
Barabba's Avatar
 
Join Date: Jul 2007
Posts: 47
Thank you very much, all is pretty clear now, I just want ask what is best encoder,
x265.exe or DivX265_1.3.74.exe?
Barabba is offline   Reply With Quote
Old 1st September 2015, 19:44   #4  |  Link
Barabba
Registered User
 
Barabba's Avatar
 
Join Date: Jul 2007
Posts: 47
I used this script, placed the x265 encoder and nero aac, then I've found mp4box, ffmpeg and mkvmerge.
The encoding proceed, but I can see the images of input output panel in VB only if I select mkvmerge as the muxer, with other two I've black screen but seems it compress. With ALL of them I've an error in the end of compression:
CLI: the multiplexing process filed with code 1

Thank you for solutions
Barabba is offline   Reply With Quote
Old 1st September 2015, 21:34   #5  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
I have no idea. Poor error reporting is a problem with using external encoders

First, try following these tips to avoid the most common errors:
  1. Source video:
    • File name must not have any "#" characters; it confuses MP4Box
    • Must have an audio track
      • a silent track is OK
      • Use Audio from another file if required
      • Recommend stereo, 16 bit, 44100 or 48000 Hz; if not, encode may fail mysteriously.
  2. Most errors seem to crop up at the very end of the encoding process, so test your settings on a short (10 second) selection.
    (Edit menu, Set Selection Start and Set Selection End)
  3. Using Video, Fast recompress mode is preferred unless using VirtualDub filters; if you are using filters, go to the Video menu, select Color Depth, Output format = "24 bit RGB (888)" or "32 Bit RGB (888)"
    (others may work too; these have been tested)
  4. File menu, Export-> Using external encoder
    (or File menu, Queue batch operation-> Export using external encoder)
    1. Select your Encoder Set
    2. Enter file name. Extension must be "mp4"; must not have any "#" characters if using MP4Box.
    3. Hit Save
If you still have a problem, posting your Virtualdub Log so I can review it might help. When you get the error, please go to View menu, Log, right-click, Copy to Clipboard, and paste to your next post.

Last edited by raffriff42; 1st September 2015 at 21:38.
raffriff42 is offline   Reply With Quote
Old 1st September 2015, 21:55   #6  |  Link
Barabba
Registered User
 
Barabba's Avatar
 
Join Date: Jul 2007
Posts: 47
thank you again! The problem was I deactivated audio! Now all is ok!
it encodes, now I don't understand how could I setup parameters in the encoders, in the vdprof there isn't specifications, for example I want 56kbit mono AAC and a HEVC with CRF 25 and medium preset, how is possible?
Thank you a lot, I think this is the last part I need
Barabba is offline   Reply With Quote
Old 1st September 2015, 22:06   #7  |  Link
Barabba
Registered User
 
Barabba's Avatar
 
Join Date: Jul 2007
Posts: 47
I found myself on guides, I'm using --crf 25 --me 2
Barabba is offline   Reply With Quote
Old 8th September 2015, 16:45   #8  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,115
Just curious - what are the otherwise irreplaceable features of VirtualDub? I love it to death, and use it to view and compare HEVC files (which I can't get After Effects to load, even with LAV Filters installed). But it seems a good decade past being an encoding tool for modern formats. If I export from it at all, it's normally to a LAGS AVI.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 8th September 2015, 17:02   #9  |  Link
Barabba
Registered User
 
Barabba's Avatar
 
Join Date: Jul 2007
Posts: 47
It works very good, I love VD, the result is in mp4
Barabba is offline   Reply With Quote
Reply

Tags
virtualdub, x265

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 15:16.


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