gpac / gpac

GPAC Ultramedia OSS for Video Streaming & Next-Gen Multimedia Transcoding, Packaging & Delivery
https://gpac.io
GNU Lesser General Public License v2.1
2.77k stars 532 forks source link

Infinite loop when packaging/DASH-ing TTML content #18

Closed tieleman closed 9 years ago

tieleman commented 9 years ago

Hi all,

I'm trying to use the TTML (EBU-TT-D) support in MP4Box to package my content, but it just ends up in an endless loop maxing out my CPU without ever finishing. Steps to reproduce:

1) Use the TTML file found here 2) Package the TTML file using the following command: MP4Box -add sintel_en_ttml.xml:ext=ttml -new captions.mp4 3) DASH the file with a subsegment duration of 4 seconds: MP4Box -dash 4000 -profile onDemand -rap -frag-rap -url-template -segment-name %s_ -segment-ext mp4 captions.mp4 -out captions

The last command will freeze indefinitely on my computer (OS X 10.10 Yosemite) and max out my CPU usage. MP4Box output only shows:

DASH-ing file - single segment
Subsegment duration 4.000 - Fragment duration: 4.000 secs
Spliting segments and fragments at GOP boundaries
[DASH] Generating MPD at time 2014-12-09T13:40:30Z
DASHing file captions.mp4

I am using MP4Box r5544. The loop also occurs when I add video and audio representations as well. Thanks for any help!

rbouqueau commented 9 years ago

It seems to work here on the latest version. Which version do you use?

tieleman commented 9 years ago

r5544 on OS X. Will retry on Ubuntu 14.04 as well.

tieleman commented 9 years ago

Same thing on Linux as well with r5544. If I use the -v function the last statement I see before everything halts is:

[ISOM Tools] codec parameters not known - setting codecs string to default value "stpp"
rbouqueau commented 9 years ago

Ok I can reproduce.

rbouqueau commented 9 years ago

Please re-open if the issue is still here!

tieleman commented 9 years ago

👍

Thanks for the quick fix, it seems to work now.