Re: [FFmpeg-user] Last frame with wrong duration - video from images

2020-06-23 Thread Carl Eugen Hoyos
Am Di., 23. Juni 2020 um 15:59 Uhr schrieb Leonardo via ffmpeg-user
:

> Even after reading the documentation, I could not understand the
> differences between "-r 30" and "fps=30".

Two different mechanisms in two very different parts of the code with
different advantages and disadvantages.

Carl Eugen
___
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] Last frame with wrong duration - video from images

2020-06-23 Thread Alexander Strasser
On 2020-06-22 21:55 +, Leonardo via ffmpeg-user wrote:
> >> $ mplayer
> >> MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team>>That 
> >> is too old unfortunately :(>>The timing fix was implemented in SVN 
> >> revision 37936 and first>released in version 1.4.0 .>> I'd advise to build 
> >> current development (SVN) version of MPlayer.
> I did it. But still didn't help
> $ mplayer
> MPlayer SVN-r38192-8 (C) 2000-2020 MPlayer Team
> I opened the file video.mp4 in OpenShot, and the video has only 5 seconds 
> (maybe 5.1s because of second image being show very quickly).
> So, I thouth it could be a problem with ffmpeg (too old perhaps).

OK.

This time there seems to be at least a problem with FFmpeg's filtering.

It might be, that the specific mplayer fix I mentioned isn't needed
here. To find out you would have to test a video generated with
the mentioned workaround and test if it plays out correctly with both
mplayer versions.

Anyway, good you have at least way to create a correct video now.


[...]

  Alexander
___
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] Last frame with wrong duration - video from images

2020-06-23 Thread Leonardo via ffmpeg-user
Hi,
all suggestions work as expected

ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt yuv420p -r 30 
video.mp4

ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt yuv420p -r 30 -s 
1920x1080 video.mp4
ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt yuv420p -vf 
scale=1920:1080,fps=30 video.mp4
I really appreciate this. Thanks :)

Even after reading the documentation, I could not understand the differences 
between "-r 30" and "fps=30". Could someone explain?
Kind regards,Leonardo
  
___
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] Last frame with wrong duration - video from images

2020-06-23 Thread Michael Koch

Am 22.06.2020 um 23:50 schrieb Carl Eugen Hoyos:

Am Mo., 22. Juni 2020 um 21:35 Uhr schrieb Michael Koch
:

Am 22.06.2020 um 20:59 schrieb Michael Koch:

Am 22.06.2020 um 20:33 schrieb Leonardo via ffmpeg-user:

   Here is the full output

$ ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt
yuv420p -r 30 -vf scale=1920:1080 video.mp4

It works when you remove the scale filter, but don't ask me why.

It also works when you replace
-vf scale=1920:1080
by
-s 1920x1080

Looks like a bug.

It is hard for the filter-chain to know when a stream ends but I
believe other work-arounds exist.


One more possible workaround is to omit "-r 30" and add it to the filter 
chain:


ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt
yuv420p -vf scale=1920:1080,fps=30 video.mp4

Michael


___
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] Last frame with wrong duration - video from images

2020-06-22 Thread Leonardo via ffmpeg-user
Hi 

>> $ mplayer 
>> MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team>>That is 
>> too old unfortunately :(>>The timing fix was implemented in SVN revision 
>> 37936 and first>released in version 1.4.0 .>> I'd advise to build current 
>> development (SVN) version of MPlayer.
I did it. But still didn't help
$ mplayer
MPlayer SVN-r38192-8 (C) 2000-2020 MPlayer Team
I opened the file video.mp4 in OpenShot, and the video has only 5 seconds 
(maybe 5.1s because of second image being show very quickly).
So, I thouth it could be a problem with ffmpeg (too old perhaps).

I tryed to update ffmpeg
$ ffmpeg -version
ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)

Same result. :(
Anyway, those previous tips (removing scale or using -s instead) did the job :)

>Please don't top-post here. If you don't know what it is, look>it up please.
sorry for this. Will try to avoid

Best regards,
Leonardo
  
___
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] Last frame with wrong duration - video from images

2020-06-22 Thread Carl Eugen Hoyos
Am Mo., 22. Juni 2020 um 21:35 Uhr schrieb Michael Koch
:
>
> Am 22.06.2020 um 20:59 schrieb Michael Koch:
> > Am 22.06.2020 um 20:33 schrieb Leonardo via ffmpeg-user:
> >>   Here is the full output
> >>
> >> $ ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt
> >> yuv420p -r 30 -vf scale=1920:1080 video.mp4
> >
> > It works when you remove the scale filter, but don't ask me why.
>
> It also works when you replace
> -vf scale=1920:1080
> by
> -s 1920x1080
>
> Looks like a bug.

