morevnaproject-org / papagayo-ng

Papagayo is a lip-syncing program designed to help you line up phonemes (mouth shapes) with the actual recorded sound of actors speaking. Papagayo makes it easy to lip sync animated characters by making the process very simple - just type in the words being spoken (or copy/paste them from the animation's script), then drag the words on top of the sound's waveform until they line up with the proper sounds.
236 stars 51 forks source link

Appimage: Dragging elements in waveform view do not snap to frames #46

Closed morevnaproject closed 3 years ago

morevnaproject commented 6 years ago

Dragging elements (phonemes, words, phrases) in waveform view do not snap to frames. Their boundaries stay somewhere in between of frames. As result, later Papagayo fails to export into .dat file with error:

Traceback (most recent call last):
  File "/tmp/.mount_1A9bvo/usr/opt/papagayong/LipsyncFrame.py", line 662, in OnVoiceExport
    self.doc.currentVoice.Export(dlg.GetPaths()[0])
  File "/tmp/.mount_1A9bvo/usr/opt/papagayong/LipsyncDoc.py", line 363, in Export
    for frame in range(startFrame, endFrame + 1):
TypeError: 'float' object cannot be interpreted as an integer

This happens on Appimage only. Appimage uses wxPhoenix 4.0.0a2.

This doesn't happens when running from source with native ptyhon-wxgtk3.0 package v3.0.2.0 (Ubuntu).

Screenshot (after drag) - notice elements are not aligned with frame marks: screenshot_002

morevnaproject commented 6 years ago

Possibly related with #45

morevnaproject commented 6 years ago

While this problem is not fixed, here are two workarounds:

1. This problem not happens if you will use a version from GitHub - https://github.com/morevnaproject/papagayo-ng/archive/master.zip You need download and unpack it manually. Then, you will need to install required packages: sudo apt-get install python-pyaudio python-wxgtk3.0 After that you can run the application. Open terminal and cd into the dir where you unpacked it. Then call the following command: python3 ./papagayo-ng.py

2. If you still want to stick with appimage, there is also a workaround.

Before exporting to .dat file, save your work as .pgo file - just hit "Save" button at the top-left corner of the window: screenshot_003

After saving, re-open the file you you just saved - click the "Open" button in the top-left corner: screenshot_004

When file will be re-loaded you will see all elements in waveform view are properly aligned to frames and you will be able to export it to .dat without a problems.

steveway commented 5 years ago

I believe the dragging problems should be fixed with my pullrequest: https://github.com/morevnaproject/papagayo-ng/pull/55

morevnaproject commented 5 years ago

I need to build new appimage and test that. Depends on https://github.com/morevnaproject/papagayo-ng/issues/43. Thanks!

steveway commented 3 years ago

We got some new Appimages, as far as I know this bug does not apply anymore.