Last active
August 29, 2015 14:06
-
-
Save masbog/f0bf06980d9f3a525b30 to your computer and use it in GitHub Desktop.
create video with image and lenght using ffmpeg linux terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -s 720x576 -r 25 -loop 1 -y -i /root/anon.jpg -t 02:00:00 -acodec libfaac -ac 2 -ar 44100 -ab 128k -async 1 -vcodec libx264 -level 1.3 anon.mp4 | |
| if you want to add audio, add -i (audio file location) | |
| #include <bitset> | |
| #include <string> | |
| #include <iostream> | |
| #include <sstream> | |
| using namespace std; | |
| int main(int argc, char **argv) | |
| { | |
| if (argc < 5) | |
| { | |
| std::cout << "Usage is --imagelocation </root/anon.jpg> --videoresolution <240p | 360p | 480p | 720p | 1080p | 1440p | 2160p> --videoduration <10s 20s 30s 1m 2m 3m 1h 2h 3h> --videooutput </root/anon.mp4> --audiolocation </root/anon.mp3> \n"; // Inform the user of how to use the program | |
| std::cin.get(); | |
| return 0; | |
| }else{ | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment