Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Ffmpeg
# 1  
Old 10-30-2017

Hello everyone, I am new here so forgive me if this is in the wrong place. I am new to shell script and am trying to write a script to use with a program called ffmpeg. Would this be something I could get help with here?

 set /p VIDEO=Enter full name of video file on desktop:
md "%userprofile%\desktop\frames"
ffmpeg.exe -y -i "%userprofile%\desktop\%VIDEO%.mp4" -an -r 10 "%userprofile%\desktop\frames\img%%3d.jpg"

This allows you to paste the name of an mp4 file in the window and it will automatically make a folder and print out a frame by frame of the video in it. This was given to me and I added the little mp4 extension to it but that is as far as I can go. Would anyone here be able or willing to show me how to edit this further to do a few other things?

Thank you all for your time and help.

Last edited by Don Cragun; 10-30-2017 at 07:10 PM.. Reason: Add CODE and ICODE tags.
# 2  
Old 10-30-2017
What operating system are you using?

What shell are you using?

The code you have shown us looks more like it was intended to be processed by a Windows command line interpreter than by a UNIX shell.
# 3  
Old 10-31-2017
Hello yes it opens a windows promp I guess. Like I said this is not the kind of stuff I do and am trying to learn it. I went to google a search for forums on shell scripting and this forum popped up so I came here for help. Am I in the wrong place?
# 4  
Old 10-31-2017
Originally Posted by junorich
Hello yes it opens a windows promp I guess. Like I said this is not the kind of stuff I do and am trying to learn it. I went to google a search for forums on shell scripting and this forum popped up so I came here for help. Am I in the wrong place?
you are at a UNIX & Linux Forum!
# 5  
Old 10-31-2017
Im sorry. I did knot know there was a difference in the code. As I said, I am brand new at this and this forum came up first. Please excuse the improper intrusion.
# 6  
Old 10-31-2017
We actually have a Windows & DOS subforum but this isn't it. Moving thread.
This User Gave Thanks to Corona688 For This Post:
# 7  
Old 10-31-2017
Awesome. Thank you very much Smilie
This User Gave Thanks to junorich For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To call ffmpeg in a loop

Hello, I was inquiring myself if it's possible to call ffmpeg in loop, an in each iteration, ffmpeg will pick one of the files in a directory and produce a new with a slightest different name. Can be as simple as a '*' in the beginning of the file name. I know how to use ffmpeg to do the... (2 Replies)
Discussion started by: colt
2 Replies

2. UNIX and Linux Applications

Slideshow with ffmpeg converter

Hi, everyone! I'm on a Debian 9.0 GNU/Linux machine. I'm not a very experienced user, but I do my best to learn. So, I have a bunch of images PNG files. I'm trying to make a slideshow with these using the ffmpeg video converter. I also have an audio WAVE stereo file which I'd like to merge... (0 Replies)
Discussion started by: worov
0 Replies

3. Windows & DOS: Issues & Discussions

FFMPEG command problem...

Hi, Currently having some trouble with FFMPEG.... I have the following files: 0001_.gif 0002_.gif ............. 0584_.gif 0585_.gif 0586_.gif 0587_.gif 0588_.gif 0589_.gif 0590_.gif 0591_.gif And am trying to use ffmpeg to join them to a video as follows: (7 Replies)
Discussion started by: pasc
7 Replies

4. Shell Programming and Scripting

a playlist for ffmpeg streamer

Hi, I hope I am posting in the right place. I use to stream to justin tv using ffmpeg with that command ffmpeg -re -i "path/to/input.avi" -vcodec libx264 -preset fast -crf 30 -acodec libfaac -ab 128k -ar 44100 -f flv rtmp://live.justin.tv/app/xxxxxxxxxxx I would like to know if a bash... (2 Replies)
Discussion started by: undercash
2 Replies

5. UNIX for Dummies Questions & Answers

FFMPEG install problem on Unix

Guys, I'm new on Unix and I was hoping you could help me installing ffmpeg on Apple TV 1st Gen, which is a Unix based OS. This is the version of Unix. Darwin AppleTV.local 8.8.2 Darwin Kernel Version 8.8.2: Mon Jan 29 18:57:29 PST 2007; root:xnu-792.94.18~1/RELEASE_I386 i386 i386 I was... (6 Replies)
Discussion started by: ferrarih
6 Replies

6. Shell Programming and Scripting

FFMPEG in linux box

Hi all, I have successfully used ffmpeg.exe in windows. But i dont know how to use it in linux:confused:. When i tried running a java program in linux using ffmpeg, I am getting, the following error even after having that ffmpeg.exe in my classpath: "java.io.IOException: java.io.IOException:... (3 Replies)
Discussion started by: ananthi_ku
3 Replies

7. OS X (Apple)

Video grab using ffmpeg?

Does anyone know how to grab video (screen) on Terminal using ffmpeg (not X11). I have written a unix library and I'd like to make a short movie (demo) of it. Tried: I already own SNapz Pro2 but it hangs the system (I have an old Powerbook 15" PPC). I guess my system is too slow for version... (0 Replies)
Discussion started by: sentinel
0 Replies

8. UNIX for Dummies Questions & Answers

Completing ffmpeg installation

Hello. i am new to unix, though have quite a substantial background of other systems. i recently installed ffmpeg and mencoder on a unix server, which holds a website, in order to use these programs from the website. after installation, i can activate both commands directly using putty, no... (1 Reply)
Discussion started by: noamon
1 Replies
Login or Register to Ask a Question

Featured Tech Videos