Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
how do surface blur to a video using FFMPEG common line ?
12 février 2020, par zuiluolike above two image , it is one frame of the video ,
origin video:https://youtu.be/Qmoc7VyX2f8
surface blur video:https://youtu.be/zbw1XVXjn4c
Is there a way to use FFMPEG common line do that , thank you very much
-
Combine two ffmpeg commands (segment and still photo)
11 février 2020, par Brbcod1is it possible to combine this command
ffmpeg -i video.mp4 -map 0:s:0? -c copy -movflags empty_moov+default_base_moof+frag_keyframe -f segment output%03d.mp4
with a command that can take a still from the first segment
ffmpeg -ss 00:00:00.00 -i output001.mp4 -vframes 1 -q:v 2 still.jpg"
-
How can I limit the CPU usage of moviepy ?
11 février 2020, par Egon KirchofPython 3. I am using moviepy to create a new video. The problem is ffmpeg uses 100% of all my cores so I can't do anything else in the computer. There is a parameter for write_videofile called threads but when I adjust it to, say, threads=10 (I have 12 cores in total) there is no difference. I even tried invoking the script using cpulimit (cpulimit -l 70 python my_script.py, for instance) but then the script simply doesn't work, it just freezes, no error message. Is there a way I can force moviepy not to use all the cores in the CPU or is there any application (like cpulimit) that would actually work ?
-
How to add multiple audio files at specific times, on a silence audio file using ffmpeg ?
11 février 2020, par boblapointeI need to overlay audio files at specific times, on an existing silence.mp3. Something like that:
[----[...audio1...]----------[...audio2...]---------------]
I've tried the following but it doesn't work:
ffmpeg -y -i silence.mp3 -itsoffset 4 -i audio1.mp3 -itsoffset 30 -i audio2.mp3 -c:a copy final.mp3
Any help would be appriciated. Thank you.
-
AVI fails to encode to MP4
11 février 2020, par user126440I'm trying to convert an avi to mp4 with the following command:
ffmpeg -i avi_videos.avi -c copy new.mp4
I'm getting an error though (see below) and I don't really understand it. What other parameters would I need to add to get it to encode to mp4? Could you provide a sample snippet for me, please? Info about the original avi is also below.
Not sure if this is relevant, but I also tried it in linux and got similar output:
leke@leke:~/Videos$ ffmpeg -i avi_videos.avi -c copy new.mp4 ffmpeg version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2000-2014 the FFmpeg developers built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Guessed Channel Layout for Input Stream #0.1 : mono Input #0, avi, from 'avi_videos.avi': Metadata: encoder : Lavf57.50.100 Duration: 02:04:21.06, start: 0.000000, bitrate: 14664 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg), 640x480, 14571 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, 1 channels, u8, 88 kb/s [mp4 @ 0xed93c0] Tag [1][0][0][0]/0x00000001 incompatible with output codec id '65541' ([0][0][0][0]) Output #0, mp4, to 'new.mp4': Metadata: encoder : Lavf57.50.100 Stream #0:0: Video: mjpeg (l[0][0][0] / 0x006C), yuvj422p, 640x480, q=2-31, 14571 kb/s, 30 fps, 30 tbn, 30 tbc Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, mono, 88 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input