Log in

View Full Version : HowTo create DVD-like Menus in MP4 - MP4Menu


Pages : [1] 2 3

bond
11th December 2003, 14:07
ok, as some of you might already know the mpeg-4 standard offers the possibility to put menus, as known from DVDs, into the MP4 file format.
this small guide aims at helping you to be able to create an own menu, as known from dvd, yourself in the MP4 container format, by using the mp4menu script i wrote to make the process easier
with mp4menu you should be able to make a 1:1 copy of a DVD on CDR

proof of concept sample
before you start doing it yourself, you maybe want to see a proof of concept sample kindely provided by OBcecado (http://isabelle.math.ist.utl.pt/~l52768/sw_sample.zip)!
note that only chapter1 and 2 will work (as its not the whole movie of course)


authoring in mpeg-4 systems
till someone writes a nice mpeg-2 systems -> mpeg-4 systems convertor, the menu authoring has to be done "by hand" by using a textual language format, called XMT or BT (based on VRML, like the well known Flash), which than has to be compiled/encoded into mp4 (a free available compiler/encoder is for example mp4box), which creates the so called BIFS track, which carries the menu and controls how the a/v gets played

why mp4menu?
as you can imagine writing a whole BT/XMT scipt from the ground by hand for a dvd-like menu in mp4 is not that easy.
a gui would make this process much easier and there are already some GUI oriented MP4 authoring tools existing, but all not available to the broad public!

now i always wanted to be able to also use menus on my backups, to be able to make a real 1:1 copy of a dvd on a cdr. so i wanted to explore the possibilities of mpeg-4 systems and create a dvd-like menu in mp4. thats why i started to learn the BT/XMT language from the ground.
to share my learned knowledge (and the resulting script) i created the mp4menu project which has the goal to make it easier for you to author such dvd-like menus in mp4 yourself

now you can find the product of this work on sourceforge on the mp4menu page (http://sourceforge.net/projects/mp4menu/) i created there
i hope that i will be able to make mp4menu even better with your suggestions on what to improve :)

how can i use mp4menu?
mp4menu provides you a BT sample script (XMT will follow) which already offers all the main features you can find on a dvd menu (ie chapter menu, language menu, etc...)
"all" you have to do now is to adopt this sample script to the dvd menu you want to make a backup from (well most dvd menus are similar but not exactly the same)


so lets start with a small guide
before you can start let me tell you something about the "world" we are in:
[hm, as doom9 doesnt allow political discussions here i will leave the most important part out ;) ]
in the current mp4menu script we are in a world that has 2 dimensions (well 3 dimensions are also possible in mpeg-4 systems, but i havent seen a 3D dvd menu till now ;) ) and this world is defined by time (not frames, as mp4 also handles variable framerate) and pixels (not meters or somthing similar)

preparing the source
first of all: i dont allow the usage of mp4menu when it is against the legal situation in your country (in most countries its still allowed to make a backup of dvds you own, but not to break the dvd copy protections etc...)


i expect you to have your vob files, which contain the dvd menu, (or any other source you want to use) on your hd already

1) watch the dvd, learn how it works and note down what happens if you push here and there, where are the intros/outros/transitions between menus, what parts get looped etc...

2) encode/prepare the streams:
a) audio: specified audio formats in mp4 are mp3 and aac, but i think it makes things easier when you first convert your ac3 streams from the vob only into .wav (use besweet for that for example)
i will write later on why this can avoid problems

b) video: i expect you to know how to encode the video from a vob to mpeg-4. to avoid problems i suggest to use a codec which is able to input keyframes at specific points (all menus (chapters, languages, mainmenu) are stored right behind each other in the vob and will also be stored like this in 1 video stream in the mp4)
make sure you have a keyframe at positions where there are changes from 1 menu to the other for example (to find out where this exactly is you can also have a look at the vob (for example with virtualdubmod), cause it also has the keyframes at this points)
you can set keyframes in xvid (and in divx5 by using this ekg tool too afaik)
note that avi files created by divx5 or xvid using b-frames have to be muxed with mp4box or 3ivx to mp4, to get spec compliant mp4 files!

a second thing you have to look for is that the width of your menu video stream has to have the same width as the movie! (to avoid black borders on the sides)

