Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#9420 closed Bug Report (fixed)

AV out of sync when play rmvb file

Reported by: jidping@… Owned by: tralph
Priority: minor Milestone: 0.24.1
Component: MythTV - Video Playback Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no

Description

AV out of sync when playing rmvb file with Mythvideo Internal player. Please see attached file for logs and version info. Thanks.

Attachments (3)

frontend_version_info (755 bytes) - added by Raymond Wagner 13 years ago.
backend_version_info (754 bytes) - added by Raymond Wagner 13 years ago.
mythfrontend.log.gz (7.3 KB) - added by jidping@… 13 years ago.
frontend log with -v playback

Download all attachments as: .zip

Change History (15)

comment:1 Changed 13 years ago by jidping@…

Frontend log:

2011-01-01 14:11:29.588 TV: Attempting to change from None to WatchingVideo
2011-01-01 14:11:29.762 [NULL @ 0xa24aa0]Unsupported video codec
2011-01-01 14:11:30.310 AFD: codec AAC has 2 channels
2011-01-01 14:11:30.330 AFD: Opened codec 0xaf029a0, id(AAC) type(Audio)
2011-01-01 14:11:30.465 AFD Warning: ScanATSCCaptionStreams() called with no PMT
2011-01-01 14:11:30.466 AFD: Opened codec 0xae377c0, id(RV40) type(Video)
2011-01-01 14:11:30.493 AO: Resampling from 44 kHz to 48 kHz with quality medium
2011-01-01 14:11:30.493 AO: Opening audio device 'PulseAudio:default' ch 2(2) sr 48000 sf 32 bit floating point reenc 0
2011-01-01 14:11:30.525 AudioPlayer: Enabling Audio
2011-01-01 14:11:31.057 VideoOutputXv: XVideo Adaptor Name: 'Radeon Textured Video'
2011-01-01 14:11:31.184 OSD: Base theme size: 1280x720
2011-01-01 14:11:31.184 OSD: Scaling factors: 0.275x0.4
2011-01-01 14:11:31.403 PulseAudio Error: stream buffer under flow
2011-01-01 14:11:31.430 OSD: Base theme size: 1280x720
2011-01-01 14:11:31.430 OSD: Scaling factors: 0.275x0.4
2011-01-01 14:11:31.444 VideoOutput, Error: Couldn't load deinterlace filter none
2011-01-01 14:11:31.449 Player(2): Video timing method: DRM
2011-01-01 14:11:31.464 TV: Changing from None to WatchingVideo
2011-01-01 14:11:31.489 ScreenSaverX11Private: DPMS Deactivated 1
2011-01-01 14:11:31.556 PulseAudio Error: stream buffer under flow
2011-01-01 14:11:31.590 Player(2): Waited 100ms for video buffers AAAAAAAAAAAAAAAAAAAUUUUUUUUUUuL
2011-01-01 14:11:31.606 Player(2): Waited 100ms for video buffers uAAAAAAAAAAAAAAAAAAUUUUUUUUUUuL
2011-01-01 14:11:31.638 VideoOutput: Created YV12 OSD.
2011-01-01 14:11:42.749 AFD Warning: Audio -68 ms behind video but already 180 video frames queued. AV-Sync might be broken.
2011-01-01 14:11:42.826 AFD Warning: Audio 15 ms behind video but already 180 video frames queued. AV-Sync might be broken.
2011-01-01 14:11:42.925 AFD Warning: Audio 5 ms behind video but already 180 video frames queued. AV-Sync might be broken.
Last edited 13 years ago by Raymond Wagner (previous) (diff)

comment:2 Changed 13 years ago by robertm

Component: Plugin - MythVideoMythTV - Video Playback
Status: newinfoneeded_new

Please provide a sample file as well as logs with -v playback. We also need you to test with current .24-fixes, at least version 21b99f1ae71e5ce5c033 please.

Changed 13 years ago by Raymond Wagner

