-
Notifications
You must be signed in to change notification settings - Fork 62
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
empty gif after ffmpeg error "Number of frames to loop is not set" #168
Comments
Ok, I have extracted the precise ffmpeg commandline executed by vhs: ffmpeg -y -r 50 -start_number 1 -i /tmp/vhs3763011057/frame-text-%05d.png -r 50 \
-start_number 1 -i /tmp/vhs3763011057/frame-cursor-%05d.png -f lavfi -i \
color=#171717:s=1200x1000 -i /tmp/vhs3763011057/bar.png -i /tmp/vhs3763011057/mask.png \
-filter_complex "[0][1]overlay[merged]; [merged]scale=1080:850:force_original_aspect_ratio=1[scaled];
[scaled]fps=50,setpts=PTS/1.000000[speed];
[speed]pad=1200:970:(ow-iw)/2:(oh-ih)/2:#29283b[padded];
[padded]fillborders=left=60:right=60:top=60:bottom=60:mode=fixed:color=#29283b[padded] ;
[3]loop=-1[loopbar]; [loopbar][padded]overlay=0:30[withbar] ;
[4]loop=-1[loopmask]; [withbar][loopmask]alphamerge[rounded] ;
[2]scale=1200:1000[bg]; [bg][rounded]overlay=(W-w)/2:(H-h)/2:shortest=1[withbg] ;
[withbg]split[plt_a][plt_b]; [plt_a]palettegen=max_colors=256[plt];
[plt_b][plt]paletteuse[palette]" -map "[palette]" demo.gif I also saved the dir I also looked if the provided frame and cursor images matched - they did, that is, no image was missing. There were 14514 text and 14514 cursor frames. |
Hey @TLINDEN thanks for the issue! Isn't this issue part of VHS repo (https://github.com/charmbracelet/vhs/) instead of freeze? |
Closing this one in favor of charmbracelet/vhs#581 |
Describe the bug
I have made a rather long tape file which worked fine up to a certain point. But I am unable to find the section of the file which causes the issue. If I comment out all sections, only let one section uncommented and then execute vhs, then it works every time. However, if all sections are enabled, then it fails. So I think the tape file has no errors.
When the issue happens, an empty gif will be created and ffmeg shows an error message.
To Reproduce
Steps to reproduce the behavior:
git checkout feature/vhs-demo
go build
cd demo
make
(this actually executesvhs
)Expected behavior
A gif should have been created.
Screenshots
Desktop (please complete the following information):
vhs version v0.9.0 (a5f09b2)
Additional context
Many thanks for this awesome program, I love it! :)
The text was updated successfully, but these errors were encountered: