Bug 159292 - Implement Microsoft Media Foundation APIs on Windows to support playback of common codecs (e.g. MP4)
Summary: Implement Microsoft Media Foundation APIs on Windows to support playback of c...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+ Master
Hardware: All Windows (All)
: medium enhancement
Assignee: Matt K
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 116643
  Show dependency treegraph
 
Reported: 2024-01-19 15:40 UTC by Matt K
Modified: 2024-01-23 14:40 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt K 2024-01-19 15:40:00 UTC
Description:
This report is about implementing the Microsoft Media Foundation APIs[1] in LO so that, for example, Impress can play .mp4 files within its presentations on Windows (something not possible currently).  Some tools and sample code are also provided by Microsoft[2].  The work involves replacing existing DirectShow APIs, as recommended by Microsoft.

[1] https://learn.microsoft.com/en-us/windows/win32/medfound/microsoft-media-foundation-sdk
[2] https://github.com/microsoft/media-foundation

Steps to Reproduce:
On Windows, try to insert a video file (.mp4) into a Impress presentation.

Actual Results:
Get error message

Expected Results:
Should be able to play


Reproducible: Always


User Profile Reset: No

Additional Info:
See https://opengrok.libreoffice.org/xref/core/avmedia/source/win/player.cxx?r=c0e51660#94 for the DirectShow APIs currently used by Impress (which don't work).
Comment 1 Buovjaga 2024-01-19 16:20:04 UTC
This seems highly desirable, so let's set to NEW.
Comment 2 Matt K 2024-01-20 16:15:19 UTC
Was able to get example program from https://learn.microsoft.com/en-us/windows/win32/medfound/media-session-playback-example to work with arbitrary .mp4 files, so will start working on integrating into Impress.
Comment 3 Gabor Kelemen (allotropia) 2024-01-23 08:47:54 UTC
Duplicate of bug 62408, please see that for code pointers and analysis.
Comment 4 Matt K 2024-01-23 14:40:37 UTC
(In reply to Gabor Kelemen (allotropia) from comment #3)
> Duplicate of bug 62408, please see that for code pointers and analysis.

Thanks, I read it over and it still seems like this bug is valid.  By the way, I got arbitrary .mp4 files to play in Impress so far using the Media toolbar with Media Foundation, but still not yet playing in presentation mode.