Attachment: frontend_version_info added

Changed 13 years ago by Raymond Wagner

Attachment: backend_version_info added

comment:3 Changed 13 years ago by jidping@…

Upgraded my frontend and same result.

mythfrontend.real --version
Please attach all output as a file in bug reports.
MythTV Version   : 21b99f1
MythTV Branch    : fixes/0.24
Network Protocol : 63
Library API      : 0.24.20101129-1
QT Version       : 4.6.2

Sample video file can be found here: http://www.megaupload.com/?d=9YXAFEDG. Thanks

Last edited 13 years ago by Raymond Wagner (previous) (diff)

Changed 13 years ago by jidping@…

Attachment: mythfrontend.log.gz added

frontend log with -v playback

comment:4 Changed 13 years ago by robertm

Component: MythTV - Video PlaybackMythTV - Audio Output
Owner: changed from robertm to JYA
Status: infoneeded_newassigned

Appears this might be an Audio issue, bouncing to JYA to have him look/try.

comment:5 Changed 13 years ago by tralph

Status: assignedinfoneeded

jidping, that video plays poorly because ffmpeg reports the frame rate as 12 fps when it's actually 23.0 fps. There is nothing that mythtv can do about this until it is resolved in ffmpeg upstream. All pure ffmpeg players including XBMC and ffplay have the same issue as MythTV. If you want this fixed you'll need to file a roundup bug report at the ffmpeg website and follow the directions they have. Please respond back to this ticket with the roundup ticket number and we'll backport the fix when it is resolved.

comment:6 in reply to:  5 Changed 13 years ago by jidping@…

Replying to tralph:

jidping, that video plays poorly because ffmpeg reports the frame rate as 12 fps when it's actually 23.0 fps. There is nothing that mythtv can do about this until it is resolved in ffmpeg upstream. All pure ffmpeg players including XBMC and ffplay have the same issue as MythTV. If you want this fixed you'll need to file a roundup bug report at the ffmpeg website and follow the directions they have. Please respond back to this ticket with the roundup ticket number and we'll backport the fix when it is resolved.

Thanks for looking. My ffplay plays the file fine. I'm using ffmpeg (4:0.5.1-1ubuntu1) comes with Ubuntu Lucid.

I found a ffmpeg ticket at http://roundup.ffmpeg.org/issue814. It has a patch which claims fix the fps output for rmvb file. Please take a look. Thanks.

comment:7 Changed 13 years ago by Raymond Wagner

Resolution: Upstream Bug
Status: infoneededclosed

According to the comments in the linked FFMpeg ticket, the patches are only a partial fix to the problem. I'm marking this closed as an upstream bug for now. At such point that they are completed and committed, we can re-open this ticket and backport the fixes, pending the next FFMpeg sync.

comment:8 Changed 13 years ago by tralph

Resolution: Upstream Bug
Status: closednew

XBMC is currently using the following patch

http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/94688

Not many people using RV anymore anyways so I'll commit and backport when I get a chance to test.

comment:9 Changed 13 years ago by tralph

Component: MythTV - Audio OutputMythTV - Video Playback
Milestone: unknown0.24.1
Owner: changed from JYA to tralph
Status: newaccepted

comment:10 Changed 13 years ago by tralph

More specifically the following patch is what is used by XBMC to fix the frame rate detection problem:

http://article.gmane.org/gmane.comp.video.ffmpeg.devel/101003

comment:11 Changed 13 years ago by tralph

Resolution: Fixed
Status: acceptedclosed

comment:12 Changed 13 years ago by Taylor Ralph

Resolution: Fixedfixed

Fix frame rate detection for RM video files with patch used by XBMC.

http://article.gmane.org/gmane.comp.video.ffmpeg.devel/101003

Fixes #9420.

Changeset: 3128c78d6edf6ae01fb3b7af1d631d7ed77a0093

Note: See TracTickets for help on using tickets.