Re: [FFmpeg-user] Converting pictures to video

2019-12-09 Thread Anwuli Okwuashi
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
3k -y
"C:\Users\analyst\Desktop\STATA\projects\animation3\map_video1.mpg"

Thank you,

On Sat, 7 Dec 2019 at 00:43, Dan Bridges  wrote:

> On 7/12/2019 11:49 am, Anwuli Okwuashi wrote:
> > [image2 @ 01d077c4a440] 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
> 3k -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 3k -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-libwavpa

Re: [FFmpeg-user] Converting pictures to video

2019-12-06 Thread Anwuli Okwuashi
I renamed the images and used the full path in the command line but it
still doesn't work. See attached the error report and below my code.
Thank you,
. winexec "C:\FFmpeg\bin\ffmpeg.exe"  -report  -i
"C:\Users\analyst\Desktop\STATA\projects\animation3\graph%02d.png"  -b:v
2048k  "C:\Users\analyst\Desktop\STATA\projects\animation3\map_video.mpg"



On Thu, 5 Dec 2019 at 19:32, gga  wrote:

>
> On 5/12/19 21:07, Anwuli Okwuashi wrote:
> > Thank you,
> >
> > Yes, the first command is the stata blog extrat, the second is mine.
> > Previous attempts had the value for the -b:v but still did not work.
> > I have 20 png files created using stata, I just need to convert them to
> > video/animation. With that, I'll appreciate any help.
>
> ffmpeg prints out a lot of information upon running, which can help in
> debugging your problem.  If stata does not print any output (it means it
> is swallowing the stdout/stderr output), I suggest you first try the
> command from a command line prompt.  If you don't know what that is,
> search for cmd.exe.  The variables are specified with set commands and
> referred with %var% syntax. With that, you should be able to run ffmpeg
> from cmd.exe and see the output for it.  Send the output and command to
> the mailing list.
>
>
> ___
> 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-06 at 10:08:51
Report written to "ffmpeg-20191206-100851.log"
Log level: 48
Command line:
"C:\\FFmpeg\\bin\\ffmpeg.exe" -report -i 
"C:\\Users\\analyst\\Desktop\\STATA\\projects\\animation3\\graph%02d.png" -b:v 
2048k "C:\\Users\\analyst\\Desktop\\STATA\\projects\\animation3\\map_video.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
  libavformat58. 35.101 / 58. 35.101
  libavdevice58.  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
  libpostproc55.  6.100 / 55.  6.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) 
with argument '1'.
Reading option '-i' ... matched as input url with argument 
'C:\Users\analyst\Desktop\STATA\projects\animation3\graph%02d.png'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use 
-b:v)) with argument '2048k'.
Reading option 
'C:\Users\analyst\Desktop\STATA\projects\animation3\map_video.mpg' ... matched 
as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url 
C:\Users\analyst\Desktop\STATA\projects\animation3\graph%02d.png.
Successfully parsed a group of options.
Opening an input file: 
C:\Users\analyst\Desktop\STATA\projects\animation3\graph%02d.png.
[image2 @ 01d077c4a440] Could find no file with path 
'C:\Users\analyst\Desktop\STATA\projects\animation3\graph%02d.png' and index in 
the range 0-4
C:\Users\analyst\Desktop\STATA\projects\animation3\graph%02d.png: No such file 
or directory
___
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".

Re: [FFmpeg-user] Converting pictures to video

2019-12-05 Thread Anwuli Okwuashi
Thank you,

Yes, the first command is the stata blog extrat, the second is mine.
Previous attempts had the value for the -b:v but still did not work.
I have 20 png files created using stata, I just need to convert them to
video/animation. With that, I'll appreciate any help.


On Thu, Dec 5, 2019, 5:49 PM gga  wrote:

>
> On 5/12/19 18:11, Anwuli Okwuashi wrote:
> > Hello,
> > Newbie alert!
> > I am unable to recreate an animation I found on stata blog
> >
> https://blog.stata.com/2014/03/24/how-to-create-animated-graphics-using-stata/
> >   .
> >
> > local GraphPath "C:\Users\jch\AnimatedGraphics\example\"
> > winexec "C:\Program Files\FFmpeg\bin\ffmpeg.exe" -i
> `GraphPath'graph_%03d.png
> >  -b:v 512k `GraphPath'graph.mpg
> >
> >   My code: ran without errors but no video was created
> > local GraphPath "C:\Users\analyst\Desktop\STATA\projects\animation\"
> > winexec "C:\FFmpeg\bin\ffmpeg.exe" -i `GraphPath'i_diff_%.png -b:v
> > `GraphPath'graph.mpg.
> >
> > Any idea why mine isn't working? I use windows 10.
> I have no idea about stata, but do you realize you posted two different
> commands?  Also, the second command is missing the value for -b:v.
> ___
> 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-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-user] Converting pictures to video

2019-12-05 Thread Anwuli Okwuashi
Hello,
Newbie alert!
I am unable to recreate an animation I found on stata blog
https://blog.stata.com/2014/03/24/how-to-create-animated-graphics-using-stata/
 .

local GraphPath "C:\Users\jch\AnimatedGraphics\example\"
winexec "C:\Program Files\FFmpeg\bin\ffmpeg.exe" -i `GraphPath'graph_%03d.png
-b:v 512k `GraphPath'graph.mpg

 My code: ran without errors but no video was created
local GraphPath "C:\Users\analyst\Desktop\STATA\projects\animation\"
winexec "C:\FFmpeg\bin\ffmpeg.exe" -i `GraphPath'i_diff_%.png -b:v
`GraphPath'graph.mpg.

Any idea why mine isn't working? I use windows 10.
Thank you,
___
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".