Announcement

#1 2022-05-28 20:06:54

JD4x4
Member
2014-07-23
5

No Video but have audio on hosted server setup

Hello,

I have a personal album on a site hosted by 1&1 with their business package.
I recently tried to add some mp4 videos, but they only play the audio and the video area is blank. I'm sure I haven't enabled something in the site configuration but I can't imagine what or where. I've tried other browsers & settings with the same results.

Help? Clues?

Environment
Piwigo 12.2.0
Operating system: Linux
PHP: 7.4.29 (Show info) [2022-05-28 13:54:27]
MySQL: 5.7.36-log [2022-05-28 13:54:27]
Graphics Library: External ImageMagick 6.9.10-23
Cache size N/A   never calculated Refresh
Activated plugin list6
Admin Tools
Embedded Videos
LocalFiles Editor
Media Icon
Take A Tour of Your Piwigo
VideoJS

Piwigo URL: http://photos.jimdavis.name/index.php?/ … JinsVideos

Offline

 

#2 2022-05-28 21:11:15

Katryne
Member
2016-12-03
179

Re: No Video but have audio on hosted server setup

Hello !
I can view your video and listen to it with Firefox.


https://photos.revestou.fr/  v.12.2 - https://dardennes.revestou.fr/ v.11.5 - http://photos.katrynou.fr/ v.11.5 https://album.chauvigne.info/ v.12.2
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 7.4.29 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#3 2022-05-29 08:04:30

JD4x4
Member
2014-07-23
5

Re: No Video but have audio on hosted server setup

Thank you @Katryne!
There are 3 videos in my Gallery but it's the first two that don't work. The only one that works is a YouTube link.

I guess that means that I have some problems locally. I tried it with Firefox, Edge, Chrome on my PC as well as Chrome on my phone.
??

Offline

 

#4 2022-05-29 09:02:16

Katryne
Member
2016-12-03
179

Re: No Video but have audio on hosted server setup

Sorry , I had tried only the 3rd one.

My 3 videos are running correctly there : https://photos.revestou.fr/index?/categ … embre_2019

The site is hosted too at 1&1-Ionos.

Only problem is that they are displayed full width and I haven't found the way to modify it.

Environment :
Piwigo 12.2.0
Système d'exploitation: Linux
PHP: 7.4.29
MySQL: 5.7.38-log
Bibliothèque graphique: External ImageMagick 6.9.10-23
Theme is Bootstrap Darkroom customized

49 plugins activated, among which :
Charlie's content 3.2.4
Media Icon
VideoJS

Local config :
$conf['upload_form_all_types'] = true;