c) convert your subs into the srt format (or hardcode them onto the video stream)

3) cut the video:
often there are different styles of menus stored on a dvd/in a vob, i suggest you to choose only one to keep the final menu size low
a) mux the wav with the whole video, open the video in vdm and cut out all parts you dont want to have/dont need in your final menu
you can do that with the ac3 too, but vdm isnt that good in ac3 cutting imho as you will see if you do it ;)
b) demux the cutted wav and encode it with your favourite encoder to mp3 or aac

the following formats are supported as input in mp4box:
mpeg-4 video in .avi and .mp4
audio: .mp3, cbrmp3 in .avi (not vbrmp3!), aac in .mp4

lets start with the script
grap the mp4menu script (http://sourceforge.net/projects/mp4menu)
the script might look like a huge beast at first sight but dont be afraid you dont have to change that much in there ;)

if you want to know what each command is for, feel free to ask or have a look a this great guide (http://gpac.sourceforge.net/tutorial/bifs_intro.htm) written by the guys of the gpac project (i think it covers everything i have in my script)

1) define the size of your "world"
search for "pixelWidth" and set it to the width of your videos, set the height in a 4:3 ratio, ie width is 576 than the height is 432 (576*3/4)

2) change the links to your input files

3) adjust the segments:
a) as you can see you can define the chapterpoints with segmentdescriptor, you always have to define the startpoint and the duration (all in seconds)
b) the same method is used to define the different parts of the menuvideo stream (menuintro, transitions, the menus themselves etc...)

4) define the type/position of your buttons:
to make the buttons visible add a "#" before "transparency 1.0" in the buttonappearance proto
a) as known from your mathematics courses we have to define two values to define a point in a 2D world
the first value (x) will move the object horizontally, the second (y) vertically. the point 0 0 is in the middle of the world!
b) you can have all sorts of types for a button, ie rectangle, ellipse aso...
x is the width of the object and y the height (for some styles (ie circle) you need to define a radius)

5) define the appearance and position of the subs
search for MovieSubtitle, there you can define the size, font etc...
guess what you can define under position ;)

6) the moviebuttons
i have added an own menu which you can use during movie playback, which you will not find on a dvd that way

its a little bit difficult to describe here what you need to look for, where to add the buttons, etc.. thats why i added some infos in the script itself

ok, i think these are all basic things everyone has to look for when using mp4menu, of course there are some things you have to change for each dvd seperately (like the number of chapters, the number of languages (audio and subs) aso...
i didnt described now how exactly this works cause it will be different every time, but feel free to ask, i will do my best to help you with your specific backup :)

convert the script into mp4
to convert the bt script into binary format in mp4 you need a compiler/encoder
jeanlf from gpac has written such a tool, mp4box, which works great
grap it from here (http://www.rarewares.org/mp4.html)
create and execute a .bat file with the following commandline:
"c:\path to\mp4box.exe" -mp4 "c:\path to\mp4menu_0.1.bt"and you will get the ready output mp4 file

how can i play these mp4 files?
as these mp4 files are spec compliant to the mpeg-4 systems standard you should be able to play them with every good mpeg-4 systems 2D player
imho the best currently available is the Osmo4 from GPAC (http://www.rarewares.org/mp4.html)!
i dont recommend the usage of enviviotv as it is very limited (doesnt support all the funky features, like mp3, png decoding, chapters, loop...) and is not available for free anymore!

how is the chance that i will be able to playback these menus on hardware players in the future?
if h264 will become the next dvd successor the chance isnt that small imo
you have to know that the mp4 container is the native container of the h264 codec (not avi) as defined in the mpeg-4 standard
well if h264 becomes a success, the industry will ask for a way to create dvd-like menus and the chance is great that they will use the mpeg-4 systems standard for that

TODO
- make the moviebuttons/menu to be placed automatically at the bottom of the world
- design a nicer layout for the moviemenu (perhaps add a jpg/png as background)
- add some "on mouse over" animations
- convert the BT script to XMT
- write a nicer guide :D add things that might arise in the discussion
- get dshow developers to release better support for mp4menu or at least write a dshow video switcher

hm, anything else i wanted to say? i surely forgot something :D

SeeMoreDigital
11th December 2003, 14:59
Wow!

If I may I would like to upload the file to the JovePlayer server.

Hopefully they will be able to make the menu system work with the Xcard.

Now that would be cool!

Cheers

EDIT: It's too bad about MP4 chapters in general though.

I remember many years ago I had an VHS VCR that could simply create (mark) chapters at the push of a button, while you were playing back your recordings. Too bad there isn't something as simple as this for Mpeg4 in an MP4 container....

We live to dream though!

filewalker
11th December 2003, 15:09
really impressive!:eek: :)

Works like a charme with the Osmo4 player...

now, I'm speechless...


Cu filewalker

bond
11th December 2003, 19:13
Originally posted by SeeMoreDigital
Wow! Originally posted by filewalker
really impressive!:eek: :)
now, I'm speechless...great that you guys like it :)

