Wehave an app that uses the ffmpeg C API to encode mpeg-4 (AV_CODEC_ID_MPEG4) files in a mp4 container. The problem is that the files don't play in Windows Media Player or the Windows 10 video player "Movies & TV" app. It plays in VLC, google chrome, Ubuntu's video player, and all other video players I've tried.
The two Windows players are able to play other files encoded with mpeg-4 in mp4 container. I also tested transcoding video files to the same format using the command line 'ffmpeg' tool and was successfully able to play the video using the following command:
# the last command wont play with windows media player but VLC can still play it. If the extension of the output file is changed to avi for the last two commands then Windows media player can play it.
I started looking at the ffmpeg src code but it appears a bit large/complex, I tried using the simpler "encode_video.c" example, which was able to encode a video and play it in Ubuntu's default video player but VLC nor Windows Media Player could play it.
We need to encode these using the ffmpeg API, not the command line tool, so I am wondering what the ffmpeg command line tool is doing that I am not, or any ideas on what the problem could be and how to get this working.
According to this and this XVid playback is not supported by Movies & TV app as well as other Win Store apps using WinRT out of box video capabilities. And according to this it is also not supported by Windows Media Player. If you've managed to play it using Windows Media Player then most likely you had corresponding third-party Direct Show codec installed. There is actually no real point to use XVid in 2017, just use h264 instead.
A file with .mpg or .mpeg extension is an MPEG file format for videos, and this is one of the most popular formats around the world. The compression technology used in this format makes it possible for quick streaming and downloading. Thus, MPG video files are preferred over many popular video formats when it comes to distributing the videos online.
As said above, MPEG is a video file format developed by Moving Picture Experts Group, and it uses MPEG-1 or MPEG-2 file compression technology. Which compression is to use completely depends on how the video will be used.
MPG or MPEG files are very popular and widely compatible, general video player tools can play it without any issues. To play it on your Windows 10, you just have to have a video player on your computer. Just double click on the .mpg file, and it will start playing with that player. By default, you must have Windows Media Player on your computer. However, for better controls, you can go for more advanced players such as VLC Media Player.
Though opening or you say playing an MPG file is easy on Windows 10 if you want to change the format to some other like MP4 or something else, then you can use any video converter tool, or even VLC to convert the format and play that new file.
Many users have failed to open MPG videos once they upgraded their PC to Windows 10/11. And they ask me the same question: how to play MPG files on Windows 10/11? In the following article, I will show introduce several good methods to play MPG files at ease.
Q: I just upgraded to Windows 10/11 and some of my MPG files will not play. The weird thing is that some files will play with the same extension. The ones that don't play show an icon that reads MPEG. I can hear the sound but no video. Is there any .mpeg player for Windows 10/11 available for me?
A: The .mpg file extension is traditionally used for MPEG-1 or MPEG-2 video compression. By default, Microsoft Windows operating system only provides an MPEG-1 video decoder. If the MPG video is encoded by MPEG-1, an MPG player for Windows 10/11, like Windows Media Player or Microsoft Movies & TV app, can play it directly. On the other hand, if it is an MPEG-2-encoded video, you need to install an additional MPEG-2 codec to decode the MPG video on Windows 10/11. How to play MPG files on Windows 10/11? 4 simple solutions are provided below.
When you fail to play an MPG video on Movies & TV app, it prompts you to install an MPEG-2 Video Extension which includes both MPEG-1 and MPEG-2 codecs. This Video Extension is totally free and you can download and install it by visiting the following link:
After installation, Movies & TV app can work as an MPEG player for Windows 10/11 to play MPEG videos smoothly. However, many users told me that it didn't work whatsoever. If you are encountering the same problem, keep reading for more solutions.
Free HD Video Converter Factory is the best video converter for Windows 10/11 to convert any video to Windows supported formats for smooth playback. Meanwhile, it allows you to convert both audio and video files to various formats and devices for different purposes. You can also use it to download videos from more than 1000 hot websites at high speed. Download this free program and have a try!
The third method is the recommended solution on how to play MPG files on Windows 10/11, which can eliminate the MPG incompatibility issues completely. That is to convert MPG to MP4, WMV, AVI and other formats supported by Movies & TV app and Windows Media Player. Free HD Video Converter Factory, a free, clean and powerful MPEG video converter, allows you to convert MPG & MPEG files to Windows-friendly video formats within a few simple clicks. Now, free downloadfree download this freeware and let's get started.
Open Free HD Video Converter Factory and open Converter, click Add Files or Add Video Folder button on the upper left corner to import MPG videos into the converter. Or direct drag and drop files into the main interface.
Then, press Output Format on the right and then choose a video format that is supported by Windows Media Player under Video tab to work out how to play MPG files on Windows 10/11. As WMV is the default video format of Windows Media Player, so here I take WMV as an example.
Then, on the main interface, you can choose a desired output folder by clicking the inverted triangle icon at the bottom. If you like, you can change video resolution, adjust video aspect ratio on the Parameters Settings window. Finally, hit Run button to convert MPG to WMV.
Besides the three methods offered in the paragraphs above, you can also download an MPG/MPEG player for Windows 10/11, like VLC, MPC-HC that have built-in rich audio and video codecs, to play MPG files on Windows 10/11. You can install either of them to find a solution on how to play MPG files on Windows 10/11.
Now, after reading the article in which a powerful converter and other codec pack and MPG player for Windows 10/11 are recommended to you, you must understand how to play MPG files on Windows 10/11. According to your actual needs, you can choose any of them to play MPG videos on Windows 10/11 without hassles. Try it now!
Besides batch converting MPG to Movies & TV app and Windows Media Player well-supported formats, WonderFox HD Video Converter Factory Pro can also help you to convert any video and audio to 500+ formats and devices at one go. Batch conversion and 50X conversion speed are supported to save your time. Beyond that, it allows you to compress videos while keeping relatively good quality to free up the storage space of your devices. More practical features are waiting for your exploration.
I'm downloading a video file ... mpeg, avi - being one of the popular formats. Now, if I am downloading it, and the download breaks in the middle of the uhm ... download, then, for example, Windows Media Player will give out some error and refuse to play it (although the file is, let's say, 98% complete). But, players like KMPlayer, or MediaPlayer Classic will play it up until that point (as the matter of fact, they can play it while it is being downloaded as well).
So, I'm interested, ... without using any means of download (download managers and alike) to secure the file is completely downloaded, how can one verify whether the video file is downloaded whole, and that it is complete ?
You can use a feature in ffmpeg video converter: if you will specify it to recode video to nothing it will just read input file and report any errors that will appear. This is a very fast process because video frames are just being read, checked and silently dropped.
You will get a full error log with some generic information about file ffmpeg will output, so this will probably require your attention, through filters can be written to perform batch check of similar files.
I liked idea of using ffmpeg -f null above, but I'd actually like to automate process of using that output. In particular, common scenario I have with my music video collection is that I have few clips which have same resolution, and I'd like to diff verification logs for those files to remove ones broken the most.
Setup:Download FFmpeg for Windows from here: and unzip themChange C:\ffmpeg\bin\ in the bat file for the path where you have unzipped ffmpegPut checkvideo.bat on a folder included in the Path or add his folder to Path environment variable
I really liked the ffmpeg version provided by How can I check the integrity of a video file (avi, mpeg, mp4...)? but I wanted a version that would only tell me if ffmpeg failed to play the video in a way that stopped it (I can deal with frame drops), and I wanted it to be linux based. I came to the solution below. I also wanted more information about what was happening while it was scanning, so I opted for scanned/total/errored outputting whenever a file starts scanning.
However, there is a CAVEAT. This method can yield wrong results, because sometimes thumbnail can be generated even for corrupt files. E.g. if the video file is corrupted only at the end, this method will fail.
I wrote a wrapper for the ffmpeg command in the form of a GUI-based Python program to batch scan video files in a selected directory; assessing if the files are healthy or corrupt. This is based on the command posted above: ffmpeg -v error -i file.avi -f null - 2>error.log
3a8082e126