Video.js config (1st tab : I haven't tried yet to create thumbs in the 2nd tab)
https://i.imgur.com/pbacsnT.png


https://photos.revestou.fr/  v.12.2 - https://dardennes.revestou.fr/ v.11.5 - http://photos.katrynou.fr/ v.11.5 https://album.chauvigne.info/ v.12.2
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 7.4.29 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#5 2022-05-29 11:58:19

I_am_cats
Member
2022-04-14
27

Re: No Video but have audio on hosted server setup

I tried this file:
http://photos.jimdavis.name/upload/2022 … d1e4eb.mp4
In Firefox, Chromium and Falkon on Linux. The result is the same: sound, but no video.
I get no meaningful warnings or messages from any browser.
I can play the file in a media player (ffplay, mpv) no problem.

I suspect the video's encoding isn't supported by most browsers.
FWIW, it's:

Code:

$> mediainfo -all http://photos.jimdavis.name/upload/2022/05/28/20220528041928-29d1e4eb.mp4
General
Complete name                            : http://photos.jimdavis.name/upload/2022/05/28/20220528041928-29d1e4eb.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/mp41)
File size                                : 248 MiB
Duration                                 : 30 min 39 s
Overall bit rate mode                    : Constant
Overall bit rate                         : 1 132 kb/s
Writing application                      : Lavf58.20.100

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                                 : mp4v-20
Duration                                 : 30 min 39 s
Bit rate mode                            : Constant
Bit rate                                 : 997 kb/s
Width                                    : 640 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.108
Stream size                              : 219 MiB (88%)
Title                                    : ISO Media file produced by Google Inc.
Writing library                          : Lavc58.35.100

Just to be very clear, this has nothing to do with Piwigo, it's a codec/browser problem.
I suggest you trancode all offending videos to a format suitable for browsers.

Offline

 

#6 2022-05-29 13:44:57

erAck
Only trying to help
2015-09-06
1396

Re: No Video but have audio on hosted server setup

Short explanation: .mp4's video codec AVC (H.264) is proprietary and patented (though playing it without license fees iff the media is freely available is allowed), so browsers look whether libraries are available on the system that allow them to use it. If your system does not provide such then MPEG-4 is just not working. For Firefox you might get away with installing ffmpeg-libs if those include the codecs in your distribution.
Do your visitors a favour and convert videos to Theora/ogg or WebM with VP8/VP9.
See also https://developer.mozilla.org/en-US/doc … #avc_h.264


Running Piwigo at https://erack.net/gallery/

Offline

 

#7 2022-05-29 17:44:29

JD4x4
Member
2014-07-23
5

Re: No Video but have audio on hosted server setup

@I_am_cats and @erAck- Thanks to both of you, and @Katryne as well!
I suspected it might have had something to do with the browser, and the encoding now makes sense.

I'm off to do some encoding conversions!  Thanks again all. Will post back to confirm the fixes.

Offline

 

#8 2022-05-29 19:15:02

Katryne
Member
2016-12-03
179

Re: No Video but have audio on hosted server setup

I am going to remove my videos from my Piwigos. I have but shared hosting ... And video .js is too difficult to configure when one does not have root access. And for someone like me. Tutorials for video.js are complete and detailed, but just not for my knowledge level.
I did manage with Piwigo 11.5, but nothing suitable since Piwigo 12.

I always publish other sites, forum or blog-like, along with my Piwigos. I will put there my videos if any. This I know how to. My video on such sites are both .mp4 and .webm.


https://photos.revestou.fr/  v.12.2 - https://dardennes.revestou.fr/ v.11.5 - http://photos.katrynou.fr/ v.11.5 https://album.chauvigne.info/ v.12.2
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 7.4.29 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#9 2022-05-29 19:39:13

I_am_cats
Member
2022-04-14
27

Re: No Video but have audio on hosted server setup

Katryne wrote:

I have but shared hosting ... And video .js is too difficult to configure when one does not have root access.

I cannot confirm this - we too have shared hosting and no major problems with video.js. I have only configured it through the web UI.
Of course issues like OP's are to be expected, but they have nothing to do with video.js or Piwigo.

Offline

 

#10 2022-05-30 23:35:51

JD4x4
Member
2014-07-23
5

Re: No Video but have audio on hosted server setup

Thanx everyone for your help. I converted them to ogg and they are working now.
Aside from the originals being less than optimal quality and I get some sort of array errors when I try to generate timeline thumbs, I'm a happy camper!

http://photos.jimdavis.name/index.php?/category/24

Last edited by JD4x4 (2022-05-30 23:37:20)

Offline

 

#11 2022-05-31 23:16:42

JD4x4
Member
2014-07-23
5

Re: No Video but have audio on hosted server setup

A minor addendum- I was using VLC to transcode/convert & had mediocre results so I followed someone's advice here to install & use Handbrake. I found the m4v format to be beautiful.

Handbrake isn't fast, but WELL worth it for the results! Now I'm off to see what I can do with it since I get errors with VideoJS when I try to generate posters (found a workaround by using thumbs in a pwg_representative folder), and timeline thumbs (no solution yet).

Thanks again, everyone! (and check out my vids :-) )

Offline

 

#12 2022-06-04 09:54:20

I_am_cats
Member
2022-04-14
27

Re: No Video but have audio on hosted server setup

^ FWIW I always use ffmpeg for such things. Constructing the transcoding command myself means I have almost full control over what's happening.

JD4x4 wrote:

Thanx everyone for your help. I converted them to ogg and they are working now.
Aside from the originals being less than optimal quality and I get some sort of array errors when I try to generate timeline thumbs, I'm a happy camper!

http://photos.jimdavis.name/index.php?/category/24

The one I first looked at does not seem to be reduced in quality at all, and is searchable.
BTW, sometimes it's enough to only change the container format - no transcoding required, hence no loss in quality. Sometimes.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact