LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-16-2008, 03:17 PM   #1
slothpuck
Member
 
Registered: Jul 2003
Distribution: Slackware 10.2 / Slamd 64
Posts: 86

Rep: Reputation: 15
Making a video with 1 jpeg plus audio with mencoder


Hello all,

Does anyone know how to make a video file (Flash video) using mencoder, but only using *one* jpeg file (so only one picture in the entire video) but at the same time being able to use an mp3 or wav file for audio? All my attempts follow the video (one jpeg) and produce only 1 frame, so mencoder needs to follow the audio and have the video repeat for encoding (since it's only 1 jpeg). Can anyone help?

Thanks

SP

Last edited by slothpuck; 07-16-2008 at 03:45 PM.
 
Old 08-01-2013, 11:57 AM   #2
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 352
Blog Entries: 1

Rep: Reputation: Disabled
I was searching for a way to make a movie of one image when I came across this no-reply thread. For future reference:

=-=-=-=
https://ffmpeg.org/trac/ffmpeg/wiki/"Create a video slideshow from images"

If you want to create a video out of just one image, this will do (output video duration is set to 30 seconds with -t 30):

ffmpeg -loop 1 -f image2 -i img.jpg -c:v libx264 -t 30 out.mp4

If you want to add audio (e.g. audio.wav) to one "poster" image, you need -shortest to tell it to stop after the audio stream is finished. We use the internal AAC encoder, but you can use any other AAC encoder as well:

ffmpeg -loop 1 -f image2 -i img.jpg -i audio.wav -c:v libx264 -c:a aac -strict experimental -b:a 192k -shortest out.mp4
-=-=-=-

You'll need plenty of disk space. The frame rate translates into that many copies of your image for each second.
Lots of info links - "Community Contributed Documentation" at https://ffmpeg.org/trac/ffmpeg/wiki
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help - mencoder, video_out problem, device jpeg mladja04 Linux - Software 5 07-11-2008 09:50 AM
Recording Video and Audio using mencoder OR13 Linux - Desktop 3 01-19-2007 04:19 PM
Help making a simple script for mencoder. joney_bravo Programming 3 01-01-2007 06:28 PM
mencoder/mplayer and splitting both audio and video streams from source... bai_design Linux - Software 0 02-06-2005 04:52 PM
mencoder jpeg stream encoding bakuretsu Linux - Software 0 10-10-2002 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:46 AM.

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