Audio Glitch? Help, please! 3:

Uh, I don’t know if this is a bug or just something on me, but the audio feature on Pencil2D is a little scuffy for me. If you’ve imported audio with Pencil 2D, you’d know that a salmon-coloured bar appears in that section. Well, when I import it, a singular square does. I can play the audio once, but it does not work after that. (If this isn’t a bug on my end, I will feel incredibly dumb.) I’ve tried reinstalling the software, and I would have downgraded to a lower version, but I cannot.

If this is a bug, I need help-. :<

@Meow Hello! Welcome to the forum and thank you for reporting.

Just in case you’re using an older version of Pencil2D, please make sure you have downloaded the most recent version of the software by visiting Download | Pencil2D Animation

In these cases it’s also useful for the developers to also state some if your computer hardware specs.

To avoid the hassle of checking various places for this info you can go to the Pencil2D Help Menu > And click on the “About” command.

This will bring forth a pop-up window that shows some information, including some minimal tech info that will help with the troubleshooting steps.


About Info Panel

Please press the “[ Copy to Clipboard ]” button, this will copy the info on the white background pane of the window, which you can then immediately paste to a .txt file (Use the Notepad App on Windows / TextEdit on Mac) or just paste it directly in your next forum reply.

Troubleshooting

Try to import the audio files that are giving you trouble into a completely new file. If you have many sounds, import them in separate sound layers just to be safe.

Immediately after try to play the sound without moving the playhead / time needle. If the sound plays ok, use the Jump To The Start arrow button to move the playhead to the start and the try to play again.

image

This should allow you to hear the sound again. If not, please report on this, and if possible please share the sound files with us so we can investigate further. Thanks!

Sorry to contradict you Jose, but when I’m in college I run the latest version of Pencil2D Version 0.7.939, I get the same situation described by Meow. The college computer runs Windows 7 Enterprise. Also I don’t have ownership of files outside my user partition.

But when I use the same version of Pencil2D on my personal laptop running Windows 11, I get a different result. After the loading of the audio file, the sound layer shows a rectangle if the correct length of the file.

I think that Meow should be asked to confirm the version of Windows being used. It might be instructive for Meow to examine the link below.

https://www.google.com/search?client=firefox-b-d&q=microsoft+user+types

Here’s the copy and paste that you wanted:

Version: 0.7.0.939

commit: 7a0918f8baca1a090c1d58b29b13c70e11d564bf date: 2024-07-12_16:00:42

Operating System: Windows 10 Version 2009 CPU Architecture: x86_64 Qt Version: 5.15.2

I’ve tried troubleshooting and it still doesn’t work. I’m also on the latest version of Pencil2D.

1 Like

I still haven’t figured this out. For more information, if I have, for example, 1,000 frames on my project and import the sound I can hear all of it if the audio were to take up less than 1,000 frames. I would only be able to listen to it once, though. The audio bar would also still be one square.

@Meow Hi. I’ll be honest I’ve been testing loading audio files and playing them on the exact same version you shared, but I can’t reproduce the issue. I even have a “home” version of windows which should be a bit more limited, but it still works ok.

If it’s possible for you, please send me the exact audio file you’re using via PM so I can test it and share it with the developers. Otherwise it will be hard to narrow down what exactly the problem might be, and even then it might be a computer specific issue.

While we have time to check on this, if you need to finish your work soon I will suggest you to add the BGM and SFX tracks after you finish the animation using a video editor.

There are some free you can use even commercially and have a lot of YT tutorials. Links below:

Jose have you considered the possibility that the problems are caused by 2 or more faults?

My experience, I have the problem with the single square, not expanding to a bar, who’s length represents the length of the sound file in frames.

But the sound plays and scrubs correctly. The above problems I think arises because of file access rights problems. Because it doesn’t happen when I’m logged in as an Administrator level user on my personal laptop and does happen when I’m in college, where I’m a normal user, with restricted file access rights to some files, including the drivers etc.

I have never, as far as I know have never experienced problems when exporting .MP4 files in these situations.

Jose when you are carrying out tests, to attempt to find the problem are you an Administrator level user?

@Starter Hi. I’ve tested with guest accounts with limited permissions and admin user accounts. I’m testing on a newly purchased Lenovo Laptop under Win 11 Home edition with minimal user configuration. Windows 10 (user) is not that different from Windows 11 in terms of functionality, and in fact Win 11 is more strict to run third party software (i.e not downloaded from MS Store) but unfortunately for us, I’ve had no issue on my end while loading an assortment of MP3’s and odd sound files from previous user reports.

The thing is for loading sound files the only real restriction stemming from user account access rights could be that their account has no write permissions of any kind, so loading the sound file would not be possible to be written in the temporary file directory created by Pencil2D for the work session, however if this were the case they shouldn’t even be able to install Pencil2D at all, unless they’re running from a USB stick, and even then it might not be possible to run the app if Windows SmartScreen & UAC stops execution.

Of course, we have seen users in the past that had problems with OS permissions which affected Pencil2D functionality, but right now it’s not clear if this is the case since sound is the only problem being reported, not app execution.

We’ve also had similar reports before, that is, users loading a sound and not being able to hear anything. Or hearing it just once, specifically.

The former issue was usually caused by sounds (i.e MP3’s) that had a patented codec. Open source MP3 encoding tend to use L.A.M.E encoding, whereas MP3’s ripped from DVD’s or streaming sites often have patented codecs that aid DRM capabilities (to avoid piracy). The encoding issue was fixed by forcing Pencil2D to convert any sound file to WAV files in the background before the user can play them.

For the latter issue, we have never found the root cause, nor solution. The closest issue I’ve personally experienced is one where the audio playback can be cutoff during playback. This happens explicitly after the user “scrubs” through a sound partially, then immediately plays the animation timeline from the start by using playback controls. In such instance the last sound that was scrubbed over with the playhead (time needle) will start playing exactly where the scrub left off even if the sound is longer. So for the rest of the duration you’ll hear silence.

At this point, for the original poster, I’m afraid it’s too soon to know what is happening, and in past instances we have not been able to determine the root cause. Right now the potential problems I can think of from the current exchange boil down to:

  1. Hardware driver configuration issues against Pencil2D
  2. Sound interface software incompatibility with Pencil2D’s Qt6 framework
  3. Specific audio file is retaining metadata after background conversion which fails the playback specifically with Pencil2D
  4. Specific audio file has bad data chunks (corrupt) that fails the audio playback engine used in Pencil2D
  5. 3rd party app that prevents runtime execution of any linked software (like what you see in schools, privately secure environments or overzealous antivirus apps like Norton or McAfee real time shields)

Since it is uncertain what could be happening, that’s why I also recommended them to use a video editor to add the sound after finishing the animation, since it’s a common practice.

I’m currently away from home, but when I get back college I’ll investigate the configuration and the user settings of the system, of the computers is the library and the computer center.

The computer upon which Pencil2D away from colllege operates as required. It is a PC with 4 Gbytes of memory and 256 Gbytes of SSD. It uses Windows 11 Home and Pencil2D is stored in the main programs directory. I’m the only user, so I own all the files and have full access rights.

I’ve recently started to use Pencil2D using Linux Mint Cinnamon version. I will test out Pencil2D and see it it operates as expected using sound files.

When using the college systems, I’m using Pencil2D in portable mode, i.e the files are, in a directory on the Desktop.

Hi Jose

I think I’m getting a better understanding of what’s happening. I agree with you that the Pencil2D executable functions correctly.

The problems lie in the interactions between the Pencil2D executable and helper programs like ffmpeg. As I mentioned in an earlier post, I’m currently using a computer which runs Linux Mint. Initially I installed the Linux version of Pencil2D from the 64bit Linux link on the Pencil2D website and the problems were simular to those I experienced on the college network computer.

I could run the animation including sound using the play key within Pencil2D, but I couldn’t export the animation as an .MP4 or .GIF without a crash! An onscreen error message, from Linux Mint informed me that the crash happened due to problems calling ffmpeg.

After reinstalling Pencil2D from a flatpack file, using the flatpack installation software within Linux Mint, everything now works correctly!

I hope this message is helpful.

@Starter Thank you for your help and willingness to test this issue.

Knowing that the Linux 64bit Appimage might be having similar issues might help find further clues on this problem, but will require a separate review and troubleshooting session. For now I’ll put it in my own backlog so I can properly check later after I test the windows reports.

Since the dev team should now be aware of these issues (both threads), I’ll be testing again with the intent to find a potential workaround meanwhile we track the root cause. That said it will definitely take time to find a definitive solution.

Have a great rest of the week / weekend :+1:

I think Jose has misunderstood my latest posting.

I’ve found the download of both the Windows and Linux versions, of the Pencil2D executables, when installed correctly on my personal laptop works correctly.

But on the college computer system doesn’t, I have come to the conclusion that the problem is access rights to ffmpeg files.

When I installed the Linux version initially, I didn’t do the instruction correctly. The faults I experienced were the same type as on the college system. This uses Windows 7 Enterprise. I’m a system user and only have ownership of files in my personal directory.

The error messages on Linux Mint are much better than Windows 11 and they point to inability to access ffmpeg and other supporting programs.