ffmpeg is unable to open a file it has created
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 504
- Forks
- 38
- Avg merge
- 9h 44m
- Merged PRs (30d)
- 9
Description
this is on a larger video keep that in mind the audio and video I used for input is ~30min long
here is the console output
`
[image2 @ 000001fa64223580] Could not open file : C:\Users\kamil\AppData\Local\Temp\tmpkvu1s3ml\frames\frame027618.png
av_interleaved_write_frame(): I/O error
Calculating video length
Separating video frames
Traceback (most recent call last):
File "G:\odds and ends\stammer-main\stammer.py", line 285, in
main()
File "G:\odds and ends\stammer-main\stammer.py", line 281, in main
process(**vars(args))
File "G:\odds and ends\stammer-main\stammer.py", line 207, in process
subprocess.run(
File "C:\Users\kamil\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ffmpeg', '-loglevel', 'error', '-i', WindowsPath('Visions.mp4'), WindowsPath('C:/Users/kamil/AppData/Local/Temp/tmpkvu1s3ml/frames/frame%06d.png')]' returned non-zero exit status 1.
`
I have tried this script with smaller videos and it has worked but for this larger project it ends up failing with this error
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at stammer.py line 207 and inspect the ffmpeg frame-output command; reproduce the failure with a roughly 30-minute input while checking the generated frame path when ffmpeg reports the I/O error. Done means frame extraction completes successfully for the larger video without the reported failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100