PDA

View Full Version : GPAC MP4Box Information, Feature Requests & Discussions [No bug reports]


Pages : [1] 2

SeeMoreDigital
23rd May 2005, 18:55
Seeing as though there are a couple of good muxing (and de-muxing) tools based around MP4Box I thought it might be helpful to have a discussion about it and what it offers.

Plus, if you have any suggestions regarding implementations you would like to see incorporated in future versions of MP4Box, it might useful to discuss them in one thread rather than all over the forum!

Please Note
From time to time, you may find that various posts in this thread have been moved (split out) to create new threads elsewhere on the forum. This is done so that any new MP4Box implementations can be discussed in more detail. This will most likely happen after Jean Le Feuvre (jeanlf) adds a major new implementation to MP4Box.

Please refer to the "Summary" box below for new thread links :D


MP4Box
MP4Box is continuously being developed by Jean Le Feuvre (aka: jeanlf), over on SourceForge.
For the most up to date news information, please look here (http://gpac.sourceforge.net/news.php).
For the most up to date source code information and discussions, please look here (http://sourceforge.net/projects/gpac).
For monitoring (and posting) bugs, patches and feature requests, please look here (http://sourceforge.net/tracker/?group_id=84101).


MP4Box (GPAC Release 0.4.0 / Dated: 2005-07-28 ) Basic offerings: -

http://img387.imageshack.us/img387/5369/gpac040released03aug055ir.png


MP4Box (GPAC Release 0.3.0 / Dated: 2005-06-21) Basic offerings: -

http://img255.imageshack.us/img255/29/gpac030released20jun058vu.png


MP4Box (GPAC Release 0.2.4 / Dated: 2005-03-31) Basic offerings: -

http://img255.imageshack.us/img255/2310/gpac024released30mar054hd.png


MP4Box Basic functionality: -

http://img452.imageshack.us/img452/7322/mp4boxinfo1oc.png


MP4Box Compiles
Thankfully some very generous forum members have taken the time to generate some compiles of MP4Box for us all: -

MP4Box.exe compiles by Celtic Druid :)
Latest Build: MP4Box 0.4.0.x (http://www.aziendeassociate.it/cd.asp?dir=/gpac) - Dated: 03/08/2005 11.16.03 355K
Celtic Druid's Development Builds (http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev)

MP4Box.exe compiles by Sharktooth :)
Latest Build: Link removed

MP4Box.exe compiles by defunkt :)
Latest build: Link removed


MP4Box GUI's
And.... for some really excellent MP4Box GUI's (front ends) created by some of our very own Doom9 Forum members, please look here: -

MP4BoxGUI. Has been created by Mezzanine :)
Forum Thread: http://forum.doom9.org/showthread.php?s=&threadid=89465
Latest Build: MP4BoxGUI v0.14 (http://c.1asphost.com/mezzanine/MP4BoxGUI0.13.7z)

http://img233.imageshack.us/img233/2041/mp4oxgui3bx.png


YAMB (Yet Another MP4Box GUI). Has been created by Kurtnoise13 :)
Forum Thread: http://forum.doom9.org/showthread.php?s=&threadid=93927
Latest Build: http://yamb.unite-video.com/download.html

http://img150.imageshack.us/img150/6663/yambyj6.png



MP4Box Request Summary
Ability to import elementary .m1v and .m2v streams - DONE
Ability to add/change MetaData language track information - DONE
Ability to add/change delay audio/video sync - DONE
Ability to import / parse NeroDigital subtitles (https://sourceforge.net/tracker/index.php?func=detail&aid=1227952&group_id=84101&atid=571741) - Requested by Doom9 - DONE
Ability to de-mux MPEG-4 SP/ASP to RAW .m4v
Ability to change PAR of MPEG-4 SP/ASP and AVC streams in MP4 (https://sourceforge.net/tracker/?func=detail&atid=571741&aid=1311055&group_id=84101) - Requested by Kurtnoise13 - DONE

MP4Box Implemented Summary10/06/05:
- added -lang option to MP4Box to change track language
- added -delay option to MP4Box to change initil media delay - ALTHOUGH 100% STANDARD, THIS MAY NOT BE SUPPORTED BY SOME PLAYERS

Latest CVS Changes 12/06/06
- added MPEG-1/2 raw importing (extensions: .m1v and .m2v).
- cleanup of gpac/src/Makefile: no more recursive makes for libgpac

New Forum threads: -
Language Option (http://forum.doom9.org/showthread.php?t=95700)
Audio Delay Option (http://forum.doom9.org/showthread.php?t=95701)
MP4Box Splitting - Revisited (http://forum.doom9.org/showthread.php?t=96158) and MP4Box Splitting - Speed (http://forum.doom9.org/showthread.php?t=96148)
-----------------------------------------------------------------------


Cheers

Elias
23rd May 2005, 20:36
I'm curious about the non MPEG-4 codecs, like mp3, ogg etc. Are these muxed into the mp4 container in a standard ISO compliant way, or are they just muxed in some "home-made" way by GPAC? From what I've read, mp3 is allowed in mp4 by MPEG, but I've never heard anything about ogg and other codecs.

SeeMoreDigital
23rd May 2005, 21:29
If you have ever taken the time to read bond's MP4 FAQ (http://forum.doom9.org/showthread.php?s=&threadid=62723), you would have come across the following: -To create MP4 files you should preferably use audio/video formats covered by the MPEG-4 Standard: -

MP4 video formats:
MPEG-4 SP/ASP: XviD (http://www.xvid.org/), DivX5 (http://www.divx.com/divx/), 3ivx (http://www.3ivx.com/), ffmpeg (http://ffmpeg.sourceforge.net)/ffvfw (http://cutka.szm.sk/ffvfw/), Nero Digital (http://www.nerodigital.com)... and MPEG-4 AVC/H.264 (http://forum.doom9.org/showthread.php?s=&threadid=73022#post461589), MPEG-2, MPEG-1 (not DivX3/MS Mpeg-4, WM9, RV9 or VP6)

MP4 audio formats:
Advanced Audio Coding (AAC): Quicktime (http://www.apple.com/quicktime/download/)/iTunes (http://www.apple.com/itunes/download/), Nero (http://www.nero.com/), Psytel (http://www.doom9.org/Soft21/Audio/aacenc_v215.zip), FAAC (http://sourceforge.net/projects/faac)... and MP3, MP2, MP1, CELP (speech), TwinVQ (very low bitrates), SAOL (midi), ALS (lossless)

MP4 subtitle/text format:
MPEG-4 Timed Text

MP4 picture formats:
JPEG, PNGAs you can see MP3 audio streams are perfectly compliant.

As for audio streams within the .OGG container... Just ask yourself (or find out) what these streams are?

Elias
23rd May 2005, 21:34
Originally posted by SeeMoreDigital
If you have ever taken the time to read bond's MP4 FAQ (http://forum.doom9.org/showthread.php?s=&threadid=62723), you would have come across the following: -As you can see MP3 audio streams are perfectly compliant.

As for audio streams within the .OGG container... Just ask yourself (or find out) what these streams are? I've read that FAQ. I know mp3 is compliant in mp4 and that's why I wrote that mp3 is allowed by MPEG. My question was: Are these muxed into the mp4 container in a standard ISO compliant way, or are they just muxed in some "home-made" way by GPAC?

SeeMoreDigital
23rd May 2005, 21:44
Now... there would not be much point in "MP4Box" muxing audio streams, such as MP3, in a non-compliant way, because that would severely limit their playback ;)

As for .OGG audio stream muxing... it's still in the experimental stage!


Cheers

bond
23rd May 2005, 22:38
all mpeg streams gpac supports are of course muxed into .mp4 the iso compliant way :)

Elias
24th May 2005, 03:35
Originally posted by bond
all mpeg streams gpac supports are of course muxed into .mp4 the iso compliant way :) Good, I was just checking to be on the safe side. I tried muxing a jpg file into mp4 with the latest MP4Box cvs. It did not play in QuickTime (of course), and the latest haali splitter couldn't parse it either. VLC was the only player able to parse it. Is JPEG in experimental stages too, not muxed ISO compliant, or is it just QT/haali that can't parse jpg in mp4 correctly?

JoeBG
24th May 2005, 06:52
In the first sheet is explained, that mp4 box muxes every mpeg4 *.avi into mp4. Is this correct? I thought it canīt do AVC.avi? Have I missed a step in mp4box development?

Doom9
24th May 2005, 09:52
Have I missed a step in mp4box development?No you have not. I have made a feature request for that, it was turned down. So mp4box won't be able to process AVC in AVI in the future.

Elias
24th May 2005, 09:58
Originally posted by Doom9
No you have not. I have made a feature request for that, it was turned down. So mp4box won't be able to process AVC in AVI in the future. I take it that this is because AVC in avi is very incompatible?

SeeMoreDigital
24th May 2005, 15:11
I've been experimenting with the de-muxing and muxing features MP4Box (in conjunction with YAMB).

With regard to Mpeg2 streams, I was surprised that its possible to input full .VOB files - ie: Mpeg2 with multiple AC3 audio streams. MP4Box is able to drop all the AC3 streams and mux the video element perfectly!

Plus, once the Mpeg2 (or Mpeg1) streams are in the MP4 container, MP4Box allows you to de-mux them to an elementary .m2v (or .m1v) stream :)....

Although according to YAMB, it's "Extracting MPEG-2 Visual streams to H264": -

http://img236.echo.cx/img236/6004/mpeg2extract2ii.png


With MP4Box being able to de-mux Mpeg1 to .m1v, Mpeg2 to .m2v and AVC to .h264, I wonder whether the developers could make it possible for Mpeg4 to be de-muxed to .m4v.... And for .m1v and .m2v streams to be muxed?


Cheers

Elias
24th May 2005, 15:16
Originally posted by SeeMoreDigital
With MP4Box being able to de-mux Mpeg1 to .m1v, Mpeg2 to .m2v and AVC to .h264, I wonder whether the developers could make it possible for Mpeg4 to be de-muxed to .m4v.... And for .m1v and .m2v streams to be muxed?If I'm not wrong, there's no difference between m4v and an mp4 file containing MPEG-4 Part 2 only. Just rename it to m4v if it has no audio. And this isn't really a standard thing, I believe Apple 'made up' m4a/m4v just to differentiate between MPEG-4 audio and video.

Drachir
24th May 2005, 17:04
@Elias
Here m4v is used for RAW Mpeg 4 Video

Doom9
24th May 2005, 17:44
I take it that this is because AVC in avi is very incompatible?No. Here's the full scoop: http://sourceforge.net/tracker/index.php?func=detail&aid=1189633&group_id=84101&atid=571741

SeeMoreDigital
24th May 2005, 18:19
But it looks like future versions still be able to offer AVC in .AVI de-muxing to .H264?


Cheers

Doom9
24th May 2005, 19:54
But it looks like future versions still be able to offer AVC in .AVI de-muxing to .H264?Why remove what is working? In fact if somebody were to make a patch combining the demuxing feature with the import feature... any volunteers?

SeeMoreDigital
24th May 2005, 20:25
Another useful MP4Box feature would be the ability to mux (and de-mux) VOB-subs (as created by Recode2).

Currently, if you generate an encode with Recode2 that contains VOB-subs and wish to add or delete say, some chapter-point information or audio streams, MP4Box is unable to create a new encode :(


Cheers

Kurtnoise
25th May 2005, 20:26
Originally posted by SeeMoreDigital
if you have any suggestions regarding implementations you would like to see incorporated in future versions of MP4Box, it might useful to discuss them in one thread rather than all over the forum!
I would like to have the possibility to edit some specific atoms for each tracks contained into mp4 file (especially for the language ;))....Dumpster is good but under mp4box it'll be great.


btw, :goodpost: SMD. Maybe could you specify that the GUI are for win32OS only and that MP4BoxGUI requires the .NET FrameWork. Thereas Yamb needs nothing... :D

Elias
25th May 2005, 20:32
Originally posted by Kurtnoise13
I would like to have the possibility to edit some specific atoms for each tracks contained into mp4 file (especially for the language ;))....Dumpster is good but under mp4box it'll be great.Yes, don't forget the component name in the handler reference atom. Very cool feature :) Too bad it's limited to 23 letters though. Also, in QuickTime Pro, there's an option to change the track name in get movie properties>sound/video track>general>change name. It would be cool to have this feature in MP4Box as well.

SeeMoreDigital
25th May 2005, 21:05
Originally posted by Kurtnoise13
btw, :goodpost: SMD. Maybe could you specify that the GUI are for win32OS only and that MP4BoxGUI requires the .NET FrameWork. Thereas Yamb needs nothing... :D Thanks... and "job done" :)


Originally posted by Kurtnoise13
Yes, don't forget the component name in the handler reference atom. Very cool feature Too bad it's limited to 23 letters though. Also, in QuickTime Pro, there's an option to change the track name in get movie properties>sound/video track>general>change name. It would be cool to have this feature in MP4Box as well.Agreed it would be useful. And sadly MP4Box seems to loose any existing MetaData information during muxing...

That said, the other day I was wondering whether it might be more useful to have separate (purpose built) "MP4 MetaData Editor Plus" type tool....

....It's a times like this I really wish I had the skills to make these sorts of things myself :(

Kurtnoise
26th May 2005, 00:13
You should post these requests on SF I think...:) It's a better place to contact the devs.

Elias
26th May 2005, 00:17
Originally posted by Kurtnoise13
You should post these requests on SF I think...:) It's a better place to contact the devs. I couldn't register.

Stacey Melissa
26th May 2005, 03:41
Originally posted by SeeMoreDigital
Another useful MP4Box feature would be the ability to mux (and de-mux) VOB-subs (as created by Recode2).
Originally posted by Kurtnoise13
I would like to have the possibility to edit some specific atoms for each tracks contained into mp4 file (especially for the language ;))....Dumpster is good but under mp4box it'll be great.
Originally posted by Elias
Yes, don't forget the component name in the handler reference atom. Very cool feature :) Too bad it's limited to 23 letters though. Also, in QuickTime Pro, there's an option to change the track name in get movie properties>sound/video track>general>change name. It would be cool to have this feature in MP4Box as well.
Those were gonna be my three suggestions. You guys all beat me to the punch. :)

SeeMoreDigital
26th May 2005, 07:18
Originally posted by Kurtnoise13
You should post these requests on SF I think...:) It's a better place to contact the devs. Yep... that's one of the purposes behind this thread :D

I thought it would be helpful to us all if we discussed our MP4Box issues, hopes and dreams in one place first before making a "unified" request on SourceForge.

Plus it makes it easier for any of the MP4Box developers to look in one place on Doom9... should they ever want too!


Cheers

JoeBG
26th May 2005, 09:55
Originally posted by Kurtnoise
I would like to have the possibility to edit some specific atoms for each tracks contained into mp4 file (especially for the language )....Dumpster is good but under mp4box it'll be great.

Originally posted by Elis
Yes, don't forget the component name in the handler reference atom. Very cool feature Too bad it's limited to 23 letters though. Also, in QuickTime Pro, there's an option to change the track name in get movie properties>sound/video track>general>change name. It would be cool to have this feature in MP4Box as well.

I really think, that the next step should be names for the tracks. Has someone made a request?

Elias
26th May 2005, 10:15
Somewhat Off Topic. Most of you guys may not be using Wikipedia. I do, and I created this article, so if anyone here feels like helping me maintain it, feel free to give me a helping hand: http://en.wikipedia.org/wiki/MP4Box

Kurtnoise
26th May 2005, 10:40
Originally posted by JoeBG
I really think, that the next step should be names for the tracks. Has someone made a request?
I don't think so...but SMD is the man for that. :D

Elias
26th May 2005, 10:43
Why don't we just notify the MP4Box developers about this thread?

bond
26th May 2005, 14:43
Originally posted by Elias
Somewhat Off Topic. Most of you guys may not be using Wikipedia. I do, and I created this article, so if anyone here feels like helping me maintain it, feel free to give me a helping hand: http://en.wikipedia.org/wiki/MP4Box you miss the most important things mp4box does and thats mpeg-4 systems, x3d aso support
i mean muxing strea,s into .mp4 and extracting them again is only kiddie stuff compared to the things mp4box can do with mpeg-4 systems

Originally posted by Elias
Good, I was just checking to be on the safe side. I tried muxing a jpg file into mp4 with the latest MP4Box cvs. It did not play in QuickTime (of course), and the latest haali splitter couldn't parse it either. VLC was the only player able to parse it. Is JPEG in experimental stages too, not muxed ISO compliant, or is it just QT/haali that can't parse jpg in mp4 correctly? jpg, png muxing is also compliant of course
have a look at my sticky, it lists all streams that are officially standardised for placement in .mp4


Originally posted by Elias
I take it that this is because AVC in avi is very incompatible? i assume because its a pita to make a conversion from avi
eg look at mkvmerge, it also isnt able to make a avc-in-avi -> native-avc-in-mkv conversion, it only writes it in the "avi/vfw mode"

stephanV
26th May 2005, 14:48
Originally posted by bond
i assume because its a pita to make a conversion from avi
Shouldnt be more difficult than muxing raw AVC to MP4

eg look at mkvmerge, it also isnt able to make a avc-in-avi -> native-avc-in-mkv conversion, it only writes it in the "avi/vfw mode"
and guess what? mkvmerge doesnt support muxing raw avc into mkv.

i think doom9 answered that question more than sufficiently.

Elias
26th May 2005, 22:37
I don't know why I haven't mention this earlier, but *.mov compliance would be nice. That is, extract tracks from *.mov files. I'm mostly thinking about the new Apple MPEG-4 trailers encoded to the *.mov format instead of *.mp4 and, since *.mp4 is based on *.mov this shouldn't be that hard to implement, or am I wrong? Anyway, would be nice to be able to extract AVC/SP/ASP/AAC from the *.mov format.

bond
26th May 2005, 22:47
guys, lets not start wishing stuff just for the sake of having it

you can extract tracks from .mov with lots of other tools, lets not bug jeanlf with such non-issues keeping him only away from the important stuff

Kurtnoise
28th May 2005, 18:03
hey,

There are some new commands in the last mp4box. But I'm little bit confused with the syntax. :o Does anyone have succeed with -add-item arguments ?

http://kurtnoise.free.fr/meta_mp4box_options.gif

JoeBG
2nd June 2005, 11:55
hey,

There are some new commands in the last mp4box. But I'm little bit confused with the syntax. :o Does anyone have succeed with -add-item arguments ?

http://kurtnoise.free.fr/meta_mp4box_options.gif

Do you think this can help for the tracknames?

Kurtnoise
2nd June 2005, 13:45
nope...

Kurtnoise
4th June 2005, 17:44
Celtic_Druid has made a new compile concerning mp4box and GPAC framework package : http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev

changelog from the CVS :

03/06/05:
- fixed MPEG-2 aac importing and info dumping
- fixed 3GPP text display bug when stoping and changing an animationStream using a 3GPP text object.
- fixed AVC/H264 HP parsing
- added BIFS track visual size info at BT/XMT encoding stage
- MOVED FFMPEG INCLUDE FILES TO LATEST CVS VERSION to support AVC/H264 HP decoding
- added meta self reference item for dual-headed files
- commit MPEG-4 LATM Audio hinting patch and added rtp aggregation. RTP reassembler NOT UPDATED YET
- fixed bugs in TeXML parser
- fixed bt/xmt to MP4 encoding for IOD with single BIFS ESD.URLString set
- fixed SVG outline handling and SVG/SMIL anim on appearance/geometry
- fixed svg_loader compilation on winCE (ARM binaries and include to follow in next release of gpac_extra_libs)
- commit of SVG fixed-point version
- Fixed MP4Box spliter crash introduced by MetaBox support.
- Merged MP21 and MP4 handling, added meta support in MP4Box (creation/extraction - cf MP4Box -h meta)

FROM THIS DAY ON, ALL WORK ADDED TO GPAC IS COPYLEFT ENST


And FYI, I submitted a new feature request (http://sourceforge.net/tracker/index.php?func=detail&aid=1213504&group_id=84101&atid=571741)....;)

JoeBG
4th June 2005, 19:39
Celtic_Druid has made a new compile concerning mp4box and GPAC framework package : http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev

changelog from the CVS :




And FYI, I submitted a new feature request (http://sourceforge.net/tracker/index.php?func=detail&aid=1213504&group_id=84101&atid=571741)....;)

Thanks, very nice :)

vortex_hl
5th June 2005, 03:16
is mp4box support audio delay function?
i want to mux h.264 video stream and mpeg4 aac stream but i should add 200ms delay to audio. how can i do this?

video: 1280x544 h.264 video made with x264
audio: 6 channel Mpeg-4 LC AAC made with foobar+nero
both are not raw

Stacey Melissa
5th June 2005, 04:41
is mp4box support audio delay function?
i want to mux h.264 video stream and mpeg4 aac stream but i should add 200ms delay to audio. how can i do this?
You have to set the delay when encoding the audio. mp4box won't set the delay.

berrinam
5th June 2005, 08:03
@Elias Just saw your post and your wikipedia article. Looks good :D. It's good to have a compilation of the information from Doom9 on Wikipedia

Kurtnoise
7th June 2005, 16:41
Can anyone confirmed that 2 videos and more into a mp4 file muxed with mp4box last compile crashes during the playback with Osmo4 ?

btw it seems to play fine with mpc...





/me goes back to Yamb dev right now... ;)

Drachir
8th June 2005, 14:04
Osmo4(CVS)@Linux don't crash here with a Mpeg 4 Systems presentation with two video stream or with an ISO Media File with two video stream.A Mpeg 4 Systems presentation make more sense if more then one video stream is used.

yaz
9th June 2005, 16:41
just found
08/06/05:
- updated configure for opengl disabling and fixed-point configuration
- misc fixes in ffmpeg decoder and MP4Box ISMA for amorphic video (PAR!=1:1)
- misc updates in MP4Box meta handling for item extraction.
- fixed MPEG-2 aac importing and info dumping
- fixed 3GPP text display bug when stoping and changing an animationStream using a 3GPP text object.
- fixed AVC/H264 HP parsing
- added BIFS track visual size info at BT/XMT encoding stage
- MOVED FFMPEG INCLUDE FILES TO LATEST CVS VERSION to support AVC/H264 HP decoding
- added meta self reference item for dual-headed files
- commit MPEG-4 LATM Audio hinting patch and added rtp aggregation. RTP reassembler NOT UPDATED YET
- fixed bugs in TeXML parser
- fixed bt/xmt to MP4 encoding for IOD with single BIFS ESD.URLString set
- fixed SVG outline handling and SVG/SMIL anim on appearance/geometry
- fixed svg_loader compilation on winCE (ARM binaries and include to follow in next release of gpac_extra_libs)
- commit of SVG fixed-point version
- Fixed MP4Box spliter crash introduced by MetaBox support.
- Merged MP21 and MP4 handling, added meta support in MP4Box (creation/extraction - cf MP4Box -h meta)

FROM THIS DAY ON, ALL WORK ADDED TO GPAC IS COPYLEFT ENST
u know where to go :D
happy wrapping !

the bests
y

SeeMoreDigital
9th June 2005, 17:01
It looks as though Celtic Druid has generated a new MP4Box.exe compile for us all.....

MP4Box.7z 09/06/2005 15.56.06 326K (http://www.aziendeassociate.it/./cd//gpac/dev/MP4Box.7z)


Many thanks

Elias
9th June 2005, 17:08
This is all very nice. Anyone knows where I can get the latest source code for Linux? I want to start using this pwnage software on Linux :)

Sharktooth
9th June 2005, 17:23
cvs co :pserver:anonymous@cvs.sourceforge.net:/cvsroot/gpac gpac

Kurtnoise
10th June 2005, 09:35
Osmo4(CVS)@Linux don't crash here with a Mpeg 4 Systems presentation with two video stream or with an ISO Media File with two video stream.A Mpeg 4 Systems presentation make more sense if more then one video stream is used.
10x...I updated the GPAC framework and it works great now. :)

SeeMoreDigital
10th June 2005, 09:56
Sounds good Kurt.......

A few days ago, I also sent a message to Jean Le Feuvre, informing him of this very thread, here on Doom9...Comment Sent: 2005-06-04 13:57

Hi jeanlf,

Just thought I would let you know that we have started
an "GPAC MP4Box Information and Discussions"
thread over on the Doom9 forum. Which can be found
here: -

http://forum.doom9.org/showthread.php?t=94874

If you have any time to spare we would be happy to
welcome your presence and any comments you can
offer.

Kind regards
SeeMoreDigital

------------------------------------------------------------------

Comment Received: 2005-06-09 13:21
Sender: jeanlf

Good job, and already some interesting discussions. Hope I'll
have time to post there - once I get back in sync with all my
late gpac mails...

Oh, and keep spreading the news :)

jean.So it looks like we might be gaining a new forum member :D

SeeMoreDigital
12th June 2005, 10:50
Celtic_Druid has generated a new MP4Box. exe compile: -

MP4Box.exe 11/06/2005 4.56.14 327K (http://mirror05.x264.nl/celtic_druid/mp4box.7z)


Many thanks again

Kurtnoise
16th June 2005, 09:26
It seems there are some changes according to the changelog :

14/06/05:
- Preparing 0.3.0 release
- fixed bug in SDP playback without RTSP session attached (live casts)
- added language and delay selection at import time (cf MP4Box -h import)
- made -lang able to change all tracks languages by default !erase language specified at import time!


btw, Many thanks to Bond for the request. ;)

SeeMoreDigital
16th June 2005, 11:05
I noticed from one of Bobololo's posts that MP4Box has the ability to display an encodes bit-rate: -

http://img294.echo.cx/img294/3723/bobololo8vz.gif

Is implementation available in YAMB, or have I missed something (again)?


Cheers

Kurtnoise
16th June 2005, 11:26
Hi SMD,

Is implementation available in YAMB, or have I missed something (again)?
It should works in "Extract tab"...

SeeMoreDigital
16th June 2005, 12:43
Hi SMD,


It should works in "Extract tab"...It does not appear to :confused:

http://img293.echo.cx/img293/6523/yambbitrate1ii.gif


Cheers

Kurtnoise
16th June 2005, 14:28
Indeed...I'll add it.

SeeMoreDigital
16th June 2005, 14:57
Indeed...I'll add it.Cool :D

Given the .MP4 container is becoming much more popular, I wonder whether it's time to start discussing tools that can provide more detailed information abut the encoded stream(s). Such as: B, I, P, S frames, aspect ratio signalling etc.

Admittedly, it's possible to de-muxed Mpeg4 SP/ASP .AVI streams and run them thru' MPEG Modifier to obtain very detailed information about the video stream (putting Open DML and/or 2/4GB issues to one side). But there does not appear to be any such option for Mpeg4 AVC streams!

Then there's the question about adjusting the PAR/DAR signalling of both Mpeg4 SP/ASP and AVC streams within the .MP4 container.


Cheers

GUTB
17th June 2005, 08:26
I'm just ignoring mp4box and all other half-baked mp4 tools until they can mux h264 and acc together. Until then the vdub/x264/vbr-mp3 regime will continue uncontested.

Doom9
17th June 2005, 09:12
I'm just ignoring mp4box and all other half-baked mp4 tools until they can mux h264 and acc together.Huh? mp4box has done that for some months now

Elias
17th June 2005, 11:56
I'm just ignoring mp4box and all other half-baked mp4 tools until they can mux h264 and acc together. Until then the vdub/x264/vbr-mp3 regime will continue uncontested.Trust me, MP4Box isn't buggy like mp4UI. In fact, don't be surprised if MP4Box muxes MPEG-4 video and MPEG-4 audio better than VirtualDub does. I was thinking exactly like you at first, since mp4UI was buggy, and mp4creator generated buggy mp4 files as well (haven't tried mp4creator lately, but a couple of months back, it was buggy too), but take my word on it: MP4Box knows what it's doing.

SeeMoreDigital
17th June 2005, 18:41
Celtic_Druid has generated a new MP4Box. exe compile: -

MP4Box.7z 16/06/2005 13.27.30 328K (http://www.aziendeassociate.it/./cd//gpac/dev/MP4Box.7z)


Many thanks

celtic_druid
18th June 2005, 05:46
17/06/05: GPAC 0.3.0 release
I'll put a full package up later.

Hyper Shinchan
18th June 2005, 07:35
:thanks: celtic_druid!

celtic_druid
18th June 2005, 08:29
It is up now. Actually been up for a while. Also used cvs ffmpeg so OSMO should handle lossless x264 AVC fine.

bond
18th June 2005, 12:51
:thanks:

Kurtnoise
19th June 2005, 08:59
It is up now. Actually been up for a while.
Where ? I can't find it here (http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev)...

celtic_druid
19th June 2005, 10:07
1) It doesn't look like it has been mirroed.
2) When it is it would be in http://www.aziendeassociate.it/cd.asp?dir=/gpac since it is not a dev build.

I'm sure it won't be too long before we will see a post 0.3.0 dev build though.

yaz
21st June 2005, 09:17
mp4box.0.3.0 is up on celtic's site ! (follow the link above)
thx thx thx
y

celtic_druid
21st June 2005, 14:40
CVS was updated, still v0.3.0 though. So I put up a new 0.3.0 mp4box build.
- fixed bug in 4GB file writing in interleaving mode
- fixed bug in absolute path usage in MP4Box
- added -cat file*.mpg syntax support
- added support for mass encryption in ISMACrypt drm_file (trackID="*" means all tracks get encrypted with the desired key)

Zero1
22nd June 2005, 21:03
Most excellent, thank you celtic_druid :D

sillKotscha
23rd June 2005, 22:17
Hi folks,

looking at one of SMD's pictures in this thread - http://forum.doom9.org/showthread.php?t=89465&page=7&pp=20 - i've realized that he's using a version of mp4boxGUI that I'm not able to find here in the forum... it is version number 0.14 of MP4BoxGUI.

All I could find so far was:
- http://c.1asphost.com/mezzanine/MP4BoxGUI0.13.7z

May anyone of you be so kind and attach latest version of MP4BoxGUI for me... that would be MP4BoxGUI0.14.7z I guess.

Thanks in advance.

enjoy the sunny weather!

Sill

SeeMoreDigital
23rd June 2005, 22:32
Hi sillKotscha,

Your link you found is actually for MP4BoxGUI v0.14.

Once unpacked and launched it will be identified as being v0.14...


Cheers

sillKotscha
23rd June 2005, 22:39
thanks for telling me...

have a nice eve... :)

cheers

SeeMoreDigital
23rd June 2005, 23:11
thanks for telling me...

have a nice eve... :)

cheersActually.... thanks for bringing this to my attention. I've just added direct links to the new versions of MP4BoxGUI and YAMB in my opening post.


Cheers

sillKotscha
23rd June 2005, 23:13
even better now ;)

Edit:

is "MP4Box_26-Jan-2005.7z" still your latest version of MP4Box working "best" with latest version MP4BoxGUI?

on the other hand doom9's MEGUI does work perfect, it's just the fact that I like to have all things in "in the right place" :)

ZorbaK
24th June 2005, 02:29
Hi,

As you maybe know there is limitation in current MP4Box witch prevent importing subtitles with plain text (srt and sub) in encodings other than default win1252 codepage (and Unix default cp).

There is (almost) simple solution to import with MP4Box srt subtitles with UTF8 encoding. This will allow mux subtitles with characters from Unicode range 0-67712. Requires modification of MP4Box sorce code.
Maybe someone can forward this to developers of GPAC framework. It takes them less than 5 minutes to correct this. Users from countries out of default codepages will be very happy I think.

Original source file (from sourceforge.net GPAC 0.3.0 2005-06-21):
File "M4Systems\authoring\TextImport.c"

Line 778: else {
Line 779: if (ptr[i] & 0x80) {
Line 780: szText[len] = 0xc0 | ( (ptr[i] >> 6) & 0x3 );
Line 781: len++;
Line 782: ptr[i] &= 0xbf;
Line 783: }
Line 784: szText[len] = ptr[i];
Line 785: len++;
Line 786: i++;
Line 789: }


Required modification is to conditionaly omit with switch (witch signals that srt is coded with utf8) lines from 779 to 783.

Thats all...

You then be able to import srt subtitles (in UTF8 format) to mp4 container in almost any language (from Uniocode range 0-67712).
I have private build of MP4Box. I just deleted lines 779 to 783 (of cource in that case all srt subtitles MUST be in utf8 format). MP4 files plays as expected (using Halli Media splitter + ffdshow + any player).
Tested with any Latin Script (including Central/East Europe) + Cyrillic + Greek + Hebrew...

Of course to enable full support to UTF8 srt & sub there must be more changs to source (for example export routines). But this may be good start...

Apologize for my Inglish...
_________
zorbak

bond
24th June 2005, 11:29
the gpac devs are not around on doom9 so the best would be to post patches, bugs and feature requests on the sourceforge project trackers:
http://sourceforge.net/projects/gpac

Sharktooth
24th June 2005, 12:00
latest build: http://www.webalice.it/f.corriga/x264/MP4Box0.3.1-cvs-2005.06.30.7z
(compiled with gcc 4.0.0 - requires a Pentium2 class cpu with MMX or newer)

Sharktooth
30th June 2005, 15:23
mp4box updated (link in the above post).

HQ-LQ
4th July 2005, 13:06
hello. I have a question. Is it to be provided possible a MKV support for mp4box? For the following formats 'mpeg1 mpeg2 mpeg4(sp/asp) mpeg4(avc)' in mkv. Personally is important to me the support of 'avc in mkv'.

SeeMoreDigital
4th July 2005, 13:21
Hi HQ-LQ,

There are already tools that allow you mux and de-mux audio and video streams etc, in and out of the MKV container... And if you search around the forum you'll find them!

MP4Box primarily caters for streams that are supported by the MP4 container.

And... welcome to the forum.


Cheers

HQ-LQ
4th July 2005, 14:17
but not 'avc in mkv'

SeeMoreDigital
4th July 2005, 14:29
but not 'avc in mkv'If you want to see better support for Mpeg4 AVC in MKV then that's up to the Matroska guys to sort out, not MP4Box.


Cheers

bond
4th July 2005, 21:38
i doubt there is a chance that mp4box will support mkv output, its a mpeg-4 systems tool

nexus
5th July 2005, 14:59
Are avc raw streams correctly handled by mp4box?

I can't mux streams with mp4box which are extracted with avi2raw or with mkvextract.

Btw. which extension should the raw avc stream have? m4v?

Doom9
5th July 2005, 15:14
yes.. been using that in MeGUI for a long time and nobody has reported any problem.
.264

yakima
8th July 2005, 04:04
probably i've missed something, though i did use search. however, i've been off for some time and now, after updating to mp4box 0.3.0, i've found something odd:

when i use mp4box to convert an avi to mp4, no bifs (or scene) and od are generated, i just have the plain two tracks video and audio. is this supposed to be that way??? and if so, why? or: what could i be doing wrong? (i use -add, -nodrop and that's it).

SeeMoreDigital
8th July 2005, 11:53
Hi yakima,

Did your .AVI source contain both video and audio streams?

Using MP4Box 0.3.0.7 - 22 06 2005 14.32.48, together with YAMB 1.3 Alpha1 v1, I've just tried muxing an the following sources: -

An .AVI source containing 1No Mpeg4 video stream and 1No 2Ch MP3 audio stream....
And got an MP4 file with video, BIFF's and OD's but no MP3 audio stream.

An .AVI source containing 1No Mpeg4 video stream and 1No 2Ch AAC-LC audio stream....
And got an MP4 file with video, BIFF's and OD's but no AAC audio stream.

An .AVI source containing 1No Mpeg4 video stream. And an separate .AAC source with 1No 2Ch AAC-LC stream...
And got an MP4 file with video (track 201), audio (track 101), BIFF's (track 1) and OD's (track 2).... So it works for me here ;)

EDIT: I also tried...
An .AVI source containing 1No Mpeg4 video stream. And an separate .MP4 source with 1No 2Ch AAC-LC stream...
And got an MP4 file with video (track 201), audio (track 101), BIFF's (track 1) and OD's (track 2).

An .MP4 source containing 1No Mpeg4 video stream. And an separate .MP4 source with 1No 2Ch AAC-LC stream...
And got an MP4 file with video (track 201), audio (track 101), BIFF's (track 1) and OD's (track 2).



Cheers

yakima
8th July 2005, 12:33
hi seemoredigital,
thanks for testing, it's good to know that nothing has changed in that regard.
i had an avi audio/video as input and an a/v mp4 with only 2 tracks as output.
however, i have the 0.3.1 dev - maybe i shouldn't have been so daring. i'll revert to 0.3.0.7 or something and do a clean install, maybe something was messed up ..

bond
8th July 2005, 14:31
there is no need for the bifs/od

Drachir
8th July 2005, 15:32
For ISO/IEC 14496-12 ISO base media file format there is no need of BIFS/OD.

But for ISO/IEC 14496-14 MP4 file format there should be a BIFS/OD Track.

If am not wrong.

bond
8th July 2005, 15:41
But for ISO/IEC 14496-14 MP4 file format there should be a BIFS/OD Track.no, its not mandatory
isma compliance requires it, but who cares about that?

SeeMoreDigital
8th July 2005, 15:56
no, its not mandatory
isma compliance requires it, but who cares about that?Agreed...

All the .MP4 encodes I've generated with BIFS and OD data have played perfectly in hardware, after being removed... If that's what you are worrying about.

And if you want to create encodes suitable for streaming.... mux your Mpeg4 video and AAC audio streams into .MOV ;)


Cheers

bond
8th July 2005, 16:09
And if you want to create encodes suitable for streaming.... mux your Mpeg4 video and AAC audio streams into .MOV ;)why should mov stream better than mp4?

Hyper Shinchan
8th July 2005, 16:17
or is it only easier to spread?

SeeMoreDigital
8th July 2005, 16:34
why should mov stream better than mp4?If you remember, a while ago I've carried out .MOV and .MP4 "streaming tests" using the same AAC-LC and Mpeg4 SP streams muxed into the different containers.

Each were embedded into their own web page using QuickTime as the player.... The .MOV file streamed almost instantly. While the .MP4 file needed around 50% of the file to be downloaded (buffered I guess) before streaming commenced.

I guess I could run the tests again though.


Cheers

Drachir
8th July 2005, 17:21
In ISMA 1.0 the simple BIFS scene and OD are there to be compatible with 14496-1 Mpeg 4 Systems.

ISO/IEC 14496-4 Second Edition(not the latest one) - Conformance testing
3.7 MP4 File Format
3.7.1 Writing
If an atom defined in this specification is written, it must be formatted to this specification. A valid MP4 file with no tracks has at least: moov, mvhd. If it is a presentation or the target of an OD URL, an iods is required, containing an IOD or OD respectively. Only MP4 files used in editing (as the target of a data reference URL) may lack the IOD.
Any track must contain: trak, tkhd, mdia. A mdia must contain mdhd, hdlr, and minf. A minf must contain a suitable media header, a dinf and a stbl. dinf must contain dref; and a stbl must contain stsd, and if there are any samples, an stts, stsz, stco, stsc. The sample table entries must be consistent about the number of samples in a track. Extensions should use the UUID mechanism. Track identifiers must be unique within the file. The containment hierarchy defined in the specification must be followed. Very few atoms (for example, user data and UUID extension) are allowed to occur in multiple containers. Fields marked reserved should be written to the standard value. A presentation must contain at least a BIFS track, referenced by the IOD (as in the systems specification).


Or take a look at this discussion here: https://sourceforge.net/forum/forum.php?thread_id=1144961&forum_id=287546

Question: Is one Video ES and one Audio ES a Presentation ? - From my point of view I would say - yes

Handbrake create files with File Brand "mp42" - but there is no BIFS/OD Track.
MeGUI create files with File Brand "isom"(ISO/IEC 14496-12) if there is more then one Audio ES.
Recode create files with File Brand "mp42"or"avc1" - but with more then one Audio ES the Scene don't make sense.

I am just interested if this is all right(ISO Conformance).

At what point do I have a Presentation?

SeeMoreDigital
8th July 2005, 17:41
Hi Drachir,

May I ask, are you asking these questions out of "interest" or for some other reason you're worried about?


Cheers

Drachir
8th July 2005, 17:55
I am interested. And I thing the File Brand should help the player to decide how to deal with the file - with what the player have to anticipate. Will there be a BIFS/OD Track with more information how to display the streams? Or just play the biggest V/A stream.

yakima
8th July 2005, 23:52
well, aside from the question if bifs/od are needed or not, it says in the gpac documentation that they are being created upon add (as long as you only have 1 audio and 1 vid, otherwise of course not).

i have (re)installed mp4box 0.3.0.7 now, and it still produces a/v mp4s with no bifs/od:
- if i only add vid from an avi, i get bifs/od
- if i add the full audio/video avi, no bifs/od
- if i add vid from avi and audio from mp4, no bifs/od

could it be that there have been some changes since 0.2.3 or that this is a matter of syntax (there used to be -import and -merge), such that -add acts differently if more than 1 stream is imported?

