Announcement

  •  » Extensions
  •  » VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

#1 2021-12-30 10:17:01

syker69
Member
2021-12-30
15

VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

Hello!
only just started using Piwigo, first used a hosted demo, but then decided to self host on a rasp pi 4b with a 1TB SSD and so far so good, all is configured, used FTP to sync and what an amazing bit of software! would appreciate any help or any alternative if videoJS doesnt work?

as my library has pics & video, I enabled "videoJS" now videos are working in my library, but no thumbnails or metadata, there seems to be an issue when I click on VideoJS Syncronise,  it gives an error,
Warning: array_merge(): Expected parameter 1 to be an array, null given in /var/www/html/piwigo/plugins/piwigo-videojs/admin/admin_sync.php on line 53

Warning: array_merge(): Expected parameter 1 to be an array, null given in /var/www/html/piwigo/plugins/piwigo-videojs/admin/admin_sync.php on line 78

it says
"You ask me to do nothing, are you sure?"

Synchronization results
2465 video(s) selected
0 video(s) with metadata added
0 poster(s) created
0 thumbnail(s) created
0 warnings during synchronization
1 errors during synchronisation
Errors
You ask me to do nothing, are you sure?

(
(Copy here your environment details, found on your Piwigo page [Administration > Tools > Maintenance])
Environment
Piwigo 12.1.0 Check for upgrade
Operating system: Linux
PHP: 7.4.25 (Show info) [2021-12-30 09:09:05]
MySQL: 5.5.5-10.5.12-MariaDB-0+deb11u1 [2021-12-30 09:09:05]
Graphics Library: ImageMagick 6.9.11-60
Cache size 244.71 MB   calculated right now Refresh
Activated plugin list2
LocalFiles Editor
VideoJS


in my localfiles editor i have
$conf['show_php_errors'] = E_ALL & ~E_NOTICE & ~E_DEPRECATED;
$conf['vjs_mediainfo_dir'] = '/usr/bin/';
$conf['vjs_exiftool_dir'] = '/usr/bin/';
$conf['vjs_ffprobe_dir'] = '/usr/bin/';
$conf['ffmpeg_dir'] = '/usr/bin/';
$conf['upload_form_all_types'] = true;
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. ]+$/';
$conf['show_exif'] = true;
$conf['show_exif_fields'] = array(
  'Make',
  'Model',
  'ExifVersion',
  'Software',
  'DateTimeOriginal',
  'FNumber',
  'ExposureBiasValue',
  'FILE;FileSize',
  'ExposureTime',
  'Flash',
  'ISOSpeedRatings',
  'FocalLength',
  'FocalLengthIn35mmFilm',
  'WhiteBalance',
  'ExposureMode',
  'MeteringMode',
  'ExposureProgram',
  'LightSource',
  'Contrast',
  'Saturation',
  'Sharpness',
  'bitrate',
  'channel',
  'date_creation',
  'display_aspect_ratio',
  'duration',
  'filesize',
  'format',
  'formatprofile',
  'codecid',
  'frame_rate',
  'latitude',
  'longitude',
  'make',
  'model',
  'playtime_seconds',
  'sampling_rate',
  'type',
  'resolution',
  'rotation',
  );
?>

Offline

 

#2 2021-12-30 10:46:45

syker69
Member
2021-12-30
15

Re: VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

Just tried a suggestion from another thread.
Removed the plugin and downloaded installed from master at GitHub.
Same errors as above

Offline

 

#3 2021-12-31 14:30:39

gueba
Member
2021-12-31
55

Re: VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

Hi,

The sync-problem might be handled here (solution by "jensbrak"):
[Github] piwigo-videojs issue #162

Try it and then make sure that 'mediainfo', 'ffprobe', 'exiftool' and 'ffmpeg' are prperly installed and recognized.

hth

Offline

 

#4 2021-12-31 14:47:57

syker69
Member
2021-12-30
15

Re: VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

