'Preview' of Chapters
DVD-Software.info Forum Index DVD-Software.info
Your one stop source for DVD Software
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
'Preview' of Chapters

 
Post new topic   Reply to topic    DVD-Software.info Forum Index -> DVD Authoring
Author Message
Paladin
Guest





Posted: Tue Nov 30, 2004 6:00 pm    Post subject: 'Preview' of Chapters Reply with quote

Hi,

i'd like to accomplish the following:

I have a background image, say, backgr.png, and a
mpeg movie, say, front.mpg.

Now I'd like to produce an new movie that can be
used on a dvd which will be created with dvdauthor.
This new movie should look like this:

|------------------------------|
| |
| |------------ | |
| | front.mpg | |
| | | |
| kind of | shown here | |
| fancy |-------------| |
| backgr.png |
| | Back-Button | |
|------------------------------|

I want the front.mpg to be rescaled to a smaller
size and layed over the back.png. A "Back-Button"
should provide the functionality to go back to
the main menu. I want this to be some kind of a
preview chapter on a DVD.

Most im portant: Everything has to work without a
GUI as I have only CLI available.

I hope someone can tell me which tools are applicable
here an point me to the right direction?

TIA,

Thomas

Back to top
Rob R
Guest





Posted: Tue Nov 30, 2004 6:01 pm    Post subject: Re: 'Preview' of Chapters Reply with quote

On Tue, 30 Nov 2004 14:00:50 +0100, Paladin wrote:

Quote:
Hi,

i'd like to accomplish the following:

I have a background image, say, backgr.png, and a mpeg movie, say,
front.mpg.

Now I'd like to produce an new movie that can be used on a dvd which will
be created with dvdauthor. This new movie should look like this:

|------------------------------|
| |
| |------------ | |
| | front.mpg | |
| | | |
| kind of | shown here | |
| fancy |-------------| |
| backgr.png |
| | Back-Button | |
|------------------------------|

I want the front.mpg to be rescaled to a smaller size and layed over the
back.png. A "Back-Button" should provide the functionality to go back to
the main menu. I want this to be some kind of a preview chapter on a DVD.

Most im portant: Everything has to work without a GUI as I have only CLI
available.

I hope someone can tell me which tools are applicable here an point me to
the right direction?

TIA,

Thomas

Thomas,

What you are trying to do here, essentially, is create a DVD menu with
motion. There are two parts to this process. First, you need to be able to
create the menu background, which is the combination of your background
image and your preview movie. Second, you need to be able to create your
back button and assign a menu function to it.

I'll leave the button creation alone for now. The more interesting problem
is merging the background image and your preview -- in a CLI, no less! A
little browsing points me to a set of utilities called "ImageMagick". One
utility, called "composite", should give you the ability to merge
individual frames (still images) with your background.

So how do you get scaled still images out of your movie? I'd look into
"mjpegtools". This package contains a program that can convert a video
stream into individual images. It also contains a program that can scale
the movie to the size you want. Finally, it can convert a sequence of
images back into a video stream.

Here's a roughed-out sequence you will need to perform. Many of these
functions can be piped into each other, so you won't have to deal with
massive numbers of files containing individual frames.

1) Scale the movie to the desired size using mjpegtools.
2) Convert the movie to individual frames, also with mjpegtools.
3) Combine the individual frames with the background using "composite".
4) Convert the frames back into a video stream using mjpegtools.
5) Author your buttons (not discussed here).

There's probably a lot more to this that I haven't mentioned. I can think
of a number of problems you can run into, like still image format
conversions, synchronizing audio with your finished product, and dealing
with interlacing.

If you can wade through all of this and come out with a usable technique,
I'd be interested in hearing about it. Or if anyone else has a better
approach, please jump in.

--
Rob R
mail me at Enigma dash I at charter dot net
Back to top
OldTimer
Guest





Posted: Tue Nov 30, 2004 6:01 pm    Post subject: Re: 'Preview' of Chapters Reply with quote

On Tue, 30 Nov 2004 09:32:49 -0500, Rob R <see.sig@msg.end> wrote:

Quote:
On Tue, 30 Nov 2004 14:00:50 +0100, Paladin wrote:

Hi,

i'd like to accomplish the following:

I have a background image, say, backgr.png, and a mpeg movie, say,
front.mpg.

Now I'd like to produce an new movie that can be used on a dvd which will
be created with dvdauthor. This new movie should look like this:

|------------------------------|
| |
| |------------ | |
| | front.mpg | |
| | | |
| kind of | shown here | |
| fancy |-------------| |
| backgr.png |
| | Back-Button | |
|------------------------------|