It's too bad about MP4 chapters in general though.what do you mean? whats the problem with the chapters?

SeeMoreDigital
11th December 2003, 19:35
Originally posted by bond
what do you mean? whats the problem with the chapters? Well, I suppose my comment is really related to Recode2. It seems a bit odd that such an obvious facility has been omitted.

But as I've mentioned a few times before... It's early days yet!

Cheers

mf
11th December 2003, 21:15
Now all that awaits is for Gabest to implement displaying MP4 menus in MPC :D.

SeeMoreDigital
11th December 2003, 21:32
Originally posted by mf
Now all that awaits is for Gabest to implement displaying MP4 menus in MPC :D. Oh yea!

mf, could you get any part of the file to play in MPC. I could not!


Cheers

bond
11th December 2003, 21:39
as i wrote in my guide, you need a systems capable player/filter to decode systems content

the only available dshow filter capable of that is enviviotv, but it is very limited as i described already too...

SeeMoreDigital
11th December 2003, 22:05
Originally posted by bond
as i wrote in my guide, you need a systems capable player/filter to decode systems content

the only available dshow filter capable of that is enviviotv, but it is very limited as i described already too... The file can just about run using the QuickTimePro player... without the interactive content ofcourse.

mf
11th December 2003, 22:13
Originally posted by SeeMoreDigital
Oh yea!

mf, could you get any part of the file to play in MPC. I could not!


Cheers
Yes, the main movie plays fine. Which is nice, cause it means these rips will be backwards-compatible.

RadicalEd
11th December 2003, 22:22
Was starting to wonder ;)
I haven't been working on mine :P so lazy am I. I'll get that thing done some day :|

Very nice indeed.

bond
11th December 2003, 22:27
quicktime is one of the few players that support video switching already

to be really 100% backwards compatible with all dshow filters/players that dont understand systems we will need something like a video switcher filter or function in these players

but better than a dshow video switcher filter would be a good dshow systems decoder filter :D

SeeMoreDigital
11th December 2003, 22:34
As an encode, it looks beautiful in hardware. All 1 minute 40.14 seconds of it!

Cheers

EDIT: I don't believe it. This is my 1004th post. I've nearly done as many as bond... but obviously they aren't nearly as informative!

mf
11th December 2003, 23:50
Originally posted by SeeMoreDigital
EDIT: I don't believe it. This is my 1004th post. I've nearly done as many as bond... but obviously they aren't nearly as informative!
Wow, I have 1004 too! (Well, now I have 1005 of course, but when I started this post I had 1004) :D. I wonder between you and me who would have the most informative posts :).

LordIntruder
12th December 2003, 02:02
Hi.


Have just been watching the sample of SW II and yes it is great!! :)

I'm doing similar dvd movies menus by using the old microdvd player which allow to make same things. The only one that don't work properly is when you want to make a bivx, the second audio stream has to be out of the avi and so I look for a better program to avoid that but meanwhile I stay with microdvd.

Well I tried to install things but I don't understand anything :confused: . I'm under Windows XP and have no knowledge of any script or stuff like that. Is there a GUI somewhere of GPAC? I'm quite at a lost with all those *.BT files. I see no EXE, no program to be launched, but I see many files extensions I never encounter before! ;) Your small guide is fine but it doesn't help me.

Are there more explanations, step by step, somewhere else? Something like guides here that explain clearly to a newbie how to make a divx, should be fine to have such similar things with your project.

Anyway cheers for your work. :)

