Video5-Talk

Summary: Talk page for Video5.
Maintainer: TomG
Users: +1 (View / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

php 8

Works now for 8.1, thanks to Petko :-). jdd

php 7.2

Probably not working with php 7.2: Troubleshooting?#create_function
nikos? December 05, 2019, at 12:29 AM

April 7, 2017 (Matthias)

Hi Tom and friends of Video5-Recipe!

It seems to me, that only first calls of (:video test:) on a page work properly, while second and further calls don't show an poster/preview image. (Video is played, but no poster.)

Also the produced code is different:

First occurance on the page produces - quite correct:

<video width="640" height="480" preload="auto" controls="controls" >
<source src="http://path/to/test.mp4" type="video/mp4" />
<p class="novideo">Sorry, your browser does not support HTML5 video.</p>
</video>

Second occurance on the page produces - somelike unexpected:

<video width="640" height="480" preload="auto" controls="controls" poster="http://path/to/test.gif">
<source src="http://path/to/test.mp4" type="video/mp4" />
<source src="http://path/to/test.ogv" type="video/ogg" />
<source src="http://path/to/test.webm" type="video/webm" />
<img src="http://path/to/test.gif" width="640" height="480" alt="test" />
<track src="http://path/to/test.vtt" kind="subtitles" srclang="en" label="test" default />
<p class="novideo">Sorry, your browser does not support HTML5 video.</p>
</video>

My question: Is that a known issue, or does it seem to be any misconfiguration of my page?

Thanks for your helpful answers!

Yours
Matthias

---

I confirm the above bug.
You can check my webpage, where I have 3 videos in a row.
I tested it on my website's sandbox, as well, and it produces the same problem.

  • A single video: the preview image is found
  • Three videos: it produces wrong code, as mentioned by Matthias

Whether I use IceApe (Seamonkey) or Chromium (Chrome), the problem is there.

The recipe searches for a preview image which has the same file name as the video file
(except for the file extension, of course).
You can provide a list of the image's possible file extensions in the "video5.php".
I have set mine to...
SDVA($PosterExtensions, array('gif','jpg','png')); // default poster format order (reverse order)
When I place 1 video in the page, the recipe finds the existing image type correctly (.jpg).
When I place 3 videos, the recipe prints the wrong code.

In more detail, I have uploaded the 3 videos in my server,
but I have only uploaded a preview image for the 2nd video
(if that is of any importance).

For 1 video, I will write...

(:video 3_2_Alicia_Machado :)

And it will produce...

<video width="640" height="360" preload="auto" controls="controls" poster="./uploads//Main/3_2_Alicia_Machado.jpg">
<source src="./uploads//Main/3_2_Alicia_Machado.webm" type="video/webm" />
<img src="./uploads//Main/3_2_Alicia_Machado.jpg" width="640" height="360" alt="3_2_Alicia_Machado" />

<p class="novideo">Sorry, your browser does not support HTML5 video.</p>
</video>

For 3 videos, I will write...

(:video 3_1_Marlene_Favela :)

(:video 3_2_Alicia_Machado :)

(:video 3_3_Vanessa_Barzan :)

And it will be produced...

<video width="640" height="360" preload="auto" controls="controls" >
<source src="./uploads//Main/3_1_Marlene_Favela.webm" type="video/webm" />


<p class="novideo">Sorry, your browser does not support HTML5 video.</p>
</video>
<p class='vspace'>&nbsp;</p>
<video width="640" height="360" preload="auto" controls="controls" poster="./uploads//Main/3_2_Alicia_Machado.png">
<source src="./uploads//Main/3_2_Alicia_Machado.mp4" type="video/mp4" />
<source src="./uploads//Main/3_2_Alicia_Machado.ogv" type="video/ogg" />
<source src="./uploads//Main/3_2_Alicia_Machado.webm" type="video/webm" />
<img src="./uploads//Main/3_2_Alicia_Machado.png" width="640" height="360" alt="3_2_Alicia_Machado" />
<track src="./uploads//Main/3_2_Alicia_Machado.vtt" kind="subtitles" srclang="el" label="3_2_Alicia_Machado" default />
<p class="novideo">Sorry, your browser does not support HTML5 video.</p>
</video>
<p class='vspace'>&nbsp;</p>
<video width="640" height="360" preload="auto" controls="controls" poster="./uploads//Main/3_3_Vanessa_Barzan.png">
<source src="./uploads//Main/3_3_Vanessa_Barzan.mp4" type="video/mp4" />
<source src="./uploads//Main/3_3_Vanessa_Barzan.ogv" type="video/ogg" />
<source src="./uploads//Main/3_3_Vanessa_Barzan.webm" type="video/webm" />
<img src="./uploads//Main/3_3_Vanessa_Barzan.png" width="640" height="360" alt="3_3_Vanessa_Barzan" />
<track src="./uploads//Main/3_3_Vanessa_Barzan.vtt" kind="subtitles" srclang="el" label="3_3_Vanessa_Barzan" default />
<p class="novideo">Sorry, your browser does not support HTML5 video.</p>
</video>

You can check the produced code in...
http://anarchy-domisi-ideon.awardspace.info/main/pmwiki.php?n=Main.3ΒίντεαΓιαΤοΧειμώνα

nikos? July 11, 2018, at 03:03 AM


February 27, 2017 (nikos)

The recipe doesn't seem to support subfolders.
Or, am I doing something wrong?
It will read the video in...

   http://mywiki/main/uploads/Main/myvideo.webm 

but it won't find the video in a subfolder.
Example...

   http://mywiki/main/uploads/Main/some_subfolder/myvideo.webm 

Setting the recipe's "VideoUrl" option to...

   0

or...

   http://mywiki/main/uploads/Main/

makes no difference.

I 've tried...

   (:video /some_subfolder/myvideo.webm :)
   (:video /some_subfolder/myvideo :)
   (:video ./some_subfolder/myvideo :)
   (:video some_subfolder/myvideo :)

but hey didn't work.

nikos? February 27, 2017, at 04:07 PM


13. May 2013 (Jakub)

Hello,

Thanks for the recipe. Does it support <track> tag to allow embedding of subtitles in SRT format? Would it be hard to implement in case it does not?

All the best. Jakub

Hi Jakub,

Not yet. Anyway, this shouldn't be a problem to implement and sounds like a good idea.

Please give me a week or two, I'm rather busy for the time being.

Thanks, 2013-05-14 - Tom

Hi Jakub,

Well, I finally got back to your request. It is now possible to load webvtt tracks (subtitles).

Thanks, 2013-10-22 - Tom

Update release 2013-10-23: SRT subtitles are now supported too. If your browser supports it...

25 Mar 2013 (Susan)

Hi TomG,

In using this recipe, it appears that either support for uploaded files is limited or the function is a bit buggy. I have been unsuccessful in getting an existing mp4 video to display but instead continue to get the error message:

"No video file named Antenna_installation.13.mp4 or Antenna_installation.13.ogv or Antenna_installation.13.webm found"

Here is the wiki markup for three separate failed attempts:

 
(:video Antenna_installation.13.mp4 width=640 height=480:)
(:video Antenna/Antenna_installation.13.mp4 width=640 height=480:)
(:video Attach:/Antenna/Antenna_installation.13.mp4 width=640 height=480:)

I am guessing that if the video doesn't exist in the uploads folder directly attached to the wiki page, then the recipe fails. I have tried numerous workarounds (shown above) to specify a path but none have worked. Ideally, using the Attach: syntax would make usage consistent and flexible.

Any thoughts or suggestions?

Susan

Hi Susan,

Please do not include the filename extension in the wiki source. Your example should look something like this:

(:video Antenna_installation.13 :)

This is not clearly stated on the video5 page, I'll update the documentation.

Thanks,

2013-04-09 - Tom

Update release 2013-10-22: This is no longer true. It no longer matters if you include the file extension in the video markup.


PLEASE PUT YOUR ENTRY DIRECTLY *ABOVE* THE [#usersend] LINE. The format should be: asterisk, either + or - in parentheses, comment, your name or profile link For example (obviously without the at the beginning): * (+) comment-text name?

Thanks!

Lexx

 Hi Tom,
I have the problem that the Video is not shown on the Web-Page
I allways get the Errormessage like "No Video with the supportet format is found"
But the Video in Format mp4 is stored in the right Directory.
The Tag in my page is:
(:video myvideo.mp4 autoplay=0 controls=1 loop=0 muted=0 preload=none width=600 height=295:)
The include line is includet in my Config.php.
I hope someone can help me.

by Lexx

Hi Lexx,

Same problem I think, please do not include the filename extension in the wiki source:

(:video myvideo autoplay=0 controls=1 loop=0 muted=0 preload=none width=600 height=295:)

I'll definitively update the documentation.

Thanks,

2013-04-09 - Tom

Update release 2013-10-22: This is no longer true. It no longer matters if you include the file extension in the video markup.

Talk page for the Video5 recipe (users).