Opened 16 years ago
Closed 16 years ago
Last modified 15 years ago
#9420 closed Bug Report (fixed)
AV out of sync when play rmvb file
| Reported by: | 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)
Change History (15)
comment:2 by , 16 years ago
| Component: | Plugin - MythVideo → MythTV - Video Playback |
|---|---|
| Status: | new → 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.
by , 16 years ago
| Attachment: | frontend_version_info added |
|---|
by , 16 years ago
| Attachment: | backend_version_info added |
|---|
comment:3 by , 16 years ago
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
comment:4 by , 16 years ago
| Component: | MythTV - Video Playback → MythTV - Audio Output |
|---|---|
| Owner: | changed from to |
| Status: | infoneeded_new → assigned |
Appears this might be an Audio issue, bouncing to JYA to have him look/try.
follow-up: 6 comment:5 by , 16 years ago
| Status: | assigned → 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 by , 16 years ago
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 by , 16 years ago
| Resolution: | → Upstream Bug |
|---|---|
| Status: | infoneeded → 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 by , 16 years ago
| Resolution: | Upstream Bug |
|---|---|
| Status: | closed → 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 by , 16 years ago
| Component: | MythTV - Audio Output → MythTV - Video Playback |
|---|---|
| Milestone: | unknown → 0.24.1 |
| Owner: | changed from to |
| Status: | new → accepted |
comment:10 by , 16 years ago
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 by , 16 years ago
| Resolution: | → Fixed |
|---|---|
| Status: | accepted → closed |
comment:12 by , 15 years ago
| Resolution: | Fixed → 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

Couldn't attach file for some reasons. Here are the infos:
mythfrontend --version Please attach all output as a file in bug reports. MythTV Version : 3cf32e8 MythTV Branch : fixes/0.24 Network Protocol : 63 Library API : 0.24.20101129-1 QT Version : 4.6.2 Options compiled in:
sing_firewire using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_lirc using_mheg using_opengl_video using_opengl_vsyn c using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_bindings_perl using_bindings_python using_mythtranscode using_opengl using_vdpa u using_ffmpeg_threads using_live using_mheg
mythbackend --version Please attach all output as a file in bug reports. MythTV Version : 3cf32e8 MythTV Branch : fixes/0.24 Network Protocol : 63 Library API : 0.24.20101129-1 QT Version : 4.6.2 Options compiled in:
sing_firewire using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_lirc using_mheg using_opengl_video using_opengl_vsyn c using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_bindings_perl using_bindings_python using_mythtranscode using_opengl using_vdpa u using_ffmpeg_threads using_live using_mheg
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.