[mythtv] [PATCH] audio stutter
Mark Spieth
mark at dclabs.com.au
Fri Aug 27 10:33:07 EDT 2004
the reason why it works by example for the same file
videotime is shown in
bad one
2004-08-27 22:00:19.393 avformat timecode: -26007428
2004-08-27 22:00:19.396 Waiting for space on soundcard: space=0
2004-08-27 22:00:19.398 Divergence: 0.60015 Rate: -0.0084 Warpfactor:
1.01892 warpfactor_avg: 1
.0002 avsync_delay: 23000 avsync_avg: 24006
2004-08-27 22:00:19.408 videotime: 0 audiotime: -666
2004-08-27 22:00:19.410 Divergence: 0 Rate: 0 Warpfactor: 1.01841
warpfactor_avg: 1.0002 avsync
_delay: 23000 avsync_avg: 0
2004-08-27 22:00:19.428 avformat timecode: -26007624
2004-08-27 22:00:19.429 AddSamples 4608
2004-08-27 22:00:19.441 videotime: -26007828 audiotime: -632
2004-08-27 22:00:19.446 Divergence: -1483.7 Rate: -1483.7 Warpfactor:
1.0179 warpfactor_avg: 1.
0002 avsync_delay: -237392224 avsync_avg: -59348056
2004-08-27 22:00:19.447 A/V diverged by -200 frames, dropping frame to keep
audio in sync
2004-08-27 22:00:19.447 videotime: -26007788 audiotime: -627
notice huge avsync_delay above. no wonder it diverged.
with patch
2004-08-27 22:11:43.438 avformat timecode: -26009268
2004-08-27 22:11:43.454 videotime: -26009748 audiotime: -26010743
2004-08-27 22:11:43.456 Divergence: 6.21875 Rate: 6.21875 Warpfactor:
1.04105 warpfactor_avg: 1
.00012 avsync_delay: 995000 avsync_avg: 248750
because the base timecode is altered for audio one if the avtimecode is -ve
video and audio timecodes have a massive difference which can never be met.
sorry for not paying attention previously re other patch.
mark
----- Original Message -----
From: "Torbjörn Jansson" <torbjorn.jansson at mbox200.swipnet.se>
To: "'Development of mythtv'" <mythtv-dev at mythtv.org>
Sent: Saturday, August 28, 2004 12:10 AM
Subject: RE: [mythtv] [PATCH] audio stutter
> mythtv-dev-bounces at mythtv.org <> wrote:
> > I have traced the audio stutter problem to negative
> > timecodes. attached is a patch that fixes it for me.
> > the negative timecodes probably are due to a long long to int
> > conversion and then back again during saving. havent found
> > this root cause yet. taken me long enough to find this. not
> > sure why the negative check is necessary though.
> > only done to oss. alsa would have the same fix.
> >
>
> This patch looks exactly like the patch someone else sent to the list a
few
> days ago, it didn't fix anything, atleast not anything i coud see.
> The patch that changed so seteffdsp wasn't called when the audio sync
header
> had too low timecode (shoud be about the same as samplerate) fixed the
sync
> problems i had.
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.744 / Virus Database: 496 - Release Date: 8/25/2004
More information about the mythtv-dev
mailing list