gueba wrote:

Hi,

The sync-problem might be handled here (solution by "jensbrak"):
[Github] piwigo-videojs issue #162

Try it and then make sure that 'mediainfo', 'ffprobe', 'exiftool' and 'ffmpeg' are prperly installed and recognized.

hth

Hi thanks, I did make those changes with the addition of the ((Array) and now when i click syncronise seems face be another error
"Warning: mkdir(): Permission denied in /var/www/html/piwigo/plugins/piwigo-videojs/include/function_sync2.php on line 132"

searching around led me to this post: where its suggested i need to CHMOD my galleries/photos to 777 (as videojs needs to create additonal pwg_"representative" subfolders)
https://piwigo.org/forum/viewtopic.php?pid=175041

but then a reply to that suggests (which makes sens) its a security risk to do that.
There is a script at the bottom (which i dont know how to run, or even if i should)


How does everyone else get around the permissions issues for "pwg_representative" subfolders to get created? (thats if what my error above is even related to?)


thankyou!

Offline

 

#5 2021-12-31 15:13:29

gueba
Member
2021-12-31
55

Re: VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

As a workaround you could create the folders manually (everyone who has no 'ffmpeg' present has to do it this way)

Offline

 

#6 2021-12-31 15:53:33

syker69
Member
2021-12-30
15

Re: VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

gueba wrote:

As a workaround you could create the folders manually (everyone who has no 'ffmpeg' present has to do it this way)

ok thanks ill give manually creating a go now

Offline

 

#7 2021-12-31 16:01:01

syker69
Member
2021-12-30
15

Re: VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

still no joy... but a new error!

i used winSCP to copy paths of all folders & subfolders and created a script to create the subfolders for every album

cd /var/www/html/piwigo/galleries/Album1/subalbum1
sudo mkdir  pwg_representative
sudo chmod 777 pwg_representative
cd /var/www/html/piwigo/galleries/Album2/subalbum2
sudo mkdir  pwg_representative
sudo chmod 777 pwg_representative


etc.. so now every album has a subfolder... when i run sync now i get

Fatal error: Uncaught Error: Unsupported operand types in /var/www/html/piwigo/plugins/piwigo-videojs/include/exiftool.php:58 Stack trace: #0 /var/www/html/piwigo/plugins/piwigo-videojs/include/function_sync2.php(80): include() #1 /var/www/html/piwigo/plugins/piwigo-videojs/admin/admin_sync.php(139): require_once('/var/www/html/p...') #2 /var/www/html/piwigo/plugins/piwigo-videojs/admin/admin.php(68): include_once('/var/www/html/p...') #3 /var/www/html/piwigo/admin/plugin.php(53): include_once('/var/www/html/p...') #4 /var/www/html/piwigo/admin.php(314): include('/var/www/html/p...') #5 {main} thrown in /var/www/html/piwigo/plugins/piwigo-videojs/include/exiftool.php on line 58


**i do have all the tools intalled and green ticks show next to all
Program Dependencies
mediainfo
ffprobe
exiftool
ffmpeg

Offline

 

#8 2022-08-19 09:02:10

gabydinu
Member
2022-08-18
2

Re: VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

what worked for me: in file include/exiftool.php at line 58 change from:

$exif['duration'] = round($general['Duration']*1000, 0);
to
  $exif['duration'] = round($general['MediaDuration'], 0);

Offline

 

#9 2022-09-28 15:14:30

grantiago
Member
2022-04-04
14

Re: VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

thanks.

gabydinu wrote:

what worked for me: in file include/exiftool.php at line 58 change from:

$exif['duration'] = round($general['Duration']*1000, 0);
to
  $exif['duration'] = round($general['MediaDuration'], 0);

worked for me as well.

Offline

 
  •  » Extensions
  •  » VideoJS 2.9B with Piwigo 12.1 Sync Error & You ask me to do nothing?

Board footer

Powered by FluxBB

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