LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-15-2010, 03:31 AM   #1
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Rep: Reputation: 30
How can I produce a video that loops continuously.


I have an AVI which I produced on Blender in which a camera revolves around a model.

I want the camera to continuously circle the model over and over again.

I know I can do this in a GIF file format, but are there other formats that will do this?

What software can I use that would accomplish this?

Many thanks,

Dave Coventry
 
Old 03-15-2010, 08:59 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Where is the video to be used ?
 
Old 03-15-2010, 09:08 AM   #3
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by smoker View Post
Where is the video to be used ?
Just on a PC. I'm hoping to email it to a few people and they can view it on their PCs.
 
Old 03-15-2010, 09:16 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I have no first-hand knowledge but I would assume that the continuous loop is a function of the player. Try Google using--eg--"AVI continuous loop"
 
Old 03-15-2010, 09:32 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.
 
Old 03-15-2010, 11:09 AM   #6
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Hmmm.

As I say, GIF can accomplish this natively in the file format.

I guess I have to look for an AVI to GIF converter.
 
Old 03-15-2010, 11:20 AM   #7
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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
 
Old 03-15-2010, 11:27 AM   #8
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by cov View Post
Hmmm.

As I say, GIF can accomplish this natively in the file format.

I guess I have to look for an AVI to GIF converter.
I don't think that's true.
It's still down to whatever is displaying the gif. Either a web browser or other viewer.

I have animated gifs on my disk but they don't play unless they are opened in the relevant viewer.
 
Old 03-15-2010, 01:59 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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
 
Old 03-15-2010, 02:12 PM   #10
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
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.
 
Old 03-15-2010, 02:14 PM   #11
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pixellany View Post
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.
 
Old 03-15-2010, 02:55 PM   #12
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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--
 
Old 03-15-2010, 03:29 PM   #13
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by frieza View Post
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:
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	9
Size:	33.9 KB
ID:	3036  
 
Old 03-15-2010, 09:26 PM   #14
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,997

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
I think you can make a VLC playlist with the loop in it.
 
Old 03-16-2010, 12:19 AM   #15
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
So, basically the bottom line is that it's not possible?

Without the end user making some adjustment to their software? Whichever software that might be?
 
  


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
Video file backup while it write continuously netguy2000 Linux - General 1 07-23-2008 09:44 AM
continuously run a command? slinky2004 Linux - Newbie 2 11-04-2005 10:03 PM
ntpd won't run continuously jeffbarish Linux - Networking 3 10-04-2005 02:29 PM
CDROM Ejects Continuously bmikowski Linux - General 2 10-17-2004 07:16 PM
harddisk keeps rattling continuously botsmuts Linux - General 5 04-16-2003 06:53 AM

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

All times are GMT -5. The time now is 05:17 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