Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Commits

Ticket #10797: Audio/Video sync problems especially after seeking to start of recording

 

 

MythTV commits RSS feed   Index | Next | Previous | View Threaded


noreply at mythtv

Jun 3, 2012, 9:16 PM

Post #1 of 16 (319 views)
Permalink
Ticket #10797: Audio/Video sync problems especially after seeking to start of recording

#10797: Audio/Video sync problems especially after seeking to start of recording
-------------------------------------+-------------------------------------
Reporter: dmoo1790@… | Type: Bug Report -
Status: new | General
Milestone: unknown | Priority: minor
Version: 0.25-fixes | Component: MythTV - Video
Keywords: audio video sync 0.25 | Playback
seek | Severity: medium
| Ticket locked: 0
-------------------------------------+-------------------------------------
I have A/V sync problems after upgrading from 0.23 to 0.25. Most
noticeable when seeking back to the start of a recording but under other
circumstances also. See this post: http://www.mythtv.org/pipermail/mythtv-
users/2012-June/334992.html

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 6, 2012, 9:25 PM

Post #2 of 16 (304 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by David Moore <dmoo1790@…>):

I tried analysing the log file and found some weird things with timecodes.
See attached file log_analysis.txt. This file has extracts from filtering
with
egrep 'audio timecode|video timecode|DoPlayerSeek|behind|error'
mythfrontend.20120604155806.2992.log

It seems to me there is a genuine bug rather than a config problem on my
system. Three reasons: (1) the odd sequence of video/audio timecodes in
the log, (2) no problem before upgrading to 0.25 and (3) others in NZ have
reported the same behaviour when trying to seek back to the start of a
recording.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 7, 2012, 6:41 PM

Post #3 of 16 (305 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by tralph):

Could you try the FORCE_DTS_TIMESTAMPS=1 environment variable? Just run
the following command.

FORCE_DTS_TIMESTAMPS=1 mythfrontend

Thanks.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 7, 2012, 9:01 PM

Post #4 of 16 (300 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by David Moore <dmoo1790@…>):

Replying to [comment:2 tralph]:
> Could you try the FORCE_DTS_TIMESTAMPS=1 environment variable? Just run
the following command.
>
> FORCE_DTS_TIMESTAMPS=1 mythfrontend
>
> Thanks.

I tried it. Didn't seem to make any difference. Would you like any log
info? If so, which log options?

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 8, 2012, 6:57 AM

Post #5 of 16 (298 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by tralph):

You need to provide a frontend log with --loglevel debug -v
playback,timestamp.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:4>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 8, 2012, 6:25 PM

Post #6 of 16 (291 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by David Moore <dmoo1790@…>):

Replying to [comment:4 tralph]:
> You need to provide a frontend log with --loglevel debug -v
playback,timestamp.

Done.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:5>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 8, 2012, 6:26 PM

Post #7 of 16 (290 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by David Moore <dmoo1790@…>):

Replying to [comment:5 David Moore <dmoo1790@…>]:
> Replying to [comment:4 tralph]:
> > You need to provide a frontend log with --loglevel debug -v
playback,timestamp.
>
> Done.
Oops. Ignore the file. Forget the enviro variable. Wait one...

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:6>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 8, 2012, 6:34 PM

Post #8 of 16 (290 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by David Moore <dmoo1790@…>):

Replying to [comment:6 David Moore <dmoo1790@…>]:
> Replying to [comment:5 David Moore <dmoo1790@…>]:
> > Replying to [comment:4 tralph]:
> > > You need to provide a frontend log with --loglevel debug -v
playback,timestamp.
> >
> > Done.
> Oops. Ignore the file. Forget the enviro variable. Wait one...
OK. File uploaded with FORCE_DTS_TIMESTAMPS=1 set.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:7>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 9, 2012, 7:35 PM

Post #9 of 16 (316 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by tralph):

So the log below definitely shows a timestamp issue right after the audio
decoding errors. The audio timestamp jumps way back in time after the
decoding error. These errors and timestamps are provided by the ffmpeg
demuxer. So it appears that the regression is probably due to the ffmpeg
sync done for 0.25. I'm not sure how this should be handled because it's
really an ffmpeg bug. The first step is to create a small sample that
triggers the issue and then see if the ffmpeg devs might be interested in
looking at it.