I want the front.mpg to be rescaled to a smaller size and layed over the
back.png. A "Back-Button" should provide the functionality to go back to
the main menu. I want this to be some kind of a preview chapter on a DVD.

Most im portant: Everything has to work without a GUI as I have only CLI
available.

I hope someone can tell me which tools are applicable here an point me to
the right direction?

TIA,

Thomas

Thomas,

What you are trying to do here, essentially, is create a DVD menu with
motion. There are two parts to this process. First, you need to be able to
create the menu background, which is the combination of your background
image and your preview movie. Second, you need to be able to create your
back button and assign a menu function to it.

I'll leave the button creation alone for now. The more interesting problem
is merging the background image and your preview -- in a CLI, no less! A
little browsing points me to a set of utilities called "ImageMagick". One
utility, called "composite", should give you the ability to merge
individual frames (still images) with your background.

So how do you get scaled still images out of your movie? I'd look into
"mjpegtools". This package contains a program that can convert a video
stream into individual images. It also contains a program that can scale
the movie to the size you want. Finally, it can convert a sequence of
images back into a video stream.

Here's a roughed-out sequence you will need to perform. Many of these
functions can be piped into each other, so you won't have to deal with
massive numbers of files containing individual frames.

1) Scale the movie to the desired size using mjpegtools.
2) Convert the movie to individual frames, also with mjpegtools.
3) Combine the individual frames with the background using "composite".
4) Convert the frames back into a video stream using mjpegtools.
5) Author your buttons (not discussed here).

There's probably a lot more to this that I haven't mentioned. I can think
of a number of problems you can run into, like still image format
conversions, synchronizing audio with your finished product, and dealing
with interlacing.

If you can wade through all of this and come out with a usable technique,
I'd be interested in hearing about it. Or if anyone else has a better
approach, please jump in.

Rob:

Having read your very interesting discussion and suggestions for how
to proceed with this project, I did a search for mjpegtools and what I
come up with appears to be a program that runs only under Linux. Is
this the case or do you happen to have another source for this set of
programs? Any assistance would be greatly appreciated as I think
mjpegtools may have many other applications.

OldTimer
Back to top
Rob R
Guest





Posted: Wed Dec 01, 2004 12:00 am    Post subject: Re: 'Preview' of Chapters Reply with quote

On Tue, 30 Nov 2004 16:52:41 +0000, OldTimer wrote:

Quote:
On Tue, 30 Nov 2004 09:32:49 -0500, Rob R <see.sig@msg.end> wrote:


(snip)

1) Scale the movie to the desired size using mjpegtools. 2) Convert the
movie to individual frames, also with mjpegtools. 3) Combine the
individual frames with the background using "composite". 4) Convert the
frames back into a video stream using mjpegtools. 5) Author your buttons
(not discussed here).

(snip)

Rob:

Having read your very interesting discussion and suggestions for how to
proceed with this project, I did a search for mjpegtools and what I come
up with appears to be a program that runs only under Linux. Is this the
case or do you happen to have another source for this set of programs?
Any assistance would be greatly appreciated as I think mjpegtools may have
many other applications.

OldTimer

OldTimer,

Yes, mjpegtools and the other tools mentioned here are programs that run
under Linux and other Unix-like platforms. There may be ways to run them
under other operating systems, such as Windows, but Linux is the intended
environment. Paladin/Thomas indicates that he has access to a command line
only, so he is clearly not running Windows.

Mjpegtools is the core set of programs under Linux for manipulating MPEG
files. It is very functional and flexible. Many video editing applications
(GUI) use mjpegtools as a base. I generally use GUI editing programs like
"kino", but if I need more control I can step back into the Linux command
line and tweak the video in order to achieve the results I want.

--
Rob R
mail me at Enigma dash I at charter dot net
Back to top
Paladin
Guest





Posted: Wed Dec 01, 2004 12:02 pm    Post subject: Re: 'Preview' of Chapters Reply with quote

Hi Rob,

again, many thanks for your extensive answer. As I am quite new
to automated video processing under Linux your hints helped me a lot.

Quote:
If you can wade through all of this and come out with a usable technique,
I'd be interested in hearing about it.

Sure I will. But I think it will take some time to accomplish my
current task. When all is up and running I will write a small
step-by-step-tutorial about this.

Thanks a lot,

Thomas
Back to top
 
Post new topic   Reply to topic    DVD-Software.info Forum Index -> DVD Authoring All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Office Forum Access Forum Windows Server Exchange Server

Powered by phpBB