Re: jpg to avi

2008-04-18 Thread Barry

Thanks Guys,

This is looks like the info I need to experiment with

Barry

[EMAIL PROTECTED] wrote:


On Fri, 18 Apr 2008 22:13:57 +1200, Lee Begg <[EMAIL PROTECTED]> wrote:
 


On Fri, 18 Apr 2008, Barry wrote:
   


Sorry, I did not explain what I want to do very well

I have some short avi clips which I have combined/modified and put on a
vcd.

I now wish to start the process again but insert into the movie some
jpeg images as well as the avi files.

How do I convert the jpg files and set the period for which they are
displayed in the movie?
 


mjpegtools has the tools you need.

Basically, you convert the correct size jpg to pnm, then feed it into 
ppmtoy4m, then mpeg2enc to encode it to the correct format, then use
   


mplex
 

to 
multiplex sound (or silence) and you have a dvd ready mpeg file.


It is the same process for the background of a dvd menu. See 
http://www.tappin.me.uk/Linux/dvd.html#menus for details. Set the -n 
parameter to ppmtoy4m to the number of frames you need (ie, number of
seconds 
times 25 (frames per second)).


Use mencoder on the result if you need something other than mpeg2.

Hope this helps

Later
Lee
   



Alternatively use something like what Barry was doing, except you need to
have a series of files, one for each frame.

Something like take the first frame and rename it frame001.jpg

Say you want 5 second view, you need 25x5=125 frames (assuming PAL frame
rate).

Now make 124 soft link files all pointing to frame001.jpg and consecutively
numbered so you end up with:

frame001.jpg
frame002.jpg
...
frame125.jpg

That step is tedious to do by hand but of course you can script it.

You now have 125 frames to feed to mencoder. Alternatively use a simple
editor like avidemux to add in the 125 frames.

You can also use a more sophisticated editor like kino or cinelerra to add
the jpg once, and specify the number of seconds it should be inserted for.

If you are wanting to add to an existing video you will first need to
resize the frames to the same dimensions as the frame size in the existing
video. This may involve cropping/resizing.



 





Re: jpg to avi

2008-04-18 Thread nick


On Fri, 18 Apr 2008 22:13:57 +1200, Lee Begg <[EMAIL PROTECTED]> wrote:
> On Fri, 18 Apr 2008, Barry wrote:
>> Sorry, I did not explain what I want to do very well
>>
>> I have some short avi clips which I have combined/modified and put on a
>> vcd.
>>
>> I now wish to start the process again but insert into the movie some
>> jpeg images as well as the avi files.
>>
>> How do I convert the jpg files and set the period for which they are
>> displayed in the movie?
> 
> mjpegtools has the tools you need.
> 
> Basically, you convert the correct size jpg to pnm, then feed it into 
> ppmtoy4m, then mpeg2enc to encode it to the correct format, then use
mplex
> to 
> multiplex sound (or silence) and you have a dvd ready mpeg file.
> 
> It is the same process for the background of a dvd menu. See 
> http://www.tappin.me.uk/Linux/dvd.html#menus for details. Set the -n 
> parameter to ppmtoy4m to the number of frames you need (ie, number of
> seconds 
> times 25 (frames per second)).
> 
> Use mencoder on the result if you need something other than mpeg2.
> 
> Hope this helps
> 
> Later
> Lee

Alternatively use something like what Barry was doing, except you need to
have a series of files, one for each frame.

Something like take the first frame and rename it frame001.jpg

Say you want 5 second view, you need 25x5=125 frames (assuming PAL frame
rate).

Now make 124 soft link files all pointing to frame001.jpg and consecutively
numbered so you end up with:

frame001.jpg
frame002.jpg
...
frame125.jpg

That step is tedious to do by hand but of course you can script it.

You now have 125 frames to feed to mencoder. Alternatively use a simple
editor like avidemux to add in the 125 frames.

You can also use a more sophisticated editor like kino or cinelerra to add
the jpg once, and specify the number of seconds it should be inserted for.

If you are wanting to add to an existing video you will first need to
resize the frames to the same dimensions as the frame size in the existing
video. This may involve cropping/resizing.





Re: jpg to avi

2008-04-18 Thread Lee Begg
On Fri, 18 Apr 2008, Barry wrote:
> Sorry, I did not explain what I want to do very well
>
> I have some short avi clips which I have combined/modified and put on a
> vcd.
>
> I now wish to start the process again but insert into the movie some
> jpeg images as well as the avi files.
>
> How do I convert the jpg files and set the period for which they are
> displayed in the movie?

