Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

(Urgent) MPEG 2-TS file cannot play by Quicktime

soimattrang
Beginner
1,628 Views
Hi Everyone,
Please help me this problem:
I'm developing a application that use UMC::MPEG2Muxer to produces mpeg2-ts files for HTTP Live Streaming (HLS), but the mpeg2-ts file cannot play by Quicktime player on MAC OS, and also the HLS feature doesn't work with safari. I used the MediaStreamValidator tool to validate the playlist then i received the result: "Error (-1) segment duration is not finite". I try to use ffmpeg for mpeg2-ts muxer and the HLS worked fine, so i think there are some issues in UMC::MPEG2Muxer source code. i'm using the lastest version of Intel IPP (7.0.6.060). The attachment is some mpeg2-ts files produced by UMC::MPEG2Muxer.

Thanks in advance!

0 Kudos
11 Replies
soimattrang
Beginner
1,628 Views
hi,
any suggession for my problems?
0 Kudos
Sergey_K_Intel
Employee
1,628 Views
Hi,
Could you attach a sample stream, produced by ffmpeg, to see the difference between them? At first site, attached streams are ok (from Windows point of view, of course).
P.S. The following is a quote from Apple's technical note TN2235 (http://developer.apple.com/library/ios/#technotes/tn2235/_index.html). Thus, the problem may not be in the stream.

If the Media Stream Validator tool returns any of the following errors (or any other errors not listed here) when validating your stream please file a bug report against the tool using theApple Bug Reporterand include a link to your stream in your report.

  • ERROR: Invalid media segment: The validator helper exited due to a fatal error: failed to create format reader: [errno: -12847] format reader file not recognized

  • ERROR: Invalid media segment: The validator helper exited due to a SIGABRT signal.

  • ERROR: Invalid media segment: The validator helper exited due to a fatal error: segment duration is not finite

Regards,
Sergey
0 Kudos
OKohl
Beginner
1,628 Views
Your attachments (desktop clips) are played well on VLC
0 Kudos
soimattrang
Beginner
1,628 Views
Hi Sergey,
here some .ts file produced by ffmpeg. Yes, the .ts file produced by Intel IPP can play by any media players except Quicktime player.

Thanks,
0 Kudos
soimattrang
Beginner
1,628 Views
Hi,
Any suggesstion for my problems?

Thanks
0 Kudos
Sergey_K_Intel
Employee
1,628 Views
Hi,
Could you prompt how to check if stream is ok or not on MacOS? Which tool can playback the stream?
Our QuickTimes on MacOS/Windows don't read MPEG TSes. What OS/tool versions do you use?
Regards,
Sergey
0 Kudos
soimattrang
Beginner
1,628 Views
Hi,
I'm using MAC OS X Lion 10.7 version, Quicktime player version 10.1. The Quicktime player only support playback MPEG-2 ts file on MAC OS, not support on windows.

Thanks
0 Kudos
Ying_H_Intel
Employee
1,628 Views

Hello,

The stream itself should be fine, no obvious problem. It looks like Apple has its own specifics in transport stream support. So i'm recommend to raise the question to Apply Quicktime forum.

Thanks
Ying

0 Kudos
summerlismile
Beginner
1,628 Views
Hi soimattrang,

I'm currently working on converting h.264 elementary stream to .ts files for http live streaming, and I've suffered exactly the same problem as yours. When I convert the input h.264 file to .ts file using ffmpeg, everything works fine. When I convert the h.264 file with my converter, the generated ts file works well on VLC, but fails on quicktime. I used the apple's "mediastreamvalidator" to validate the stream, it reports error like: "Error (-1) segment duration is not finite". I know this is an apple know bug, and I've also reported this error to apple, but no response.

I've spent lots of time to compare the two ts files, even dig it out by bits. Drive me crazy. May I ask how did you solve this problem at last? Do you know what does the "segment duration is not finite" mean?

Thanks
0 Kudos
soimattrang
Beginner
1,628 Views
Hi summerlismile,

Sorry, i still haven't had any solution to solve the issue, and i've decided changed to using the ffmpeg for generate the .ts file instead of using the IPP H.264.
0 Kudos
summerlismile
Beginner
1,628 Views
I also decide to use ffmpeg library to do the conversion, ffmpeg libs are more strong. Good luck.
0 Kudos
Reply