Lagarith+mp3+handbrake = audio desync

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
gendalf
Posts: 20
Joined: Sun Oct 14, 2012 11:05 am

Lagarith+mp3+handbrake = audio desync

Post by gendalf »

i've recorded a 2-minute clip with dxtory, using lagarith + mp3 256kbit/s 48khz

using handbrake 0.10 to compress that lossless video to x264
i'm not touching the advanced page, i'm trying different options but it always leads to audio going out of sync :(
also it resizes it to 1280x716 all the time -_-
gendalf
Posts: 20
Joined: Sun Oct 14, 2012 11:05 am

Re: Lagarith+mp3+handbrake = audio desync

Post by gendalf »

argh now it doesn't even save the file properly - it just creates a 0 size file...
whatever i just used media coder and it worked without desync
Deleted User 13735

Re: Lagarith+mp3+handbrake = audio desync

Post by Deleted User 13735 »

Lagarith is buggy in libav.
Vbr audio was never meant to go in a VFW wrapper.

UT with pcm audio works, I've tested it.
gendalf
Posts: 20
Joined: Sun Oct 14, 2012 11:05 am

Re: Lagarith+mp3+handbrake = audio desync

Post by gendalf »

what is UT
Last edited by gendalf on Fri Nov 28, 2014 2:11 pm, edited 2 times in total.
Deleted User 13735

Re: Lagarith+mp3+handbrake = audio desync

Post by Deleted User 13735 »

Google "UT video codec."
Best of luck.
gendalf
Posts: 20
Joined: Sun Oct 14, 2012 11:05 am

Re: Lagarith+mp3+handbrake = audio desync

Post by gendalf »

musicvid wrote:Lagarith is buggy in libav.
Vbr audio was never meant to go in a VFW wrapper.

UT with pcm audio works, I've tested it.
it says that it's constant:

Code: Select all

General
Format                         : AVI
Video
ID                             : 0
Format                         : Lagarith
Codec ID                       : LAGS
Duration                       : 2mn 13s
Bit rate                       : 18.9 Mbps
Width                          : 1 280 pixels
Height                         : 720 pixels
Display aspect ratio           : 16:9
Frame rate                     : 30.000 fps
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Bits/(Pixel*Frame)             : 0.685
Stream size                    : 302 MiB (99%)

Audio
ID                             : 1
Format                         : MPEG Audio
Format version                 : Version 1
Format profile                 : Layer 3
Mode                           : Joint stereo
Codec ID                       : 55
Codec ID/Hint                  : MP3
Duration                       : 2mn 13s
Bit rate mode                  : Constant
Bit rate                       : 256 Kbps
Channel(s)                     : 2 channels
Sampling rate                  : 48.0 KHz
Compression mode               : Lossy
Stream size                    : 4.07 MiB (1%)
Alignment                      : Split accross interleaves
Interleave, duration           : 997 ms (29.90 video frames)
i've recorded another file without the "Null Frames" option in Lagarith, used constant in everything in handbrake and it worked.. sad part is that without the Null Frames lagarith files are 2x larger.. so it's handbrake not recognising "Null frames"

is there any benefit in using UT?
Deleted User 13735

Re: Lagarith+mp3+handbrake = audio desync

Post by Deleted User 13735 »

You are welcome to use your method, or try something I have tested that works, in hopes that it will work for you. UT is not the only codec that works. You can use uncompressed if you are loath to install anything.
is there any benefit in using UT?
-- Lagarith has been buggy in libav. Libav is the decoding library in Handbrake. (Edited)

Code: Select all

Alignment                      : Split accross interleaves
Interleave, duration           : 997 ms (29.90 video frames)
-- Your interleaved mp3 track is a kludge in vfw; please don't ask me for validation, especially with regard to sync issues :)
Last edited by Deleted User 13735 on Fri Nov 28, 2014 4:46 pm, edited 3 times in total.
Deleted User 11865

Re: Lagarith+mp3+handbrake = audio desync

Post by Deleted User 11865 »

musicvid wrote:You are welcome to use your method, or try something I have tested that works, in hopes that it will work for you. UT is not the only codec that works.
is there any benefit in using UT?
-- Lagarith has been buggy in libav. Libav is the encoding library in Handbrake.
s/encoding/decoding ;) :P

We do use it for encoding AC-3 audio, MPEG-2 and MPEG-4 video, and as a wrapper for some other encoding libraries (libfdk, libvpx), but that would be unrelated to Lagarith…
gendalf
Posts: 20
Joined: Sun Oct 14, 2012 11:05 am

Re: Lagarith+mp3+handbrake = audio desync

Post by gendalf »

musicvi, well, it is what i've got by rercording in dxtory, not much i can do with how it records mp3 audio i guess, should i record in pcm?
Deleted User 13735

Re: Lagarith+mp3+handbrake = audio desync

Post by Deleted User 13735 »

You will need to learn the dxtory settings and codec options from their docs and support resources, not here.
Sorry.
Deleted User 13735

Re: Lagarith+mp3+handbrake = audio desync

Post by Deleted User 13735 »

s/encoding/decoding
Ha! Busted with a perl regex. At least I'm old enough to know what one is . . .
Post Reply