Title: Windows Media Player cannot play MPEG-TS file created in Android.
Tags: android;mpeg2-ts;stagefright
Question: I tested the StageFright record sample (frameworks/base/cmds/stagefright/record) to create a mpeg2 TS file. While it can be played on Android default Media player, it cannot be played in Windows Media Player or MPlayer. Any suggestions?

Note that I modified the original record sample source to create MPEG-TS file instead of MP4 file.

Comment: No. I just want to create ts file compatible with wmp, vlc, mplayer...

Comment: Is it working with other players such as VLC? What exactly do you want to achieve?


Here is another answer: Which codec you used to create the mpeg2 TS file. May be difference in the codec used is the problem.

Comment for this answer: I used AVC, the codec seems ok, for if I created the mp4 file with the same codec (AVC), it can be played on VLC, WMP etc.
Comment for this answer: Android has some problems with .ts files maybe during creating that file there were some problems

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2012:00:06/10/12', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<android><mpeg2-ts><stagefright>', 'Title': 'Windows Media Player cannot play MPEG-TS file created in Android.', 'ViewCount': 1411, 'id': 10967542, 'user_AboutMe': '', 'user_AccountId': 1556097.0, 'user_DisplayName': 'mophead', 'user_Reputation': 21.0, 'user_Views': 2.0, 'user_id': 1447147.0}}