https://bz.apache.org/bugzilla/show_bug.cgi?id=58973

--- Comment #12 from Rahul <[email protected]> ---
Hi Andreas,

I had tested the code with Full HD Movies, the videos are not playing very
smoothly.Is there any size limit to embed a mp4 video to the PPT. I am getting
OutOfMemoryError for more than 200 mb size of video and getting following error
trash.

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2271)
    at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
    at
java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
    at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
    at
org.apache.poi.openxml4j.opc.internal.MemoryPackagePartOutputStream.write(MemoryPackagePartOutputStream.java:88)
    at pptxusingpoi.PPTXUsingPOI.main(PPTXUsingPOI.java:99)

Error coming for following code

for (int readBytes; (readBytes = fis.read(buf)) != -1; partOs.write(buf, 0,
readBytes));

I have uploaded some of Full-HD movies on Google-Drive and shared the access to
you and the link of video is as fallows:

https://drive.google.com/open?id=0B28rXyRBKGbJdnNfS0JGTEFHd0U
https://drive.google.com/open?id=0B28rXyRBKGbJWEQzWExQcXdGblk

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to