Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFMPEG not found by OpenToonz on Ubuntu #9

Closed
VinceFINET opened this issue Jan 17, 2021 · 13 comments · Fixed by #10
Closed

FFMPEG not found by OpenToonz on Ubuntu #9

VinceFINET opened this issue Jan 17, 2021 · 13 comments · Fixed by #10

Comments

@VinceFINET
Copy link

Describe the bug
FFMPEG not found by OpenToonz on Ubuntu

To Reproduce
List steps to reproduce the behavior.

  1. Install OpenToonz on a Ubuntu from apt-get
  2. Install ffmpeg on the same Ubuntu from apt-get (command "which ffmpeg" output "/usr/bin/ffmpeg")
  3. Launch OT, try to render as MP4 you get a dialog box saying the program did not found ffmpeg
  4. Go to preference, and set "/usr/bin/ffmpeg" and restart OT
  5. Same error as step 3
  6. Go to preference, and set "/usr/bin/" and restart OT
  7. Same error as step 3
  8. Go to preference, and set "/usr/bin" and restart OT
  9. Same error as step 3

Expected behavior
OT should find ffmpeg

Device Information:

  • OS: Linux 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • OpenToonz: 1.4 built May 29 2020 11:56:49
@VinceFINET
Copy link
Author

VinceFINET commented Jan 18, 2021

Problem is linked to the snap package that has no access to /usr/bin