{{{
2012-06-09 13:29:34.008873 D [3337/3401] Decoder avformatdecoder.cpp:3138
(ProcessVideoPacket) - AFD: video packet timestamps reordered 435110682
pts 435134082 dts 435116082 (dts forced)
2012-06-09 13:29:34.008889 I [3337/3401] Decoder avformatdecoder.cpp:3245
(ProcessVideoFrame) - AFD: video timecode 435116082 4834623 4834623
4834503
2012-06-09 13:29:34.009287 I [3337/3401] Decoder avformatdecoder.cpp:4248
(ProcessAudioPacket) - AFD: audio timecode 435115988 435115988 4834622
4834664
2012-06-09 13:29:34.009586 I [3337/3401] Decoder avformatdecoder.cpp:4248
(ProcessAudioPacket) - AFD: audio timecode 435119828 435119828 4834664
4834706
2012-06-09 13:29:34.009874 I [3337/3401] Decoder avformatdecoder.cpp:4248
(ProcessAudioPacket) - AFD: audio timecode 435123668 435123668 4834707
4834749
2012-06-09 13:29:34.015554 D [3337/3401] Decoder avformatdecoder.cpp:3138
(ProcessVideoPacket) - AFD: video packet timestamps reordered 435117882
pts 435126882 dts 435119682 (dts forced)
2012-06-09 13:29:34.015572 I [3337/3401] Decoder avformatdecoder.cpp:3245
(ProcessVideoFrame) - AFD: video timecode 435119682 4834663 4834663
4834623
2012-06-09 13:29:34.016136 I [3337/3401] Decoder avformatdecoder.cpp:4248
(ProcessAudioPacket) - AFD: audio timecode 435127508 435127508 4834750
4834792
2012-06-09 13:29:34.021747 D [3337/3401] Decoder avformatdecoder.cpp:3138
(ProcessVideoPacket) - AFD: video packet timestamps reordered 435121482
pts 435123282 dts 435123282 (dts forced)
2012-06-09 13:29:34.021765 I [3337/3401] Decoder avformatdecoder.cpp:3245
(ProcessVideoFrame) - AFD: video timecode 435123282 4834703 4834703
4834663
2012-06-09 13:29:34.021853 E [3337/3401] Decoder avformatdecoder.cpp:4216
(ProcessAudioPacket) - AFD: Unknown audio decoding error
2012-06-09 13:29:34.021860 E [3337/3401] Decoder avformatdecoder.cpp:4216
(ProcessAudioPacket) - AFD: Unknown audio decoding error
2012-06-09 13:29:34.022245 I [3337/3401] Decoder avformatdecoder.cpp:4248
(ProcessAudioPacket) - AFD: audio timecode 424763348 424763348 4719592
4719634
2012-06-09 13:29:34.022602 I [3337/3401] Decoder avformatdecoder.cpp:4248
(ProcessAudioPacket) - AFD: audio timecode 424767188 424767188 4719635
4719677
2012-06-09 13:29:34.023178 I [3337/3401] Decoder avformatdecoder.cpp:4248
(ProcessAudioPacket) - AFD: audio timecode 424774868 424774868 4719720
4719762
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:8>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 16, 2012, 1:05 AM

Post #10 of 16 (266 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by steven@…):

I'm also based in NZ and updated to 0.25 today. I haven't tried any DVB-T
recordings yet, but with DVB-S material off TVNZ i'm seeing exactly the
same issue.

At the moment the only way to re-sync is to exit playback and re-open the
file. As soon as I skip forwards, for example to bypass an advert, then
sync is totally lost.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:9>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 17, 2012, 11:03 PM

Post #11 of 16 (267 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by Steven Ellis <steven@…>):

I've upgraded from MythTV 0.23 to 0.25 and I'm seeing the issue on
existing as well as new DVB-S MPEG-2 recordings with MP2 audio.

I'm running a GT220 card with an M2NPV-VM board and an Athlon X2 5050BE
CPU.

I noticed that my de-interlacers were disabled during the upgrade so I've
turned Advanced 2x back on. Display is generally 1920x1080 50Hz unless I'm
watching US content.

All my audio is going out over SPDIF to my amp. I haven't setup audio over
HDMI yet with the new upgrade.

In order to get any reasonable sync I need to exit playback and re-enter
the file. Otherwise its a real mess.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:10>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jun 18, 2012, 1:48 AM

Post #12 of 16 (256 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by Steven Ellis <steven@…>):

Ok I think I have a fix. Checking logs I saw the following alsa error
{{{
Jun 17 20:30:10 mythtv mythfrontend[20861]: E CoreContext
audio/audiooutputalsa.cpp:545 (OpenDevice) ALSA: Unable to sufficiently
increase ALSA hardware buffer size - underruns are likely
}}}
and recommendation
{{{
Jun 17 22:36:39 mythtv mythfrontend[26876]: E CoreContext
audio/audiooutputalsa.cpp:213 (SetPreallocBufferSize) ALSA: Try to
manually increase audio buffer with: echo 128 | sudo tee
/proc/asound/card0/pcm1p/sub0/prealloc
}}}
I've actually bumped the prealloc up a bit higher to be certain
{{{
echo 256 > /proc/asound/card0/pcm1p/sub0/prealloc
}}}
Just tested some files and sync is close to perfect and I'm not seeing any
audio centric errors.

Steve

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:11>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 5, 2012, 2:05 AM

Post #13 of 16 (213 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution: Invalid
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------
Changes (by beirdo):

* status: new => closed
* resolution: => Invalid


Comment:

Closing as the problem seems to be solved.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:12>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 6, 2012, 1:19 AM

Post #14 of 16 (211 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution: Invalid
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by peper03@…):

Setting the audio buffers to 256 does not solve the problem on my system
(they were already set to 256). Even setting them to the maximum of 32768
didn't make any difference.
Disabling the setting 'Separate video modes for GUI and TV playback' does
seem to fix it but I think there are several variables involved which
makes tracking down the cause difficult.
See http://www.gossamer-threads.com/lists/mythtv/users/522376#522376

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:13>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 6, 2012, 11:51 AM

Post #15 of 16 (208 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------
Changes (by danielk):

* status: closed => new
* resolution: Invalid =>


Comment:

I can still reproduce this.

Steps:
Skip forward 10 minutes
Skip back 1 minute
Wait 2 seconds
Skip back 10 minutes
Wait 1 second
Skip back 10 minutes

The A/V sync will now be out for a second or two and then jump back into
sync.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:14>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 15, 2012, 12:03 PM

Post #16 of 16 (194 views)
Permalink
Re: Ticket #10797: Audio/Video sync problems especially after seeking to start of recording [In reply to]

#10797: Audio/Video sync problems especially after seeking to start of recording
----------------------------------------+----------------------------
Reporter: dmoo1790@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Video Playback | Version: 0.25-fixes
Severity: medium | Resolution:
Keywords: audio video sync 0.25 seek | Ticket locked: 0
----------------------------------------+----------------------------

Comment (by mark@…):

I have the same issue as well. I have tried increasing the prealloc
setting to 256, but I'm still seeing AV Sync issues, so I don't think this
is fixed.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10797#comment:15>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits

MythTV commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.