It is hard for the filter-chain to know when a stream ends but I
believe other work-arounds exist.

Carl Eugen
___
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] Last frame with wrong duration - video from images

2020-06-22 Thread Alexander Strasser
On 2020-06-22 19:22 +, Leonardo via ffmpeg-user wrote:
> $ mplayer
> MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team

That is too old unfortunately :(

The timing fix was implemented in SVN revision 37936 and first
released in version 1.4.0 .

I'd advise to build current development (SVN) version of MPlayer.

If you get into trouble building MPlayer, that would be off-topic
for this list. But regarding that you can post on the mplayer-users
mailing list to get help. Or ask on #mplayer on freenode IRC.

Please don't top-post here. If you don't know what it is, look
it up please.


Best regards,
  Alexander


> and
> $ vlc --version
> VLC media player 3.0.11 Vetinari (revision 3.0.11-0-gdc0c5ced72)
>
> I'm running debian 10
>
>
> On Monday, June 22, 2020, 4:18:12 PM GMT-3, Alexander Strasser 
>  wrote:
>
>  Hi!
>
> On 2020-06-22 17:34 +, Leonardo via ffmpeg-user wrote:
> > I have two images named figur001.png and figur002.png that I want to make a 
> > video of 10 seconds, each figure being displayed for 5 seconds.
> >
> > After command
> >
> > ffmpeg -framerate 1/5 -i figur%03d.png -c:v libx264 -pix_fmt yuv420p -r 30 
> > -vf scale=1920:1080 video.mp4
> >
> > It seems that the full duration is 10 seconds because ffmpeg displays this:
> >
> > Duration: 00:00:10.00, start: 0.00, bitrate: N/A
>
>
> > However, using mplayer or vlc to play the video, the first image is showed 
> > during 5 seconds (as it should be) but the second image no.
> > The second image is displayed by less than a second (0.1s maybe)
>
> If you test with MPlayer, please make sure you have a recent build.
>
> I believe the duration of the last frame wasn't respected in old
> versions of MPlayer. Sorry, I can't remember the date when it was
> added on top of my head. If you post the version output of mplayer,
> I will look it up.
>
>
> [...]
>
>   Alexander
___
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] Last frame with wrong duration - video from images

2020-06-22 Thread Leonardo via ffmpeg-user
 Hi,
indeed, removing the filter scale OR replacing -vf scale=1920:1080 by -s 
1920x1080, do the job.
I really appreciate all tips.
Thanks,Leonardo
On Monday, June 22, 2020, 4:35:03 PM GMT-3, Michael Koch 
 wrote:  
 
 Am 22.06.2020 um 20:59 schrieb Michael Koch:
> Am 22.06.2020 um 20:33 schrieb Leonardo via ffmpeg-user:
>>   Here is the full output
>>
>> $ ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt 
>> yuv420p -r 30 -vf scale=1920:1080 video.mp4
>
> It works when you remove the scale filter, but don't ask me why.

It also works when you replace
-vf scale=1920:1080
by
-s 1920x1080

Looks like a bug.

Michael

___
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".

Re: [FFmpeg-user] Last frame with wrong duration - video from images

2020-06-22 Thread Leonardo via ffmpeg-user
 >
> 
> On Monday, June 22, 2020, 4:10:16 PM GMT-3, Michael Koch 
 wrote:  > 
 > 
 > Am 22.06.2020 um 20:33 schrieb Leonardo via ffmpeg-user:> >  Here is the 
 > full output> >> > $ ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 
 > -pix_fmt yuv420p -r 30 -vf scale=1920:1080 video.mp4> > It works when you 
 > remove the scale filter, but don't ask me why.> > Michael> 
Indeed, it worked. Thanks.
  
___
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] Last frame with wrong duration - video from images

2020-06-22 Thread Michael Koch

Am 22.06.2020 um 20:59 schrieb Michael Koch:

Am 22.06.2020 um 20:33 schrieb Leonardo via ffmpeg-user:

  Here is the full output

$ ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt 
yuv420p -r 30 -vf scale=1920:1080 video.mp4


It works when you remove the scale filter, but don't ask me why.


It also works when you replace
-vf scale=1920:1080
by
-s 1920x1080

Looks like a bug.

Michael

___
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] Last frame with wrong duration - video from images

2020-06-22 Thread Leonardo via ffmpeg-user
Hi,
$ mplayer
MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team

and
$ vlc --version
VLC media player 3.0.11 Vetinari (revision 3.0.11-0-gdc0c5ced72)

I'm running debian 10 


On Monday, June 22, 2020, 4:18:12 PM GMT-3, Alexander Strasser 
 wrote:  
 
 Hi!

On 2020-06-22 17:34 +, Leonardo via ffmpeg-user wrote:
> I have two images named figur001.png and figur002.png that I want to make a 
> video of 10 seconds, each figure being displayed for 5 seconds.
>
> After command
>
> ffmpeg -framerate 1/5 -i figur%03d.png -c:v libx264 -pix_fmt yuv420p -r 30 
> -vf scale=1920:1080 video.mp4
>
> It seems that the full duration is 10 seconds because ffmpeg displays this:
>
> Duration: 00:00:10.00, start: 0.00, bitrate: N/A


> However, using mplayer or vlc to play the video, the first image is showed 
> during 5 seconds (as it should be) but the second image no.
> The second image is displayed by less than a second (0.1s maybe)

If you test with MPlayer, please make sure you have a recent build.

I believe the duration of the last frame wasn't respected in old
versions of MPlayer. Sorry, I can't remember the date when it was
added on top of my head. If you post the version output of mplayer,
I will look it up.


[...]

  Alexander
___  
___
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] Last frame with wrong duration - video from images

2020-06-22 Thread Alexander Strasser
Hi!

On 2020-06-22 17:34 +, Leonardo via ffmpeg-user wrote:
> I have two images named figur001.png and figur002.png that I want to make a 
> video of 10 seconds, each figure being displayed for 5 seconds.
>
> After command
>
> ffmpeg -framerate 1/5 -i figur%03d.png -c:v libx264 -pix_fmt yuv420p -r 30 
> -vf scale=1920:1080 video.mp4
>
> It seems that the full duration is 10 seconds because ffmpeg displays this:
>
> Duration: 00:00:10.00, start: 0.00, bitrate: N/A


> However, using mplayer or vlc to play the video, the first image is showed 
> during 5 seconds (as it should be) but the second image no.
> The second image is displayed by less than a second (0.1s maybe)

If you test with MPlayer, please make sure you have a recent build.

I believe the duration of the last frame wasn't respected in old
versions of MPlayer. Sorry, I can't remember the date when it was
added on top of my head. If you post the version output of mplayer,
I will look it up.


[...]

  Alexander
___
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] Last frame with wrong duration - video from images

2020-06-22 Thread Michael Koch

Am 22.06.2020 um 20:33 schrieb Leonardo via ffmpeg-user:

  Here is the full output

$ ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt yuv420p -r 30 
-vf scale=1920:1080 video.mp4


It works when you remove the scale filter, but don't ask me why.

Michael

___
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] Last frame with wrong duration - video from images

2020-06-22 Thread Leonardo via ffmpeg-user
 Here is the full output

$ ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt yuv420p -r 30 
-vf scale=1920:1080 video.mp4

ffmpeg version 4.1.4-1~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 8 (Debian 8.3.0-6)
 configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened 
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu 
--arch=amd64 --enable-gpl --disable-stripping --enable-avresample 
--disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libaom --enable-libass --enable-libbluray --enable-libbs2b 
--enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite 
--enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme 
--enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa 
--enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse 
--enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy 
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora 
--enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx 
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 
--enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx 
--enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 
--enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libx264 --enable-shared
 libavutil 56. 22.100 / 56. 22.100
 libavcodec 58. 35.100 / 58. 35.100
 libavformat 58. 20.100 / 58. 20.100
 libavdevice 58. 5.100 / 58. 5.100
 libavfilter 7. 40.101 / 7. 40.101
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 3.100 / 5. 3.100
 libswresample 3. 3.100 / 3. 3.100
 libpostproc 55. 3.100 / 55. 3.100
Input #0, image2, from 'figura%03d.png':
 Duration: 00:00:10.00, start: 0.00, bitrate: N/A
 Stream #0:0: Video: png, rgb24(pc), 1920x1080, 0.20 tbr, 0.20 tbn, 0.20 tbc
