Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Android FFmpeg reports "file protocol not found"
27 avril 2017, par Abdul MateenI am trying to convert sequence images to video using ffmpeg command in android. I have build ffmpeg for android and put ffmpeg binary file in /data/local folder. I am running ffmpeg command using
Runtime.getruntime.execute("mycommand")
in Android.Stucture of mycommand is like this
"/data/local/ffmpeg -r 40 qscale 2 -i /mnt/sdcard/images/img%d.jpg /mnt/sdcard/images/finalvideo.mp4"
mycommand
contains the path of a folder where I placed all my sequence images. Running this command gives me error "protocol not found".Also I read that file protocol is default in ffmpeg documentation.
How can I run such commands?
The Error I am getting after running simple command like ffmpeg -i /mnt/sdcard/vid.mp4
ffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers built on Sep 26 2012 11:58:35 with gcc 4.4.3 (GCC) configuration: --target-os=linux --prefix=/home/esteves/android-ffmpeg --enable-cross-compile --enable-runtime-cpudetect --disable-asm --arch=arm --cc=/home/esteves/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --cross-prefix=/home/esteves/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- --disable-stripping --nm=/home/esteves/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-nm --sysroot=/home/esteves/android-ndk/platforms/android-8/arch-arm --enable-nonfree --enable-version3 --disable-everything --enable-gpl --disable-doc --enable-avresample --enable-demuxer=amr --enable-demuxer=aac --enable-demuxer=rawvideo --enable-demuxer=rtsp --enable-muxer=rtsp --enable-muxer=flv --enable-muxer=mpegts --enable-muxer=mp4 --enable-demuxer=rtp --enable-demuxer=rtp --disable-ffplay --disable-ffserver --enable-ffmpeg --disable-ffprobe --enable-libx264 --enable-encoder=libx264 libavutil 51. 72.100 / 51. 72.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.105 / 54. 25.105 libswscale 2. 1.101 / 2. 1.101 error of main libswresample 0. 15.100 / 0. 15.100 error of main libpostproc 52. 0.100 / 52. 0.100 /mnt/sdcard/vid.mp4: Protocol not found
-
FFMPEG : get last 10 seconds [closed]
27 avril 2017, par GeeHopperI'm trying to get the 10 last seconds of a video of which I dont know the length and then save those 10 seconds as a new video. Is this do able with the ffmpeg command prompt? And if so, how?
Thanks for the help
Greets
-
ffmpeg - how to extract last minute of video [duplicate]
27 avril 2017, par WarMineWorldThis question already has an answer here:
- FFMPEG: get last 10 seconds [closed] 1 answer
Is it possible to have ffmpeg just output the last minute of video. I am looking to extract parts out of many files that range in length, and I would not want to do this all by hand.
-
Produce waveform video from audio using FFMPEG
27 avril 2017, par RhythmicDevilI am trying to create a waveform video from audio. My goal is to produce a video that looks something like this
For my test I have an mp3 that plays a short clipped sound. There are 4 bars of 1/4 notes and 4 bars of 1/8 notes played at 120bpm. I am having some trouble coming up with the right combination of preprocessing and filtering to produce a video that looks like the image. The colors dont have to be exact, I am more concerned with the shape of the beats. I tried a couple of different approaches using showwaves and showspectrum. I cant quite wrap my head around why when using showwaves the beats go past so quickly, but using showspectrum produces a video where I can see each individual beat.
ShowWaves
ffmpeg -i beat_test.mp3 -filter_complex "[0:a]showwaves=s=1280x100:mode=cline:rate=25:scale=sqrt,format=yuv420p[v]" -map "[v]" -map 0:a output_wav.mp4
This link will download the output of that command.
ShowSpectrum
ffmpeg -i beat_test.mp3 -filter_complex "[0:a]showspectrum=s=1280x100:mode=combined:color=intensity:saturation=5:slide=1:scale=cbrt,format=yuv420p[v]" -map "[v]" -an -map 0:a output_spec.mp4
This link will download the output of that command.
I posted the simple examples because I didn't want to confuse the issue by adding all the variations I have tried.
In practice I suppose I can get away with the output from showspectrum but I'd like to understand where/how I am thinking about this incorrectly. Thanks for any advice.
Here is a link to the source audio file.
-
FFmpeg GIF dump & video slideshow errors
27 avril 2017, par Techie AndroidI'm running Windows 10 and have the latest static 64bit nightly FFmpeg version. Here are my scripts, I've been trying to get them fixed but I can't seem to get either to work.
I have a GIF file named gif.gif that I need the frames dumped out of and named in this order: img000.png img001.png img002.png and so forth.
ffmpeg -i "gif.gif" "%img%%03d.png"
It's error message is:
[NULL @ 052857c0] Unable to find a suitable output format for 'C:\Users\username' C:\Users\username: Invalid argument
This is where I need the individual frames to be encoded into a video file and get it to duplicate the frames necessary to make it a slideshow. It should copy each frame 150 times so that they will last for 5s each at 30fps. The filename is video maker.bat
ffmpeg -i %img%%03d.png -framerate 1/5 -c:v libx264 -r 30 -pix_fmt yuv420p "output.mp4"
It's error message is:
imgC:\myfilesdirectoryhere\video maker.bat3d.png: Protocol not found