i am quite clueless on this, but i don't like it if things do things differently than advertised

... tell me this behavior is as defined for some good reason, and i'll bear it ...

SeeMoreDigital
9th July 2005, 00:13
Well, what more can I say yakima?

MP4box.exe works exactly as I've said.... If it does not for your (with WinXP) set-up, then something might be wrong at your end :(


Cheers

yakima
9th July 2005, 16:03
well, yes it does. and: it works exactly as i said.

thing is, the files i muxed contained an mp3 audio track, and it seems mp4box no longer sets -isma on default if the audio track is mp3 (it says in the doc: "When using -add option, MP4Box will automatically create default BIFS and OD tracks to make the resulting file compliant with the ISMA 1.0 standard if possible"). if i use -isma -add on my files, bifs/od are created.

does anyone know why they changed this default? is there some problem with mp3 and -isma?

SeeMoreDigital
9th July 2005, 16:25
well, yes it does. and: it works exactly as i said.

thing is, the files i muxed contained an mp3 audio track, and it seems mp4box no longer sets -isma on default if the audio track is mp3 (it says in the doc: "When using -add option, MP4Box will automatically create default BIFS and OD tracks to make the resulting file compliant with the ISMA 1.0 standard if possible"). if i use -isma -add on my files, bifs/od are created.Ahh!

I don't think you mentioned you were muxing MP3 audio along with your Mpeg4 video, until now :eek:

Yep you're right, MP4Box is not adding the BIFS and OD tracks. I just tried doing the same with mp4UI and it does :(

I think you've found a bug. That said, I would not recommend using MP3 audio anyway!


Cheers

yakima
9th July 2005, 16:45
yep, i didn't really mention mp3 - thing was, files with mp3 got a bifs/od in mp4box 0.2.4, so i thought that can't be it ...

however, from some remarks by bond i assume mp3 in mp4 is not really isma 1.0 compliant (only aac is), so the bug would rather be that mp3 tracks are allowed in mp4box when making isma compliant - after all, if mp3 isn't isma 1.0 compliant, any mp3 track should be deleted or a message should pop up.

bond
9th July 2005, 18:20
however, from some remarks by bond i assume mp3 in mp4 is not really isma 1.0 compliant (only aac is)indeed

so the bug would rather be that mp3 tracks are allowed in mp4box when making isma compliant - after all, if mp3 isn't isma 1.0 compliant, any mp3 track should be deleted or a message should pop up. there is no bug

isma doesnt allow mp3 audio (only one aac stream), so mp4box doesnt make the file isma compliant when you use mp3 audio and therefore you dont get the bifs/od

again: noone cares about isma and noone cares about bifs/od and both are not mandatory

SeeMoreDigital
9th July 2005, 20:16
Well I'm glad that's all sorted and understood now :)

The whole mp4UI thing, with it adding BIFS and OD tracks, really confused the situation!

Bond: Could you possibly split this "BIFS and OD" discussion out of this thread (from post #85 onwards) and into one of its own thread please?


Many thanks

Drachir
9th July 2005, 20:54
... noone cares about bifs/od and both are not mandatory

If nobody care about BIFS/OD, why should we use mp4. Couldn't we achieve similar results with mov?

What is the advantage of mp4(without BIFS/OD) over mov?

If nobody care about BIFS/OD a menu in mp4 isn't possible. Why should sombody use your http://sourceforge.net/projects/mp4menu ?

yakima
9th July 2005, 22:42
there is no bug

isma doesnt allow mp3 audio (only one aac stream), so mp4box doesnt make the file isma compliant when you use mp3 audio and therefore you dont get the bifs/od



have you tried? as i said, if i use mp4box -isma on a mp4 with video and mp3 in it, it at least says it is making it compliant and it does create the bifs/od. not that i care, just to set this straight.

SeeMoreDigital
10th July 2005, 00:39
have you tried? as i said, if i use mp4box -isma on a mp4 with video and mp3 in it, it at least says it is making it compliant and it does create the bifs/od. not that i care, just to set this straight.I think you've missed Bond's point...

Mpeg4 video with MP3 audio muxes are not ISMA compliant, only Mpeg4 with AAC muxes are!

When muxing Mpeg4 video and MP3 audio in .MP4, MP4Box knows not to generate the BIFS and OD tracks even though "-isma" is in the command line.


Cheers

yakima
10th July 2005, 04:07
I think you've missed Bond's point...

Mpeg4 video with MP3 audio muxes are not ISMA compliant, only Mpeg4 with AAC muxes are!

When muxing Mpeg4 video and MP3 audio in .MP4, MP4Box knows not to generate the BIFS and OD tracks even though "-isma" is in the command line.

Cheers

the first point was exactly what i said.

and regarding the second i do indeed disagree, if partially (though not missing a point): mp4box does generate the bifs/od if i specify the -isma option, but without removing the mp3 track as it should. thus, mp4box is claiming to produce an isma 1.0 compliant file while actually producing something non-compliant, i.e. a mp4 with mp3 in it. if you don't believe me, just go ahead and give it a try.

maybe isma is irrelevant and for all i care be it, but the thing is, the -isma option doesn't work as it should, and that's all i am saying.

SeeMoreDigital
10th July 2005, 04:14
I'm sorry to say you've lost me yakima... I don't understand.

But I'm still confused as to why you're electing to use MP3 audio anyway, when AAC is far more user friendly!


Cheers

Drachir
10th July 2005, 12:34
I'm sorry to say you've lost me yakima... I don't understand.
But I'm still confused as to why you're electing to use MP3 audio anyway, when AAC is far more user friendly!
Cheers

Why not, Mpeg 1 Layer III in mp4 is possible(spec compliant).

I know one, who wanted use Mpeg 2 Video and Mpeg 1 Layer 2 Audio not that long ago in mp4.

Even if mp3 in MP4 isn't ISMA compliant. It is a compliant MP4 file.
Maybe -isma should called -systems, because it create an BIFS and OD Track for 1Audio/1Video mp4 file.

Doom9
10th July 2005, 12:57
I know one, who wanted use Mpeg 2 Video and Mpeg 1 Layer 2 Audio not that long ago in mp4That is what MPEG-2 PS are for.. MPEG-1/2 video and MPEG1 layer 2 audio.

yakima
10th July 2005, 13:26
sorry seemoredigital, didn't mean to loose you on this. i just have some avis which have mp3 audio and recoding the audio to aac wouldn't enhance quality, that's why i keep the mp3 audio.

on the -isma switch: if e.g. you have a mp4 with 1 video and 2 aac audio, and you feed the command line "mp4box -isma file.mp4", mp4box tells you: "converting to isma ... more than one audio track found ... cannot isma'ize ... error" - isma 1.0 files can only have one audio.

now if you do -isma on a mp4 with 1 video and 1 mp3 audio, which isn't allowed in isma 1.0, it doesn't throw this error, but just goes ahead "converting to isma", creates the bifs/od, and one might think the resulting file is now isma 1.0 compatible, which it isn't.

this is no big deal, but still, as drachir says, maybe the switch should be called -scene in this case ...

SeeMoreDigital
10th July 2005, 13:34
Well, when I was talking about placing MPEG-2 video (and raw .m2v) in .MP4, it was with 6Ch AAC-LC audio (converted from AC3)....

But I also provided a detailed explanation why I would like to do this ;)


Cheers

bond
10th July 2005, 13:49
somehow i dont get this whole discussion. do you guys actually know what bifs/od is about? i dont think so, cause if you knew how the default "isma compliant" stream looks like, you would also realise that its the same as if no bifs/od would be in the file

the default bifs isma stream tells the systems decoder that there is one audio stream and one video stream in the file, nothing more
pretty useless, right?

if you want to do something like menus than it makes sense to use a bifs stream

and as i said before there is no player which needs isma compliance and therefore also no player which needs this basic bifs stream i described above

SeeMoreDigital
10th July 2005, 14:14
And just to let you know.....

A couple of days I asked somebody with an "NeroDigital" certified player to try an .MP4 file with 1No video, 2No audio, 2No subtitle streams and no BIFS or OD tracks!

He reported that he had no trouble selecting between audio or subtitle streams.... So it would seem (in this instance) BIFS and OD tracks are even less necessary ;)

And when playing .MP4 files in hardware, who's bothered about ISMA compliance either?


Cheers

Drachir
10th July 2005, 14:16
...if you want to do something like menus than it makes sense to use a bifs stream...


I would like to create mp4 files with menus. But it is useless if only Osmo4 can play them. The SCENE inside a ISMA mp4 file is simple but it would be a good start if a player would notice them. But you like to tell every time that the BIFS/OD can be ignored. This way we will never have menus inside mp4. How should a player decide, is it a simple scene which can be ignored, or is it a more complex scene?

bond
10th July 2005, 14:32
I would like to create mp4 files with menus. But it is useless if only Osmo4 can play them.there are already a bunch of systems players, not only osmo4
i wrote mp4menu profile2 which is compatible with enviviotv, which allows already practically the user to have menus in any directshow player, realplayer and quicktime. and enviviotv even already supports avc

The SCENE inside a ISMA mp4 file is simple but it would be a good start if a player would notice them. But you like to tell every time that the BIFS/OD can be ignored. This way we will never have menus inside mp4. How should a player decide, is it a simple scene which can be ignored, or is it a more complex scene? just noticing and handling the basic isma systems stream is by far not enough
as i am sure you know systems works with different nodes and not every player supports every node needed for a menu

for example enviviotv doesnt support all nodes needed for a full menu, in contrary to osmo4, which caused me to write the profile2

now if a player is able to handle the isma bifs (which tells nothing more than current player already know), its nice, but useless, as you will not be able to use menus with this player either
with mpeg-4 systems its not like you "either support the whole systems, or support nothing"

and if i look at the impact mp4menu had, even if you could play the menus already in directshow, realplayer and quicktime, i have to say its zero
i got some requests from firms but actually noone seems to adopt systems in the long run

i guess all it takes is one party to come up with some nice dvd backup tool keeping the menu via systems, but till now it didnt happen. and i am sure three or four nerds on doom9 liking systems will not influence this

SeeMoreDigital
10th July 2005, 14:40
Hi bond,

Are you aware of anybody working on "Menu's" for hardware devices?


Cheers

bond
10th July 2005, 14:46
Are you aware of anybody working on "Menu's" for hardware devices?why should anyone work on such a thing for hardware, when its not even existing in software???

SeeMoreDigital
10th July 2005, 14:59
why should anyone work on such a thing for hardware, when its not even existing in software???Because one might influence the other!

Nero still appears to be the most proactive company with regards to .MP4 in both software players and hardware devices. I just wondered whether you might have heard rumours of them working on a menu system?


Cheers

bond
10th July 2005, 15:12
Nero still appears to be the most proactive company with regards to .MP4 in both software players and hardware devices. I just wondered whether you might have heard rumours of them working on a menu system?nope i havent, but now with dxn having their menu stuff working i assume they will have to come up with something similar too

yakima
10th July 2005, 19:04
somehow i dont get this whole discussion. do you guys actually know what bifs/od is about?

that's the impression i've had - i at least was talking about the behavior of mp4box and a change in that behavior that wasn't documented in the changelog. and the fact that mp4box -isma is not working quite to specs in case of mp3 audio. there's really no need to question anyone's nerdiness ...

bond
10th July 2005, 23:21
that's the impression i've had - i at least was talking about the behavior of mp4box and a change in that behavior that wasn't documented in the changelog. and the fact that mp4box -isma is not working quite to specs in case of mp3 audio. there's really no need to question anyone's nerdiness ...strictly speaking creating a bifs/od stream with mp3 audio is not against the mpeg-4 specs, so i also dont really see a problem here

yakima
11th July 2005, 12:39
i really hate to drag this on, but take a look at the gpac doc:

"-isma: converts file to ISMA 1.0 specification. This is extremely usefull since most MPEG-4 players only understand ISMA-like content. All systems information and tracks numbering are rewritten to comply to the specification. WARNING: some media tracks may be removed."

however outdated this may be, it is still implemented, and as you pointed out: mp3 in mp4 is not within the isma 1.0 specs (i am not talking 'bout mp4). but as this isn't really that important, i shall leave it at that and speak no more.

bond
11th July 2005, 13:47
if you think its important make a bug report at sourceforge

Hyper Shinchan
11th July 2005, 16:54
If you remember, a while ago I've carried out .MOV and .MP4 "streaming tests" using the same AAC-LC and Mpeg4 SP streams muxed into the different containers.

Each were embedded into their own web page using QuickTime as the player.... The .MOV file streamed almost instantly. While the .MP4 file needed around 50% of the file to be downloaded (buffered I guess) before streaming commenced.

I guess I could run the tests again though.


Cheers

Have you tried to use another player for the MP4, something like Dicas'one or another streaming mp4 player (VLC, and I don't know if there are also some other good streaming players)?
I'm going to check it out from my own, like you did, MPEG-4SP&AC-LC muxed with 3ivX in mp4 and in mov. I will see it.
I'm sorry for the O.T., I will open a topic after this post.

Sharktooth
14th July 2005, 04:28
Uhm... GPAC had a major code rewrite...
changelog:
Last CVS update: 13/07/05
- GPAC is now licensed under LGPL. Massive code rewrite and repository reorganization in order to comply to some
base coding style (cf gpac/doc/CODING_STYLE). APIs are not backward compatible, but should now be in a frozen state/spelling
for the most common tools (utils, MPEG-4 OD, IsoMedia and terminal APIs)
- misc fixes in MP4Box option parsing, in RTP multicast setup
- Osmozilla should now be much more stable on Win32 - Linux version to come.

leowai
14th July 2005, 07:12
As you maybe know there is limitation in current MP4Box witch prevent importing subtitles with plain text (srt and sub) in encodings other than default win1252 codepage (and Unix default cp).

