cwilby / nextcloud-workflow-media-converter

An automated media conversion plugin for NextCloud
https://apps.nextcloud.com/apps/workflow_media_converter
GNU Affero General Public License v3.0
35 stars 15 forks source link

can't get it to work, no error message given #491

Open fschiefenhoevel opened 3 weeks ago

fschiefenhoevel commented 3 weeks ago

Hi!

I'd really like to use this frontend-tool to convert videos. At the moment, I have a bash-script that I run manually, which converts videos using ffmpeg (using several flags, including movflag '+faststart'). But: whatever input/output format I choose (and leaving additional ffmpeg flags completely empty, see screenshot), the conversion fails. Cronjobs are enabled and running fine. No error message is given :-(

See below for the code I run manually, which runs fine.

Steps to reproduce

  1. Trying to add conversion batch
  2. Define directory and formats
  3. Click on "Save"

See Screenshot: grafik

Expected behaviour

conversion of media via ffmpeg

Actual behaviour

nothing :-(

this error message pops up: grafik

Workflow Media Converter app

Workflow Media Converter app version: 1.11.7

Server configuration

Operating system:

Ubuntu 22.04

Web server:

Apache

Database:

MySQL 10.6.16

PHP version:

8.1.27

Nextcloud Version:

28.0.8

Where did you install Nextcloud from:

nextcloud.com

Signing status:

No errors have been found.

List of activated apps:

``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your server installation folder ``` Enabled: - activity: 2.20.0 - admin_audit: 1.18.0 - audioplayer: 3.4.1 - bookmarks: 14.2.3 - bruteforcesettings: 2.8.0 - calendar: 4.7.15 - cloud_federation_api: 1.11.0 - comments: 1.18.0 - contacts: 5.5.3 - contactsinteraction: 1.9.0 - dashboard: 7.8.0 - dav: 1.29.2 - federatedfilesharing: 1.18.0 - federation: 1.18.0 - files: 2.0.0 - files_external: 1.20.0 - files_pdfviewer: 2.9.0 - files_reminders: 1.1.0 - files_sharing: 1.20.0 - files_trashbin: 1.18.0 - files_versions: 1.21.0 - firstrunwizard: 2.17.0 - issuetemplate: 0.7.0 - logreader: 2.13.0 - lookup_server_connector: 1.16.0 - metadata: 0.20.0 - nextcloud_announcements: 1.17.0 - notifications: 2.16.0 - oauth2: 1.16.3 - password_policy: 1.18.0 - photos: 2.4.0 - previewgenerator: 5.6.0 - privacy: 1.12.0 - provisioning_api: 1.18.0 - recommendations: 2.0.0 - related_resources: 1.3.0 - serverinfo: 1.18.0 - settings: 1.10.1 - sharebymail: 1.18.0 - support: 1.11.1 - survey_client: 1.16.0 - suspicious_login: 6.0.0 - systemtags: 1.18.0 - text: 3.9.2 - theming: 2.3.0 - twofactor_backupcodes: 1.17.0 - updatenotification: 1.18.0 - user_status: 1.8.1 - viewer: 2.2.0 - weather_status: 1.8.0 - workflow_media_converter: 1.11.7 - workflowengine: 2.10.0 Disabled: - circles: 28.0.0 (installed 24.0.1) - encryption: 2.16.0 - files_rightclick: 0.15.1 (installed 1.6.0) - twofactor_totp: 10.0.0-beta.2 - user_ldap: 1.19.0

Nextcloud configuration:

{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "192.168.178.33", "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "http:\/\/192.168.178.33", "dbtype": "mysql", "version": "28.0.8.1", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "3306", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379 }, "enable_previews": true, "enabledPreviewProviders": [ "OC\\Preview\\TXT", "OC\\Preview\\Image", "OC\\Preview\\TIFF", "OC\\Preview\\Movie", "OC\\Preview\\MKV", "OC\\Preview\\MP4", "OC\\Preview\\AVI", "OC\\Preview\\HEIC", "OC\\Preview\\JPEG", "OC\\Preview\\PNG", "OC\\Preview\\GIF", "OC\\Preview\\HEIF" ], "preview_max_x": 2048, "preview_max_y": 1024, "preview_max_scale_factor": 10, "preview_max_filesize_image": 50, "maintenance": false, "logfile": "\/var\/log\/nextcloud\/nextcloud.log", "loglevel": 2, "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "ssl", "updater.release.channel": "stable", "session_lifetime": 300, "session_keepalive": false, "theme": "", "mail_sendmailmode": "smtp", "defaultapp": "files", "mysql.utf8mb4": true, "default_phone_region": "de", "data-fingerprint": "e26355bdc1371a7685898d5a569ade3b", "maintenance_window_start": 1, "app_install_overwrite": [ "issuetemplate" ] } }

Are you using external storage, if yes which one: local for some directories

Are you using encryption: no

Server log (data/nextcloud.log)

``` Nothing concerning the conversion seems to be included in the log! ```

Code I run manually:

``` #!/bin/bash for i in *.3gp *.avi *.m4v *.mp4 *.mov *.3GP *.AVI *.M4V *.MP4 *.MOV; do if [ "${i: -8}" != "conv.mp4" ]; then echo $i fi done curdir1=$(pwd | sed "s|/mnt/red_8tb/data||") curdir2=$(echo $curdir1 | sed 's|/[^\/]*$||') mkdir -p originals for i in *.3gp *.avi *.m4v *.mp4 *.mov *.3GP *.AVI *.M4V *.MP4 *.MOV; do if [ "${i: -8}" != "conv.mp4" ]; then sudo nice -19 ffmpeg -threads 1 -benchmark -i "$i" -qscale:v 0 -movflags '+faststart +use_metadata_tags' "${i%.*}_conv.mp4" mv "$i" originals fi done sudo chown -R www-data:www-data * echo "$curdir2" sudo -u www-data php /var/www/nextcloud/occ files:scan -p "$curdir2" ```