Hi,
I am using VideoJS and latest "mediainfo" and "ffmpeg" modules with my piwigo.
I can upload, synchronize and view this video:
https://www.dropbox.com/s/98m9ul1u7v88k … 2.mp4?dl=0
But when I add video with different quality settings, for example:
https://www.dropbox.com/s/x240ng48cfip2 … 5.mp4?dl=0
I got this message in every browser i tested:
"The video playback was aborted due to a corruption problem or because the video used features your browser did not support."
Can you help me with this issue?
Piwigo version: 2.7.4
PHP version: 5.5
MySQL version: hmm..latest
Offline
Hello,
You might want to read the documentation. Not all video format neither all video profile are supported.
https://github.com/xbgmsharp/piwigo-vid … t-you-know
You can compare the video format via MediaInfo or directly via the plugin on the admin photo page.
https://github.com/xbgmsharp/piwigo-vid … photo-edit
As you can see in the output below, the video use different Codec ID.
To be able to play your video, you will need to re-encode it via Handbrake or FFMPEG/AVCON.
An alternative could be to play the video using the flash player fallback.
Edit the videojs template template/vjs-player.tpl on line 35, [Github] piwigo-videojs file template/vjs-player.tpl@L35
Add the following in the video tag, this will make the flash version of videojs to play all video.
data-setup='{"techOrder": ["flash","html5"]}'
From:
<video id="my_video_1" class="video-js {/literal}{$VIDEOJS_SKIN}{literal}" {/literal}{$OPTIONS}{literal} poster={/literal}"{$VIDEOJS_POSTER_URL}"{literal} datasetup='{}' x-webkit-airplay="allow" width="auto" height="auto">
To:
<video id="my_video_1" class="video-js {/literal}{$VIDEOJS_SKIN}{literal}" {/literal}{$OPTIONS}{literal} poster={/literal}"{$VIDEOJS_POSTER_URL}"{literal} data-setup='{"techOrder": ["flash","html5"]}' x-webkit-airplay="allow" width="auto" height="auto">
You might want to remove the youtube metadata, http://superuser.com/questions/503868/h … -downloads
# mediainfo /tmp/Nanquan\ 32.mp4 General Complete name : /tmp/Nanquan 32.mp4 Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 File size : 7.01 MiB Duration : 2mn 22s Overall bit rate mode : Variable Overall bit rate : 412 Kbps Encoded date : UTC 2010-10-23 22:02:14 Tagged date : UTC 2010-10-23 22:02:14 gsst : 0 gstd : 143266 gssd : BD075FA81HH1371398544572902 gshh : r1---sn-5hn7ym76.c.youtube.com Video ID : 2 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L1.3 Format settings, CABAC : No Format settings, ReFrames : 1 frame Codec ID : avc1 Codec ID/Info : Advanced Video Coding
# mediainfo /tmp/20130525183405.mp4 General Complete name : /tmp/20130525183405.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 1.39 MiB Duration : 8s 109ms Overall bit rate mode : Constant Overall bit rate : 1 441 Kbps Encoded date : UTC 1904-01-01 00:00:00 Tagged date : UTC 1904-01-01 00:00:00 Writing application : Lavf54.59.106 Video ID : 1 Format : MPEG-4 Visual Format profile : Simple@L1 Format settings, BVOP : No Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Codec ID : 20
Hope this helps. Let me know if you have any other questions at all.
Offline
xbgmsharp thank you for support.
You re right - I should have read the docs before.
I have no requirement ot embed mp4, but rather to have (quite) good video quality.
And converting to webm with HD Quality solved this problem.
Offline