Animaniac
12th December 2003, 03:17
Very VERY impressive.

ThePanda
12th December 2003, 08:06
Is it possible that menus like this will ever be integrated into an automated tool like Nero Digital for DVD -> mpeg4 backup with the menus preserved?

bond
12th December 2003, 09:59
Originally posted by LordIntruder
Well I tried to install things but I don't understand anything :confused: . I'm under Windows XP and have no knowledge of any script or stuff like that. Is there a GUI somewhere of GPAC? I'm quite at a lost with all those *.BT files. I see no EXE, no program to be launched, but I see many files extensions I never encounter before! ;) Your small guide is fine but it doesn't help me.well thats the problem, there is no gui atm :(

you will have to adopt the settings in the bt script itself, than you grap a systems compiler/encoder (one is for example mp4box from gpac)
use the following commandline:
"c:\path to\mp4box.exe" -mp4 "c:\path to\mp4menu_0.1.bt"and you will get the output mp4 file
thats "all" :D

Are there more explanations, step by step, somewhere else? Something like guides here that explain clearly to a newbie how to make a divx, should be fine to have such similar things with your project.nope, there are no other step by step guides focusing on dvd menus
i think, i (proudly) can say that i am the first one who did it (at least in the public) :)

i think i covered in my small guide till now all things that are similar for every dvd, but as you can imagine there also big differences for every dvd/user (like how many subs, audio streams, chapters...)
i suggest everyone who is interested in making a mp4 menu this way just to start with it and when there are problems just ask, i will do my best to help you
after some time i think i will be able than to figure out what people need most, what the focus should be in a guide and than write an overall step-by-step guide

Originally posted by ThePanda
Is it possible that menus like this will ever be integrated into an automated tool like Nero Digital for DVD -> mpeg4 backup with the menus preserved?would be great of course :)

c0p0n
12th December 2003, 11:45
two words: IM-PRESSIVE. I've never been such impressed by something remotely related to MPEG4 since... well, Nandub b16(I think), maybe before with VirtualDub VKI MM4.
the next step is a WYSIWYG editor...
keep up the good work!

LordIntruder
12th December 2003, 13:05
Originally posted by bond
[B]well thats the problem, there is no gui atm :(

Ah ok!! At least it is now clear. Do you plan do make one? If you want your work to be widely used you should think to make one. Microdvd Player has a GUI and once you learnt how to use it, it is a piece of cake to make DVD menu.

The "plus" with your project is that everything is included in the MP4. With Microdvd menu is outside of the main AVI, including sounds, images. You must have an executable and some ini files (script) and it may confuse the user, so you have to make an executable to launch everything in the right order.

With your project we just have to use a specific wiever and it rocks.


you will have to adopt the settings in the bt script itself


Ok got it!! I opened the BT file with Notepad and everything comes clear. Well clear is not the right word because if now I know where the commands are, it is a real headache to learn how to use it. You see why I ask for a GUI? lol :D :D

When I first learn how to use MicroDVD menu creation it was already a real pain in the ass to figure out all the commands, what were their impact as the guide can not cover each case. But your BT script is at least twenty times longer than my microdvd ones and it is hard to notice what are the lines that are needed for the program to work fine and the ones than can be changed and only needed for the menu.


after some time i think i will be able than to figure out what people need most, what the focus should be in a guide and than write an overall step-by-step guide


I can give my experience on dvd menu creation with Microdvd.

I copy vobs and encode menus if they are animated ones or takes snapshots. I encode music of those menus or add ones taken from the movie. Then with the GUI I select the clickable areas. The rest is done by "hand" with notepad (because I'm used to use that program) but you can do it with the GUI. There are some commands to learnt, you put them, you add links from one menu to the next (chapters, audios, etc...).

The user should be able to increase/decrease size and type of font for subtitles, didn't see that when playing your SW II sample. Also the possibility to use vobsub subtitles instead of only OCR (srt) ones. The possibility to add more than 2 audios streams, 2 languages and a commentary stream. The possibility to use Ogg as audio, usual stuff like that.

I'll keep an eye on your work. :)

ThePanda
13th December 2003, 02:05
I emailed Nero to suggest that they work with bond to integrate automated menu backup into Nero Digital. Maybe they will just delete my email but I guess it's worth a try :).

bond
13th December 2003, 10:38
hey nice idea, thanks :)

DarkDudae
15th December 2003, 00:09
Just to thanks bond for this great work ;)

