Re: [FFmpeg-user] Webcam capture

2020-07-22 Thread Leonardo via ffmpeg-user

Since you have an AMD cpu/apu, one last resort that I can think of is to 
capture webcam with hardware acceleration.


Extracted from https://trac.ffmpeg.org/wiki/Hardware/VAAPI

Also, you need to verify what "-vaapi_device" is the correct one for your 
machine.
The wiki has much more information.


"Camera Capture


Capture a raw stream from a V4L2 camera device and encode it as H.264:


$ ffmpeg -vaapi_device /dev/dri/renderD128 -f v4l2 -video_size 1920x1080 -i 
/dev/video0 -vf 'format=nv12,hwupload' -c:v h264_vaapi output.mp4


... "


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] Webcam capture

2020-07-22 Thread Leonardo via ffmpeg-user
What is the output of

$ cat /proc/cpuinfo

?


___
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] Webcam capture

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

as an alternative, you can display your webcam at screen with mplayer

$ mplayer tv:// -tv 
driver=v4l2:width=640:height=480:device=/dev/video0:fps=30:outfmt=yuy2 
-noborder -geometry 640x480+0+0

and record your screen+audio with ffmpeg (here I'm using pulseaudio because of 
the "noise-reduction")


$ ffmpeg -thread_queue_size 1024 -f pulse -sample_rate 44100 -i default 
-video_size 640x480 -probesize 10M -framerate 30 -thread_queue_size 512 -f 
x11grab -i :0.0 -c:a aac -b:a 128k -c:v libx264 -vf "format=yuv420p" -crf 0 
-preset ultrafast output.mp4

You can use

$ uvcdynctrl -f

to identify which resolution/fps your webcam supports and edit commands above 
to your needs.

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] replace several lines by one using the filter_complex

2020-07-10 Thread Leonardo via ffmpeg-user
 

On Friday, July 10, 2020, 1:37:39 AM GMT-3, Gyan Doshi  
wrote:  


Yes, using the concat filter.

    ffmpeg -i video.mp4 -filter_complex 
"[0:v]trim=start=7:end=1173,setpts=PTS-STARTPTS[v1];[0:v]trim=start=1260:end=1430,setpts=PTS-STARTPTS[v2];[0:a]atrim=start=7:end=1173,asetpts=PTS-STARTPTS[a1];[0:a]atrim=start=1260:end=1430,asetpts=PTS-STARTPTS[a2];[v1][a1][v2][a2]concat=n=2:v=1:a=1"
 merged.mp4

Gyan


Thank you Gyan !!
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".

[FFmpeg-user] replace several lines by one using the filter_complex

2020-07-09 Thread Leonardo via ffmpeg-user
Hello,

I have a video that I need to extract two parts of it and merge together those 
parts. I can accomplish this using the TRIM/ATRIM filter together with the 
concat demuxer:


$ ffmpeg -i video.mp4 -vf "trim=start=7:end=1173,setpts=PTS-STARTPTS" -af 
"atrim=start=7:end=1173,asetpts=PTS-STARTPTS" part1.mp4


$ ffmpeg -i video.mp4 -vf "trim=start=1260:end=1430,setpts=PTS-STARTPTS" -af 
"atrim=start=1260:end=1430,asetpts=PTS-STARTPTS" part2.mp4


After this I create a file input.txt (duration found with ffprobe):
file 'part1.mp4'
duration 1166.02file 'part2.mp4'duration 170.02


And finish with 


$ ffmpeg -f concat -i input.txt -c copy video_final.mp4


This sequence of steps work as expected but I would like to know if it is 
possible to use the filter_complex with only "one line command" to achieve same 
result ?

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

[FFmpeg-user] trim filter in format HH:MM:SS

2020-07-02 Thread Leonardo via ffmpeg-user
Hello,
considering the TRIM filter, is it possible to use format HH:MM:SS or only in 
seconds?
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".

[FFmpeg-user] doubt with hardware acceleration

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

I'm trying to speed up conversion using hardware acceleration and the 
improvement is amazing but there a kind of "warning" when using ffmpeg that I 
would like to "remove".


Command and output:


