How can I produce a video that loops continuously.
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The only thing I know of that can do continuous looping natively is a dvd. The discs menu structure can be programmed to tell the player what to do when it reaches the end of a title, and that can be to start over at the beginning.
There are several dvd authoring programs available that you should be able to use to create a simple menuless, looping disc image, and most players should be able to play that without the need to burn it to physical media.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
mplayer can dump an avi to jpeg with -vo jpeg then the GIMP can be used to convert the jpegs into an animated GIF by opening the jpegs as layers then saving as GIF and telling it animated
no sound in an animated GIF though
My gut tells me that converting a video clip to a GIF is going to be a bit cumbersome.
"normal" video is 30 frames/second. Suppose the clip is 5 minutes (300 seconds).
You'll need 9,000 individual jpegs, which will be a bit unwieldy if converted to layers in GIMP.
animated GIFs are not really intended for this purpose
The easiest solution is to use ffmpeg to make a flash movie and embed it in a web page. Then send the friends both files.
Otherwise you will be dependent on the player they have installed. You could make an ogg video but loop isn't implemented yet in Firefox.
My gut tells me that converting a video clip to a GIF is going to be a bit cumbersome.
"normal" video is 30 frames/second. Suppose the clip is 5 minutes (300 seconds).
You'll need 9,000 individual jpegs, which will be a bit unwieldy if converted to layers in GIMP.
animated GIFs are not really intended for this purpose
Your gut feeling is correct. It looks terrible! Moreover the file size is monstrous.
However, I have at least established that the GIF file format DOES have the capability to specify continual loops which is specified with a tick box when using GIMP.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
it's not really just a tick box as much as
1. dump the frames using mplayer or some other softare
2. open the first frame in the gimp
3. select 'open as layers' and add the rest of the frames in sequence by dragging them from the open dialog into the window
4. use 'scale image' to scale to a more attachment friendly size
5. save as, give it a name with a .gif extension
6. when prompted the tick box would be 'save as animation'
note you will probably not want to import every single frame, every third or fourth and possibly even a slightly larger interval will be adequate, you can experiment on this to achieve the best balance between smoothness and file size
it's not really just a tick box as much as
1. dump the frames using mplayer or some other softare
2. open the first frame in the gimp
3. select 'open as layers' and add the rest of the frames in sequence by dragging them from the open dialog into the window
4. use 'scale image' to scale to a more attachment friendly size
5. save as, give it a name with a .gif extension
6. when prompted the tick box would be 'save as animation'
note you will probably not want to import every single frame, every third or fourth and possibly even a slightly larger interval will be adequate, you can experiment on this to achieve the best balance between smoothness and file size
--good luck--
Yes.
That's what I did.
The tick box comes up in the last dialog when saving as GIF:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.