pogo stick
21st January 2004, 16:26
Interesting! I would like to try MP4Menu.
But links to MP4Box and Osmo4 player are not working.
I tried searching but it didn't help.
Is it still available? If not, can I use MP4Menu without MP4Box?

bond
21st January 2004, 17:36
Yes you should be able to use MP4Menu with any MPEG-4 Systems Encoder, ie mp4tool from enst but i only tested it really with mp4box

otherwise you would have to compile osmo4 and mp4box yourself :(

pogo stick
22nd January 2004, 05:15
mp4tool from enst is not available too. :(
Can I do it with MPEG4IP's mp4tools? If so then how?
I am new to all this stuff, but I would REALLY like to try.
And what is other mpeg-4 systems player would you recommend instead of Osmo4? I don't know how to compile it. :(

bond
23rd January 2004, 17:08
no mpeg4ips tools dont inlcude a bifs encoder

thanks to rjamorim you can find compiles of mp4box and osmo4 on his rarewares site:
http://rarewares.hydrogenaudio.org/mp4.html

malitz
22nd April 2004, 09:24
hello,

I can not find mp4box anywhere.
Can you please tell me a URL or email it?

Thanks!

greetings

Michael

bond
22nd April 2004, 09:32
lo malitz!

welcome to doom9 and thanks for your interest in mp4menu :)

its a little bit hidden on rarewares, its called "Gpac MPEG4 toolbox" there

SeeMoreDigital
22nd April 2004, 09:35
Originally posted by malitz
...I can not find mp4box anywhere.
Can you please tell me a URL or email it?

Michael Hi Michael, Welcome to the forum.

If you had looked at bond MP4 FAQ, you would have found this link: - http://gpac.sourceforge.net/auth_mp4box.php

Cheers

malitz
21st May 2004, 13:39
Hello bond,

I am trying to get along with your great mp4menu script.
I have mp4box now and followed the instructions in your guide.

But I have problems with the file. When I convert the bt file to mp4 using mp4box I only get the menuvideo without audio in the mp4 file or only the main movie. :(

Can you please give your source files? That might help to understand the mp4menu script. I am talking about the menu.mp4 and menu.avi mentioned in your script. And perhaps the other files too.

Greetings

Michael

bond
21st May 2004, 14:59
Originally posted by malitz
When I convert the bt file to mp4 using mp4box I only get the menuvideo without audio in the mp4 file or only the main movie.you mean when you start playing the mp4 in osmo4 only the menu gets displayed? can you push the buttons?

I am talking about the menu.mp4 and menu.avi mentioned in your scriptmenu.avi is simply the menu directly from the .vob encoded with a mpeg-4 codec and stored in .avi
menu.mp4 is the audio of the menu directly from the .vob encoded with aac or mp3 and stored in .mp4

the "#1" defines the trackid of the stream in the mp4. to find out the trackid open the .mp4 in mp4ui (the audio tracks outputted by most aac encoders always have trackid 1)


so to say if you look in my mp4menu.bt
- the first file listed is movie.avi#video - here you have to set the path to the file which contains the full movie (but not the audio of the movie)
- the next is movie_english.mp4#1 - thats the file which contains the audio (first language) of the full movie, in your case this would be the german audio i think
- movie_deutsch.mp4#1 - is the second language audio stream (english or whatever other language you want)
- movie_english_forced.srt - are the forced subs, which should always get displayed
- movie_english.srt - first language subs (in your case german)
- movie_deutsch.srt - second language subs (eg english)
- menu.mp4#1 - the audio stream of the menus (as written above)
- menu.avi#video - the audio stream of the menus (as written above) any audio stream in the .avi will get ignored


if you want to extract the single streams from the sw sample, you can easily do this with mp4box itself via the following commandlines:
MP4Box -avi TrackID mymp4.mp4 (extracts the video to .avi)
MP4Box -raw TrackID mymp4.mp4 (extracts the audio to .aac or .mp3)

malitz
23rd May 2004, 14:25
Hello bond,

thanks for your answers.

you mean when you start playing the mp4 in osmo4 only the menu gets displayed? can you push the buttons?

I meant when I start playing the mp4 in qt6 only the menu gets displayed. I can not push any buttons. And the file size tells me that the main movie has not been included.


menu.avi...

I understood everything you wrote in your guide. And I changed the file names of my main movie, main movie languages and menu.
But it does not work. :(
That's why I asked for your original files fitting the data in the bt file. Would be much easier to understand and reconfigure.

greetings

Michael

bond
23rd May 2004, 14:38
Originally posted by malitz
I meant when I start playing the mp4 in qt6 only the menu gets displayed. I can not push any buttons. And the file size tells me that the main movie has not been included.qt isnt able to play the menus, it will simply ignore all interactivity information and will simply play the a/v streams
you can switch in qt between the different a/v streams stored in the mp4

That's why I asked for your original files fitting the data in the bt file. Would be much easier to understand and reconfigureas i wrote above you can extract every stream from a .mp4 yourself :)

malitz
23rd May 2004, 14:50
qt isnt able to play the menus

Really? :confused: That's really bad.
I wanted to use interactivity in some videos I publish in the internet. And there qt6 is used.

That's bad! :angry:

bond
23rd May 2004, 14:56
Originally posted by malitz
Really? :confused: That's really bad.well its the same as with mpeg-2 systems: not every mpeg-2 decoder can decode dvd menus for example, you need a special player which is capable to do it
i also wrote that you need a special player in my first post

I wanted to use interactivity in some videos I publish in the internet. And there qt6 is used.there lots of other players around, i tested mp4menu with the osmo4 player i linked to in the first post

malitz
23rd May 2004, 15:02
strange:
http://www.apple.com/mpeg4/

here you can read that interactivity is a part of mp4

bond
23rd May 2004, 15:05
Originally posted by malitz
here you can read that interactivity is a part of mp4of course its part of mp4/mpeg-4, still this doesnt mean that quicktime supports it...

quicktime is only one of dozens implementations of mpeg-4 available and surely not a complete one

malitz
23rd May 2004, 15:15
I want to use qt6. Do you know any alternative to mp4menu? For example any tutorials about interactive mp4?

What I want to do: Have a startframe with some text on it. And when you click on it, the movie starts. Can be seen in the beginning of some movie trailers in the mov format. Something like a GO or NEXT button.

And: a language button. A movie should be played using language file 1 or 2.

Any suggestions? ;)

greetings

Michael

bond
23rd May 2004, 15:31
Originally posted by malitz
What I want to do: Have a startframe with some text on it. And when you click on it, the movie starts. Can be seen in the beginning of some movie trailers in the mov format. Something like a GO or NEXT button.

And: a language button. A movie should be played using language file 1 or 2.should be possible with mp4 in all big players including wmp9, quicktime or realplayer when the enviviotv-plugin is installed, its a very basic menu what you are asking for (which enviviotv will handle, in contrary to full dvd menus), mp4menu was written for dvd menus, its surely too overloaded for your purpose

have a look at my mp4 faq for some authoring tools or read this tutorial (http://gpac.sourceforge.net/tutorial/bifs_intro.htm) for a guide on how to write your own menu script

basically you need to do the following:
- place a .png or .jpg in the .mp4 (next to the audio/video streams)
- create a button which is as big as the image, which starts playing the movie when clicking
- and add two other buttons (which are named like the languages) for letting the user choose the language

you should find everything needed in mp4menu, but there surely is no way around reading into the bt language a little bit deeper and writing an own script

malitz
26th May 2004, 17:55
Hello bond,

one question: I want to merge two mp4 files. Is that possible using the bt language in an easy way?
Tried to use quicktime pro but I am not able to passthrough the "new" mp4.

bond
29th May 2004, 08:09
Originally posted by malitz
one question: I want to merge two mp4 files. Is that possible using the bt language in an easy way?
Tried to use quicktime pro but I am not able to passthrough the "new" mp4.what do you mean with merge?
merging an audio-only mp4 with a video-only one
appending two audio or video streams to to become one?
appending two streams behind each other, without becoming one stream...?

the last one is possible with bt/xmt

malitz
31st May 2004, 20:47
Hello bond,

I want to do one of the following:

- appending two video streams to to become one
- appending two video streams behind each other, without becoming one stream

the first one would be better.

greetings

Michael

bond
31st May 2004, 21:27
Originally posted by malitz
- appending two video streams to to become oneuse quicktime to append two mp4 stream, if they contain simple profile video
for advanced simple video you will have to demux to avi, merge in virtualdub and remux to mp4

- appending two video streams behind each other, without becoming one streamyou will have to have a look into mpeg-4 systems to learn how to code this

malitz
1st June 2004, 17:18
use quicktime to append two mp4 stream, if they contain simple profile video
for advanced simple video you will have to demux to avi, merge in virtualdub and remux to mp4

I tried that but it does not work.
I have two simple profile video streams (both encoded using 3ivX). When I append them I can not passthrough with quicktime.

And when I mux to avi virtual dub is not able to merge neither.

pogo stick
29th September 2004, 21:41
Hello, Bond!
I think something important has changed in GPAC after version 0.1.4. Osmo4 after this version don't play "Star Wars" sample (Decoding Error: Invalid BIFS Node). I exported all video and audio, and then again converted using your script. New versions play it and don't tell about this error. Versions before 0.1.4 don't play new version files.
Also can you look at your script again? I think there is something with moviemenu. "Play", "Pause", "Stop, ">>", "<<" buttons and seek bar don't work anymore. And the error is (ReferenceError: value is not defined: Invalid Script).
And questions:
How to make Russian subtitles display correctly?
Is that any other system players (free or not), except Osmo4 that I can look for?
Thanks in advance.

bond
29th September 2004, 23:15
Originally posted by pogo stick
I think something important has changed in GPAC after version 0.1.4. Osmo4 after this version don't play "Star Wars" sample (Decoding Error: Invalid BIFS Node). I exported all video and audio, and then again converted using your script. New versions play it and don't tell about this error. Versions before 0.1.4 don't play new version files.
Also can you look at your script again? I think there is something with moviemenu. "Play", "Pause", "Stop, ">>", "<<" buttons and seek bar don't work anymore. And the error is (ReferenceError: value is not defined: Invalid Script).hm, maybe there is something broken in osmo4 or in my script, which didnt show up till now, dunno

sorry, i dont have much time now to look into it, i am busy for university


How to make Russian subtitles display correctly?hm, i have no clue actually about non-latin characters, the best would be if you ask the gpac guys directly in their forum on sourceforge

Is that any other system players (free or not), except Osmo4 that I can look for?there are a whole bunch of systems decoders available (also for free), but most of them are for demonstration purposes and therefore not really powerful and complete enough to handle the full mp4menu (thats actually why i wrote my "profile 2" mp4menu script, which is interoperable with the crappy enviviotv systems decoder)

Drachir
30th September 2004, 10:52
@pogo stick

I recently used some parts from moviemenu(mp4menu_0.1). I have no problems with it. It works well with Osmo4 (GPAC 0.2.0), didn't test it with EnvivioTV.

If you use the mediacontrol in a different bt script don't forget to adjust the "od" in the javascript. That was my problem after i build it into mp4menu_p2. "^^

(I don't need Chapter. A seek bar,play,pause,stop and the possibility to change the audio track is enough for me.)

pogo stick
30th September 2004, 14:10
So do you mean that moviemenu is working and you are not getting (ReferenceError: value is not defined: Invalid Script)? Or when I move mouse under seek bar it shows (ReferenceError: myval is not defined: Invalid Script) for very short time.
I didn't touch anything in this part of the script yet.

Drachir
30th September 2004, 15:08
I test it again with Osmo4/MP4Client -> no error. All works fine. But i didn't use the full mp4menu_0.1 bt only the part (mediacontrol) of it.

I would post the bt scribt here so that some body can take a look at it or at gpac.sf.net.

For understanding take a look at:
http://gpac.sourceforge.net/downloads/gpac_regression_tests-0.2.0.zip
(11-mediacontrol-complete.bt)

Your Osmo4 version have javascript support ?

Here is a nice sample too:
http://multimedialab.elis.ugent.be/h2ocean/movie.asp (with isOver)

With sw_sample.mp4 i get "Decoding Error Invalid BIFS Node (main service)" too.