Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed a video #123

Closed
Progi1984 opened this issue Jul 15, 2015 · 30 comments
Closed

Embed a video #123

Progi1984 opened this issue Jul 15, 2015 · 30 comments

Comments

@Progi1984
Copy link
Member

http://www.aspose.com/docs/display/slidesnet/Adding+an+Embedded+Video+Frame+to+Slide
https://support.office.com/en-us/article/Compatible-multimedia-file-formats-fe6b7fd4-629e-43a0-a7e2-0dd927dac56d

<draw:frame draw:style-name="standard" draw:layer="layout" svg:width="33.866cm" svg:height="19.049cm" svg:x="-2.932cm" svg:y="0.976cm">
    <draw:plugin xlink:href="Media/Wildlife.wmv" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:mime-type="application/vnd.sun.star.media">
        <draw:param draw:name="Loop" draw:value="false"/>
        <draw:param draw:name="Mute" draw:value="false"/>
        <draw:param draw:name="VolumeDB" draw:value="0"/>
        <draw:param draw:name="Zoom" draw:value="fit"/>
    </draw:plugin>
</draw:frame>
@jjmontgo
Copy link

Is anything being done with this issue?

@Progi1984
Copy link
Member Author

@jjmontgo For the moment, but we are open to pull requests :)

@jjmontgo
Copy link

Thank you so much for your response. I've been looking at this tool for a while and it looks great.

@Progi1984 Progi1984 added this to the 0.7.0 milestone Jan 24, 2016
@Progi1984
Copy link
Member Author

@jjmontgo Have you got a sample PPTX with a video embed ? Thanks

@jjmontgo
Copy link

jjmontgo commented Mar 4, 2016

Sorry no. Just a client with a request. :(
On Mar 4, 2016 6:44 AM, "Progi1984" notifications@github.com wrote:

@jjmontgo https://github.com/jjmontgo Have you got a sample PPTX with a
video embed ? Thanks


Reply to this email directly or view it on GitHub
#123 (comment)
.

@Progi1984
Copy link
Member Author

@jjmontgo Have you got a PowerPoint2007 ?

@jjmontgo
Copy link

jjmontgo commented Mar 4, 2016

Are you doing an implementation?
On Mar 4, 2016 6:55 AM, "Progi1984" notifications@github.com wrote:

@jjmontgo https://github.com/jjmontgo Have you got a PowerPoint2007 ?


Reply to this email directly or view it on GitHub
#123 (comment)
.

@Progi1984
Copy link
Member Author

@jjmontgo Yeap. I just search a sample file with a video embed in the file for analyzing the file.

Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 4, 2016
@Progi1984
Copy link
Member Author

@jjmontgo
Copy link

jjmontgo commented Mar 5, 2016

Nice thanks will check it out
On Mar 5, 2016 4:04 AM, "Progi1984" notifications@github.com wrote:

Note : Sample file : Présentation_Video.pptx
https://github.com/PHPOffice/PHPPresentation/files/159740/Presentation_Video.pptx

https://download.blender.org/durian/trailer/


Reply to this email directly or view it on GitHub
#123 (comment)
.

@Progi1984
Copy link
Member Author

@jjmontgo Don't worry. I'm on it.

Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 7, 2016
@Progi1984
Copy link
Member Author

@jjmontgo Could you test this commit Progi1984/PHPPresentation@4696fda before integration, please ?

@Progi1984 Progi1984 self-assigned this Mar 7, 2016
@jjmontgo
Copy link

jjmontgo commented Mar 7, 2016

Will do thank you
On Mar 7, 2016 9:29 AM, "Progi1984" notifications@github.com wrote:

@jjmontgo https://github.com/jjmontgo Could you test this commit
Progi1984/PHPPresentation@4696fda
Progi1984@4696fda before
integration, please ?


Reply to this email directly or view it on GitHub
#123 (comment)
.

@Progi1984
Copy link
Member Author

@jjmontgo Thank you for the feedback :)

Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 7, 2016
@jjmontgo
Copy link

jjmontgo commented Mar 7, 2016

I tried it using PowerPoint 2003, and the video did not show up. I do know
the file was embedded given the size of the file. I'm also guessing maybe
it doesn't work on an old version of powerpoint.

On Mon, Mar 7, 2016 at 9:46 AM, Progi1984 notifications@github.com wrote:

@jjmontgo https://github.com/jjmontgo Thank you for the feedback :)


Reply to this email directly or view it on GitHub
#123 (comment)
.

@jjmontgo
Copy link

jjmontgo commented Mar 7, 2016

Oh I should also mention I was running one of the bundled samples; sample #3

On Mon, Mar 7, 2016 at 12:55 PM, Jonathan Montgomery jjmontgo@gmail.com
wrote:

I tried it using PowerPoint 2003, and the video did not show up. I do
know the file was embedded given the size of the file. I'm also guessing
maybe it doesn't work on an old version of powerpoint.

On Mon, Mar 7, 2016 at 9:46 AM, Progi1984 notifications@github.com
wrote:

@jjmontgo https://github.com/jjmontgo Thank you for the feedback :)


Reply to this email directly or view it on GitHub
#123 (comment)
.

@Progi1984
Copy link
Member Author

@Progi1984
Copy link
Member Author

@jjmontgo
Copy link

Hi!

This had the same result.

When opened in OpenOffice, a 90 x 90 thumbnail for the video appears.
When oepened in Powerpoint 2003, there is no sign of the video (although
the file is clearly in there because of the file size).

I added the video to the slide in Powerpoint 2003. It appears to leave the
video out of the ZIP file and reference it externally (the powerpoint file
is 43 kb). I probably have to use another method for inserting it within
the software.

Here is the XML for the slide after inserting the video using the software:

@Progi1984
Copy link
Member Author

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main">
  <p:cSld>
    <p:spTree>
      <p:nvGrpSpPr>
        <p:cNvPr id="1" name=""/>
        <p:cNvGrpSpPr/>
        <p:nvPr/>
      </p:nvGrpSpPr>
      <p:grpSpPr>
        <a:xfrm>
          <a:off x="0" y="0"/>
          <a:ext cx="0" cy="0"/>
          <a:chOff x="0" y="0"/>
          <a:chExt cx="0" cy="0"/>
        </a:xfrm>
      </p:grpSpPr>
      <p:pic>
        <p:nvPicPr>
          <p:cNvPr id="13313" name="Sample image" descr="Sample image"/>
          <p:cNvPicPr>
            <a:picLocks noChangeAspect="1"/>
          </p:cNvPicPr>
          <p:nvPr/>
        </p:nvPicPr>
        <p:blipFill>
          <a:blip r:embed="rId4"/>
          <a:srcRect/>
          <a:stretch>
            <a:fillRect/>
          </a:stretch>
        </p:blipFill>
        <p:spPr bwMode="auto">
          <a:xfrm>
            <a:off x="95250" y="95250"/>
            <a:ext cx="2400300" cy="342900"/>
          </a:xfrm>
          <a:prstGeom prst="rect">
            <a:avLst/>
          </a:prstGeom>
          <a:noFill/>
          <a:ln w="9525">
            <a:noFill/>
            <a:miter lim="800000"/>
            <a:headEnd/>
            <a:tailEnd/>
          </a:ln>
        </p:spPr>
      </p:pic>
      <p:pic>
        <p:nvPicPr>
          <p:cNvPr id="13314" name="PHPPresentation logo"
descr="PHPPresentation logo"/>
          <p:cNvPicPr>
            <a:picLocks noChangeAspect="1"/>
          </p:cNvPicPr>
          <p:nvPr/>
        </p:nvPicPr>
        <p:blipFill>
          <a:blip r:embed="rId5"/>
          <a:srcRect/>
          <a:stretch>
            <a:fillRect/>
          </a:stretch>
        </p:blipFill>
        <p:spPr bwMode="auto">
          <a:xfrm>
            <a:off x="95250" y="952500"/>
            <a:ext cx="2352675" cy="342900"/>
          </a:xfrm>
          <a:prstGeom prst="rect">
            <a:avLst/>
          </a:prstGeom>
          <a:noFill/>
          <a:ln w="9525">
            <a:noFill/>
            <a:miter lim="800000"/>
            <a:headEnd/>
            <a:tailEnd/>
          </a:ln>
        </p:spPr>
      </p:pic>
      <p:sp>
        <p:nvSpPr>
          <p:cNvPr id="13315" name="Video" descr="Video"/>
          <p:cNvSpPr>
            <a:spLocks noRot="1" noChangeAspect="1"/>
          </p:cNvSpPr>
          <p:nvPr>
            <a:videoFile r:link="rId1"/>
          </p:nvPr>
        </p:nvSpPr>
        <p:spPr bwMode="auto">
          <a:xfrm>
            <a:off x="95250" y="1905000"/>
            <a:ext cx="857250" cy="857250"/>
          </a:xfrm>
          <a:prstGeom prst="rect">
            <a:avLst/>
          </a:prstGeom>
          <a:noFill/>
          <a:ln w="9525">
            <a:noFill/>
            <a:miter lim="800000"/>
            <a:headEnd/>
            <a:tailEnd/>
          </a:ln>
        </p:spPr>
        <p:txBody>
          <a:bodyPr/>
          <a:lstStyle/>
          <a:p>
            <a:endParaRPr lang="en-US"/>
          </a:p>
        </p:txBody>
      </p:sp>
      <p:pic>
        <p:nvPicPr>
          *<p:cNvPr id="13317" name="sintel_trailer-480p.wmv">*
            <a:hlinkClick r:id="" action="ppaction://media"/>
          </p:cNvPr>
          <p:cNvPicPr>
            <a:picLocks noRot="1" noChangeAspect="1"
noChangeArrowheads="1"/>
          </p:cNvPicPr>
          <p:nvPr>
            <a:videoFile r:link="rId2"/>
          </p:nvPr>
        </p:nvPicPr>
        <p:blipFill>
          <a:blip r:embed="rId6"/>
          <a:srcRect/>
          <a:stretch>
            <a:fillRect/>
          </a:stretch>
        </p:blipFill>
        <p:spPr bwMode="auto">
          <a:xfrm>
            <a:off x="1319213" y="1600200"/>
            <a:ext cx="6507162" cy="3657600"/>
          </a:xfrm>
          <a:prstGeom prst="rect">
            <a:avLst/>
          </a:prstGeom>
          <a:noFill/>
        </p:spPr>
      </p:pic>
    </p:spTree>
  </p:cSld>
  <p:clrMapOvr>
    <a:masterClrMapping/>
  </p:clrMapOvr>
  <p:timing>
    <p:tnLst>
      <p:par>
        <p:cTn id="1" dur="indefinite" restart="never" nodeType="tmRoot">
          <p:childTnLst>
            <p:seq concurrent="1" nextAc="seek">
              <p:cTn id="2" restart="whenNotActive" fill="hold"
evtFilter="cancelBubble" nodeType="interactiveSeq">
                <p:stCondLst>
                  <p:cond evt="onClick" delay="0">
                    <p:tgtEl>
                      <p:spTgt spid="13315"/>
                    </p:tgtEl>
                  </p:cond>
                </p:stCondLst>
                <p:endSync evt="end" delay="0">
                  <p:rtn val="all"/>
                </p:endSync>
                <p:childTnLst>
                  <p:par>
                    <p:cTn id="3" fill="hold">
                      <p:stCondLst>
                        <p:cond delay="0"/>
                      </p:stCondLst>
                      <p:childTnLst>
                        <p:par>
                          <p:cTn id="4" fill="hold">
                            <p:stCondLst>
                              <p:cond delay="0"/>
                            </p:stCondLst>
                            <p:childTnLst>
                              <p:par>
                                <p:cTn id="5" presetID="2"
