Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
Registered User
Join Date: May 2013
Posts: 31
|
Extracting frames from mp4 clip using ffmpeg
Hi, I'm using ffmpeg to extract all frames contained in a 10 seconds mp4 file (avc/no audio), this is the syntax of the bat file (name: "extract-frames.bat"):
Code:
ffmpeg -i input.mp4 -r 1 output%05d.png pause Code:
[image2 @ 022fcce0] Could not open file : outputC:\Jan2014\01\extract-frames.bat5d.png av_interleaved_write_frame(): Input/output error I was following this example: http://www.alecjacobson.com/weblog/?p=2102 |
|
|
|
|
|
#2 | Link |
|
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,275
|
Found this with a quick Google search:
FFMPEG - Making an Image Sequence from a video Code:
ffmpeg -i "input.mov" -an -f image2 "output_%05d.jpg"
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 10th February 2014 at 16:48. |
|
|
|
|
|
#3 | Link |
|
Registered User
Join Date: May 2013
Posts: 31
|
The problem is that %0 in batch always causes the same issue, even with that command line:
Code:
[image2 @ 024ad520] Could not open file : output_C:\Jan2014\01\extract-frames.bat5d.jpg av_interleaved_write_frame(): Input/output error Edit: tried with latest build from here but the problem is the same, probably %0 shouldn't be used. Last edited by Nozdrum; 10th February 2014 at 17:37. |
|
|
|
|
|
#4 | Link | |
|
Registered User
Join Date: May 2013
Posts: 31
|
Quote:
Code:
ffmpeg -i "input.mov" -an -f image2 "output_%%05d.jpg" |
|
|
|
|
|
|
#6 | Link |
|
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,407
|
Try adding a "-start_number 0" parameter.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
|
|
|
![]() |
| Tags |
| batch, extract, ffmpeg, frames, mp4 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|