Hi Guys, 

I've spent a few weeks on trying to insert video into a PDF and just can't
get it to work as I expect it to. Following the book I use annotations and
have tried many different file formats (mp4, wav, avi, etc). With mp4's and
all formats except swf I get a PDF that when I click on the video to play in
Adobe Reader X I get told there's no media player, I need a 3rd party plugin
and get directed to Adobe.com where I get told there's no plugin. SWF's
embed and play but the quality is low and the file size is huge. There's no
player though with a start/pause, etc. 

In Adobe Acrobat I can click Insert Video, select an MP4 and the video gets
embedded with a nice video player and everything works perfectly and has a
small file size. I tried creating my own buttons in iText, but had the same
3rd party plugin errors. Am I missing something? Shouldn't I bet able to
embed mp4's directly into a PDF and have them just work? They are h.264
encoded so should work! 

PdfFileSpecification fs = PdfFileSpecification.fileEmbedded(writer,
targetPath.getText(), "Video", null, true); 
annot = PdfAnnotation.createScreen(writer,rectangle,"HIP Video", fs,
"video/mp4", false); 
writer.addAnnotation(annot); 


Any help, or pointing me to a working example would be great. The book has a
swf example but the player is built into the swf file.

Thanks,
Dominic



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Problem-inserting-mp4-video-into-pdf-tp4656116.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to