Peter

Peter

  • NA
  • 22
  • 1.8k

Convert video h264 to mp4 and play in MediaElement

Nov 19 2021 7:36 PM

Hello.

Im using ffmpeg.exe to convert video in h264 format to mp4 video file. After converting mp4 file not plaing in WPF MediaElement control, and any Windows player. I installed K_Lite codec package. 

I'm running query: "ffmpeg -i C:\video.h264 c:\video.mp4" in System.Diagnostics.Process in WPF apllication in 4.0 framework.

Why MediaElement not plaing mp4 video? Video in other formats (wmv, mpg...) plaing ok.