You are not logged in.

#1 2014-05-10 17:14:42

SirCmpwn
Member
Registered: 2013-09-18
Posts: 89

[Solved] mpv having a hard time playing a video

This video used to play fine, but at some point since I last tried it, it stopped working. It's been months, so I can't really pin down an exact time. The behavior is jumpy audio and video, with dropped frames all over the place.

The video in question is episode 11 of Mahou Shoujo Madoka Magica, subtitled by Meguca. md5sum is 7a8899705a247b372072901889997abb.

Here's the ffprobe info:

{
    "streams": [
        {
            "index": 0,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "profile": "High 10",
            "codec_type": "video",
            "codec_time_base": "1001/48000",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 1920,
            "height": 1080,
            "has_b_frames": 2,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "16:9",
            "pix_fmt": "yuv420p10le",
            "level": 41,
            "r_frame_rate": "24000/1001",
            "avg_frame_rate": "24000/1001",
            "time_base": "1/1000",
            "start_pts": 0,
            "start_time": "0.000000",
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "language": "jpn",
                "title": "H.264 1080p BD"
            }
        },
        {
            "index": 1,
            "codec_name": "flac",
            "codec_long_name": "FLAC (Free Lossless Audio Codec)",
            "codec_type": "audio",
            "codec_time_base": "1/48000",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "sample_fmt": "s32",
            "sample_rate": "48000",
            "channels": 2,
            "channel_layout": "stereo",
            "bits_per_sample": 0,
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/1000",
            "start_pts": 0,
            "start_time": "0.000000",
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "language": "jpn",
                "title": "Main: FLAC 2.0 24-bit"
            }
        },
        {
            "index": 2,
            "codec_name": "ac3",
            "codec_long_name": "ATSC A/52A (AC-3)",
            "codec_type": "audio",
            "codec_time_base": "1/48000",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "sample_fmt": "fltp",
            "sample_rate": "48000",
            "channels": 2,
            "channel_layout": "stereo",
            "bits_per_sample": 0,
            "dmix_mode": "-1",
            "ltrt_cmixlev": "-1.000000",
            "ltrt_surmixlev": "-1.000000",
            "loro_cmixlev": "-1.000000",
            "loro_surmixlev": "-1.000000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/1000",
            "start_pts": 0,
            "start_time": "0.000000",
            "bit_rate": "192000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 1,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "language": "jpn",
                "title": "Commentary: AC3 2.0 192Kbps"
            }
        },
        {
            "index": 3,
            "codec_name": "ssa",
            "codec_long_name": "SSA (SubStation Alpha) subtitle",
            "codec_type": "subtitle",
            "codec_time_base": "1/1000",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/1000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 1540096,
            "duration": "1540.096000",
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "language": "eng",
                "title": "Styled Subtitles"
            }
        },
        {
            "index": 4,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "Ameretto-Condensed Bold.ttf",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 5,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "Ameretto-Condensed Normal.ttf",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 6,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "DFGKB-MadokaTitleS.ttf",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 7,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "DFGMinchoP-W5-En.ttf",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 8,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "DFPGothW5-Madoka.ttf",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 9,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "DFPSHT-W5-Madoka.ttf",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 10,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "DFSNGyoSho-CP.ttf",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 11,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "FOT-HummingStdEn-B.OTF",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 12,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "IwaOMinPro-Bd-Fate.ttf",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 13,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "MadokaLetters.ttf",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 14,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "Mixage_Bk_BT_Bold.ttf",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 15,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "Mixage_Bk_BT_Bold_Italic.TTF",
                "mimetype": "application/x-truetype-font"
            }
        },
        {
            "index": 16,
            "codec_type": "attachment",
            "codec_time_base": "0/1",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 138608640,
            "duration": "1540.096000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "filename": "VDLogoMaru-Ultra-P-Madoka.ttf",
                "mimetype": "application/x-truetype-font"
            }
        }
    ],
    "format": {
        "filename": "s01e11.mkv",
        "nb_streams": 17,
        "nb_programs": 0,
        "format_name": "matroska,webm",
        "format_long_name": "Matroska / WebM",
        "start_time": "0.000000",
        "duration": "1540.096000",
        "size": "2728227879",
        "bit_rate": "14171728",
        "probe_score": 100,
        "tags": {
            "title": "Puella Magi Madoka Magica BD - 11: The one thing I have left to guide me",
            "encoder": "libebml v1.2.2 + libmatroska v1.3.0",
            "creation_time": "2012-12-24 06:51:06"
        }
    }
}