Stream mapping:
 Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x56107b539380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 
AVX
[libx264 @ 0x56107b539380] profile High, level 4.0
[libx264 @ 0x56107b539380] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC 
codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: 
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 
deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 
open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 
rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 
ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'video.mp4':
 Metadata:
 encoder : Lavf58.20.100
 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1920x1080, 
q=-1--1, 30 fps, 15360 tbn, 30 tbc
 Metadata:
 encoder : Lavc58.35.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 151 fps= 66 q=29.0 size= 0kB time=00:00:03.26 bitrate= 0.1kbits/frame= 
151 fps= 54 q=-1.0 Lsize= 39kB time=00:00:04.93 bitrate= 65.0kbits/s dup=149 
drop=0 speed=1.77x 
video:37kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 7.077967%
[libx264 @ 0x56107b539380] frame I:1 Avg QP:19.00 size: 20449
[libx264 @ 0x56107b539380] frame P:38 Avg QP:11.10 size: 158
[libx264 @ 0x56107b539380] frame B:112 Avg QP:13.68 size: 92
[libx264 @ 0x56107b539380] consecutive B-frames: 0.7% 1.3% 0.0% 98.0%
[libx264 @ 0x56107b539380] mb I I16..4: 21.4% 74.5% 4.1%
[libx264 @ 0x56107b539380] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.1% 0.0% 0.0% 
0.0% 0.0% skip:99.8%
[libx264 @ 0x56107b539380] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.3% 0.0% 0.0% 
direct: 0.0% skip:99.7% L0:62.0% L1:38.0% BI: 0.0%
[libx264 @ 0x56107b539380] 8x8 transform intra:74.0% inter:9.7%
[libx264 @ 0x56107b539380] coded y,uvDC,uvAC intra: 2.3% 1.2% 1.2% inter: 0.0% 
0.0% 0.0%
[libx264 @ 0x56107b539380] i16 v,h,dc,p: 91% 2% 7% 0%
[libx264 @ 0x56107b539380] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 1% 55% 0% 0% 0% 
0% 0% 0%
[libx264 @ 0x56107b539380] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 18% 14% 3% 4% 3% 
5% 4% 2%
[libx264 @ 0x56107b539380] i8c dc,h,v,p: 99% 1% 1% 0%
[libx264 @ 0x56107b539380] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x56107b539380] ref P L0: 78.2% 2.6% 19.0% 0.1%
[libx264 @ 0x56107b539380] ref B L0: 43.5% 56.5%



 On Monday, June 22, 2020, 03:27:27 PM GMT-3, Carl Eugen Hoyos 
 wrote:  
 
 Am Mo., 22. Juni 2020 um 19:45 Uhr schrieb Leonardo via ffmpeg-user
:

> I have two images named figur001.png and figur002.png that I want to make a 
> video of 10 seconds, each figure being displayed for 5 seconds.
>
> After command
>
> ffmpeg -framerate 1/5 -i figur%03d.png -c:v libx264 -pix_fmt yuv42

Re: [FFmpeg-user] Last frame with wrong duration - video from images

2020-06-22 Thread Carl Eugen Hoyos
Am Mo., 22. Juni 2020 um 19:45 Uhr schrieb Leonardo via ffmpeg-user
:

> I have two images named figur001.png and figur002.png that I want to make a 
> video of 10 seconds, each figure being displayed for 5 seconds.
>
> After command
>
> ffmpeg -framerate 1/5 -i figur%03d.png -c:v libx264 -pix_fmt yuv420p -r 30 
> -vf scale=1920:1080 video.mp4

Complete, uncut console output missing.

Carl Eugen
___
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] Last frame with wrong duration - video from images

2020-06-22 Thread Leonardo via ffmpeg-user
Hello,

I have two images named figur001.png and figur002.png that I want to make a 
video of 10 seconds, each figure being displayed for 5 seconds.

After command

ffmpeg -framerate 1/5 -i figur%03d.png -c:v libx264 -pix_fmt yuv420p -r 30 -vf 
scale=1920:1080 video.mp4

It seems that the full duration is 10 seconds because ffmpeg displays this:

Duration: 00:00:10.00, start: 0.00, bitrate: N/A

However, using mplayer or vlc to play the video, the first image is showed 
during 5 seconds (as it should be) but the second image no.
The second image is displayed by less than a second (0.1s maybe)

Any ideas on how to solve this?

Kind regards,
Leonardo
___
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".