mjpegtools has the tools you need.

Basically, you convert the correct size jpg to pnm, then feed it into 
ppmtoy4m, then mpeg2enc to encode it to the correct format, then use mplex to 
multiplex sound (or silence) and you have a dvd ready mpeg file.

It is the same process for the background of a dvd menu. See 
http://www.tappin.me.uk/Linux/dvd.html#menus for details. Set the -n 
parameter to ppmtoy4m to the number of frames you need (ie, number of seconds 
times 25 (frames per second)).

Use mencoder on the result if you need something other than mpeg2.

Hope this helps

Later
Lee



signature.asc
Description: This is a digitally signed message part.


Re: jpg to avi

2008-04-17 Thread Barry

Sorry, I did not explain what I want to do very well

I have some short avi clips which I have combined/modified and put on a vcd.

I now wish to start the process again but insert into the movie some 
jpeg images as well as the avi files.


How do I convert the jpg files and set the period for which they are 
displayed in the movie?


Barry
---
Christopher Sawtell wrote:


mencoder "mf://*.jpg" -mf fps=0.1 -o output.avi -ovc lavc -lavcopts
vcodec=mpeg4

view with:-
mplayer -fs

Seems to work for me giving 10secs per picture.

ps It's much simpler to use gwenview in slideshow mode.

alternatively:-
* media-gfx/pornview
Available versions:  0.2.0_pre1 0.2.0_pre1-r1 {jpeg mplayer nls
static xine}
Homepage: http://pornview.sourceforge.net
Description:Image viewer/manager with optional
support for MPEG movies.

But I'm not sure that the trams would approve.  :-)

Also, please be aware that many reasonably modern DVD players will do
slide-shows of jpegs on CD/DVD discs via the TV.


On 4/17/08, Barry <[EMAIL PROTECTED]> wrote:
 


'mencoder "mf://~/photos/bdtram/dcp_0092.jpg" -mf fps=25 -o output.avi
-ovc lavc -lavcopts vcodec=mpeg4'
will produce a avi file with but a single frame. How do I alter the cmd
to produce a avi file with many frames of the same jpg so it wil display
for a set period of time eg 1sec, 2sec etc?

TIA

Barry


   




 





Re: jpg to avi

2008-04-17 Thread Douglas Royds
True, but they are terribly slow to load photos from modern digital 
cameras (in the order of 20s per frame - useless). I assume the 
DVD-drive in a set-top box is not very fast, and modern cameras are 
dropping 2Mb files onto disk.


Christopher Sawtell wrote:

Also, please be aware that many reasonably modern DVD players will do
slide-shows of jpegs on CD/DVD discs via the TV.
  



===
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
===



Re: jpg to avi

2008-04-17 Thread Christopher Sawtell
mencoder "mf://*.jpg" -mf fps=0.1 -o output.avi -ovc lavc -lavcopts
vcodec=mpeg4

view with:-
mplayer -fs

Seems to work for me giving 10secs per picture.

ps It's much simpler to use gwenview in slideshow mode.

alternatively:-
* media-gfx/pornview
 Available versions:  0.2.0_pre1 0.2.0_pre1-r1 {jpeg mplayer nls
static xine}
 Homepage: http://pornview.sourceforge.net
 Description:Image viewer/manager with optional
support for MPEG movies.

But I'm not sure that the trams would approve.  :-)

Also, please be aware that many reasonably modern DVD players will do
slide-shows of jpegs on CD/DVD discs via the TV.


On 4/17/08, Barry <[EMAIL PROTECTED]> wrote:
> 'mencoder "mf://~/photos/bdtram/dcp_0092.jpg" -mf fps=25 -o output.avi
> -ovc lavc -lavcopts vcodec=mpeg4'
> will produce a avi file with but a single frame. How do I alter the cmd
> to produce a avi file with many frames of the same jpg so it wil display
> for a set period of time eg 1sec, 2sec etc?
>
> TIA
>
> Barry
>
>


-- 
Sincerely etc.
Christopher Sawtell


jpg to avi

2008-04-16 Thread Barry
'mencoder "mf://~/photos/bdtram/dcp_0092.jpg" -mf fps=25 -o output.avi 
-ovc lavc -lavcopts vcodec=mpeg4'
will produce a avi file with but a single frame. How do I alter the cmd 
to produce a avi file with many frames of the same jpg so it wil display 
for a set period of time eg 1sec, 2sec etc?


TIA

Barry