There is (almost) simple solution to import with MP4Box srt subtitles with UTF8 encoding. This will allow mux subtitles with characters from Unicode range 0-67712. Requires modification of MP4Box sorce code.
Maybe someone can forward this to developers of GPAC framework. It takes them less than 5 minutes to correct this. Users from countries out of default codepages will be very happy I think.

Original source file (from sourceforge.net GPAC 0.3.0 2005-06-21):
File "M4Systems\authoring\TextImport.c"

Line 778: else {
Line 779: if (ptr[i] & 0x80) {
Line 780: szText[len] = 0xc0 | ( (ptr[i] >> 6) & 0x3 );
Line 781: len++;
Line 782: ptr[i] &= 0xbf;
Line 783: }
Line 784: szText[len] = ptr[i];
Line 785: len++;
Line 786: i++;
Line 789: }


Required modification is to conditionaly omit with switch (witch signals that srt is coded with utf8) lines from 779 to 783.

Thats all...

You then be able to import srt subtitles (in UTF8 format) to mp4 container in almost any language (from Uniocode range 0-67712).
I have private build of MP4Box. I just deleted lines 779 to 783 (of cource in that case all srt subtitles MUST be in utf8 format). MP4 files plays as expected (using Halli Media splitter + ffdshow + any player).
Tested with any Latin Script (including Central/East Europe) + Cyrillic + Greek + Hebrew...

Of course to enable full support to UTF8 srt & sub there must be more changs to source (for example export routines). But this may be good start...

Apologize for my Inglish...
_________
zorbak
Thanks. I am facing this problem now, I got Chinese Simplified subtitle in Unicode format and it can't be muxed into the MP4. I'll try this out later. :)

I've downloaded the new source, which is a rewritten code according to Sharktooth, new file allocated in "gpac\src\media_tools" folder. The changelog not mentioning about the support of Unicode subtitle. :(

leowai
14th July 2005, 10:10
Just checked that this had already been implemented in v0.3.1 source dated 2005-07-01 but not in the new release, why? :rolleyes:

I've successfully mux the utf8 subtitles into mp4 container. This doesn't works with one trial, so I would like to share my successful tips here. :)

Considering input the unicode subtitle (i.e. chinese simplified subtitle), you need to convert your *.srt to utf8 format with "NO BOM". I use UltraEdit32 to do this. If you save the file as utf-8 (instead of "utf-8 - NO BOM"), you will fail in the muxing process with non supported feature returned from the mp4box program.

I got the muxed mp4 works perfectly and now it can display chinese subtitle without problem. And I mux the video with mp4box v0.3.1.

Cheers.

Sharktooth
14th July 2005, 14:39
seems i cant even compile the new code...

leowai
14th July 2005, 15:26
I compiled the new code (mp4box project only) using VS.net 2003 with no problem (and you need static version of zlib.lib).

Under MinGW, the compilation stopped when compiling "osmozilla.cpp". However some essential programs (mp4box, mp4client & mp4avi) and libraries (libgpac.dll & libgpac_static.a) are already created.

yaz
15th July 2005, 10:01
would someone, pls, make a working compile of the latest mp4box available ?
thx
y

JoeBG
15th July 2005, 19:03
http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev

Thanks to celticdruid :)

Doom9
15th July 2005, 19:51
@JoeBG: that isn't quite the latest one ;) BTW, how's the MeGUI guide coming along?

SeeMoreDigital
15th July 2005, 19:52
http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev

Thanks to celticdruid :) Is it just me...... I can't see anything dated "July" in that link?

