Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9DED5200B89 for ; Wed, 21 Sep 2016 21:30:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9C63B160ADB; Wed, 21 Sep 2016 19:30:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E23BA160ABC for ; Wed, 21 Sep 2016 21:30:39 +0200 (CEST) Received: (qmail 19109 invoked by uid 500); 21 Sep 2016 19:30:39 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 19089 invoked by uid 99); 21 Sep 2016 19:30:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2016 19:30:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 44093C6441 for ; Wed, 21 Sep 2016 19:30:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.144 X-Spam-Level: X-Spam-Status: No, score=-0.144 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.124] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id sJRPMxrlkY31 for ; Wed, 21 Sep 2016 19:30:36 +0000 (UTC) Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 260025F177 for ; Wed, 21 Sep 2016 19:30:36 +0000 (UTC) Received: from fwd04.aul.t-online.de (fwd04.aul.t-online.de [172.20.26.149]) by mailout09.t-online.de (Postfix) with SMTP id E3EBE427A45D for ; Wed, 21 Sep 2016 21:30:28 +0200 (CEST) Received: from [192.168.2.104] (VswcV8ZJ8hmyExvE1OUnR34XZoCVyMhVtrsDiqMjv31ld32p0ecH0WD2jNHfp4Uws1@[217.231.130.149]) by fwd04.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1bmnDv-2EH7mi0; Wed, 21 Sep 2016 21:30:27 +0200 Subject: Re: Embedding video in PDF To: users@pdfbox.apache.org References: <7a130e6e-8dc8-6160-2406-80938c148ce7@t-online.de> From: Tilman Hausherr Message-ID: Date: Wed, 21 Sep 2016 21:30:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-ID: VswcV8ZJ8hmyExvE1OUnR34XZoCVyMhVtrsDiqMjv31ld32p0ecH0WD2jNHfp4Uws1 X-TOI-MSGID: 3f2cd6a9-0591-4c91-99f9-f499f04a228a archived-at: Wed, 21 Sep 2016 19:30:40 -0000 Am 21.09.2016 um 19:15 schrieb Gary Grosso: > Hi Tilman, > > Yes, that is correct. And the video has to be embedded, since some end-users may not have an Internet connection. The video files they are starting with are MP4s. > > I figure I have to reserve the correct amount of vertical space in the original PDF to get appropriate page breaks. Either the author will specify the height, or I'll have to have other code to call something like ffmpeg or ImageMagick to get the height of the video. But that's a separate issue. > > Then I figure I need to insert some "marker" in the PDF file that gives the location of the MP4 on the system which publishes the PDF. > > So the piece I am asking about would be a Java program which would look through the PDF for these markers, find the MP4 for each marker, and embed the video in the PDF at that location. > > Any thoughts on this matter are much appreciated. (I have to give an estimate of effort -- for me giving estimates is the bane of computer programming.) I can't answer that one... I just looked at the PDF specification and it looks very painful. The best would be that you create such a PDF file with Adobe Professional, then analyse it with PDFDebugger to see what structures are needed. Tilman > > Best regards, > Gary > > > -----Original Message----- > From: Tilman Hausherr [mailto:THausherr@t-online.de] > Sent: Wednesday, September 21, 2016 1:03 PM > To: users@pdfbox.apache.org > Subject: Re: Embedding video in PDF > > Am 21.09.2016 um 16:23 schrieb Gary Grosso: >> - Has anyone had any personal experience with this sort of thing? (We >> would be post-processing their PDF, which is created elsewhere, to >> insert the video at a point where we would leave some sort of >> local-filename marker and sufficient white space.) > I think what you want to do is to embed the video so that there is a screen area in the PDF, like embedding a youtube video - right? > > Tilman > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org