microsoft / microsoft/FFmpegInterop
Broken transcoding in Win10 Fall Creators Update
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 319
- PR merge metrics
- No merged PRs in 30d
Description
Hi
We've been using FFMpegInterop with UWP MediaTranscoding APIs to transcode videos. However, after Win 10 Fall Creators update, MediaTranscoder produces broken videos.
For example,
Original Video : https://www.dropbox.com/s/obcyxim7h7np47j/original.mov?dl=0
Transcoded broken video : https://www.dropbox.com/s/lz6yqo740l2z475/Broken.mp4?dl=0
You can find sample transcoding code to reproduce this issue
FFmpegMSS = FFmpegInteropMSS.CreateFFmpegInteropMSSFromStream(readStream, true, true);
MediaStreamSource mss = FFmpegMSS.GetMediaStreamSource();
var profile = MediaEncodingProfile.CreateMp4(VideoEncodingQuality.HD1080p);
var start = TimeSpan.Parse("00:00:00");
var trimDuration = FFmpegMSS.Duration;
var transcoder =new MediaTranscoder()
{
AlwaysReencode = true,
HardwareAccelerationEnabled = true
};
transcoder.TrimStartTime = start;
transcoder.TrimStopTime = trimDuration;
var destinationPath = Path.GetTempFileName();
var destination = await StorageFile.GetFileFromPathAsync(destinationPath);
await destination.RenameAsync(Path.GetFileNameWithoutExtension(destinationPath) + ".mp4");
using (var destinationStream = await destination.OpenAsync(FileAccessMode.ReadWrite))
{
PrepareTranscodeResult prepareOp = await transcoder.PrepareMediaStreamSourceTranscodeAsync(mss, destinationStream, profile);
if (prepareOp.CanTranscode)
{
await prepareOp.TranscodeAsync();
}
}
Is anyone else experiencing this issue ?
Is this problem related to FFMpeg ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the sample C# transcoding code in the issue and reproduce it on Windows 10 Fall Creators Update using the linked original.mov and Broken.mp4 files. Compare the MediaTranscoder output with the source to determine whether the failure is in FFmpegInterop or the UWP MediaTranscoding APIs; done means a reproducible diagnosis and a documented next step.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100