[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

[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

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

[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

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

[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

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

2020-06-22 Thread Leonardo via ffmpeg-user
.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 ima

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

2020-06-22 Thread Leonardo via ffmpeg-user
: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

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

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

2020-06-22 Thread Leonardo via ffmpeg-user
: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 whe

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 y

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

[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

[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

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

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

[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

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

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