Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg (displaying images not working correctly)
8 décembre 2013, par user2592968I am working with sox, gmic and ffmpeg and I am completely new to it. I have such a code so far:
#!/bin/bash sox "$1" fast.mp3 trim 00:20 00:10 speed 1.5 sox "$2" rockytrim.mp3 trim 01:30 00:15 sox fast.mp3 -p pad 0 2 | sox - rockytrim.mp3 output.mp3 gmic -i "$3" -unsharp_octave 2,2 -resize 640,480 -o img1.jpg gmic -i "$4" -resize 640,480 -to_gray -o img2.jpg gmic -i "$5" -resize 640,480 -o img3.jpg ffmpeg -y -r 1/10 -i img%d.jpg -loop_input -shortest -i output.mp3 -acodec copy out.avi
And when I open my movie
output.avi
it displaysimg1.jpg
with music in the background and then it changes and the end of the movie toimg3.jpg
.The problem is that it does't show
img2.jpg
. What have I done wrong? -
FFmpeg executable Chmod permission
8 décembre 2013, par aNoviceGuyTrying to run FFmpeg command using executable file stored in Raw folder eclipse for android app. I am getting permission denied error and not able to resize video. How can i give right permissions from my java file.
-
FFmpeg Brrip or Dvdrip To Mp4
8 décembre 2013, par Ahmet KAPIKIRANI want to compress a film which has dvdrip and brrip with mp4 and h.264 codecs.
ffmpeg -i video.avi -vcodec libx264 -crf 25 -acodec libfaac -vpre slower \ -acodec copy video.mp4
error message
Invalid option or argument: 'directpred=3', parsed as 'directpred' = '3'
-
Video from images PHP [duplicate]
8 décembre 2013, par Merab Tato KutaliaThis question already has an answer here:
How can I make video from images in PHP? I know that I need FFMPEG , I have this binary (linux user). one of the SO question Create Video File using PHP theres gif image, instead of gif I need sequence of images. audio is not important. I had several experiments using GD library with images but video is new for me.. Thanks in advance.
-
Batch convert MP3 and static image to AVI with FFMPEG
8 décembre 2013, par user3027136I'm tired of searching for this problem. I have found 2 solutions here, but both work only partially. What I want to do is to convert all the MP3 inside a folder (if possible subfolders, too) to avi or anything else accepted by Youtube. I have created 2 .bat that should do this (according to the other threads here). They don't, one of them creates the avi without the image (black) and the other seems to capture the screen. Here they are. If you know about ffmpeg please point me to the right direction. Thank you.
This one uses mp3info.exe - to be honest I have no idea what mp3info does, I just guess it finds the lenght of the song to be mathed later with the length of the video.
@echo off for %%a in (*.mp3) do ( for /f "delims=" %%b in ('mp3info.exe -p %%S "%%a"') do ( ffmpeg -i "%%a" -loop 1 -r 1 -i "cover.jpg" -acodec copy "%%~na.mp4" -t %%b ) )
This seems more simple, runs faster but captures the screenshot and ignores the cover.jpg file.
@echo off for %%A IN (*.mp3) DO ffmpeg -i "%%A" -i "cover.jpg" "%%A.mpg" done
mp2info.exe, cover.jpeg and the .bat scripts are in the same folder with the .mp3 files.