Support SFMLab on Patreon

aregeecs' ffmpeg 4 dummies scripts


Description

These are some simple scripts for windows users that let you convert animation image sequences or video files into some properly compressed MP4 or WEBM files and have some thumbnails made as well.

Also comes with a batch convert feature if you need to convert lots of legacy stuff.

For advanced users I suggest using AviDemux or MeGui to make individually fine-tuned MP4 files.

Instructions on how to use:
http://aregeecs.tumblr.com/tutorial-sfm-video-files (this should be most up to date version of the manual)
also mirror here on sfmlab:
https://sfmlab.com/guides/read/5/



Comments

Same here

red5101 posted 4 years ago

aregeecs

Check that ffmpeg is in the directory where the SCRIPTs are, then check that you followed the naming pattern for the image files and the .name file exactly, or what you describe happens. Otherwise put "pause" at the end of the script so it stops and attach a screenshot of what you get there so I can comment on your error.

aregeecs posted 4 years ago

Hey, I'm not sure if you're still checking this, but I'm having the same problem those guys above were having. I dragged and dropped your scripts into the ffmpeg folder, then dragging my FILENAME.txt onto the scripts, and it goes through a chunk of text and closes itself-- it only generates the folders, but no files. I tried putting "pause" at the end of the script, but it doesn't stop the .bat file from closing. Would appreciate the help! Thanks!

fellowfromthenorth posted 4 years ago

Actually, I just made a stupid mistake and put the scripts in the wrong folder (didn't see the bin folder, where ffmpeg's really located). However, now when I drag and drop it, it shows me a series of error messages telling me the files/directories it's trying to create cannot be found.

fellowfromthenorth posted 4 years ago

So I figured it out. But for future reference for anyone else with the problem of the the program running and closing itself without creating any video files after generating the folders: Make sure the filename is like, FILENAME000111.png (it needs to have 6 digits after filename), and start with 1-4 (in case you skip some frames in your export). I used a batch file rename-er and that fixed my problem for me.

fellowfromthenorth posted 4 years ago

aregeecs

Sorry, I wasn't around the internet this week, so I could not address your difficulties earlier. Yes what you describe are common problems that people have had, this just happens with super simple command line things. Thank you for adding how you alleviated the issues you ran into to the comment section, this is a good example for other users that the naming and placing details as described in the tutorial for the scripts must be followed to the letter since the simplistic batch scripting isn't any good to check for these automatically.

aregeecs posted 3 years, 12 months ago

Jujala

Don't want to come off as an idiot, but is there a way to convert the image sequence with sound or how would I go about editing it in?

Jujala posted 3 years, 11 months ago

Jujala

OK forget it, figured it out myself, there are command lines for merging video and audio files in ffmpeg and as the uninformed idiot that is me, I didn't know that. ffmpeg -i video.mp4 -i audio.m4a -c:v copy -c:a copy output.mp4 [Link](http://davidwalsh.name/combine-audio-video). You'll also need to change the .wav file into a m4a format. ffmpeg -i input.wav -strict experimental -c:a aac -b:a 240k output.m4a [Link](http://trac.ffmpeg.org/wiki/Encode/AAC) I'm aware most people probably already know that, I just post this on the off-chance another idiot like me had the same question.

Jujala posted 3 years, 11 months ago

1

hisrqjfx posted 4 months, 2 weeks ago


Leave a reply

You need to be logged in to leave a comment.

Support SFMLab on Patreon