LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2022, 05:43 PM   #1
mount.nfs
Member
 
Registered: Feb 2017
Posts: 59

Rep: Reputation: Disabled
ffmpeg few .jpeg images to .mp4 just first frame


http://archive.debian.org/debian/pool/main/f/ffmpeg
download the debian .deb packages


unzip extract the debian file
dpkg-deb -x file.deb .


sudo cp /usr/lib/i386/libva.so.2.100.0 /usr/lib/libva.so.1

the output file format ok but
following command example error... one frame one inputs1.jpg inputs2.jpg inputs3.jpg

./ffmpeg -i inputs%01d.jpg -vcodec mjpeg output.mp4


./ffmpeg -r 0.3 -i %1d.jpg output.mp4

Last edited by mount.nfs; 03-16-2022 at 07:02 PM. Reason: -r between -i and ./ffmpeg
 
Old 03-12-2022, 06:41 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I see 2 issues with what you did.
First, it seems you may have put a 32 bit library where ffmpeg expected a 64 bit library.
Code:
sudo cp /usr/lib/i386/libva.so.2.100.0 /usr/lib/libva.so.1
Second, you are trying to use jpgs (still image) and convert them to a movie.
Code:
./ffmpeg -i inputs%01d.jpg -vcodec mjpeg output.mp4
It will take more control of ffmpeg to tell it how long to hold each image before switching to the next, and possibly a different codec to achieve that. Read up in detail how to use ffmpeg to create a slide show.
 
Old 03-12-2022, 10:45 PM   #3
mount.nfs
Member
 
Registered: Feb 2017
Posts: 59

Original Poster
Rep: Reputation: Disabled
http://cdimage.ubuntu.com/lubuntu/re...18.04/release/

or... sudo cp /usr/lib/x86/libva.so.2.100.0 /usr/lib/x86/libva.so.1
rename libva.so.2.100.0 to libva.so.1 that required by the ffmpeg executable naming


file ffmpeg #x86_64 executable


http://archive.debian.org/debian/poo...o8+1_amd64.deb

dpkg-deb -x ffmpeg_3.2.10-1~deb9u1~bpo8+1_amd64.deb .

chmod 777 ffmpeg

Last edited by mount.nfs; 03-12-2022 at 10:58 PM.
 
Old 03-13-2022, 03:36 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Why don't you just install ffmpeg from the repos? Like so:
Code:
sudo apt install ffmpeg
And what's the story with libva.so, what are you trying to achieve there?
The command you posted certainly doesn't require all that tweaking.

About the task described in your thread title, a simple web search helps:
https://stackoverflow.com/questions/...es-with-ffmpeg
https://hamelot.io/visualization/usi...-into-a-video/
etc.
 
Old 03-13-2022, 07:30 AM   #5
mount.nfs
Member
 
Registered: Feb 2017
Posts: 59

Original Poster
Rep: Reputation: Disabled
inputs1.jpg, inputs2.jpg, inputs3.jpg

the -r value seem likely 0.0x

x over 100

Code:
./ffmpeg -i inputs%01d.jpg -r 0.05 output.mp4

Last edited by mount.nfs; 03-13-2022 at 07:33 AM.
 
Old 03-14-2022, 02:03 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ That means 0.05 frames per second, i.e. one frame every 20s. Is that what you want?
 
Old 03-14-2022, 06:43 AM   #7
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
You are trying to make a movie out of a directory of images?
Example:
Code:
ffmpeg -framerate 1/5 -pattern_type glob -i '*.jpg' -c:v libx264 -crf 18 -preset slow -r 30 -pix_fmt yuv420p out.mp4
Make vid from images of different size, pad and center. Find the largest image first, example:
Code:
ffmpeg -framerate 1/5 -pattern_type glob -i '*.jpg' -vf scale=-1:-1,pad=1850:930:ow-iw/2:oh-ih/2 -c:v libx264 -crf 18 -preset slow -r 30 -pix_fmt yuv420p out.mp4
 
Old 09-06-2022, 09:26 AM   #8
mount.nfs
Member
 
Registered: Feb 2017
Posts: 59

Original Poster
Rep: Reputation: Disabled
yeah, there many many .jpg like thousand %3d.jpg images
inputs= 000.jpg, 001.jpg, 002.jpg ... 999.jpg

Last edited by mount.nfs; 09-06-2022 at 09:27 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ffmpeg error to get a first 23 sec MP4 file BudiKusasi Linux - Software 5 07-27-2021 02:33 PM
[SOLVED] 10d6:1101 Actions Semiconductor Co., Ltd D-Wave 2GB MP4 Player / AK1025 MP3/MP4 RandomTroll Linux - Hardware 2 07-07-2019 10:51 AM
10d6:1101 Actions Semiconductor Co., Ltd D-Wave 2GB MP4 Player / AK1025 MP3/MP4 Player T RandomTroll General 5 07-19-2018 10:42 PM
[SOLVED] retrieving jpeg files from BkUp copy yields:ERR INTERPRETING JPEG; file not jpeg, drmjh Linux - General 7 10-03-2010 08:13 AM
converter for mp4, I-Pods and other portable mp4's ? stefan_rogin2000 Linux - Software 5 03-26-2008 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration