Thank you everyone for your valuable feedback and apologies for the late response, I could not access my files over the weekend. I am a step closer. The video is saved now but empty, length is 00:00:00.
@dos...@gmail.com I included a second line command with your suggestion but still did not work. winexec "C:\FFmpeg\bin\ffmpeg.exe" -report -i "C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png" -b:v 2048k "C:\Users\analyst\Desktop\STATA\projects\animation3\map_video.mpg" winexec "C:\FFmpeg\bin\ffmpeg.exe" -report -f concat -safe 0 -i "C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png" -maxrate 30000k -y "C:\Users\analyst\Desktop\STATA\projects\animation3\map_video1.mpg" Thank you, On Sat, 7 Dec 2019 at 00:43, Dan Bridges <dos...@gmail.com> wrote: > On 7/12/2019 11:49 am, Anwuli Okwuashi wrote: > > [image2 @ 000001d077c4a440] Could find no file with path > > 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph%02d.png' and > > index in the range 0-4 > > > I created a 1500x1000 1000-image set: Sequence_000.png -> > Sequence_999.png. This loads fine using at the start of the command line: > > ffmpeg -i Sequence_%03d.png > > This will also work if the sequence numbers are inside the filename: > > ffmpeg -i 0191107-154%03d-214.png > > But if you rename the first 5 files to: _Sequence_000.png ... > _Sequence_004.png it will fail because the first file starting with > Sequence is now Sequence_005.png. > > Renaming _Sequence_004.png -> Sequence_004.png will allow the remaining > 995 files in the sequence to load. > > If you can not batch rename the sequence to start from 00 or if it is a > non-contiguous list because you deleted some damaged/missing images, you > can tell FFMPEG to load a list of filenames. This has to be in a > particular 1 or 2-line format (if including image duration). > > For example, I've deleted the first 83 images, substituted a > Replacement.png, and the remaining image names jump by 3. Then I created > a list of filenames. > > To create such a list in Windows, I use create_list.bat, here designed > to look in the "Sequence Directory", beneath the current directory > ("C:\test directory"), where the images files are situated, create a > 2-line name-sorted list where the 2nd line is the duration in secs (1 > frame at 25fps = 40ms), and then load this list in the associated text > editor so you can delete or move blocks, change durations etc., if > required. > > @echo off > SETLOCAL EnableDelayedExpansion > if exist mylist.txt del mylist.txt > for %%I in ("Sequence Directory\*.png") do (echo file '%%~fI' >> > mylist.txt & echo duration 0.04 >> mylist.txt) > start /i mylist.txt > > The first 4 files in the list: > > file 'C:\test directory\Sequence directory\Replacement.png' > duration 0.04 > file 'C:\test directory\Sequence directory\Sequence_0083.png' > duration 0.04 > file 'C:\test directory\Sequence directory\Sequence_0086.png' > duration 0.04 > file 'C:\test directory\Sequence directory\Sequence_0089.png' > duration 0.04 > > If you decrease the duration below 0.04 @25fps FFMPEG will start to drop > frames. Conversely, if you go above 0.04, it will start to replicate > frames. > > To use this list: > > ffmpeg.exe -f concat -safe 0 -i "C:\test directory\mylist.txt" -maxrate > 30000k -y "C:\test directory\Sequence directory"\map_video6.mpg > > > Dan. > > > > > > > > > > > > * > * > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
ffmpeg started on 2019-12-09 at 11:43:47 Report written to "ffmpeg-20191209-114347.log" Log level: 48 Command line: "C:\\FFmpeg\\bin\\ffmpeg.exe" -report -f concat -safe 0 -i "C:\\Users\\analyst\\Desktop\\STATA\\projects\\animation3\\graph_%d.png" -maxrate 30000k -y "C:\\Users\\analyst\\Desktop\\STATA\\projects\\animation3\\map_video1.mpg" ffmpeg version git-2019-12-06-b66a800 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 9.2.1 (GCC) 20191125 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf libavutil 56. 36.101 / 56. 36.101 libavcodec 58. 64.101 / 58. 64.101 libavformat 58. 35.101 / 58. 35.101 libavdevice 58. 9.101 / 58. 9.101 libavfilter 7. 67.100 / 7. 67.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Splitting the commandline. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'concat'. Reading option '-safe' ... matched as AVOption 'safe' with argument '0'. Reading option '-i' ... matched as input url with argument 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png'. Reading option '-maxrate' ... matched as AVOption 'maxrate' with argument '30000k'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option 'C:\Users\analyst\Desktop\STATA\projects\animation3\map_video1.mpg' ... matched as output url. Finished splitting the commandline. Parsing a group of options: global . Applying option report (generate a report) with argument 1. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input url C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png. Applying option f (force format) with argument concat. Successfully parsed a group of options. Opening an input file: C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png. [concat @ 0000013510eaaf40] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png' for reading [file @ 0000013510eab7c0] Setting default whitelist 'file,crypto' C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png: No such file or directory ] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2768340] Statistics: 140372 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_4.png' for reading [file @ 000001aad27682c0] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad27b5800] Statistics: 140454 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_5.png' for reading [file @ 000001aad27b5800] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad27d7f00] Statistics: 142194 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_6.png' for reading [file @ 000001aad27d7f00] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad27fad40] Statistics: 141717 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_7.png' for reading [file @ 000001aad2ca2b40] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2ca2c40] Statistics: 141671 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_8.png' for reading [file @ 000001aad2ca2c00] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2cc5800] Statistics: 143004 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_9.png' for reading [file @ 000001aad2cc5800] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2ce8900] Statistics: 142778 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_10.png' for reading [file @ 000001aad2ce8900] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d0b980] Statistics: 142806 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_11.png' for reading [file @ 000001aad2d0b980] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d2e9c0] Statistics: 142813 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_12.png' for reading [file @ 000001aad2d2e9c0] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d52a00] Statistics: 142858 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\anlayst\Desktop\STATA\projects\animation3\graph_13.png' for reading [file @ 000001aad2d52a00] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d75a00] Statistics: 142858 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_14.png' for reading [file @ 000001aad2d52a00] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d75a00] Statistics: 142858 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\anlayst\Desktop\STATA\projects\animation3\graph_15.png' for reading [file @ 000001aad2d52a00] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d75a00] Statistics: 142858 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_16.png' for reading [file @ 000001aad2d52a00] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d75a00] Statistics: 142858 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_17.png' for reading [file @ 000001aad2d52a00] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d75a00] Statistics: 142858 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_18.png' for reading [file @ 000001aad2d52a00] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d75a00] Statistics: 142858 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_19.png' for reading [file @ 000001aad2d52a00] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d75a00] Statistics: 142858 bytes read, 0 seeks [image2 @ 000001aad273a440] Opening 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_20.png' for reading [file @ 000001aad2d52a00] Setting default whitelist 'file,crypto' [AVIOContext @ 000001aad2d75a00] Statistics: 142858 bytes read, 0 seeks Input #0, image2, from 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png': Duration: 00:00:00.80, start: 0.000000, bitrate: N/A Stream #0:0, 20, 1/25: Video: png, rgb24(pc), 499x786, 25 fps, 25 tbr, 25 tbn, 25 tbc Successfully opened the file. Parsing a group of options: output url C:\Users\analyst\Desktop\STATA\projects\animation3\map_video.mpg. Applying option b:v (video bitrate (please use -b:v)) with argument 2048k. Successfully parsed a group of options. Opening an output file: C:\Users\analyst\Desktop\STATA\projects\animation3\map_video.mpg. [file @ 000001aad2769300] Setting default whitelist 'file,crypto' Successfully opened the file. detected 12 logical cores Stream mapping: Stream #0:0 -> #0:0 (png (native) -> mpeg1video (native)) Press [q] to stop, [?] for help cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) [graph 0 input from stream 0:0 @ 000001aad2d0b900] Setting 'video_size' to value '499x786' [graph 0 input from stream 0:0 @ 000001aad2d0b900] Setting 'pix_fmt' to value '2' [graph 0 input from stream 0:0 @ 000001aad2d0b900] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 000001aad2d0b900] Setting 'pixel_aspect' to value '0/1' [graph 0 input from stream 0:0 @ 000001aad2d0b900] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 000001aad2d0b900] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 000001aad2d0b900] w:499 h:786 pixfmt:rgb24 tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2 [format @ 000001aad27d7e80] Setting 'pix_fmts' to value 'yuv420p' [auto_scaler_0 @ 000001aad2f13700] Setting 'flags' to value 'bicubic' [auto_scaler_0 @ 000001aad2f13700] w:iw h:ih flags:'bicubic' interl:0 [format @ 000001aad27d7e80] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 000001aad27fc140] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed [auto_scaler_0 @ 000001aad2f13700] w:499 h:786 fmt:rgb24 sar:0/1 -> w:499 h:786 fmt:yuv420p sar:0/1 flags:0x4 [mpeg1video @ 000001aad2768a00] intra_quant_bias = 96 inter_quant_bias = 0 [mpeg @ 000001aad2ea2f40] VBV buffer size not set, using default size of 230KB If you want the mpeg file to be compliant to some specification Like DVD, VCD or others, make sure you set the correct buffer size Output #0, mpeg, to 'C:\Users\analyst\Desktop\STATA\projects\animation3\map_video.mpg': Metadata: encoder : Lavf58.35.101 Stream #0:0, 0, 1/90000: Video: mpeg1video, yuv420p, 499x786, q=2-31, 2048 kb/s, 25 fps, 90k tbn, 25 tbc Metadata: encoder : Lavc58.64.101 mpeg1video Side data: cpb: bitrate max/min/avg: 0/0/2048000 buffer size: 0 vbv_delay: N/A Clipping frame in rate conversion by 0.000008 cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream) [mpeg @ 000001aad2ea2f40] First SCR: 0 First DTS: 45000 [out_0_0 @ 000001aad2ce8880] EOF on sink link out_0_0:default. No more output streams to write to, finishing. frame= 20 fps=0.0 q=2.4 Lsize= 496kB time=00:00:00.72 bitrate=5643.3kbits/s speed=11.6x video:493kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.513348% Input file #0 (C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png): Input stream #0:0 (video): 20 packets read (2839000 bytes); 20 frames decoded; Total: 20 packets (2839000 bytes) demuxed Output file #0 (C:\Users\analyst\Desktop\STATA\projects\animation3\map_video.mpg): Output stream #0:0 (video): 20 frames encoded; 20 packets muxed (505310 bytes); Total: 20 packets (505310 bytes) muxed 20 frames successfully decoded, 0 decoding errors [AVIOContext @ 000001aad2769400] Statistics: 0 seeks, 248 writeouts
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".