jessyink video fails to start

Post questions on how to use or achieve an effect in Inkscape.
Giltelomerase
Posts: 5
Joined: Sat Aug 16, 2014 11:23 pm

jessyink video fails to start

Postby Giltelomerase » Sat Aug 16, 2014 11:38 pm

Hi there,

I am very new with inkscape and I have quite naive question.
I have made a complete presentation on inkscape using jessyink. The extension is working well except I can not play the video in my Firefox browser by dredging the svg file to Firefox. I am just want to emphasis that when I am dragging the video file (webm) alone it is working well though I don’t think that the problem is in my Firefox settings.

Thanks In advance,

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: jessyink video fails to start

Postby hulf2012 » Sun Aug 17, 2014 2:00 am

Hello,

First of all I'm NOT an expert. I've also used Jessyink as a normal user. And also noted that I couldn't attach videos to presentations.

but anyway:

Could you share your file presentation?

More information:

- Jessyink uses javascrpit and svg to perform the presentations. Maybe if you shows the code, some javascript expert could help.
- The extension seems like old. I don't see any recent updates. However, I see that you can ask or show bugs here:
https://launchpad.net/jessyink/
- Firefox and Internet have changed. So some javascript functions doesn't work anymore.

There is also Prezi, but the installation procedure for windows... it scares me!
http://sozi.baierouge.fr/pages/install-windows.html

If you find the solution, please share with us
Greetings
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Giltelomerase
Posts: 5
Joined: Sat Aug 16, 2014 11:23 pm

Re: jessyink video fails to start

Postby Giltelomerase » Sun Aug 17, 2014 2:29 am

video_test.svg
(97.42 KiB) Downloaded 286 times
Since my presentation is made for academia and the details are confidential I could not upload the presentation file. However, I have attached an example file contain a video from my presentation, for anybody that could assist me with this issue.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: jessyink video fails to start

Postby hulf2012 » Mon Aug 18, 2014 12:31 am

Hello,
Sorry for the late answer.

I'm sorry but I can't give a quick answer, because I believe it's a complex problem, which involves javascript and advanced SVG features.

I'm sharing what I've found here, if you are still interested, and if any other is interested or have something else to add.
It's possible embed a video in a SVG file. Jessyink does that using javascript. But that programing part I'm still "investigating it".

Just with SVG code is possible to show a video, usign the "foreignObject" labels.

I made this test file, that it's made of pieces of other code found on the internet, some graphic edition on Inkscape, etc. The "foreignObject" is at the end, and you can see that they have other special attributes and elements in order to start to work:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   version="1.1"
   width="600"
   height="450"
   id="svg2">
  <defs
     id="defs4" />
  <metadata
     id="metadata7">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title></dc:title>
      </cc:Work>
    </rdf:RDF>
  </metadata>
 
   

 
  <g
     transform="translate(0,-602.36218)"
     id="layer1">
   

    <path
       d="M 165.02836,93.998108 C 165.02836,134.63645 131.13234,167.58034 89.319473,167.58034 47.506611,167.58034 13.610588,134.63645 13.610588,93.998108 13.610588,53.359765 47.506611,20.415878 89.319473,20.415878 131.13234,20.415878 165.02836,53.359765 165.02836,93.998108 z"
       transform="matrix(0.78089888,0,0,0.78612716,8.0860651,607.57925)"
       id="path2985"
       style="color:#000000;fill:#0000ff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.31083736;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
    <path
       d="M 165.02836,93.998108 C 165.02836,134.63645 131.13234,167.58034 89.319473,167.58034 47.506611,167.58034 13.610588,134.63645 13.610588,93.998108 13.610588,53.359765 47.506611,20.415878 89.319473,20.415878 131.13234,20.415878 165.02836,53.359765 165.02836,93.998108 z"
       transform="matrix(1.4494382,0,0,1.2890173,336.69951,817.63366)"
       id="path2987"
       style="color:#000000;fill:#aa0000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.31083736;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
    <path
       d="M 165.02836,93.998108 C 165.02836,134.63645 131.13234,167.58034 89.319473,167.58034 47.506611,167.58034 13.610588,134.63645 13.610588,93.998108 13.610588,53.359765 47.506611,20.415878 89.319473,20.415878 131.13234,20.415878 165.02836,53.359765 165.02836,93.998108 z"
       transform="matrix(0.74719101,0,0,0.78034682,17.051468,884.16227)"
       id="path2989"
       style="color:#000000;fill:#008000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.31083736;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
    <path
       d="M 165.02836,93.998108 C 165.02836,134.63645 131.13234,167.58034 89.319473,167.58034 47.506611,167.58034 13.610588,134.63645 13.610588,93.998108 13.610588,53.359765 47.506611,20.415878 89.319473,20.415878 131.13234,20.415878 165.02836,53.359765 165.02836,93.998108 z"
       transform="matrix(0.8258427,0,0,0.86127167,411.53862,634.11693)"
       id="path2991"
       style="color:#000000;fill:#d4aa00;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.31083736;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />




</g>

      <foreignObject x="100" y="100" width="450" height="300"
                   requiredExtensions="http://www.w3.org/1999/xhtml">
        <!-- XHTML content goes here -->
     
       
      <video xmlns="http://www.w3.org/1999/xhtml" width="320" height="240" controls= "autoplay">
         <source src="http://video.webmfiles.org/big-buck-bunny_trailer.webm" type="video/webm">
         Your browser does not support video
         </source>
         
      </video>
     
    </foreignObject>
</svg>


So far, is what i have related to that problem.
I've tested in firefox and it works. In Chrome, the video screen doesn't appear.

Greetings
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Giltelomerase
Posts: 5
Joined: Sat Aug 16, 2014 11:23 pm

Re: jessyink video fails to start

Postby Giltelomerase » Mon Aug 18, 2014 3:54 am

Thank very much for the code,
Unfortunately I don't have any coding skills and I have no idea how to embedded the code you wrote in the original presentation.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: jessyink video fails to start

Postby hulf2012 » Mon Aug 18, 2014 1:25 pm

I've been thinking in this problem, and exerimenting some things.
I've found a couple of things.
- The video may not appear because it is located outside of the area of the slide. At the moment of making the slides, some transformations are performed that may misalign the screen of the video. So it's good to put some shape with the video, just to see how the video is located in the webbrowser.
- The other is the location of the file of the video in your local system.
--If the video-file is located in the same directory of your SVG-presentation it's not neccesary to put a big route. In my case I only need to put:

Code: Select all

file:video.webm

-- If the video it's located in other place of the directory system, even as a sub-directory where the svg-presentation, it's neccesary to put the entire path of the file, like:

Code: Select all

file:///C:/Users/myusername/path_to_directory/sub_directory/video.webm


-- I've done those tests in my system, which is win7. Can I ask what is your system ( windows, Linux, Mac OS)?

About the code i post, the important part is this:

Code: Select all

   <foreignObject x="100" y="100" width="450" height="300" >
      <!-- XHTML content goes here -->
     
      <video xmlns="http://www.w3.org/1999/xhtml" width="320" height="240" controls= "autoplay">
         <source src="/PATH_TO_YOUR_VIDEOFILE/videofile.webm" type="video/webm">
         Your browser does not support video
         </source>
         
      </video>
 
   </foreignObject>


After making your presentation in Inkscape, open it with a text editor. Locate the place where you put the text with the location of your video file. I recomend (but may be wrong), paste the code after the text label :

Code: Select all

</text>
, that must appear

But before doing this operation, first see if just aligning the video, or writing properly the path to the file, you can solve your problem

:geek:

Greetings
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Giltelomerase
Posts: 5
Joined: Sat Aug 16, 2014 11:23 pm

Re: jessyink video fails to start

Postby Giltelomerase » Mon Aug 18, 2014 5:28 pm

Thanks again,
I have created 3 slides presentation test file, adjust the file size and the result was that the video file is visible in the browser but the problem now is that it is not start playing upon mouse click or automatically. It will start on left click only if the slide will be the last slide of the presentation. however, if there is a slide after the video slide the video can not be played.

You can find the find example test presentation containing video, the file of 3 slides while the second slide include the video.
P.s.
I am using Mac osx 10.9.4
Attachments
TEST_01.svg
(129.65 KiB) Downloaded 247 times
Last edited by Giltelomerase on Mon Aug 18, 2014 9:11 pm, edited 1 time in total.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: jessyink video fails to start

Postby hulf2012 » Tue Aug 19, 2014 6:21 am

Hello
About the mouse see here:
https://code.google.com/p/jessyink/wiki/VideoElement
Note that, during the presentation, you have to right click the video and select "play" from the context menu to start playing the movie. Since this triggers a click on the slide, it is recommended that you install the no-click mouse handler to avoid that effects or transitions interfere.


So, try to go to: Extensions >> jessyink >> Mouse Handler >> Select "No-click"
In this way, you can go to the next slide with the arrow keys. When you get the video, use the mouse, right click, run the video. I think it's the easiest way to handle this problem. It's possible to add code, or maybe a CSS stylesheet, in order the controls appear in the video, nowadays, "it's complicate the living".

... Maybe in Mac OS is diferent but, I insist, if you have your video in the same directory of your SVG presentation, you can put :

Code: Select all

file:yourvideofile.webm

Or maybe it doesnt work?
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Giltelomerase
Posts: 5
Joined: Sat Aug 16, 2014 11:23 pm

Re: jessyink video fails to start

Postby Giltelomerase » Tue Aug 19, 2014 4:23 pm

Cheers,
It is working perfectly fine now.
Thank you so much for the help.
Now I feel much more comfortable using Inkscape and jessyink.

Good day


Return to “Help with using Inkscape”