$ ffmpeg -vaapi_device /dev/dri/renderD128 -i test.mp4 -vf 
'hwupload,scale_vaapi=w=1280:h=720:format=nv12' -c:v h264_vaapi -qp 18 
test_hw.mp4ffmpeg version N-98341-gcca982ee01 Copyright (c) 2000-2020 the 
FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --toolchain=hardened --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. 55.100 / 56. 55.100
  libavcodec 58. 93.100 / 58. 93.100
  libavformat    58. 47.100 / 58. 47.100
  libavdevice    58. 11.100 / 58. 11.100
  libavfilter 7. 86.100 /  7. 86.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.47.100
  Duration: 00:00:20.73, start: 0.00, bitrate: 963 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 
1366x768, 762 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
  handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 192 kb/s (default)
    Metadata:
  handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Duplicate formats in ff_merge_formats detected
Output #0, mp4, to 'test_hw.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.47.100
    Stream #0:0(und): Video: h264 (h264_vaapi) (High) (avc1 / 0x31637661), 
vaapi_vld, 1280x720, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
  handler_name    : VideoHandler
  encoder : Lavc58.93.100 h264_vaapi
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 128 kb/s (default)
    Metadata:
  handler_name    : SoundHandler
  encoder : Lavc58.93.100 aac
frame=   76 fps=0.0 q=-0.0 size= 256kB time=00:00:02.62 bitrate= 
799.4kbits/frame=  159 fps=159 q=-0.0 size= 256kB time=00:00:05.38 bitrate= 
389.4kbits/frame=  241 fps=160 q=-0.0 size= 512kB time=00:00:08.12 bitrate= 
516.1kbits/frame=  318 fps=158 q=-0.0 size= 768kB time=00:00:10.68 bitrate= 
589.1kbits/frame=  399 fps=159 q=-0.0 size=    1024kB time=00:00:13.39 bitrate= 
626.1kbits/frame=  482 fps=160 q=-0.0 size=    1024kB time=00:00:16.16 bitrate= 
519.1kbits/frame=  563 fps=160 q=-0.0 size=    1536kB time=00:00:18.85 bitrate= 
667.4kbits/frame=  622 fps=159 q=-0.0 Lsize=    2365kB time=00:00:20.66 
bitrate= 937.6kbits/s speed=5.29x    
video:2016kB audio:324kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 1.062382%
[aac @ 0x55e29ed14e00] Qavg: 223.224


The "warning" is the line

Duplicate formats in ff_merge_formats detected

I could not find any information about the duplication.

Any tips?

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 2 seconds are cut recording screen - hardware aceleration

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


> For x264 compressed video use -crf 17see for other options

> https://trac.ffmpeg.org/wiki/Encode/H.264

> For aac audio compression use -b:a 192k for the bitrate see for other

> options https://trac.ffmpeg.org/wiki/Encode/AAC

Thank you

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

[FFmpeg-user] last 2 seconds are cut recording screen - hardware aceleration

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

I'm trying to use ffmpeg to record the computer screen and also audio from 
microfone. Googling I found a lot of "how to". Although I can now record, I do 
have a few questions (3):

1) Using command

$ ffmpeg -thread_queue_size 512 -f alsa -ac 2 -ar 44100 -i hw:0,0 -video_size 
1024x768 -probesize 10M -framerate 30 -thread_queue_size 512 -f x11grab -i :0.0 
-c:a aac -c:v libx264 -vf "format=yuv420p" output.mp4
ffmpeg version N-98341-gcca982ee01 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --toolchain=hardened --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. 55.100 / 56. 55.100
  libavcodec 58. 93.100 / 58. 93.100
  libavformat    58. 47.100 / 58. 47.100
  libavdevice    58. 11.100 / 58. 11.100
  libavfilter 7. 86.100 /  7. 86.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:0,0':
  Duration: N/A, start: 1593480535.223265, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Input #1, x11grab, from ':0.0':
  Duration: N/A, start: 1593480535.257288, bitrate: 754974 kb/s
    Stream #1:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1024x768, 754974 
kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55a51bf2fb00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 
AVX
[libx264 @ 0x55a51bf2fb00] profile High, level 3.1
[libx264 @ 0x55a51bf2fb00] 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 'output.mp4':
  Metadata:
    encoder : Lavf58.47.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), 
yuv420p(progressive), 1024x768, q=-1--1, 30 fps, 15360 tbn, 30 tbc
    Metadata:
  encoder : Lavc58.93.100 libx264
    Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 
128 kb/s
    Metadata:
  encoder : Lavc58.93.100 aac
frame=   19 fps=0.0 q=0.0 size=   0kB time=00:00:00.00 bitrate=N/A speed=   
frame=   34 fps= 34 q=0.0 size=   0kB time=00:00:00.00 bitrate=N/A speed=   
frame=   49 fps= 32 q=0.0 size=   0kB time=00:00:00.00 bitrate=N/A speed=   
frame=   64 fps= 32 q=29.0 size=   0kB time=00:00:00.39 bitrate=   
1.0kbits/frame=   79 fps= 31 q=29.0 size=   0kB time=00:00:00.90 bitrate=   
0.4kbits/frame=   95 fps= 31 q=29.0 size=   0kB time=00:00:01.40 bitrate=   
0.3kbits/frame=  110 fps= 31 q=29.0 size=   0kB time=00:00:01.90 bitrate=   
0.2kbits/frame=  125 fps= 31 q=29.0 size=   0kB time=00:00:02.40 bitrate=   
0.2kbits/frame=  140 fps= 31 q=29.0 size=   0kB time=00:00:02.92 bitrate=   
0.1kbits/frame=  156 fps= 31 q=29.0 size=   0kB time=00:00:03.43 bitrate=   
0.1kbits/frame=  162 fps= 28 q=-1.0 Lsize= 208kB time=00:00:05.30 bitrate= 
321.1kbits/s speed=0.93x    
video:143kB audio:59kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 3.221925%
[libx264 @ 0x55a51bf2fb00] frame I:1 Avg 

[FFmpeg-user] (no subject)

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

I'm trying to use ffmpeg to record the computer screen and also audio from 
microfone. Googling I found a lot of "how to". Although I can now record, I do 
have a few questions (3):

1) Using command

$ ffmpeg -thread_queue_size 512 -f alsa -ac 2 -ar 44100 -i hw:0,0 -video_size 
1024x768 -probesize 10M -framerate 30 -thread_queue_size 512 -f x11grab -i :0.0 
-c:a aac -c:v libx264 -vf "format=yuv420p" output.mp4
ffmpeg version N-98341-gcca982ee01 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --toolchain=hardened --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. 55.100 / 56. 55.100
  libavcodec 58. 93.100 / 58. 93.100
  libavformat    58. 47.100 / 58. 47.100
  libavdevice    58. 11.100 / 58. 11.100
  libavfilter 7. 86.100 /  7. 86.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:0,0':
  Duration: N/A, start: 1593480535.223265, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Input #1, x11grab, from ':0.0':
  Duration: N/A, start: 1593480535.257288, bitrate: 754974 kb/s
    Stream #1:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1024x768, 754974 
kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55a51bf2fb00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 
AVX
[libx264 @ 0x55a51bf2fb00] profile High, level 3.1
[libx264 @ 0x55a51bf2fb00] 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 'output.mp4':
  Metadata:
    encoder : Lavf58.47.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), 
yuv420p(progressive), 1024x768, q=-1--1, 30 fps, 15360 tbn, 30 tbc
    Metadata:
  encoder : Lavc58.93.100 libx264
    Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 
128 kb/s
    Metadata:
  encoder : Lavc58.93.100 aac
frame=   19 fps=0.0 q=0.0 size=   0kB time=00:00:00.00 bitrate=N/A speed=   
frame=   34 fps= 34 q=0.0 size=   0kB time=00:00:00.00 bitrate=N/A speed=   
frame=   49 fps= 32 q=0.0 size=   0kB time=00:00:00.00 bitrate=N/A speed=   
frame=   64 fps= 32 q=29.0 size=   0kB time=00:00:00.39 bitrate=   
1.0kbits/frame=   79 fps= 31 q=29.0 size=   0kB time=00:00:00.90 bitrate=   
0.4kbits/frame=   95 fps= 31 q=29.0 size=   0kB time=00:00:01.40 bitrate=   
0.3kbits/frame=  110 fps= 31 q=29.0 size=   0kB time=00:00:01.90 bitrate=   
0.2kbits/frame=  125 fps= 31 q=29.0 size=   0kB time=00:00:02.40 bitrate=   
0.2kbits/frame=  140 fps= 31 q=29.0 size=   0kB time=00:00:02.92 bitrate=   
0.1kbits/frame=  156 fps= 31 q=29.0 size=   0kB time=00:00:03.43 bitrate=   
0.1kbits/frame=  162 fps= 28 q=-1.0 Lsize= 208kB time=00:00:05.30 bitrate= 
321.1kbits/s speed=0.93x    
video:143kB audio:59kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 3.221925%
[libx264 @ 0x55a51bf2fb00] frame I:1 Avg 