defunkt
15th July 2005, 21:33
You can get my 040 DEV build here (http://www.ionwerks.net/defunkt/mp4box04.zip). Suggest you treat with caution, source has been substantially reworked. SRT > TTXT conversion isn't working for me.

bond
18th July 2005, 21:33
Just checked that this had already been implemented in v0.3.1 source dated 2005-07-01 but not in the new release, why?

I got the muxed mp4 works perfectly and now it can display chinese subtitle without problem. And I mux the video with mp4box v0.3.1btw whats the latest source and compile existing before the rewrite?
the last one i have is the one from sharktooth, dated 30 june


You can get my 040 DEV build here (http://www.ionwerks.net/defunkt/mp4box04.zip). Suggest you treat with caution, source has been substantially reworked. SRT > TTXT conversion isn't working for me.can anyone reproduce this? anyone else already did some tests?

thanks for the build!

Kurtnoise
19th July 2005, 13:46
can anyone reproduce this? anyone else already did some tests?
Same problem here... :(

leowai
19th July 2005, 17:11
btw whats the latest source and compile existing before the rewrite?
the last one i have is the one from sharktooth, dated 30 june

I got the source as late as 1st July (v0.3.1) with utf-8 supported.

Only after I mannually edited the file in v0.4.0 (\gpac\src\media_tools\text_import.c, commend out line 368 to 372, dated 14th July) then it works as expected with utf-8 support.

I tested with subtitles in English and Chinese Simplified. Subtitles are saved with UltraEdit32 into format of "utf-8 - NO BOM".

bond
19th July 2005, 21:48
guys, if you find bugs, plz make a bugreport on sourceforge's bugtracker

jeanlf doesnt read doom9 so it doesnt make much sense to post here if you want to have bugs fixed

leowai
20th July 2005, 10:49
utf-8 subtitle support is back for MP4Box on today's (20th Jul) update. :)

Cheers.

yaz
20th July 2005, 10:53
utf-8 subtitle support is back for MP4Box on today's (20th Jul) update. :)... so, again, we should beg someone to compile it :)

thx
y

Kurtnoise
20th July 2005, 13:06
guys, if you find bugs, plz make a bugreport on sourceforge's bugtracker

jeanlf doesnt read doom9 so it doesnt make much sense to post here if you want to have bugs fixed
concerning the subtitles conversion issue, defunkt has already reported this bug on SF.

Sharktooth
20th July 2005, 14:31
... so, again, we should beg someone to compile it :)

thx
y
I cant still compile it... got several hundreds compilation errors...

leowai
21st July 2005, 06:55
Shartooth,

Using VS v7.1, compilation seems ok.

For gcc compilation:
Original Make file for MP4Box produce errors for me. Probably you could try following patch. I got my MP4Box compiled this way* (the rest of the project I don't know).
*GPAC project compilation is stopped (errors occur) somewhere after MP4Box program is built

uncomment all "#LINKFLAGS+=-lgpac_static -lz $(EXTRALIBS)"
and
comment out all "LINKFLAGS+=-lgpac"


Index: applications/mp4box/Makefile
===================================================================
RCS file: /cvsroot/gpac/gpac/applications/mp4box/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- applications/mp4box/Makefile 18 Jul 2005 17:02:20 -0000 1.2
+++ applications/mp4box/Makefile 21 Jul 2005 04:09:26 -0000
@@ -21,13 +21,13 @@
ifeq ($(CONFIG_WIN32),yes)
EXE=.exe
PROG=MP4Box$(EXE)
-#LINKFLAGS+=-lgpac_static -lz $(EXTRALIBS)
-LINKFLAGS+=-lgpac
+LINKFLAGS+=-lgpac_static -lz $(EXTRALIBS)
+#LINKFLAGS+=-lgpac
else
EXT=
PROG=MP4Box
-#LINKFLAGS+=-lgpac_static $(EXTRALIBS) $(GPAC_SH_FLAGS) -lz
-LINKFLAGS+=-lgpac
+LINKFLAGS+=-lgpac_static $(EXTRALIBS) $(GPAC_SH_FLAGS) -lz
+#LINKFLAGS+=-lgpac
endif

Besides, you need static lib of "libz.a" (you could download from SF, gpac_extra_libs-0.3.0_linux.tar.gz). Compile zlib project and place the "libz.a" in "gpac/extra_lib/lib/gcc" project folder. However, I afraid this build of zlib is a slightly older version where it shows v1.1.4 from the ReadMe file. :( But it still works.

SeeMoreDigital
21st July 2005, 09:45
Good news everyone..... Jean has been looking into this issue and is re-working some of his code. And although I make it sound very easy to do, I'm sure it's not ;)


For more information. please look here: -

http://sourceforge.net/tracker/index.php?func=detail&aid=1227952&group_id=84101&atid=571741


Cheers

leowai
21st July 2005, 10:44
Yes, I've been waiting for this great feature. Doom9's OnceClick conversion using MeGUI can also be done for DVD backups. :)

The VobSub/bitmap subtitle format used in Nero Recode (Nero Digital) is the better solution for making subtitles with DVDs. OCR conversion doesn't work very well for all languages even the size for text-based subtitle is small. Furthermore, I don't think there is a hardware player that can play text-based subtitles in different laungages (i.e. Chinese, Japaneses & others).

Doom9
21st July 2005, 15:33
Doom9's OnceClick conversion using MeGUI can also be done for DVD backups.Why do you think I asked for that feature in the first place? ;)

And there's no promises on importing such files, and that's the crucial thing.

Sharktooth
21st July 2005, 17:01
Shartooth,

Using VS v7.1, compilation seems ok.

For gcc compilation:
Original Make file for MP4Box produce errors for me. Probably you could try following patch. I got my MP4Box compiled this way* (the rest of the project I don't know).
*GPAC project compilation is stopped (errors occur) somewhere after MP4Box program is built

uncomment all "#LINKFLAGS+=-lgpac_static -lz $(EXTRALIBS)"
and
comment out all "LINKFLAGS+=-lgpac"


Besides, you need static lib of "libz.a" (you could download from SF, gpac_extra_libs-0.3.0_linux.tar.gz). Compile zlib project and place the "libz.a" in "gpac/extra_lib/lib/gcc" project folder. However, I afraid this build of zlib is a slightly older version where it shows v1.1.4 from the ReadMe file. :( But it still works.

the weird thing is i already have libz.a in /usr/lib and i tried the comment/uncomment thing too...

leowai
22nd July 2005, 04:13
the weird thing is i already have libz.a in /usr/lib and i tried the comment/uncomment thing too...
Sorry, I forgot to mention I use MinGW-3.2.0-rc-3.exe, official gcc-3.4.4 upgrade package from www.mingw.org.

Hope this helps. ;)

bond
22nd July 2005, 11:06
concerning the subtitles conversion issue, defunkt has already reported this bug on SF.great, seems there is a fix already in cvs too:
- misc fixes in tx3g track import, tx3g bt dump and couple of issues introduced in 0.3.0->0.4.0 migration

defunkt
22nd July 2005, 15:30
Just re-built using current CVS, available here (http://www.ionwerks.net/defunkt/mp4box230705.zip). Hasn't resolved any of my issues with timed text but y'all may fair better. I'm part way through debugging the problem but short on spare time.

SeeMoreDigital
22nd July 2005, 16:58
Just re-built using current CVS, available here (http://www.ionwerks.net/defunkt/mp4box230705.zip). Hasn't resolved any of my issues with timed text but y'all may fair better. I'm part way through debugging the problem but short on spare time.I've just tried this version and it crashed YAMB 1.3 Alpha1 v1 and v2...

http://img143.imageshack.us/img143/5354/snap14zt.png


Cheers

Kurtnoise
23rd July 2005, 09:14
what option did you use in YAMB ?

SeeMoreDigital
23rd July 2005, 09:27
what option did you use in YAMB ?These: -

http://img240.imageshack.us/img240/1637/yamboptions7va.png

EDIT: I was simply trying to mux, 1No AAC-LC audio stream (in .MP4) and 1No MPEG-4/SP video stream (in .MP4) together....


Cheers

Kurtnoise
24th July 2005, 16:26
Just re-built using current CVS, available here (http://www.ionwerks.net/defunkt/mp4box230705.zip). Hasn't resolved any of my issues with timed text but y'all may fair better. I'm part way through debugging the problem but short on spare time.
I've the same problem as SMD...maybe msvcrt.dll fault ? Could you confirm this issue defunkt ?

defunkt
24th July 2005, 19:48
Yep. I can confirm that I too am getting regular crashes, in fact the later build seems worse. I doubt it's a compile problem :confused:, rather it's just going to take a while to shake out all the bugs after such a major rewrite. Personally I'm still using an 0.30 release.

leowai
29th July 2005, 05:34
Official GPAC v0.4.0 available now.
http://sourceforge.net/projects/gpac

Bad news is I can't get the source compiled without errors. Good news is MP4Box is compiled before the errors.

For who may interested in testing the build, you can download the one I compiled here:
http://rapidshare.de/files/3450273/2005.07.29.MP4Box.v0.4.0.7z.html
And remember, you can report but I am not taking any responsibility for the errors or bugs cause by the program. :sly:
It is compiled from the the source provided. If you use it, use it at your own risk! :thanks:

neo_anderson
29th July 2005, 05:51
i'm sorry if this an invalid request, but i just wanted to know if there can be support for ac3 files and vobsub dvd subtitles in future versions?

bond
29th July 2005, 07:45
again: there is no point in using ac3 in .mp4
use matroska for that

Doom9
29th July 2005, 08:53
and as far as vobsub subs go a few posts up there's this: http://forum.doom9.org/showthread.php?p=689428#post689428. You're seriously stretching my tolerance treshold.
Oh, and AC3 in MP4 is an old story as well.. using the search engine would've yielded that answer.

yaz
29th July 2005, 09:43
Official GPAC v0.4.0 available now ... It is compiled from the the source provided. If you use it, use it at your own risk!thx a lot !!! i'm about to take this risk :D

thx
y

SeeMoreDigital
29th July 2005, 10:10
thx a lot !!! i'm about to take this risk :D

thx
yDon't forget your friends!

yaz
29th July 2005, 13:51
Don't forget your friends! :confused: ...y'mean ?

SeeMoreDigital
29th July 2005, 14:16
:confused: ...y'mean ?Sorry... I should have written... "Don't forget to tell your frieinds"

I'm unable to download leowai latest compile, so... what's it like?


Cheers

yaz
29th July 2005, 16:41
I'm unable to download leowai latest compile, so... what's it like?haven't tested thoroughly, but the basic functions i use (extract from avi, adding video/audio, ...) worx fine.
it seems as if the syntax were a bit different somehow (or i forgot the exact cli forms). what i've noticed so far is that output is not optional anymore (must always set), and '-out' is not accepted (at least it hasn't worked for me) ... must learn it again ;)

the bests
y

celtic_druid
30th July 2005, 17:57
mp4box v0.4.0:
http://mirror05.x264.nl/celtic_druid/force.php?file=./mp4box-0.4.0.7z

SeeMoreDigital
30th July 2005, 19:25
I don't know whether it's just me but I've been unable to generate basic muxes with YAMB and mp4box-0.4.0.7z: -

http://img262.imageshack.us/img262/3567/gpac0406ko.gif

I guess it must be down to the "major" rewrite.....


Cheers

celtic_druid
30th July 2005, 20:14
Just tested it and it works fine for a simple mux here. I didn't use any GUI though.

SeeMoreDigital
30th July 2005, 20:26
Just tested it and it works fine for a simple mux here. I didn't use any GUI though.When I switch to your earlier MP4Box.exe build, YAMB works fine....

....If it is down to code changes I guess Kurtnoise13 is going to be kept busy for a while :eek: I just hope he has the time?


Cheers

Kurtnoise
30th July 2005, 21:41
again...same issue just like SMD. Again, it doesn't concern YAMB.

I'm running on WinXP SP2 and you CD ?

SeeMoreDigital
30th July 2005, 21:51
Hi Kurt,

Will Jean's comment not have anything to do with YAMB?

http://img276.imageshack.us/img276/7954/gpac0404zg6ek.gif


Cheers

Kurtnoise
30th July 2005, 21:54
I don't use GPAC code for YAMB. So, no problem with this...

celtic_druid
30th July 2005, 22:13
Win2k SP4. Also tested winxp sp1, no problems there either. mp4box 0.4.0 (from sf.net) and cvs. No problems with either.

Interestingly the sf.net build says 0.4.0DEV whereas the post 0.4.0cvs build says 0.4.0.

Does it happen straight away? Maybe my test clip wasn't long enough?

Kurtnoise
30th July 2005, 22:28
mmmh. I just discovered that putting all input files in the same mp4box folder and running by example :

mp4box.exe -add video.avi audio1.aac output.mp4

it works but using the prompt command and putting the path for each input files, just like :

mp4box.exe -add "C:\video.avi" -add "C:\audio.aac" "D:\output.mp4"

it crashes... :confused: There is an issue with the " " ?? :scared:

neo75903
30th July 2005, 23:23
wow thx celtic for the build! will test it soon as possible, thx again :)

Kurtnoise
31st July 2005, 10:58
Does anybody can confirm my last observation please ? Thanks.

neo75903
31st July 2005, 11:50
confirmed!!
it does crashes using paths as arguments.

this didnt crash:

D:\z_DVD>"MP4Box 0.40.exe" -add "audio.mp3" -add "video.avi" "output.mp4"

this did:

D:\z_DVD>"MP4Box 0.40.exe" -add "d:\test\audio.mp3" -add d:\test\video.avi" "d:\test\output.mp4"

but then this didnt:

D:\z_DVD>"MP4Box 0.40.exe" -add "audio.mp3" -add "video.avi" "d:\test\output.mp4"



edit: also discovered that files muxed with this version are not playable int QT7. it returns a "Error: -50: an unknown error occurred".
The file also skips at regular intervals in Nero showtime, only vlc seems to play the file fine.

bond
31st July 2005, 16:43
if you find a bug in mp4box, make a bug report on the gpac bugtracker on sourceforge

Kurtnoise
1st August 2005, 17:51
This problem seems to be fixed now : http://cvs.sourceforge.net/viewcvs.py/gpac/gpac/applications/mp4box/

a new fresh cvs build please... :D

neo75903
1st August 2005, 20:04
idd filling a bug report does help :)

celtic_druid
1st August 2005, 21:50
Done.
http://mirror05.x264.nl/celtic_druid/force.php?file=./mp4box.7z

SeeMoreDigital
1st August 2005, 22:07
Thanks CD... I've just tried it with some basic muxes and it appears to work fine :)

I was hoping the new build would be able to accommodate Nero's VobSubs during the muxing of additional audio streams or chapters... but it can't :(

http://img282.imageshack.us/img282/9913/vobsubs5ge.gif


Cheers

neo75903
1st August 2005, 22:29
Done.
http://mirror05.x264.nl/celtic_druid/force.php?file=./mp4box.7z

thx dude, thats what i call service :)

bond
1st August 2005, 22:33
http://img282.imageshack.us/img282/9913/vobsubs5ge.gifwith that path you need a " " around the path, cause otherwise mp4box might think that the path ends after c:\documents

SeeMoreDigital
1st August 2005, 22:52
Hi Bond,

Here's the fuller picture ;)

http://img116.imageshack.us/img116/7610/vobsubmux7jt.png


Cheers

Kurtnoise
2nd August 2005, 13:02
I was hoping the new build would be able to accommodate Nero's VobSubs during the muxing of additional audio streams or chapters... but it can't :(
because it's not finalized in the code...just wait & see. :)

madoka
2nd August 2005, 15:57
I noticed this while investigating another problem (http://forum.doom9.org/showthread.php?t=97536), but got no response.

Basically, mp4box produces different mp4 files given the same input. Specifically, if I do the following:

mp4box -add input.264 output1.mp4
mp4box -add input.264 output2.mp4When I compare output1.mp4 & output2.mp4, they are not bit-identical! While both mp4 files playback correctly AFAIK, the fact that they differ is perplexing.

EDIT: fc shows that the differences are always in the beginning (in the one track case), so somehow the track header is different? A timestamp, perhaps?

bond
2nd August 2005, 19:33
I noticed this while investigating another problem (http://forum.doom9.org/showthread.php?t=97536), but got no response.

Basically, mp4box produces different mp4 files given the same input. Specifically, if I do the following:

mp4box -add input.264 output1.mp4
mp4box -add input.264 output2.mp4When I compare output1.mp4 & output2.mp4, they are not bit-identical! While both mp4 files playback correctly AFAIK, the fact that they differ is perplexing.

EDIT: fc shows that the differences are always in the beginning (in the one track case), so somehow the track header is different? A timestamp, perhaps?thats propably because the creation time (which is stored in .mp4) is not the same

bond
4th August 2005, 13:14
SRT > TTXT conversion isn't working for me.seems to be fixed now

dimzon
26th August 2005, 15:43
SRT > TTXT conversion bug!

There is no ability to create SuchText (part of string is italic, another part is normal)

MP4BOX used - last version from celtic_druid
C:\dvd>MP4Box.exe -version
MP4Box - GPAC version 0.4.0
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
(c) ENST 2005-200X

Source sample.srt
1
00:00:01,000 --> 00:00:10,000
<i>Italic</i> Normal <i>Italic</i>

2
00:00:11,000 --> 00:00:20,000
<i>Italic</i>
Normal
<i>Italic</i>

3
00:00:21,000 --> 00:00:30,000
<b>Bold</b> Normal <i>Italic</i>

4
00:00:31,000 --> 00:00:40,000
Normal <i>Italic</i> Normal

Produced output.ttxt:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.0">
<TextStreamHeader width="400" height="60" layer="0" translation_x="0" translation_y="0">
<TextSampleDescription horizontalJustification="center" verticalJustification="bottom" backColor="0 0 0 0" verticalText="no" fillTextRegion="no" continuousKaraoke="no" scroll="None">
<FontTable>
<FontTableEntry fontName="Serif" fontID="1"/>
</FontTable>
<TextBox top="0" left="0" bottom="60" right="400"/>
<Style styles="Normal" fontSize="18" color="ff ff ff ff"/>
</TextSampleDescription>
<TextSampleDescription horizontalJustification="center" verticalJustification="bottom" backColor="0 0 0 0" verticalText="no" fillTextRegion="no" continuousKaraoke="no" scroll="None">
<FontTable>
<FontTableEntry fontName="Serif" fontID="1"/>
</FontTable>
<TextBox top="0" left="0" bottom="60" right="400"/>
<Style styles="Italic " fontSize="18" color="ff ff ff ff"/>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:00.000" sampleDescriptionIndex="1" text="">
</TextSample>
<TextSample sampleTime="00:00:01.000" sampleDescriptionIndex="2" text="'Italic Normal Italic'">
</TextSample>
<TextSample sampleTime="00:00:10.000" sampleDescriptionIndex="1" text="">
</TextSample>
<TextSample sampleTime="00:00:11.000" sampleDescriptionIndex="2" text="'Italic''Normal''Italic'">
</TextSample>
<TextSample sampleTime="00:00:20.000" sampleDescriptionIndex="1" text="">
</TextSample>
<TextSample sampleTime="00:00:21.000" sampleDescriptionIndex="1" text="'Bold Normal Italic'">
<Style fromChar="0" toChar="18" styles="Bold Italic " fontSize="18" color="ff ff ff ff"/>
</TextSample>
<TextSample sampleTime="00:00:30.000" sampleDescriptionIndex="1" text="">
</TextSample>
<TextSample sampleTime="00:00:31.000" sampleDescriptionIndex="2" text="'Normal Italic Normal'">
</TextSample>
<TextSample sampleTime="00:00:40.000" sampleDescriptionIndex="1" text="">
</TextSample>
</TextStream>

Convertion from output.ttxt back to srt file format will give:
1
00:00:01,000 --> 00:00:10,000
<i>Italic Normal Italic</i>

2
00:00:11,000 --> 00:00:20,000
<i>Italic
Normal
Italic</i>

3
00:00:21,000 --> 00:00:30,000
<b>Bold Normal Italic</b>

4
00:00:31,000 --> 00:00:40,000
<i>Normal Italic Normal</i>
:confused: :confused: :confused: :confused: :confused: :confused: :confused:

bond
26th August 2005, 15:47
does this happen with mp4box 0.3.0 too?

make a bug report on sourceforge

dimzon
26th August 2005, 16:01
does this happen with mp4box 0.3.0 too?
Yes

make a bug report on sourceforge
Done (http://sourceforge.net/tracker/index.php?func=detail&aid=1274045&group_id=84101&atid=571738)

dimzon
26th August 2005, 19:09
srt -> ttxt tool
I have created my own tool for (maybe ;) ) correct srt->ttxt conversion until GPAC developers fix this bug.

You need Microsoft .NET Framework 1.1 to run this tool!

Note! Your subtitles must be in UTF8 encoding!

External link (http://s20.yousendit.com/d.aspx?id=0MM86XPERQSIL32L86YXDPU44U)

dimzon
29th August 2005, 14:14
test.ttxt
<?xml version="1.0" encoding="UTF-8" ?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.0">
<TextStreamHeader width="400" height="60" layer="0" translation_x="0" translation_y="0">
<TextSampleDescription horizontalJustification="center" verticalJustification="bottom" backColor="0 0 0 0" verticalText="no" fillTextRegion="no" continuousKaraoke="no" scroll="None">
<FontTable>
<FontTableEntry fontName="Serif" fontID="1"/>
</FontTable>
<TextBox top="0" left="0" bottom="60" right="400"/>
<Style styles="Normal" fontSize="18" color="ff ff ff ff"/>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:00.000" text=""/>
<TextSample sampleTime="00:00:26.649" text="'123'">
<Style fromChar="0" toChar="1" styles="Italic"/>
</TextSample>
<TextSample sampleTime="00:00:30.903" text=""/>
</TextStream>

Expected srt output:
1
00:00:26,649 --> 00:00:30,903
<i>1</i>23

Real srt output:
1
00:00:26,649 --> 00:00:30,903
<i>123


There is no closing <i> tag!

dimzon
29th August 2005, 14:51
Source ttxt:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.0">
<TextStreamHeader width="400" height="60" layer="0" translation_x="0" translation_y="0">
<TextSampleDescription horizontalJustification="center" verticalJustification="bottom" backColor="0 0 0 0" verticalText="no" fillTextRegion="no" continuousKaraoke="no" scroll="None">
<FontTable>
<FontTableEntry fontName="Serif" fontID="1"/>
</FontTable>
<TextBox top="0" left="0" bottom="60" right="400"/>
<Style styles="Normal" fontSize="18" color="ff ff ff ff"/>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:00.000" text=""/>
<TextSample sampleTime="00:00:26.649" text="'12''34'">
<Style fromChar="0" toChar="4" styles="Italic"/>
</TextSample>
<TextSample sampleTime="00:00:30.903" text=""/>
</TextStream>
Note: Subtitle consist of 2 lines (12 fnd 34, 4 chars exatly) with italic style.

Expected srt:
1
00:00:26,649 --> 00:00:30,903
<i>12
34</i>


Real srt:
1
00:00:26,649 --> 00:00:30,903
<i>12
3</i>4

'4' is outside <i> tag! Is it bug or feature?

dimzon
29th August 2005, 15:52
Source ttxt
<?xml version="1.0" encoding="UTF-8" ?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.0">
<TextStreamHeader width="400" height="60" layer="0" translation_x="0" translation_y="0">
<TextSampleDescription horizontalJustification="center" verticalJustification="bottom" backColor="0 0 0 0" verticalText="no" fillTextRegion="no" continuousKaraoke="no" scroll="None">
<FontTable>
<FontTableEntry fontName="Serif" fontID="1"/>
</FontTable>
<TextBox top="0" left="0" bottom="60" right="400"/>
<Style styles="Normal" fontSize="18" color="ff ff ff ff"/>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:00.000" text="'123'">
<Style fromChar="0" toChar="3" styles="Underlined"/>
</TextSample>
<TextSample sampleTime="00:00:30.000" text=""/>
</TextStream>

Expected srt:
1
00:00:00,000 --> 00:00:30,000
<u>123</u>

Real srt:
1
00:00:00,000 --> 00:00:30,000
123

Seems like mp4box don't convert Underline style at all :(

Isochroma
29th August 2005, 23:19
Still getting 16x16 pixel output from .264 to .mp4 conversions, using the latest mp4box 0.4.0

adaml
31st August 2005, 00:08
anyone know if mp4box has the ability to author a streaming mpeg4 video input.....I was hoping I would be able to mux subtitle information with the live video.


If this isn't possible...it would be a cool feature in the future

leowai
1st September 2005, 06:06
Just noticed the gpac updated yesterday.

@dimzon, did the following CVS update solved your problem?
Latest CVS Changes 31/08/05
- fixed UTF8 vs Win-CP text handling (BT and XMT parsers, subs->bifs and subs->ttxt converters)
- improved SRT -> 3GPP convertion - now accepts any number of <b>, <i>, <u> tags at random places. Also cleaned up TTXT->SRT conversion.
- fixed bug in unknown stsd boxes handling
- attempt to fixe gpac compilation on 64 bits platforms


- Edit -
MP4Box v0.4.1 Dev cvs binary build 2005.08.31
http://www.megaupload.com/?d=398XSHHR

dimzon
1st September 2005, 12:10
Just noticed the gpac updated yesterday.
@dimzon, did the following CVS update solved your problem?

Yeah! Seems like problem fixed (i have prodice a little quick tests)

Great work!

leowai
1st September 2005, 16:59
Yeah! Seems like problem fixed (i have prodice a little quick tests)Good to hear that. :)
Great work!Indeed, all credits should go to the code writer (author of the mp4box program in GPAC project), jeanlf. ;)

Cheers. :cool:

SeeMoreDigital
22nd September 2005, 15:32
Does anybody have anything new to report?


Cheers

yaz
22nd September 2005, 16:04
a new build is up on cd's site
Latest CVS Changes 20/09/05
- changed module naming - all modules are now prefixed with "gm_", and module is loaded/unloaded at run-time
- changed isomedia file open API for better support of temporary directories
- simplified 2D blitter for non DirectX output: no more in-middle surface used, direct stretch, blit and yuv conversion to back buffer
- added software and hardware support for MaterialKey in 2D renderer
- added all project files for evc4
- added support for OpenGL-ES in 3D renderer, in DX and in GAPI plugins
* tested with Hybrid Graphics, Vincent3D. Suggested library is Hybrid implementation
* Klimt could compile but no decent results
* Result only tested on PocketPC with Win PPC2003
- added support for GDI drawing on WinCE to avoid weird menu behaviour in windowed mode
- added support for OpenGL drawing on WinCE to avoid weird menu behaviour in windowed mode
- added osmophone to gpac/applications, demo player for Smartphone devices (tested on SPV C500)
- fixed redraw bug in 2D renderer for simple video drawing (background was always repaint regardless of video transparency)
- added LASeR XML to SVG loader
- fixed UTF8 vs Win-CP text handling (BT and XMT parsers, subs->bifs and subs->ttxt converters)
- improved SRT -> 3GPP convertion - now accepts any number of <b>, <i>, <u> tags at random places. Also cleaned up TTXT->SRT conversion.
- fixed bug in unknown stsd boxes handling
- attempt to fixe gpac compilation on 64 bits platforms

the bests
y

dimzon
22nd September 2005, 18:04
Is there any ability to change track names in MP4?
Haali Splitter reports "ISO GPAC Video Handler" if file was muxed by MP4BOX but there are another string if file produced by Nero Recode

JoeBG
23rd September 2005, 20:13
Is there any ability to change track names in MP4?
Haali Splitter reports "ISO GPAC Video Handler" if file was muxed by MP4BOX but there are another string if file produced by Nero Recode

You can do this with dumpster (ftp://ftp.apple.com/developer/Quicktime/Windows_Tools/Programmers_Tools/Dumpster/Dumpster.zip) r. Here is a link to a useful threat (http://forum.doom9.org/showthread.php?t=91879) about dumpster. I use it for every video.

Doom9
23rd September 2005, 20:18
Is there any ability to change track names in MP4?You could reimport into another mp4 and using the language tags mp4box offers..

JoeBG
24th September 2005, 08:19
How dumpster works:

Open the file with right mouseclick\open with dumpster.
The tracks are in "moov"
Open a track, go to mdia/hdlr and you will see GPAC ISO MEDIA HDLR
You can change this with:
Main Video AVC: $4D61696E 20566964 656F2041 56430000 000000
Forced Sub TTXT: $466F7263 65642053 75622054 54585400 000000
Sub TTXT: $53756220 54545854 00000000 00000000 000000
Englisch TTXT:$456E676C 69736368 20545458 54000000 00000000 000000
Englisch 5.1 AAC: $456E676C 69736368 20352E31 20414143 00000000 000000

to change the language in the header information go to trak/mdia/mdhd
For a trcklist look here: http://forum.doom9.org/showthread.php?t=91879

yakima
25th September 2005, 16:32
i've noticed that mp4box uses strange timescale values when importing some video tracks, i.e. 24999 for 25 fps or 24000 for 23,976, resulting in quite some scew.
this happens only with some (avi)-files, and only since 0.3.0 (0.2.4dev works fine). -nodrop and -fps have no effect on this & fps is set correctly in the source avi.
did anyone else notice this? could it be some rounding error? afaik, there is no option to set the timescale, is there?

EDIT: after some more tests, i've found that 0.2.4 doesn't always work either; the source files are quite old and a bit messed up. it seems within one of the avis, strh gives 24.9998 while avih says 25 fps, resulting in a mp4 with 25 fps and a timescale of 24999 for all versions of mp4box. however, for the other file that gives a strange timescale, both avi headers say 23.976 and in this case, version 0.2.4 gives the correct timescale of 23976.
i wonder why mp4box doesn't take fps as reference for choosing a timescale ...

dimzon
26th September 2005, 13:04
a new build is up on cd's site
Can't find it!

yaz
26th September 2005, 14:29
Can't find it!hmm ... i can :) try this (http://www.aziendeassociate.it/./cd//gpac/dev/MP4Box.7z) !
the bests
y

SeeMoreDigital
26th September 2005, 17:40
Can't find it!There's a link to Celtic Druid's development builds on page one of this thread ;)

SeeMoreDigital
27th September 2005, 11:27
A few days ago Jean Le Feuvre was asked the following: -Date: 2005-09-22 06:28

May I ask if there has been any headway with VOBsub support?To which Jean replied: -Date: 2005-09-27 00:38
Sender: jeanlf

Not really, I tried to find some info on the Decoder Specific Info used in such streams, without success. The rest shouldn't be too hard to implement, but without the DSI syntax I cannot do anything.

Anyone having the slightest clue what's in there is more than welcome.So it would seem we've reached a brick wall for the time being.... Me thinks the next stop will be asking... the Ateme guys!


Cheers

bond
1st October 2005, 11:05
strange, maybe he would need more sample files?

SeeMoreDigital
1st October 2005, 11:22
strange, maybe he would need more sample files?Well, if he requires longer "NeroDigital" samples generated using Recode2, I can send him some on disc (or upload them) I guess....


Cheers

SeeMoreDigital
13th October 2005, 22:37
Jean Le Feuvre has provided us with a little more information with regard to the "VOBsub" DecoderSpecificInfo issue and MP4Box Date: 2005-10-13 05:20
Sender: jeanlf
Logged In: YES
user_id=815447

If you look at such a VobSub track, there is some decoder intialization data (which can be seen with MP4Box -nhnt). This is what is called in MPEG-4 the DecoderSpecificInfo or "DSI" for short.

Its syntax is codec dependent, and in this case I have no idea what has been placed there, and thus cannot generate it at import time...Can anybody help Jean out?


Cheers

Kurtnoise
26th October 2005, 09:49
For those who are interessed by the last mp4box improvements (http://forum.doom9.org/showthread.php?p=728093#post728093) and defunkt hack (http://forum.doom9.org/showthread.php?p=721387#post721387), here is (http://kurtnoise.free.fr/mp4tools/MP4Box_20051026+Defunkt_hack.zip) a build...

Otherwhise the latest mp4box : here (http://kurtnoise.free.fr/mp4tools/MP4Box_20051026.zip) or there (http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev)...:)

vsv
28th October 2005, 11:24
Java player inside mp4 container is possible?

Drachir
28th October 2005, 11:52
There is MPEG-J : http://www.chiariglione.org/mpeg/faq/mp4-sys/sys-faq-mpegj.htm

But I don't know any free available implementation.

GPAC only supports JavaScript as far as I know.

vsv
28th October 2005, 12:59
Drachir, Thank you for clarification and link. Will be nice to have only one mp4 file with menu, subs, chapters and embeded interactive player:)

Kurtnoise
3rd December 2005, 11:36
Can anyone confirm that there is a bug with -fps switch concerning avc-in-mp4 streams ?

I tried this :
mp4box -fps 23.976 -add input.mp4 output.mp4
and
mp4box -fps 23.976 -add input.mp4#1 output.mp4
the fps for the output file seems to be always 25.000.

btw, by doing 2 steps (extraction of the raw stream and then remux), it works fine:

mp4box -raw 1 input.mp4

mp4box -fps 23.976 -add input_track1.h264 output.mp4

In addition, fps switch seems to work fine with asp video files. So, if this bug can be reproduced, I'll submit a bug report in SF.

bond
3rd December 2005, 12:12
its indeed a bug

SeeMoreDigital
3rd December 2005, 12:17
I am able to change the fps of AVC "video only" streams with your latest YAMB build.

I've just changed an 25.000 fps stream to 50.000fps and 23.976fps...


Here are some samples (http://81.98.148.105/Uploaded_Files/Doom9_Forum_files/FPS_Tests.7z). Dunno if that helps you!

Drachir
3rd December 2005, 12:21
I get the same problem with CVS from today. FPS is ignored if I import from a mp4 file. RAW import is working.


> MP4Box -add video.264:fps=23.976 out.mp4
> MP4Box -info out.mp4
* Movie Info *
Timescale 600 - Duration 00:06:24.191
Fragmented File no - 1 track(s)
File Brand isom - version 1

File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x15)
Audio PL: No audio capability required (0xff)
No streams included in root OD

Track # 1 Info - TrackID 1 - TimeScale 23975 - Duration 00:06:24.191
Media Info: Language "und" - Type "vide" - Sub Type "avc1" - 9211 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 192 x 144 - Version 1 Profile 0x4d Level 0x28
Self-synchronized


> MP4Box -add out.mp4#1:fps=15.000 out2.mp4
> MP4Box -info out2.mp4
* Movie Info *
Timescale 600 - Duration 00:06:24.191
Fragmented File no - 1 track(s)
File Brand isom - version 1

File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x15)
Audio PL: No audio capability required (0xff)
No streams included in root OD

Track # 1 Info - TrackID 1 - TimeScale 23975 - Duration 00:06:24.191
Media Info: Language "und" - Type "vide" - Sub Type "avc1" - 9211 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 192 x 144 - Version 1 Profile 0x4d Level 0x28
Self-synchronized


No change, still using TimeScale 23975.

Kurtnoise
3rd December 2005, 20:02
According to Jean this is not a bug...:)

jeanlf Project Admin
Logged In: YES
user_id=815447

This is not a bug, or maybe a documentation bug. -fps is
used when importing any visual media except IsoMedia
tracks. To change the fps of a visual track, you must
export/re-import it.

http://sourceforge.net/tracker/index.php?func=detail&aid=1372338&group_id=84101&atid=571738

mplaure
8th December 2005, 11:13
Hi folks!
Has anyone tried to import a scene description stream and an audio stream into a new file with mp4box?
example:
-keepsys -add bifsfile.mp4 -add audioacc.acc output.mp4
The output.mp4 is not a valid file!
I have done the following: I have exported the audio of an bifsfile.mp4 that had audio by using -raw. After that, I have deleted the audio track from the bifsfile.mp4 and I have imported again this audio (audio.aac obtained with -raw) using -add, with the -keepsys option to avoid the destruction of the scene description track. The file obtained (output.mp4) is very similar to the original one. The tracks are the same and if I use the -info command line I can see that in the output, the audio is sincronized with the bifs track. But It doesnt sound!!!! In any player!!!! I can only see the rendered images.
Does anyone know why? Would it be a bug? I dont think so, but I have used almost all the mp4box -options to obtain what I want (that is, obviusly, to mux a scene description stream with audio) and it seems to be impossible.
Thank you for all your posts. I am learning a lot with you. :thanks:

Drachir
8th December 2005, 12:33
If you use -kepsys and add an audio track, the track will not be included in the SceneDescrition. -> No Systems Player will play it.

Extract the SceneDescription with MP4Box.

>MP4Box -bt yourFile.mp4

Open the BIFS text(*.bt) file with an editor and adjust the Scene and the OD.

Example: Video only mp4 file

Scene:
OrderedGroup {
children [
Shape {
appearance Appearance {
texture MovieTexture {
url [od:20]
}
}
geometry Bitmap {}

}
]
}

OD:
RAP AT 0 {
UPDATE OD [
ObjectDescriptor {
objectDescriptorID 20
esDescr [
ES_Descriptor {
ES_ID 201
OCR_ES_ID 1
decConfigDescr DecoderConfigDescriptor {
objectTypeIndication 33
streamType 4
bufferSizeDB 5737
maxBitrate 167224
avgBitrate 93336
decSpecificInfo DecoderSpecificInfo {
info %01%4D%00%28%FD%E1%00%18%67%4D%00%28%9A%71%01%82%74%20%00%00%03%00%20%00%00%03%03%11%E3%06%31%10%01%00%04%68%EE%BC%80
}
}
slConfigDescr SLConfigDescriptor {
useAccessUnitStartFlag true
useAccessUnitEndFlag true
useRandomAccessPointFlag true
useTimeStampsFlag true
timeStampResolution 25000
timeStampLength 32
}
muxInfo MuxInfo {
fileName "yourFile.mp4#201"
streamFormat "MP4"
}
}
]
}
]

Add the Audio Track:
Scene:
OrderedGroup {
children [
Sound2D {
source DEF Audio AudioSource {
url [od:10]
}
}
Shape {
appearance Appearance {
texture MovieTexture {
url [od:20]
}
}
geometry Bitmap {}

}
]
}

OD:
RAP AT 0 {
UPDATE OD [
ObjectDescriptor {
objectDescriptorID 10
esDescr [
ES_Descriptor {
ES_ID 101
OCR_ES_ID 1
muxInfo MuxInfo {
fileName "audio.aac"
}
langDescr LanguageDescriptor {
languageCode "eng"
}
}
]
}
ObjectDescriptor {
objectDescriptorID 20
esDescr [
ES_Descriptor {
ES_ID 201
OCR_ES_ID 1
decConfigDescr DecoderConfigDescriptor {
objectTypeIndication 33
streamType 4
bufferSizeDB 5737
maxBitrate 167224
avgBitrate 93336
decSpecificInfo DecoderSpecificInfo {
info %01%4D%00%28%FD%E1%00%18%67%4D%00%28%9A%71%01%82%74%20%00%00%03%00%20%00%00%03%03%11%E3%06%31%10%01%00%04%68%EE%BC%80
}
}
slConfigDescr SLConfigDescriptor {
useAccessUnitStartFlag true
useAccessUnitEndFlag true
useRandomAccessPointFlag true
useTimeStampsFlag true
timeStampResolution 25000
timeStampLength 32
}
muxInfo MuxInfo {
fileName "yourFile.backup.mp4#201"
streamFormat "MP4"
}
}
]
}
]

Create a backup from your file(yourFile.backup.mp4) und run "MP4Box -mp4 yourFile.bt"

This will make only sense if you want to adjust a mp4 file with a complex SceneDescription. For A/V only mp4 file create a new Scene(BIFS)/OD with -isma.

mplaure
8th December 2005, 16:26
Thanks a lot!!! :thanks:
It works!! Well, if you have a bifs file and you obtain the bt and you follow the steps... it works. But I have convert a *.swf to bifs with mp4box, and after that, I have obtained the *.bt, followed the steps... and despite the obtained file has the audio track... it doesnt sound!!!!
Thanks anyway

DeeGee
10th December 2005, 06:57
I have made some rips of my dvd's into 2cd mp4's. I use mp4box for the splitting, but it seems like i must set the size for the splitting larger than i need. eq. if i tell mp4box to split the file into 716800kb parts the end result usually are something like 2x ~714000kb parts and one ~4000kb part. I know that the splitting can only be done at keyframes, but still this seems flawed to me as upping the desired split size makes me end up with the result i wanted (2x ~716800kb parts). The annoying thing is that you need to experiment with what required part size gives you the one you really want...

D:\DVD\2001_A_SPACE_ODYSSEY>mp4box -splits 718000 "2001 - A Space Odyssey.mp4"
Storing split-file 2001 - A Space Odyssey_001.mp4 - duration 3989.24 seconds (714 252 kb)
Storing split-file 2001 - A Space Odyssey_002.mp4 - duration 4321.60 seconds (713 899 kb)
Storing split-file 2001 - A Space Odyssey_003.mp4 - duration 254.72 seconds (4 809 kb)

D:\DVD\2001_A_SPACE_ODYSSEY>mp4box -splits 720000 "2001 - A Space Odyssey.mp4"
Storing split-file 2001 - A Space Odyssey_001.mp4 - duration 4003.76 seconds (716 255 kb)
Storing split-file 2001 - A Space Odyssey_002.mp4 - duration 4509.12 seconds (715 726 kb)
Storing split-file 2001 - A Space Odyssey_003.mp4 - duration 52.68 seconds (979 kb)

D:\DVD\2001_A_SPACE_ODYSSEY>mp4box -splits 720500 "2001 - A Space Odyssey.mp4"
Storing split-file 2001 - A Space Odyssey_001.mp4 - duration 4007.16 seconds (716 742 kb)
Storing split-file 2001 - A Space Odyssey_002.mp4 - duration 4556.32 seconds (716 182 kb)
Storing split-file 2001 - A Space Odyssey_003.mp4 - duration 2.08 seconds (36 kb)

D:\DVD\2001_A_SPACE_ODYSSEY>mp4box -splits 720600 "2001 - A Space Odyssey.mp4"
Storing split-file 2001 - A Space Odyssey_001.mp4 - duration 4007.68 seconds (716 843 kb)
Storing split-file 2001 - A Space Odyssey_002.mp4 - duration 4557.88 seconds (716 115 kb)

And on top of that, the build I have at the moment seems to do the split inproperly. Or then it can't do it proprely due to the large ammount of reference frames (15). Part two of the split is unplayable due to reference frames missing (mplayer says this "[h264 @ 0098CCE8]reference picture missing during reorder".

bond
10th December 2005, 12:24
I have made some rips of my dvd's into 2cd mp4's. I use mp4box for the splitting, but it seems like i must set the size for the splitting larger than i need. eq. if i tell mp4box to split the file into 716800kb parts the end result usually are something like 2x ~714000kb parts and one ~4000kb part. I know that the splitting can only be done at keyframes, but still this seems flawed to me as upping the desired split size makes me end up with the result i wanted (2x ~716800kb parts). The annoying thing is that you need to experiment with what required part size gives you the one you really want...i dunno how mp4box chooses the splitpoint, but propably it does it in a way so you never get a file thats bigger than what you specified (which makes sense imho)

if its possible by specifying a larger filesize than wanted but still getting a file thats smaller than the really wanted size than its a bug

And on top of that, the build I have at the moment seems to do the split inproperly. Or then it can't do it proprely due to the large ammount of reference frames (15). Part two of the split is unplayable due to reference frames missing (mplayer says this "[h264 @ 0098CCE8]reference picture missing during reorder". this is either a bug in the encoder you used or in mp4box not splitting at idr-frames only

run the mp4videoinfo tool from mpeg4ip over the second split and tell us what frametype the first frame is

also did you use b-pyramid?

DeeGee
10th December 2005, 16:09
Well at least it never seems to do a larger slit than you requested, but still it seems at least somewhat bugged. If you look at those tests of splitting I had on the first post you can see how i got with 718000 a file sized 714 252 kb and also with 720000 it was still only 716 255 kb.

The file was encoded with x264 build 384H with this commandline:

x264.exe --pass 1 --bitrate 1218 --stats ".stats" --bframes 3 --b-pyramid --filter -2:-2 --subme 1 --weightb --analyse none --me dia --progress --no-psnr --sar 64:45 --zones 0,4836,q=40/125695,129651,q=40/202080,214139,q=40 --output NUL "D:\DVD\2001_A_SPACE_ODYSSEY\VIDEO_TS\2001 - A Space Odyssey.avs"

x264.exe --pass 3 --bitrate 1218 --stats ".stats" --bframes 3 --b-pyramid --ref 15 --filter -2:-2 --analyse all --weightb --me umh --subme 7 --b-rdo --mixed-refs --8x8dct --trellis 1 --cqmfile "C:\Program Files\x264\soulhunter_v2.cfg" --sar 64:45 --progress --zones 0,4836,q=40/125695,129651,q=40/202080,214139,q=40 --output "D:\DVD\2001_A_SPACE_ODYSSEY\VIDEO_TS\2001 - A Space Odyssey_video.mp4" "D:\DVD\2001_A_SPACE_ODYSSEY\VIDEO_TS\2001 - A Space Odyssey.avs"


So I did use 3 b-frames and b-pyramid.

And mp4videoinfo gives this:

I need to find compiled version somewhere first... There seems to be references to this mp4videoinfo on mpeg4iptools site, but can't find even sources to it.

bond
10th December 2005, 16:34
Well at least it never seems to do a larger slit than you requested, but still it seems at least somewhat bugged. If you look at those tests of splitting I had on the first post you can see how i got with 718000 a file sized 714 252 kb and also with 720000 it was still only 716 255 kb.thats indeed not good, you might want to tell the gpac devs about it

And mp4videoinfo gives this:well you can also try extracting the avc stream from the 2nd mp4 to raw and than run h264_parse from mpeg4ip over it
tell me what it says there after the NAL with the SEI (i guess there must be some I frame, but what does it say in detail)

DeeGee
10th December 2005, 16:44
As the output of h264_parse is complete gibberish to me, i'll just give you a link to the whole log (http://students.oamk.fi/~t3paja01/sekalaista/h264_parse.7z)...

bond
10th December 2005, 16:47
As the output of h264_parse is complete gibberish to me, i'll just give you a link to the whole log (http://students.oamk.fi/~t3paja01/sekalaista/h264_parse.7z)...ok, you have just found a bug in mp4box! the 2nd file doesnt start with a keyframe, which means mp4box is cutting at the wrong place

please make a bug report reporting all this here (http://sourceforge.net/tracker/?group_id=84101&atid=571738)

Hyper Shinchan
2nd January 2006, 01:54
I hate making request (and I hate it even more if I don't know if they are intelligent request), but I'd like to know if it is possible to upgrade the 3GPP release to the 6 one. Actually I think that the only player that really handle 3gp6 is QT (the outputted 3gpp made with avc video show 3gp6 media type, and another application that outputs this type of file is the reference AAC++ encoder of 3GPP.org), and actually it's pretty useless to do it (because there aren't 3GPP 6 enabled mobile phone), but it can be useful start thinking about it now.

bond
2nd January 2006, 11:13
afaik qt doesnt handle ttxt in 3gp6 files, or something crappy like that

Kurtnoise
11th January 2006, 16:22
Can anyone confirm that adding A/V mp4 files to a new mp4 file crashes mp4box now ?

I tested my own compile and the new Celtic_Druid builds and mp4box crashes...:(

Such as :
mp4box -add audio_input.mp4 output.mp4

It works fine with builds compiled before December 22th...

Sharktooth
11th January 2006, 20:16
It makes even x264 crash when outputting to mp4...
Im still using the old gpac to compile x264... so yes, there must be a problem with it.

Kurtnoise
12th January 2006, 15:04
This is due maybe to the new enhancements in gpac libraries....I'll investigate.

Zero1
14th January 2006, 20:28
Can anyone confirm that adding A/V mp4 files to a new mp4 file crashes mp4box now ?

I tested my own compile and the new Celtic_Druid builds and mp4box crashes...:(

Such as :
mp4box -add audio_input.mp4 output.mp4

It works fine with builds compiled before December 22th...

Yes, mine crashed when adding a HE-AAC .mp4 track. It looks like it didn't set the SAR on my video either, fortunately I had an older build to roll back to.

Kurtnoise
16th January 2006, 13:44
It seems to work fine now...I'm testing fresh cvs builds from January 14th/16th and all seem to be ok.

I'll upload a build tonight for my part.

Daniel Mott
16th January 2006, 14:53
MP4Box crashes just after importing audio when using MeGUI 0.2.3.2024 as a frontend to mux a .264 with an AAC .mp4 audio file. When approximately will a working MP4Box be released and where is the best place to download it? :)

bond
16th January 2006, 14:57
MP4Box crashes just after importing audio when using MeGUI 0.2.3.2024 as a frontend to mux a .264 with an AAC .mp4 audio file. When approximately will a working MP4Box be released and where is the best place to download it? :)first of all what mp4box compile did you use?

Daniel Mott
16th January 2006, 15:04
Sorry for not specifying! I used the latest one on this page:
http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev (MP4Box - GPAC version 0.4.1-DEV)

Maybe there's a better place to download ready-compiled versions?

bond
16th January 2006, 15:39
indeed, the compile available there is borked

celtic_druid has already made a new one today, which works fine
you will have to wait till it gets posted on that page

Kurtnoise
17th January 2006, 12:18
Maybe there's a better place to download ready-compiled versions?
http://kurtnoise.free.fr/mp4tools/

Daniel Mott
17th January 2006, 14:19
Great, thanks a lot! I was getting really eager to do some muxing... :D

Zero1
17th January 2006, 23:19
Hmm, just wondering if anyone else is interested in Variable Frame Rate MP4, by using MKV timecode files? (No, I'm not volunteering, unfortunately I can't program, otherwise I'd gladly help :()

There was a request put in a while ago but nothing as of yet.

The suggestion posted was that you would encode and mux your decimated video, and add the MKV timecode file at time of muxing and have MP4box alter the frame durations of the MP4 file (I'm assuming that's how it works, I recall the stts atom being mentioned).

I think it's a good idea since you will be able to use existing software to create VFR MP4, as long as the feature exists in MP4box.

The other thing I look forward to is reduced encoding times, you can decimate quite a lot of frames in anime, and encoding H.264 at high quality it really saves time as well as helps with playback requirements :D

bond
17th January 2006, 23:42
Zero1:

there has been already a feature request for adding this timecode thingie to mp4box, with no response from jeanlf till now tough:
http://sourceforge.net/tracker/index.php?func=detail&aid=1356516&group_id=84101&atid=571741

the next thing would be being able to demux vfr mkv to .mp4 with mkvextract, but mosu doesnt seem to be willing to do that

the next thing would be getting vfr output to work within x264. i am pretty sure the gpac lib already does vfr, so it would need to be added on the x264 side (frame dropping aso...)

Zero1
18th January 2006, 00:51
Hmm, I originally posted thinking that it had been added, seems it has not. That's a bit of a let down lol, but still, there's always the next day...