VideoHelp Forum
+ Reply to Thread
Page 2 of 5
FirstFirst 1 2 3 4 ... LastLast
Results 31 to 60 of 148
Thread
  1. Here is an example vdprof for 2pass
    http://thetimelapsephotographer.com/misc/MP4_x264+NeroAAC+2pass.vdprof

    It is important to set --pass 1 and --pass 2 with the proper paths for the --stats log

    It's already explained in post #3 in the guide for 2pass x264 encoding with vdub external encoder
    http://forums.virtualdub.org/index.php?act=ST&f=3&t=18840&
    Quote Quote  
  2. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray View Post
    It's already explained in post #3 in the guide for 2pass x264 encoding with vdub external encoder
    http://forums.virtualdub.org/index.php?act=ST&f=3&t=18840&
    Yeah, that's why I gave him the link. I figured it would be better to link to the guide than to copy and paste the whole guide or bits and pieces here.



    @prijatelj.v

    You don't need to know how to create a vdprof file. It is built automatically for you when you create a new encoder set. Just choose export to save the current vdprof file to a folder and import to load a vdprof file.

    As mentioned in the post above, the newest test build allows adding vdprof files with existing encoder sets. Earlier builds would would refuse to load them. I recommend using the latest test build because it usually has fixes and added features. It also allows you to get involved in making Virtualdub the best program it can be.

    Here is the test thread...

    http://forums.virtualdub.org/index.php?act=ST&f=15&t=22042&

    ...it always has the latest test builds (32 and 64 bit) and source.
    Quote Quote  
  3. thanks a lot...
    all clear to me now,best regards...
    Quote Quote  
  4. Anyone has any idea why the final image through External x264 has slight colorshift compare to the same clip processed through x264vfw with the same settings? The latter matches original, but the first one does not.

    Here are the encoding settings:

    Processed by x264vfd - correct:
    ID : 0
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L3.2
    Format settings, CABAC : Yes
    Format settings, ReFrames : 6 frames
    Codec ID : H264
    Duration : 5s 700ms
    Bit rate : 6 223 Kbps
    Width : 1 024 pixels
    Height : 768 pixels
    Display aspect ratio : 4:3
    Frame rate : 30.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.264
    Stream size : 4.23 MiB (80%)
    Writing library : x264 core 144 r2525bm 40bb568
    Encoding settings : cabac=1 / ref=6 / deblock=1:1:1 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=3.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
    Matrix coefficients : BT.709

    Processed through x264 external - incorrect
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L3.2
    Format settings, CABAC : Yes
    Format settings, ReFrames : 6 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 5s 700ms
    Bit rate : 6 155 Kbps
    Maximum bit rate : 10.3 Mbps
    Width : 1 024 pixels
    Height : 768 pixels
    Display aspect ratio : 4:3
    Frame rate mode : Constant
    Frame rate : 30.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.261
    Stream size : 4.18 MiB (98%)
    Writing library : x264 core 144 r2525 40bb568
    Encoding settings : cabac=1 / ref=6 / deblock=1:1:1 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=3.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
    Encoded date : UTC 2015-02-26 20:14:32
    Tagged date : UTC 2015-02-26 20:14:33
    Matrix coefficients : BT.709
    I tried EVERYTHING. I give up.
    Quote Quote  
  5. Member godai's Avatar
    Join Date
    Oct 2012
    Location
    United States Florida
    Search PM
    hi, somebody set up external encoder with audio with lame mp3?

    i just try make myself but i cant get it work,

    i just need a help with command line [probably problem is there]

    thanks
    Quote Quote  
  6. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Main Tab
    Type................. Audio Encoder
    Program.............. C:\Tools\lame.exe
    Command arguments.... -V6 - "%(tempaudiofile)"
    Output filename...... %(outputname).mp3

    Launch parameters.... place check mark in first three boxes

    Audio Tab = WAV file + Bypass compressio
    n
    Last edited by DarrellS; 2nd Mar 2015 at 19:37.
    Quote Quote  
  7. Member godai's Avatar
    Join Date
    Oct 2012
    Location
    United States Florida
    Search PM
    nice, i try before and not working, but with yours like a charm.

    what i need add for set up bitrate? 64,128 , 192 ?

    i read all thread of virtualdub forums , thank you so much!!
    Quote Quote  
  8. Member godai's Avatar
    Join Date
    Oct 2012
    Location
    United States Florida
    Search PM
    i found way to do it with mp3, you can help me with ogg

    i just copy exactly

    Oggenc (Vorbis) - Homepage / Binary
    Audio input format: WAV
    Output filename: %(outputname).ogg
    Example command argument:
    QUOTE
    -q2 - -o "%(tempaudiofile)"

    and donwload oggenc.exe but i cant make it works
    Quote Quote  
  9. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM

    Main Tab
    Type................. Audio Encoder
    Program.............. C:\Tools\Vorbis\oggenc2.exe
    Command arguments.... -q2 - -o "%(tempaudiofile)"
    Output filename...... %(outputname).vorbis

    Launch parameters.... place check mark in all four boxes

    Audio Tab = WAV file + Bypass compression




    I keep a copy of cmd prompt in my C:\Tools folder and can find the usage of any command line encoder...

    Example:

    Code:
    C:\Tools>oggenc2.exe -h
    All audio sets use...
    Audio Tab = WAV file + Bypass compression except for...
    audio passthrough which uses Raw audio data. Set Audio to Direct Stream Copy for passthrough and Full Processing Mode for encoders.
    Quote Quote  
  10. Member godai's Avatar
    Join Date
    Oct 2012
    Location
    United States Florida
    Search PM
    wow, thanks for tip! i will use it too

    -h apply for other audio ,video encoders too?
    i dont know too much about command line , but dont looks so hard. [despite in school i had some knowlegde about dos ]

    i just found why get errors with mp3 encoder , i choose not audio , with acc its ok if choose not audio , but if choose mp3 dont let it pass. working ok now.
    Quote Quote  
  11. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    For most. Some may have a help file in the unzipped folder. The commands below usually work for most encoders.

    -h = usage
    --help = for general usage and information
    --longhelp = full list of options

    I had no experience with command line encoders until Virtualdub introduced the external encoder feature and most of us in the Virtualdub forum learned as we went along, with each others' help. Most everything we needed was in the guide on the Virtualdub forum.

    http://forums.virtualdub.org/index.php?act=ST&f=3&t=18840&

    Not all command line encoders will work though. They have to support stdin "-" and a few popular command line encoders do not support stdin. Neither HCenc nor QuEnc MPEG2 encoders support stdin so we are forced to use less desirable encoders for MPEG2 (ffmpeg-mpeg2video or mjpegtools-mpeg2enc) or use the frame server to export the file to the better encoders.
    Quote Quote  
  12. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    @ DarrellS, It's great to see you giving Tech Support for this old thread. Your knowledge on this is much greater than mine. I don't have the patience and I'm a much better creator than teacher anyway.
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  
  13. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    I just like to see as many users as possible, interested in using the external encoder feature and helping each other get as many encoder sets working as possible, even if the encoder most of us will use is the x264 (or x265) encoder.

    ale5000 has created an installer for Virtualdub AIO with all the major input plugins, acm codecs and cli encoders for people who would like to try Virtualdub but don't want to track down and install everything themselves. I think Baldrick will finally update the Virtualdub download page with the new installer.

    -vdub- from the Virtualdub site was working on getting everything together to be archived on the Sourceforge site and creating high quality video guides to post on youtube to help with all the features including the curve editor and smart rendering. I hope the installer doesn't stop us from getting this done.

    I've been trying to work on getting everything together here but every time I start working on it, I get overwhelmed. It's definitely a job for multiple users.
    Quote Quote  
  14. Member
    Join Date
    Mar 2015
    Location
    Europe
    Search PM
    Originally Posted by racer-x View Post
    I'm posting my External Encoder preset along with a quick tutorial on how to use it. You'll need to download the encoders and muxers and put them on your HDD somewhere. Then you'll need to edit the paths to the encoders and muxers. Here are what you'll need to get:

    .....
    Mpeg-2 (ffmpeg)
    ac3 (ffmpeg)
    mp2 (ffmpeg)
    mpg (ffmpeg)
    @racer-x - some time ago you posted your Encoder presets. Among others you mentioned AC3 with ffmpeg. How does AC3 work with FFMpeg?
    (In Your presets itself I see that You are using "...\megui\tools\aften\aften.exe", which is a known ac3 Encoder)
    Quote Quote  
  15. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Originally Posted by papcom View Post
    Originally Posted by racer-x View Post
    I'm posting my External Encoder preset along with a quick tutorial on how to use it. You'll need to download the encoders and muxers and put them on your HDD somewhere. Then you'll need to edit the paths to the encoders and muxers. Here are what you'll need to get:

    .....
    Mpeg-2 (ffmpeg)
    ac3 (ffmpeg)
    mp2 (ffmpeg)
    mpg (ffmpeg)
    @racer-x - some time ago you posted your Encoder presets. Among others you mentioned AC3 with ffmpeg. How does AC3 work with FFMpeg?
    (In Your presets itself I see that You are using "...\megui\tools\aften\aften.exe", which is a known ac3 Encoder)

    Aften was an upgrade to ffmpeg's ac3 encoder and the most used ac3 encoder in GUIs.
    Quote Quote  
  16. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    I promised a while back that I'd break down my vdprof file into different file types and here it is. The master set is also included. I keep all of my command line encoders in C:\Tools as recommended in the original External Encoder guide on the Unofficial Virtualdub forums which closed today. The site will be read only until everything can get archived.
    Image Attached Files
    Quote Quote  
  17. Am I correct that VirtualDub External Encoder feature can be used to capture a webcam audio & video stream into mkv using x264vfw & AAC codecs. Can you suggest a commandline code in x264vfw settings in VD's Capture mode Video - Compression - Codec Settings that would allow to capture both MJPEG audio and PCM video streams encoded to x264&AAC and muxed into one mkv file near real time? Or any other method to do that with VirtualDub possibly using external encoders? I tried, but video is saved into mkv, but audio into a separate avi file.
    Last edited by zamar27; 22nd Mar 2015 at 10:54.
    Quote Quote  
  18. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    That's all over my head. I was under the assumption that x264vfw could not be used as an external encoder. I guess you could write scripts to make it work.

    If you are getting a working .264 and aac audio then you could manually mux to mp4 container with mp4box. I would use Aften to encode (or ffmpeg ac3 passthrough) ac3 for mkv and mux with mkvmerge.
    Quote Quote  
  19. Member
    Join Date
    Mar 2015
    Location
    Europe
    Search PM
    I cannot get a DVD compilant Mpeg2 stream somehow. The file itself works, but as soon as I try in an authoring tool, it says that the Mpeg2 stream is not compatible.
    Quote Quote  
  20. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    Beside having to be the correct resolution, you have to specify aspect ratio. Bellow are the settings that import fine into DVD Architect, you'll need to adjust for PAL...

    -c:v mpeg2video -s 720x480 -pix_fmt yuv420p -aspect 16:9 -b 6500k -bt 8192k -maxrate 9000k
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  
  21. Member
    Join Date
    Mar 2015
    Location
    Europe
    Search PM
    thank You @x-racer, I'll give that I try today… and report later.
    Quote Quote  
  22. Originally Posted by DarrellS View Post
    I was under the assumption that x264vfw could not be used as an external encoder. I guess you could write scripts to make it work.
    May be I explained it unclear, and its not "external" whatever it means, but the division on external and internal encoders sounds artificial, since x264vfw is not a part of VirtualDub author's own code. For folks capturing from webcams is more important to find a working solution. You suggested some solutions above but they aren't real time. So far in real time I'm getting audio written to avi, and video to mkv. It doesn't look natural at all, especially knowing that VirtualDub can write audio and video webcam stream muxed into ONE avi file near real time. I don't know why its author stopped at that point and didn't fully move into mkv era, despite still working on this program updates.

    So the question was, how to do similar audio & video capture real time writing to MP4 instead of avi? Any approach is appreciated. I know that fee based programs like Bandicam or DirectTake can do it easily, which leads to assumption, it can be done with free software too, just need to find out correct setup. And using VirtualDub & FFMpeg is convenient in a way they can capture from source the original H264&AAC stream encoded in webcam's hardware into muxed MP4 file without re-encoding, so a low end PC can do the job, just as they capture MJPG&PCM stream from webcam into muxed AVI on the fly without re-encoding. That seems like a major point distinguishing these programs from others, which re-encode the stream on the fly thus degrading the output quality and becoming huge PC CPU & GPU resource hugs. On the other hand, re-encoding is required when changing format types.
    Last edited by zamar27; 22nd Mar 2015 at 13:13.
    Quote Quote  
  23. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Your questions and assumptions have nothing to do with the external feature of Virtualdub which is totally different than using vfw codecs which do not come with Virtualdub either unless maybe you use the AIO version created by Ale5000.

    You need to start a new thread addressing each of your problems which have nothing to do with the external encoder feature.
    Quote Quote  
  24. I downloaded VirtualDub from here, it did come with x264vfw included, and its not AIO pack. I think my question on how to encode webcam stream into mkv or mp4 has EVERYTHING to do with external encoders, since it can only be done by using encoders and/or muxers, as VirtualDub only saves into avi. Webcams usually output in various native formats, including RGB24 or MJPG & PCM that require re-encoding on the fly to x264 & AAC before saving to mkv. For some source formats re-encoding may not be strictly required, for other it is. Pls don't make irrelevant conclusions, if you don't know the answer. There might be other forum members able to help.
    Last edited by zamar27; 22nd Mar 2015 at 13:15.
    Quote Quote  
  25. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    x264vfw is not an external encoder. it is a vfw codec. You clearly have no idea what you are talking about.........

    You have a lot of learning ahead of you.

    For your purpose, just make a batch file to mux your video and audio streams into an mp4, mkv or whatever container.
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  
  26. Codecs are all external to packages like VirtualDub, even if supplied with OS. Assuming in good face you suggest to run a script from VD File-Run Script menu, would you care to post the content of the batch you suggested aimed at capturing, encoding and muxing webcam audio & video streams to mkv in real time?

    In case you don't have a clue, I just found free for personal use NCH Debut package that can capture webcam native video and audio streams muxed into mvk real time. Hope it will help someone.
    Last edited by zamar27; 22nd Mar 2015 at 17:21.
    Quote Quote  
  27. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Well, good for you.
    Quote Quote  
  28. Member
    Join Date
    Mar 2015
    Location
    Europe
    Search PM
    Originally Posted by racer-x View Post
    Beside having to be the correct resolution, you have to specify aspect ratio. Bellow are the settings that import fine into DVD Architect, you'll need to adjust for PAL...

    -c:v mpeg2video -s 720x480 -pix_fmt yuv420p -aspect 16:9 -b 6500k -bt 8192k -maxrate 9000k
    @racer-x - sorry I wasn't successfull.

    In the Mpeg2 Profile for the external Encoding in Virtualdub there is the following line:

    -f rawvideo -s %(width)x%(height) -r %(fpsnum)/%(fpsden) -i - -c:v mpeg2video -pix_fmt yuv420p -q:v 3 -qmin 1 -g 12 "%(tempvideofile)"
    How do I get Your Settings into my virtual Dub settings for the external ffmepeg Encoding for MPEG2 DVD Encoding?
    Quote Quote  
  29. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    Try

    Code:
    -f rawvideo -s %(width)x%(height) -r %(fpsnum)/%(fpsden) -i - -c:v mpeg2video -pix_fmt yuv420p -aspect 16:9 -b 6500k -bt 8192k -maxrate 9000k "%(tempvideofile)"
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  
  30. racer-x and DarrellS, your exlanations and support to this thread are excellent!

    I'm trying to reconcile the Youtube recommendations with command lines indicated by you guys to encode some mp4 files to avi.

    Have a look at this guide and help me to find the correct parameters to use in Vdub External Encoders.

    Example, how to apply this profile?

    Best Quality (Slowest) Recommended Settings

    ffmpeg -i <source> -c:v libvpx-vp9 -pass 1 -b:v 1000K -threads 1 -speed 4 \
    -tile-columns 0 -frame-parallel 0 -auto-alt-ref 1 -lag-in-frames 25 \
    -g 9999 -aq-mode 0 -an -f webm /dev/null

    ffmpeg -i <source> -c:v libvpx-vp9 -pass 2 -b:v 1000K -threads 1 -speed 0 \
    -tile-columns 0 -frame-parallel 0 -auto-alt-ref 1 -lag-in-frames 25 \
    -g 9999 -aq-mode 0 -c:a libopus -b:a 64k -f webm out.webm

    tile-columns 0, frame-parallel 0: Turning off tile-columns and frame-parallel should give a small bump in quality, but will most likely hamper decode performance severely.
    Thank you.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!