Beiträge von Vouk

    Symptoms

    After importing a multitrack MP4 file - or even single audio files that you have extracted from some footage - you might have noticed something like this: Some audio tracks seem to be delayed by various milliseconds and appear to be out of sync to each other.

    On the first sight it looks completely wrong and it appears as a faulty encoder. Well, it actually fully complies with the AAC specification and is completely valid.

    If you take a closer look you notice that tracks encoded with AAC have a delay of a multiple of 1024 samples. Usually AAC encoders produces an offset of 1024 samples (or 21.33 ms at 48 kHz) and the FDK-AAC encoder adds an offset of 1024 samples per channel (like 42,66 ms for stereo at 48 kHz).

    Cause

    Each audio sample/package can be identified by a timestamp. In a 48 kHz audio file you have 48000 samples per second (or one sample is 20.83 µs long).

    When playing the file in a software- or hardware player the player syncs all streams based on their timestamps and everything should be perfectly in sync. The offsets are ignored.

    Solution?

    Lots of people asked me to add an option in Voukoder to correct the audio track shift by a certain amount of milliseconds (usually 43ms) to make it rather look like this:

    Well, it is possible to this and it can be done using FFmpegs "atrim" audio filter (which will be added to Voukoder soon) but the best solutions is to not use AAC for intermediate clips. Consider using raw PCM instead. Only use a lossy codec (like AAC) for the final file - if necessary.

    Release Candidate 1

    Changes

    • Increased floating point values precision to 3 decimal places
    • Added animated GIF support
    • Added still image support (BMP and TIFF)

    Fixes

    • Fixed loading the correct order of filters
    • Added low-level logfile for debugging
    • Fixed sequential exports with different frame sizes are failing
    • Showing video and audio pages only if they are selected in the NLE

    Notes

    This is not the final version 4 release. Use it on your own risk.

    For using NVENC encoders driver version 436.15 or newer is required.

    Download

    https://github.com/Vouk/voukoder/releases/tag/4rc1

    It's a bit difficult for me to override it, as it doesn't match the encoders default value. But i'll see what i can do.

    FFmpeg is always a nightly build. So with every release of Voukoder you'll always get the latest version of the source code.

    I am currently testing a new functionality in the connectors.

    On startup of the host application (i.e. VEGAS) when the plugins are loaded the connector automatically performs some checks:

    1. Is the main Voukoder application installed?
    2. Is there an update of Voukoder available?

    If Voukoder is not installed it will show you this message dialog:

    A click on "Install" downloads and installs the latest version of Voukoder and the continues starting the host application - with Voukoder available.

    Clicking on "Ask me later" is basically the "Cancel" action. It closes the dialog, Voukoder will not be available in the application. But it will show this message on the next start again.

    In case of an available update the "Skip" button is enabled, too. It also closes the dialog box and will not show it again for that specific version number. The update functionaliy will work from Voukoder 4 on.

    Currently this is only implemented in the VEGAS connector only, but other connectors will follow.

    Would be great if some VEGAS users could test it: https://github.com/Vouk/voukoder-….0.msi?raw=true

    btw: The installer should now also autodetect the installation path for the VEGAS Movie Studio series.

    When adding b_ref_mode=middle it struggles and drops frames.

    Since everything works fine unless you change this single setting, it is most likely FFmpeg related. Can you try to reproduce it with FFmpeg on the command line? If so you might report this issue to the FFmpeg team.

    A special bonus for all my patrons on Patreon (https://www.patreon.com/voukoder)!

    A preview version of the upcoming Voukoder version 4:

    Changes

    • Increased floating point values precision to 3 decimal places
    • Added animated GIF support
    • Added still image support (BMP and TIFF)

    Fixes

    • Fixed loading the correct order of filters
    • Added low-level logfile for debugging
    • Fixed sequential exports with different frame sizes are failing
    • Showing video and audio pages only if they are selected in the NLE

    Notes

    For using NVENC encoders driver version 436.15 or newer is required.

    Lots of people (incl. me) would like to have this in DaVinci Resolve. But I guess this would be against their product strategy. It is free for a reason: Get people used to that software and if you want hardware encoding buy the bigger versions and the required equipment from BM.

    I once sent them an email and they wanted to contact me, but never did.

    It is strange. Voukoder normally doesn't drop frames as it takes all the time that it needs to write a frame unless there is an issue with really writing the frame to disk. Does this also happen when you export this file to the desktop on drive c:?