#1882 RuntimeError: submitting a packet to the muxer: Bad file descriptor muxing a packet writing trailer: Bad file descriptor

191.6* Posted at: 20 hours ago 👁14

Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 227, in runffmpeg
File "subprocess.py", line 524, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-fflags', '+genpts', '-i', 'E:/arquivo convertido/1 Girl Vs 30 Boys.mp4', '-an', '-c:v', 'libx264', '-crf', '20', '-preset', 'fast', 'D:/win-pyvideotrans-v3.86/tmp8860/99309b44e9/novoice.mp4']' returned non-zero exit status 4294967287.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\simple_runnable_qt.py", line 12, in run
File "videotrans\task\trans_create.py", line 607, in _split_novoice_byraw
File "videotrans\util\help_ffmpeg.py", line 272, in runffmpeg
RuntimeError: submitting a packet to the muxer: Bad file descriptor muxing a packet writing trailer: Bad file descriptor closing file: Bad file descriptor


=
system:Windows-10-10.0.22631-SP0
version:v3.86
frozen:True
language:en
root_dir:D:/win-pyvideotrans-v3.86

1 Replies

The error "Bad file descriptor" during the ffmpeg processing step is typically caused by an issue with the input video file path or the output directory permissions.

Based on the error log, the problematic command is trying to process a file at 'E:/arquivo convertido/1 Girl Vs 30 Boys.mp4'. The most likely cause is that the file path contains a space (1 Girl Vs 30 Boys.mp4), which can cause issues with command-line tools like ffmpeg when not properly handled.

Please follow these steps to resolve the issue:

  1. Rename the Source File: Rename your video file to remove the spaces. For example, change 1 Girl Vs 30 Boys.mp4 to 1_Girl_Vs_30_Boys.mp4 or 1GirlVs30Boys.mp4.
  2. Move the File (Optional but Recommended): Place the renamed file in a simple directory path on your D: drive, such as D:/videos/. Avoid using the E:/arquivo convertido/ path if it contains special characters or spaces.
  3. Re-process: In pyVideoTrans, add the renamed file from its new location and start the process again.
  4. Clear Cache: Ensure the "Clean generated files" checkbox on the main interface is checked before starting, to prevent using any corrupted cached data from the previous failed attempt.

If the problem persists after these steps, please check if the D:/win-pyvideotrans-v3.86/ directory has write permissions, and ensure no other program is locking the video file.

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions