microsoft / microsoft/FFmpegInterop

MPEG-PS seek problem

Open
#43 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.4k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

I'm having troubles opening an Mkv file with MPEG-PS format on Windows 10. I can open the file and play it but at first it doesn't show any frames just a blank white space and I can only see the progress on the seekbar. If I try to seek using the seekbar it jumps to the very end and stays there while the video starts to play from the beginning (in perfect quality). Any other attempt to seek restarts the video playback and it doesn't jump to the desired point.

The video file is from a Foscam IP camera and I now that it's format might have some problems because other players (VLC, KMPlayer) can open it but they all have playback issues after seeking (but at least they can seek). I've also tried PotPlayer and it works fine, even seeking.

I've tried to set all of the video codecs listed here with the parameters option but still no luck.
https://www.ffmpeg.org/ffmpeg-codecs.html

Any idea what might be the problem?
Thanks

Here's the file in question:
http://1drv.ms/1l6eSvF

and here's the file info:

General
Complete name : D:\Music\alarm_20151025_051811.mkv
Format : MPEG-PS
File size : 2.30 MiB
Duration : 36s 682ms
Overall bit rate : 527 Kbps

Video
ID : 224 (0xE0)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.1
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=60
Duration : 36s 682ms
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive

Audio
ID : 192 (0xC0)
Format : AAC
Format/Info : Advanced Audio Codec
Compression mode : Lossy

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the linked sample file and its MPEG-PS, AVC, and AAC metadata on Windows 10. Investigate the initial blank playback and failed seek behavior; done means the sample opens, displays frames, and seeks to the requested position reliably.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.