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

Corrupted video freeze when start write audio file #1890

Open
FisherWooD opened this issue Jan 4, 2023 · 2 comments
Open

Corrupted video freeze when start write audio file #1890

FisherWooD opened this issue Jan 4, 2023 · 2 comments
Labels
audio Related to AudioClip, or handling of audio in general. bug Issues that report (apparent) bugs.

Comments

@FisherWooD
Copy link

FisherWooD commented Jan 4, 2023

if orginal files corrupted. When use
write_videofile
.audio.write_audiofile
clip.audio

when progress start freeze endless. Not response any error. I Think this is bug. I fix this problem extra ffmpeg code but waste of time with extra code. please fix.

my corrupted check without freeze

`
def CorruptedCheck(inputfile):

cmd = f"ffmpeg -y -i {inputfile} -q:a 0 -map a CorruptedCheck.mp4"
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,shell=True,universal_newlines=True)
for line in process.stdout:
    if "Error while decoding stream" in str(line):
        return False
         
return True`
@FisherWooD FisherWooD added the bug Issues that report (apparent) bugs. label Jan 4, 2023
@SCZwangxiao
Copy link

I have the same problem when resizing this sample video.

# load video
clip_new = clip.resize(height=256) 
clip_new.write_videofile({new_filename})

It stucks at 50%

@keikoro keikoro added the audio Related to AudioClip, or handling of audio in general. label Feb 6, 2023
@keikoro
Copy link
Collaborator

keikoro commented Feb 6, 2023

Please always include your specs like we ask for in our issue templates (MoviePy version, platform used etc.) as well as code samples for reproducability and complete logs for errors where applicable, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio Related to AudioClip, or handling of audio in general. bug Issues that report (apparent) bugs.
Projects
None yet
Development

No branches or pull requests

3 participants