presetClass="mediacall" presetSubtype="0" fill="hold"
nodeType="clickEffect">
                                  <p:stCondLst>
                                    <p:cond delay="0"/>
                                  </p:stCondLst>
                                  <p:childTnLst>
                                    <p:cmd type="call" cmd="togglePause">
                                      <p:cBhvr>
                                        <p:cTn id="6" dur="1" fill="hold"/>
                                        <p:tgtEl>
                                          <p:spTgt spid="13315"/>
                                        </p:tgtEl>
                                      </p:cBhvr>
                                    </p:cmd>
                                  </p:childTnLst>
                                </p:cTn>
                              </p:par>
                            </p:childTnLst>
                          </p:cTn>
                        </p:par>
                      </p:childTnLst>
                    </p:cTn>
                  </p:par>
                </p:childTnLst>
              </p:cTn>
              <p:nextCondLst>
                <p:cond evt="onClick" delay="0">
                  <p:tgtEl>
                    <p:spTgt spid="13315"/>
                  </p:tgtEl>
                </p:cond>
              </p:nextCondLst>
            </p:seq>
            <p:video>
              <p:cMediaNode>
                <p:cTn id="7" fill="hold" display="0">
                  <p:stCondLst>
                    <p:cond delay="indefinite"/>
                  </p:stCondLst>
                  <p:endCondLst>
                    <p:cond evt="onNext" delay="0">
                      <p:tgtEl>
                        <p:sldTgt/>
                      </p:tgtEl>
                    </p:cond>
                    <p:cond evt="onPrev" delay="0">
                      <p:tgtEl>
                        <p:sldTgt/>
                      </p:tgtEl>
                    </p:cond>
                  </p:endCondLst>
                </p:cTn>
                <p:tgtEl>
                  <p:spTgt spid="13315"/>
                </p:tgtEl>
              </p:cMediaNode>
            </p:video>
            <p:seq concurrent="1" nextAc="seek">
              <p:cTn id="8" restart="whenNotActive" fill="hold"
evtFilter="cancelBubble" nodeType="interactiveSeq">
                <p:stCondLst>
                  <p:cond evt="onClick" delay="0">
                    <p:tgtEl>
                      <p:spTgt spid="13317"/>
                    </p:tgtEl>
                  </p:cond>
                </p:stCondLst>
                <p:endSync evt="end" delay="0">
                  <p:rtn val="all"/>
                </p:endSync>
                <p:childTnLst>
                  <p:par>
                    <p:cTn id="9" fill="hold">
                      <p:stCondLst>
                        <p:cond delay="0"/>
                      </p:stCondLst>
                      <p:childTnLst>
                        <p:par>
                          <p:cTn id="10" fill="hold">
                            <p:stCondLst>
                              <p:cond delay="0"/>
                            </p:stCondLst>
                            <p:childTnLst>
                              <p:par>
                                <p:cTn id="11" presetID="2"
presetClass="mediacall" presetSubtype="0" fill="hold"
nodeType="clickEffect">
                                  <p:stCondLst>
                                    <p:cond delay="0"/>
                                  </p:stCondLst>
                                  <p:childTnLst>
                                    <p:cmd type="call" cmd="togglePause">
                                      <p:cBhvr>
                                        <p:cTn id="12" dur="1" fill="hold"/>
                                        <p:tgtEl>
                                          <p:spTgt spid="13317"/>
                                        </p:tgtEl>
                                      </p:cBhvr>
                                    </p:cmd>
                                  </p:childTnLst>
                                </p:cTn>
                              </p:par>
                            </p:childTnLst>
                          </p:cTn>
                        </p:par>
                      </p:childTnLst>
                    </p:cTn>
                  </p:par>
                </p:childTnLst>
              </p:cTn>
              <p:nextCondLst>
                <p:cond evt="onClick" delay="0">
                  <p:tgtEl>
                    <p:spTgt spid="13317"/>
                  </p:tgtEl>
                </p:cond>
              </p:nextCondLst>
            </p:seq>
            <p:video>
              <p:cMediaNode>
                <p:cTn id="13" fill="hold" display="0">
                  <p:stCondLst>
                    <p:cond delay="indefinite"/>
                  </p:stCondLst>
                  <p:endCondLst>
                    <p:cond evt="onNext" delay="0">
                      <p:tgtEl>
                        <p:sldTgt/>
                      </p:tgtEl>
                    </p:cond>
                    <p:cond evt="onPrev" delay="0">
                      <p:tgtEl>
                        <p:sldTgt/>
                      </p:tgtEl>
                    </p:cond>
                  </p:endCondLst>
                </p:cTn>
                <p:tgtEl>
                  <p:spTgt spid="13317"/>
                </p:tgtEl>
              </p:cMediaNode>
            </p:video>
          </p:childTnLst>
        </p:cTn>
      </p:par>
    </p:tnLst>
  </p:timing>
</p:sld>

@Progi1984
Copy link
Member Author

@jjmontgo It seems that uses an external link. I need to find a file generated by Powerpoint with a embed video in the file.

@jjmontgo
Copy link

I'll try playing around with it today and see if I can get it to embed
internally.
On Mar 11, 2016 5:43 AM, "Progi1984" notifications@github.com wrote:

@jjmontgo https://github.com/jjmontgo It seems that uses an external
link. I need to find a file generated by Powerpoint with a embed video in
the file.


Reply to this email directly or view it on GitHub
#123 (comment)
.

@Progi1984
Copy link
Member Author

@jjmontgo You rocks ! Thanks :)

@Progi1984
Copy link
Member Author

@jjmontgo Some news ?

@jjmontgo
Copy link

Sorry not yet as things have been very hectic lately. :(
On Mar 16, 2016 10:11 AM, "Progi1984" notifications@github.com wrote:

@jjmontgo https://github.com/jjmontgo Some news ?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#123 (comment)

@jjmontgo
Copy link

Sorry for taking so long.

I've taken a look at Powerpoint, and it is not possible to embed the video
within the file unless it is converted to Flash and entered as a Flash
object.

Apparently in Powerpoint 2003 and 2007, the video cannot be embedded in the
powerpoint file and has to be in the same directory as the presentation
externally. In powerpoint 2010, the video can be embedded in the file. So
it looks like it is a software issue, and perhaps your changes do work but
only in the 2010 version which I don't have.

On Wed, Mar 16, 2016 at 10:30 AM, Jonathan Montgomery jjmontgo@gmail.com
wrote:

Sorry not yet as things have been very hectic lately. :(
On Mar 16, 2016 10:11 AM, "Progi1984" notifications@github.com wrote:

@jjmontgo https://github.com/jjmontgo Some news ?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#123 (comment)

@Progi1984
Copy link
Member Author

@jjmontgo I just asked on Twitter for a sample file : https://twitter.com/Progi1984/status/710455692960919553

Try with this video file : https://framadrop.org/r/r-Bmc72blR#1KtVD2xzVrM01onaLYVSMsnu4wmyZ3Nk1Ab3qHXOAr8=

@jdt
Copy link

jdt commented Mar 22, 2016

I've created an empty powerpoint presentation in Office 2010, added the file supplied above via Insert > Video and saved the presentation. No other changes were made. Will this do?

Presentation1.pptx

@Progi1984
Copy link
Member Author

@jdt Thanks ! That valid my PR #209 :)

Need some unit tests and some documentation. And I push it to develop :)

Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue Mar 31, 2016
Progi1984 added a commit that referenced this issue Mar 31, 2016
@Progi1984
Copy link
Member Author

Merged in develop branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants