Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 3 years ago

Closed 3 years ago

Last modified 3 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 wagnerrp 3 years ago.
backend_version_info (754 bytes) - added by wagnerrp 3 years ago.
mythfrontend.log.gz (7.3 KB) - added by jidping@… 3 years ago.
frontend log with -v playback

Download all attachments as: .zip

Change History (15)

comment:1 Changed 3 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 3 years ago by wagnerrp (previous) (diff)

comment:2 Changed 3 years ago by robertm

  • Component changed from Plugin - MythVideo to MythTV - Video Playback
  • Status changed from new to infoneeded_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 3 years ago by wagnerrp

Changed 3 years ago by wagnerrp

comment:3 Changed 3 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 3 years ago by wagnerrp (previous) (diff)

Changed 3 years ago by jidping@…

frontend log with -v playback

comment:4 Changed 3 years ago by robertm

  • Component changed from MythTV - Video Playback to MythTV - Audio Output
  • Owner changed from robertm to jyavenard
  • Status changed from infoneeded_new to assigned

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

comment:5 follow-up: Changed 3 years ago by tralph

  • Status changed from assigned to infoneeded

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 3 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 3 years ago by wagnerrp

  • Resolution set to Upstream Bug
  • Status changed from infoneeded to closed

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 3 years ago by tralph

  • Resolution Upstream Bug deleted
  • Status changed from closed to new

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 3 years ago by tralph

  • Component changed from MythTV - Audio Output to MythTV - Video Playback
  • Milestone changed from unknown to 0.24.1
  • Owner changed from jyavenard to tralph
  • Status changed from new to accepted

comment:10 Changed 3 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 3 years ago by tralph

  • Resolution set to Fixed
  • Status changed from accepted to closed

comment:12 Changed 3 years ago by Taylor Ralph

  • Resolution changed from Fixed to fixed

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.