Re: [FFmpeg-user] extract first 26 seconds not workings as expected

2020-06-29 Thread Leonardo via ffmpeg-user
Hello
Carl,

> Please test current FFmpeg git head, if the issue is reproducible
> provide an input sample.

I tested with current git and the results were the same.

As noticed by Moritz at the output of ffprobe 


$ ffprobe part1.mp4 
ffprobe version N-98341-gcca982ee01 Copyright (c) 2007-2020 the FFmpeg 
developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --toolchain=hardened --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. 55.100 / 56. 55.100
  libavcodec 58. 93.100 / 58. 93.100
  libavformat    58. 47.100 / 58. 47.100
  libavdevice    58. 11.100 / 58. 11.100
  libavfilter 7. 86.100 /  7. 86.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'part1.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.47.100
  Duration: 00:00:13.54, start: 12.666016, bitrate: 316 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
bt709), 1366x768 [SAR 1:1 DAR 683:384], 316 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 
tbc (default)
    Metadata:
  handler_name    : VideoHandler


the Duration and the start values are 13.54 and 12.66, respectively.

It looks like that ffmpeg is not respecting "extract from 0 to 26" and instead 
doing something like

"well, I will start at 12.6 and will stop at 26"

Forcing with -copyinkf as suggested by Moritz, although the extracted part has, 
indeed, 26 seconds, there is only a "gray screen" from 0 to 12.6 and after that 
it plays well.

The main.mp4 file plays normal.

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".  
___
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] extract first 26 seconds not workings as expected

2020-06-29 Thread Leonardo via ffmpeg-user
Hello

>You may want to try the option "-copyinkf" ("copy initial

>non-keyframes") when using "-c copy".

 I tried with this option, but the extracted part was "grayed" at the beginning.


The only workaround that I found that worked was


$ ffmpeg -i main.mp4 -vf "trim=start=0:end=26" part1.mp4

but re-encoded is needed.

As you pointed out, the file has 23.80 fps, and this may be the problem.

I created a sample video (53.63 seconds) if someone want to try some code on it.


The video of the original post and this one were created using 
SimpleScreenRecorder

Perhaps some configuration on the GUI is not properly set to produce a "good 
video file".
Will try to play with it a bit.

Kind regard,
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".

[FFmpeg-user] extract first 26 seconds not workings as expected

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


I have a video (main.mp4 - that has about 52 minutes) that I want to cut its 
first 26 seconds.

For this, I'm using command 


$ ffmpeg -i main.mp4 -ss 00:00:00.00 -t 00:00:26.00 -c copy part1.mp4
ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --toolchain=hardened --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. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'main.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.29.100
  Duration: 00:52:08.25, start: 0.00, bitrate: 182 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
bt709), 1366x768 [SAR 1:1 DAR 683:384], 180 kb/s, 23.80 fps, 24 tbr, 12288 tbn, 
48 tbc (default)
    Metadata:
  handler_name    : VideoHandler
Output #0, mp4, to 'part1.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.29.100
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
bt709), 1366x768 [SAR 1:1 DAR 683:384], q=2-31, 180 kb/s, 23.80 fps, 24 tbr, 
12288 tbn, 12288 tbc (default)
    Metadata:
  handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=  322 fps=0.0 q=-1.0 Lsize= 523kB time=00:00:25.95 bitrate= 
165.2kbits/s speed=8.19e+03x    
video:519kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 0.881877%




However, file part1.mp4 has only 13 seconds!

$ ffprobe part1.mp4 
ffprobe version 4.2.3 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --toolchain=hardened --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. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'part1.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.29.100
  Duration: 00:00:13.42, start: 12.666016, bitrate: 319 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
bt709), 1366x768 [SAR 1:1 DAR 683:384], 316 kb/s, 24 fps, 24 tbr, 12288 

[FFmpeg-user] Producing smooth video from images

2020-06-25 Thread Leonardo via ffmpeg-user
Hello,
I have a sequence of images, image001.png to image945.png, and I am using this 
command to produce a video:
ffmpeg -framerate 60 -i image%03d.png -c:v libx264 -pix_fmt yuv420p -vf 
scale=1920:1080,fps=60 -r 60 video.mp4
The video is fine but I would like to improve it. I was thinking in some kind 
of "motion blur" or a better sense of motion.
The filters minterpolate and tblend seem to be what I am looking for, but I 
don't know how to use nor which is better.

Any tips?
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 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-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 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 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 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.p

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