Here's my mpv config (note that I tried several vo options, none worked):

[default]
channels=5.1
vo=opengl,opengl-hq,xv,wayland

The mpv output when playing the file is something like this:

sircmpwn@homura /m/s/V/T/Madoka Magica> mpv s01e11.mkv 
Playing: s01e11.mkv
Detected file format: Matroska
Clip info:
 TITLE: Puella Magi Madoka Magica BD - 11: The one thing I have left to guide me
[stream] Video (+) --vid=1 'H.264 1080p BD' (h264)
[stream] Audio (+) --aid=1 --alang=jpn (*) 'Main: FLAC 2.0 24-bit' (flac)
[stream] Audio     --aid=2 --alang=jpn 'Commentary: AC3 2.0 192Kbps' (ac3)
[stream] Subs  (+) --sid=1 --slang=eng (*) 'Styled Subtitles' (ass)
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
Selected audio codec: FLAC (Free Lossless Audio Codec) [lavc:flac]
AO: [pulse] 48000Hz stereo 2ch s32
VO: [opengl] 1920x1080 => 1920x1080 420p10
[ffmpeg/audio] flac: invalid sync code
[ffmpeg/audio] flac: invalid frame header
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  0.001
[ffmpeg/audio] flac: qlevel -10 not supported, maybe buggy stream
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  0.001
[ffmpeg/audio] flac: invalid subframe padding
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  0.162 Late: 1
[ffmpeg/audio] flac: invalid sync code
[ffmpeg/audio] flac: invalid frame header
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  0.362 Late: 2
[ffmpeg/audio] flac: invalid sync code
[ffmpeg/audio] flac: invalid frame header
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  0.946 Late: 3
[ffmpeg/audio] flac: invalid subframe padding
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  1.000 Late: 4
[ffmpeg/audio] flac: invalid coding type
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  1.234 Late: 5
[ffmpeg/audio] flac: invalid sync code
[ffmpeg/audio] flac: invalid frame header
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  1.318 Late: 6
[ffmpeg/audio] flac: invalid sync code
[ffmpeg/audio] flac: invalid frame header
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  1.296 Late: 8
[ffmpeg/audio] flac: invalid sync code
[ffmpeg/audio] flac: invalid frame header
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  1.323 Late: 9
[ffmpeg/audio] flac: qlevel -4 not supported, maybe buggy stream
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  1.370 Late: 10
[ffmpeg/audio] flac: invalid rice order: 15 blocksize 4096
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  1.529 Late: 11
[ffmpeg/audio] flac: invalid sync code
[ffmpeg/audio] flac: invalid frame header
[ffmpeg/audio] flac: decode_frame() failed
AV: 00:00:00 / 00:25:40 (0%) A-V:  2.107 ct:  0.079 Late: 20

My system is fully up-to-date. It plays fine on mplayer and on vlc, but has similar problems on xbmc.

Last edited by SirCmpwn (2014-05-10 18:02:59)

Offline

#2 2014-05-10 17:50:36

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [Solved] mpv having a hard time playing a video

I had this problem a few days ago after updating ffmpeg, but another update came along in a few hours and the bug was solved. Near as I could tell, that first small update to ffmpeg was the trouble. Do you experience the same problems on any FLAC-encoded audio? What version of ffmpeg do you have installed?

All the best,

-HG

Offline

#3 2014-05-10 17:52:12

SirCmpwn
Member
Registered: 2013-09-18
Posts: 89

Re: [Solved] mpv having a hard time playing a video

I'm using aur/ffmpeg-full. I'll recompile it. I do have the same issues with other FLACs on mpv, as a matter of fact. I might also mention that the video is skipping a lot, too, but that may be a side-effect of FLAC issues.

Offline

#4 2014-05-10 18:02:46

SirCmpwn
Member
Registered: 2013-09-18
Posts: 89

Re: [Solved] mpv having a hard time playing a video

Recompiling ffmpeg didn't help, but switching to extra/ffmpeg did. I'll adjust the flags via abs and install it with the things I like enabled.

Offline

#5 2014-05-10 18:18:35

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [Solved] mpv having a hard time playing a video

SirCmpwn wrote:

Recompiling ffmpeg didn't help, but switching to extra/ffmpeg did. I'll adjust the flags via abs and install it with the things I like enabled.

I'm glad to hear that you got it working! Best of luck on the ABS recompile.

All the best,

-HG

Offline

Board footer

Powered by FluxBB