Trying to copy the ffmpeg in home does not help much.
I tried:

  • The ffmpeg binary installed in the system
    $ cksum /usr/bin/ffmpeg
    24847602 280880 /usr/bin/ffmpeg
  • Binary copied into the snap/opentoonz root did not work either
    $ cksum ~/snap/opentoonz/*peg
    24847602 280880 /home/xxxx/snap/opentoonz/ffmpeg
    24847602 280880 /home/xxxx/snap/opentoonz/FFmpeg
  • Same if copy into the /snap/opentoonz root
    $ cksum /snap/opentoonz/*peg
    24847602 280880 /snap/opentoonz/ffmpeg

Please could you provide assistance?

FYI:
$ snap connections opentoonz
Interface Connecteur Prise Notes
desktop opentoonz:desktop :desktop -
desktop-legacy opentoonz:desktop-legacy :desktop-legacy -
home opentoonz:home :home -
network opentoonz:network :network -
network-manager opentoonz:network-manager :network-manager manual
opengl opentoonz:opengl :opengl -
pulseaudio opentoonz:pulseaudio :pulseaudio -
removable-media opentoonz:removable-media :removable-media manual
unity7 opentoonz:unity7 :unity7 -
x11 opentoonz:x11 :x11 -

@VinceFINET
Copy link
Author

Information about ffmpeg here https://forum.snapcraft.io/t/call-for-testing-opentoonz-snap/5738/27

it seems the ffmpeg is included in the snap
but i am not the only one that has issue with the proposed solution.

Still need to find a solution....

@popey
Copy link
Contributor

popey commented Jan 18, 2021

ffmpeg is included in the snap. So go to File -> Preferences -> Import/Export. Set the FFmpeg Path to /snap/opentoonz/current/usr/bin/ffmpeg.
Does that work?
Don't try and run /snap/opentoonz/current/usr/bin/ffmpeg from outside the snap, that won't work, and isn't designed to. But when opentoonz calls it, it will call it correctly.

@VinceFINET
Copy link
Author

Thank you for answering me !!

Let me show you (i may have missed something):

Preferences as you suggested:
image

image

image

Is there a command you want me to do to check any logs or something else???
Thank you

@VinceFINET
Copy link
Author

even I restarted OpenToonz same error...

@popey
Copy link
Contributor

popey commented Jan 18, 2021

My mistake, don't put /ffmpeg on the end. Just set the path to /snap/opentoonz/current/usr/bin

@VinceFINET
Copy link
Author

Same with /snap/opentoonz/current/usr/bin

image

Closing OT and then reopen

image

@VinceFINET
Copy link
Author

VinceFINET commented Jan 19, 2021

I removed the app, reinstalled from the Ubuntu software program.

Launch the program.

The log is as it is:

Jan 19 12:28:15 ASUS opentoonz_opentoonz.desktop[58398]: Qt: Session management error: Could not open network socket
Jan 19 12:28:16 ASUS opentoonz_opentoonz.desktop[58398]: QFileSystemWatcher::addPath: path is empty
Jan 19 12:28:18 ASUS audit[995]: USER_AVC pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name="org.freedesktop.NetworkManager" pid=58398 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:28:18 ASUS opentoonz_opentoonz.desktop[58398]: propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.514\" (uid=1000 pid=58398 comm=\"/snap/opentoonz/94/bin/../bin/OpenToonz \" label=\"snap.opentoonz.opentoonz (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=998 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
Jan 19 12:28:18 ASUS audit[995]: USER_AVC pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="GetDevices" mask="send" name="org.freedesktop.NetworkManager" pid=58398 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:28:18 ASUS opentoonz_opentoonz.desktop[58398]: nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.514\" (uid=1000 pid=58398 comm=\"/snap/opentoonz/94/bin/../bin/OpenToonz \" label=\"snap.opentoonz.opentoonz (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=998 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
Jan 19 12:28:18 ASUS audit[995]: USER_AVC pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=58398 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:28:18 ASUS opentoonz_opentoonz.desktop[58398]: "Object path cannot be empty"
Jan 19 12:28:18 ASUS audit[995]: USER_AVC pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=58398 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:28:18 ASUS audit[995]: USER_AVC pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=58398 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:28:18 ASUS kernel: audit: type=1107 audit(1611055698.085:1218): pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name="org.freedesktop.NetworkManager" pid=58398 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:28:18 ASUS kernel: audit: type=1107 audit(1611055698.085:1219): pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="GetDevices" mask="send" name="org.freedesktop.NetworkManager" pid=58398 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:28:18 ASUS kernel: audit: type=1107 audit(1611055698.085:1220): pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=58398 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:28:18 ASUS kernel: audit: type=1107 audit(1611055698.085:1221): pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=58398 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:28:18 ASUS kernel: audit: type=1107 audit(1611055698.085:1222): pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=58398 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"

@VinceFINET
Copy link
Author

Then i set the preference as you said. closed the program. reopened it. same error.

here are the logs:

Jan 19 12:34:01 ASUS opentoonz_opentoonz.desktop[59107]: Qt: Session management error: Could not open network socket
Jan 19 12:34:02 ASUS opentoonz_opentoonz.desktop[59107]: QFileSystemWatcher::addPath: path is empty
Jan 19 12:34:04 ASUS audit[995]: USER_AVC pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name="org.freedesktop.NetworkManager" pid=59107 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:34:04 ASUS opentoonz_opentoonz.desktop[59107]: propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.522\" (uid=1000 pid=59107 comm=\"/snap/opentoonz/94/bin/../bin/OpenToonz \" label=\"snap.opentoonz.opentoonz (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=998 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
Jan 19 12:34:04 ASUS audit[995]: USER_AVC pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="GetDevices" mask="send" name="org.freedesktop.NetworkManager" pid=59107 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:34:04 ASUS opentoonz_opentoonz.desktop[59107]: nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.522\" (uid=1000 pid=59107 comm=\"/snap/opentoonz/94/bin/../bin/OpenToonz \" label=\"snap.opentoonz.opentoonz (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=998 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
Jan 19 12:34:04 ASUS audit[995]: USER_AVC pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=59107 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:34:04 ASUS opentoonz_opentoonz.desktop[59107]: "Object path cannot be empty"
Jan 19 12:34:04 ASUS audit[995]: USER_AVC pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=59107 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:34:04 ASUS audit[995]: USER_AVC pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=59107 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:34:04 ASUS kernel: audit: type=1107 audit(1611056044.319:1223): pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name="org.freedesktop.NetworkManager" pid=59107 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:34:04 ASUS kernel: audit: type=1107 audit(1611056044.319:1224): pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="GetDevices" mask="send" name="org.freedesktop.NetworkManager" pid=59107 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:34:04 ASUS kernel: audit: type=1107 audit(1611056044.319:1225): pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=59107 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:34:04 ASUS kernel: audit: type=1107 audit(1611056044.319:1226): pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=59107 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:34:04 ASUS kernel: audit: type=1107 audit(1611056044.319:1227): pid=995 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager/Settings" interface="org.freedesktop.NetworkManager.Settings" member="ListConnections" mask="send" name="org.freedesktop.NetworkManager" pid=59107 label="snap.opentoonz.opentoonz" peer_pid=998 peer_label="unconfined"
Jan 19 12:34:12 ASUS opentoonz_opentoonz.desktop[59107]: QSettings::setValue: Empty key passed

@popey
Copy link
Contributor

popey commented Jan 19, 2021

We must be doing something different. Please explain how to reproduce this inside opentoonz. I don't need to know how to install or remove opentoonz, just exactly what you did in opentoonz, step by step.

@VinceFINET
Copy link
Author

Step 1: open "Software" program on Ubuntu
Step 2: look for OpenToonz
Step 3: select the green one (not the purple one)
Step 4: install it
Step 5: open it
Step 6: close the dialog box proposing to create a new project
Step 7: go to preferences from menu, section import/export, set ffmpeg option path to /snap/opentoonz/current/usr/bin
Step 8: close the dialog box
Step 9: close OT
Step 10: reopen OT
Step 11: same as step 6
Step 12: select the menu to "render as mp4"
Step 13: got the dialog box error

popey pushed a commit that referenced this issue Jan 19, 2021
This should fix #9
@popey popey closed this as completed in #10 Jan 19, 2021
@popey
Copy link
Contributor

popey commented Jan 20, 2021

Ok, this is now in the stable channel and works. Just make sure to set the path to ffmpeg as /snap/opentoonz/current/usr/bin and the path to save to as something sensible like /home/yourname/Videos.

@VinceFINET
Copy link
Author

So in conclusion:

  • The new version of the snapcraft opentoonz has a fix about this, thanks to @popey
  • Remember to update the snap if already installed with snap refresh opentoonz
  • And set the path of FFmpeg in preferences to /snap/opentoonz/current/usr/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants