View Full Version : GPAC MP4Box Information, Feature Requests & Discussions [No bug reports]
SeeMoreDigital
23rd May 2005, 17: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, 19: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, 20: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, 20: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, 20: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
all mpeg streams gpac supports are of course muxed into .mp4 the iso compliant way :)
Elias
24th May 2005, 02: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, 05: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, 08: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, 08: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, 14: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, 14: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, 16:04
@Elias
Here m4v is used for RAW Mpeg 4 Video
Doom9
24th May 2005, 16: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, 17:19
But it looks like future versions still be able to offer AVC in .AVI de-muxing to .H264?
Cheers
Doom9
24th May 2005, 18: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, 19: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, 19: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, 19: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, 20: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
25th May 2005, 23:13
You should post these requests on SF I think...:) It's a better place to contact the devs.
Elias
25th May 2005, 23: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, 02: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, 06: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, 08: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, 09: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, 09: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, 09:43
Why don't we just notify the MP4Box developers about this thread?
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, 13: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, 21: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.
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, 17: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, 10: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, 12:45
nope...
Kurtnoise
4th June 2005, 16: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, 18: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, 02: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, 03: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, 07: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, 15: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, 13: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.
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, 16: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, 16: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, 16:23
cvs co :pserver:anonymous@cvs.sourceforge.net:/cvsroot/gpac gpac
Kurtnoise
10th June 2005, 08: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, 08: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, 09: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, 08: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, 10: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, 10:26
Hi SMD,
Is implementation available in YAMB, or have I missed something (again)?
It should works in "Extract tab"...
SeeMoreDigital
16th June 2005, 11: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, 13:28
Indeed...I'll add it.
SeeMoreDigital
16th June 2005, 13: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, 07: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, 08: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, 10: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, 17: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, 04:46
17/06/05: GPAC 0.3.0 release
I'll put a full package up later.
Hyper Shinchan
18th June 2005, 06:35
:thanks: celtic_druid!
celtic_druid
18th June 2005, 07: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, 11:51
:thanks:
Kurtnoise
19th June 2005, 07: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, 09: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.
mp4box.0.3.0 is up on celtic's site ! (follow the link above)
thx thx thx
y
celtic_druid
21st June 2005, 13: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, 20:03
Most excellent, thank you celtic_druid :D
sillKotscha
23rd June 2005, 21: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, 21: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, 21:39
thanks for telling me...
have a nice eve... :)
cheers
SeeMoreDigital
23rd June 2005, 22: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, 22: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, 01: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, 10: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, 11: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, 14:23
mp4box updated (link in the above post).
HQ-LQ
4th July 2005, 12: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, 12: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, 13:17
but not 'avc in mkv'
SeeMoreDigital
4th July 2005, 13: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
i doubt there is a chance that mp4box will support mkv output, its a mpeg-4 systems tool
nexus
5th July 2005, 13: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, 14:14
yes.. been using that in MeGUI for a long time and nobody has reported any problem.
.264
yakima
8th July 2005, 03: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, 10: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, 11: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 ..
there is no need for the bifs/od
Drachir
8th July 2005, 14: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.
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, 14: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
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, 15:17
or is it only easier to spread?
SeeMoreDigital
8th July 2005, 15: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, 16: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, 16: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, 16: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, 22: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
8th July 2005, 23: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, 15: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, 15: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, 15: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.
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, 19: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, 19: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, 21: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
9th July 2005, 23: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, 03: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, 03: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, 11: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, 11: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, 12: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, 12: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, 12: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, 13: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, 13: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, 13: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, 13:40
Hi bond,
Are you aware of anybody working on "Menu's" for hardware devices?
Cheers
bond
10th July 2005, 13: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, 13: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, 14: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, 18: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, 22: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, 11: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, 12:47
if you think its important make a bug report at sourceforge
Hyper Shinchan
11th July 2005, 15: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, 03: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, 06: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, 09: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, 13:39
seems i cant even compile the new code...
leowai
14th July 2005, 14: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.
would someone, pls, make a working compile of the latest mp4box available ?
thx
y
JoeBG
15th July 2005, 18:03
http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev
Thanks to celticdruid :)
Doom9
15th July 2005, 18:51
@JoeBG: that isn't quite the latest one ;) BTW, how's the MeGUI guide coming along?
SeeMoreDigital
15th July 2005, 18: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, 20: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, 20: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, 12:46
can anyone reproduce this? anyone else already did some tests?
Same problem here... :(
leowai
19th July 2005, 16: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, 20: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, 09:49
utf-8 subtitle support is back for MP4Box on today's (20th Jul) update. :)
Cheers.
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, 12: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, 13: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, 05: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, 08: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, 09: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, 14: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, 16: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, 03: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, 10: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, 14: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, 15: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, 08:14
what option did you use in YAMB ?
SeeMoreDigital
23rd July 2005, 08: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, 15: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, 18: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, 04: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, 04: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, 06:45
again: there is no point in using ac3 in .mp4
use matroska for that
Doom9
29th July 2005, 07: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.
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, 09:10
thx a lot !!! i'm about to take this risk :D
thx
yDon't forget your friends!
Don't forget your friends! :confused: ...y'mean ?
SeeMoreDigital
29th July 2005, 13: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
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, 16:57
mp4box v0.4.0:
http://mirror05.x264.nl/celtic_druid/force.php?file=./mp4box-0.4.0.7z
SeeMoreDigital
30th July 2005, 18: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, 19:14
Just tested it and it works fine for a simple mux here. I didn't use any GUI though.
SeeMoreDigital
30th July 2005, 19: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, 20: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, 20: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, 20:54
I don't use GPAC code for YAMB. So, no problem with this...
celtic_druid
30th July 2005, 21: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, 21: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, 22:23
wow thx celtic for the build! will test it soon as possible, thx again :)
Kurtnoise
31st July 2005, 09:58
Does anybody can confirm my last observation please ? Thanks.
neo75903
31st July 2005, 10: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, 15:43
if you find a bug in mp4box, make a bug report on the gpac bugtracker on sourceforge
Kurtnoise
1st August 2005, 16: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, 19:04
idd filling a bug report does help :)
celtic_druid
1st August 2005, 20:50
Done.
http://mirror05.x264.nl/celtic_druid/force.php?file=./mp4box.7z
SeeMoreDigital
1st August 2005, 21: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, 21:29
Done.
http://mirror05.x264.nl/celtic_druid/force.php?file=./mp4box.7z
thx dude, thats what i call service :)
bond
1st August 2005, 21: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, 21:52
Hi Bond,
Here's the fuller picture ;)
http://img116.imageshack.us/img116/7610/vobsubmux7jt.png
Cheers
Kurtnoise
2nd August 2005, 12: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, 14: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, 18: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, 12:14
SRT > TTXT conversion isn't working for me.seems to be fixed now
dimzon
26th August 2005, 14: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, 14:47
does this happen with mp4box 0.3.0 too?
make a bug report on sourceforge
dimzon
26th August 2005, 15: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, 18: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, 13: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, 13: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, 14: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, 22:19
Still getting 16x16 pixel output from .264 to .mp4 conversions, using the latest mp4box 0.4.0
adaml
30th August 2005, 23: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, 05: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, 11: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, 15: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, 14:32
Does anybody have anything new to report?
Cheers
yaz
22nd September 2005, 15: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, 17: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, 19: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, 19: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, 07: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, 15: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, 12:04
a new build is up on cd's site
Can't find it!
yaz
26th September 2005, 13: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, 16: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, 10: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, 10:05
strange, maybe he would need more sample files?
SeeMoreDigital
1st October 2005, 10: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, 21: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, 08: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, 10:24
Java player inside mp4 container is possible?
Drachir
28th October 2005, 10: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, 11: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...
Oline 61
18th January 2006, 22:02
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? :)
I'm having this same problem. If you use BeLight and check off "ISO AAC format" thing (.aac) then it will mux correctly.
Waiting for a new MP4Box compile.
Thanks to everybody who works hard compiling this stuff for lazy people who don't feel like figuring out how to use MinGW :).
Kurtnoise
23rd January 2006, 15:04
Waiting for a new MP4Box compile.
Already done...check the link above.
btw, I found an other issue with -split command and chapters added during mux process.
Tested with a fresh cvs compile. This :
mp4box -split xxx -add video.mp4 -chap chapfile.txt output.mp4
Process works fine but chapters are lost (tested with MPC, VLC, and some other dshow players).
But with 2 steps all seems to work fine...
mp4box -add video.mp4 -chap chapfile.txt output.mp4
mp4box -split xxx output.mp4
A request: it could be great to centralize somewhere in a thread all bugs/issues that we have with mp4box.
bond
23rd January 2006, 15:08
A request: it could be great to centralize somewhere in a thread all bugs/issues that we have with mp4box.no need for a thread that mp4box devs dont read anyways
all bugs should be collected in the gpac bug tracker available here:
http://sourceforge.net/tracker/?atid=571738&group_id=84101&func=browse
edit:
btw i dont see the chapter adding + split combination as a bug, its more a feature request imho
Kurtnoise
23rd January 2006, 15:16
I remade my words. My request is more oriented for people here, to inform them...Think about fps switch for mp4 adds, ac3-in-mp4 no way, etc...
SeeMoreDigital
23rd January 2006, 16:03
That was the original purpose behind this very thread ;)
It's also why I included the, MP4Box "Request" Summary and MP4Box "Implemented" Summary boxes.
And from what I understand, Jean does visit here from time to time also.
Cheers
bond
23rd January 2006, 19:06
hm i could add that to the mp4 faq sticky?
any idea what issues should be mentioned (next to the "specify the framerate when importing raw video" thingie)?
Varium
31st January 2006, 23:39
Sorry, if this has been asked before, but I notice that when i use Yamb or Mp4box cli, that it fails to work unless the files I want to mux are in the same directory. I've tried all the Mp4box builds I can find and they all give the same problem.
"C:\Program Files\MeGUI\MP4Box.exe" -fps 23.976 -add "C:\Documents and Settings\Nile\Desktop\Beet The Vandel Buster #45_track1.h264" -fps 23.976 -add "C:\Documents and Settings\Nile\Desktop\Beet The Vandel Buster #45_track2.aac" "C:\Documents and Settings\Nile\Desktop\Beet The Vandel Buster #45_track1.mp4"
Done using MP4Box_20060119+pengvado-patch
Here are some screens, and an error log file
Before:
http://img377.imageshack.us/img377/9288/before9hh.th.png (http://img377.imageshack.us/my.php?image=before9hh.png)
After Muxing attempt:
http://img475.imageshack.us/img475/1835/errordialog5cb.th.png (http://img475.imageshack.us/my.php?image=errordialog5cb.png)
Kurtnoise
1st February 2006, 11:59
mmh, strange. Works fine for me here with the same command line.
Try w/o -fps for both A/V files...and post somewhere some samples.
Varium
1st February 2006, 17:57
I just tried it again, and I think it only crashes with filenames of a certain length. I'll post 2 copies of the sample with different names, to see if this is correct.
Varium
1st February 2006, 18:47
Sample 1 contains a raw .264 stream, an aac file in an .mp4 container, and a succesfully muxed file. The filenames for the audio & video are short.
Sample 1 (http://s55.yousendit.com/d.aspx?id=2VJX5GNUIWDKE1FZSTC1NBI434)
Sample 2 Contains the same audio & video file, except with longer file names. Both cause an error dialog to appear when I attempt to mux either directly in mp4box, or by using YAMB.
Sample 2 (http://s55.yousendit.com/d.aspx?id=34GRAMO00B9F230W3ES8GWS9LG)
Kurtnoise
1st February 2006, 20:56
Replace # by _ . Such as Beet The Vandel Buster_45.264
mp4box associates some extra characters with #...
Varium
1st February 2006, 21:52
Oh ok. Yeah, thats fixed it for me. Thanks a lot Kurtnoise, I didn't think it was caused by something so simple. I'm glad everythings working now. YAMB is a really useful tool btw, so I'll give my thanks.
Kurtnoise
28th March 2006, 22:09
Hi,
Does anyone have some troubles with my own MP4Box compiles coz some people send to me some crashes during processes ? If yes, please give me some details...
I can't reproduce these crashes myself so I ask...
SeeMoreDigital
28th March 2006, 22:40
Funny you should mention this....
A couple of days ago I used the latest YAMB 1.5 build to de-mux an 800MB (1CD back-up) MPEG-4 AVC back-up of Terminator 3, I generated using Recode2.
The de-muxing of the MPEG-4 AVC video and 6Ch AAC-HE audio streams went okay but when I attempted to re-mux the streams (along with my newly "named" chapters), YAMB completely stalled at the video stream importing stage!
Everything went fine with the last build of YAMB 1.4
Cheers
Kurtnoise
29th March 2006, 07:21
I asked for MP4Box crashes not YAMB...:o
SeeMoreDigital
29th March 2006, 10:02
I asked for MP4Box crashes not YAMB...:oIndeed.... I don't think it's YAMB that's crashing!
Tell you what.... I'll perform the same re-muxing task again with the latest YAMB 1.5 build but with different versions of MP4box.... and get back to you!
Cheers
Kurtnoise
21st May 2006, 23:00
Heya,
Some infos concerning MP4Box and gpac stuff : vobsub support has been officially integrated into the cvs today. So, great work Falco. ;) Now, a MPEG TS demuxer is on the way. Feel free to test it.
As usual, my MP4Box compiles for win32 are available here (http://kurtnoise.free.fr/mp4tools/).
SeeMoreDigital
22nd May 2006, 11:34
Heya,
Some infos concerning MP4Box and gpac stuff : vobsub support has been officially integrated into the cvs today. So, great work Falco. ;) Now, a MPEG TS demuxer is on the way. Feel free to test it.
As usual, my MP4Box compiles for win32 are available here (http://kurtnoise.free.fr/mp4tools/).Given the "extreme" importance of the proposed .TS de-muxing implementation.... I've taken the liberty of starting a new thread about it here (http://forum.doom9.org/showthread.php?t=111470).
Hope that's okay ;)
chipzoller
23rd May 2006, 04:10
Since this has to do with mp4box crashing, I'll post mine here:
Using 0.4.1-DEV (size 1,736,704 bytes) of MP4box and the crash happens with this via cli or via YAMB 1.6.0
Encoded Legend of Zorro in x264 MP4 with megui, and audio aac q=0.34 with the new nero aac encoder. MP4box crashes when importing the video (it looks like) track. I'm not sure what other info. you may need, so let me know what else I can provide.
Kurtnoise
23rd May 2006, 07:19
With the last daily build ? with the 20060522 version, MP4Box crashes for me too with ND aac stream.
Use the 20060515 or 20060505 builds instead.
JoeBG
25th May 2006, 11:29
@ Kurtnoise
mp4 box crashes with the versions 22.05 and 21.05 when I mux m4v streams. Down from version 19.05 no problems.
Kurtnoise
25th May 2006, 15:21
If you found a bug, report bugs directly on SourceForge...
JoeBG
26th May 2006, 04:03
If you found a bug, report bugs directly on SourceForge...
You´re right!
Kurtnoise
2nd June 2006, 20:18
with the 20060522 version, MP4Box crashes for me too with ND aac stream.
bug with mp4 audio streams has been fixed in the CVS now but MP4Box still crashes with raw mpeg4.
:: http://kurtnoise.free.fr/mp4tools/MP4Box_20060602.zip
@JoeB : if you use xvid encraw, choose avi as output. This should be ok temporarily.
SeeMoreDigital
2nd June 2006, 21:18
Just tried the new compile with a Recode2 encoded test sample (with 2No AAC audio tracks and 2No VOBsub subtitle tracks) and it muxes very quickly indeed :D
The re-muxed VOBsubs, still appear to be longer than the sources VOBsubs though... :(
Cheers
Kurtnoise
3rd June 2006, 17:03
The re-muxed VOBsubs, still appear to be longer than the sources VOBsubs though... :(
AFAIK, Falco hasn't fixed yet this issue...
Kurtnoise
6th June 2006, 13:29
mp4 box crashes with the versions 22.05 and 21.05 when I mux m4v streams.
Fixed now...A win32 build is available here (http://kurtnoise.free.fr/mp4tools/). :cool:
Hyper Shinchan
6th June 2006, 15:15
Hi guys! Can you try to import a subtitle that show in a lines the character '?
In all the builds that come after the first part of March it dosn't work, the player (QuickTime, Osmo4, Halii+vsfilter) doesn't show the characters after that character, but the mp4s muxed with a build that was made before the second half of march 2006 (both Kurtnoise and Celtic Druid's ones) work perfectly.
I think that there is a bug in MP4Box, but I'm not so smart to find it, sorry.
Can anyone help me? Would I report it directly to gpac?
P.S.: Why the link for the celtic druid's build doesn't work anymore? It's onlly me?
C'ya!
Kurtnoise
6th June 2006, 18:13
No problem here...with what kind of subtitles format did you have this issue ?
' ' is used for linebreaks i think
Hyper Shinchan
7th June 2006, 11:08
My subtitles are srt converted to gpac timed text.
please try line like:
"Cantami o diva l'ira del pelide Achille"
All the character after the ' disappear.
As you know I can't connect to internet unfortunately, but I'll make a pair of sample this afternoon and I'll post them as soon as I can.
Kurtnoise
8th June 2006, 09:23
As I said previously, this works fine for me. Tested with your sentence and several french sentences which have also the same syntax. Maybe, this is a problem from your player/splitter ?
btw, it seems that the last MP4Box build doesn't delete the tmp file when we try to import & mux different streams. Does anyone have noticed that ?
nurbs
8th June 2006, 09:52
I can remember having problems with that too.
On one movie I accidently OCRed " as 2 times ' and then sentences would disappear. I can't remember if it also happend when there was only one ' but I think so. Maybe it had something to do with an italic '.
Anyway I somehow got it working and it was probably just a small problem.
[Edit] Maybe there has to be a space between the 's as Bond said in post #280
Hyper Shinchan
9th June 2006, 15:09
Maybe, this is a problem from your player/splitter ?
As I said I've tried different players, the only problem with the players that I've noticed is that italic fonts are displayed in a wrong way, bigger than normal with Halii+VSfilter, but the file made with the old builds play well, the new ones no.
I've attached a file that include an srt subtitle, the ttxt's one and the resultant mp4s made with the old and new build, please mod validate it.
[Edit] Maybe there has to be a space between the 's as Bond said in post #280
It could be... do you use space Kurt?
Kurtnoise
9th June 2006, 19:59
No...I didn't use space. Basically, there is no space between l and ' (at least for french language...same thing for Italian I guess.)
IMOON
10th June 2006, 17:23
Hello Kurtnoise13,
I can confirm this bug. I use your last build of mp4Box and Yamb.
I have tried to mux this ttxt to mp4
<TextSample sampleTime="00:07:16.007" text="'Sieh mal, Teal'c, wir leben schon lange''alleine in unserer Ecke der Galaxie.'">
</TextSample>
All the character after the ' disappear.
If I export the subtitle to ttxt it locks like this.
<TextSample sampleTime="00:07:16.007" text="'Sieh mal, Teal'''''">
</TextSample>
also if I try to convert the ttxt directly to srt something goes wrong.
90
00:07:16,007 --> 00:07:21,286
Sieh mal, Teal
P.S.: Version 20060303 of MP4Box is OK.
Kurtnoise
10th June 2006, 17:59
mmh...how did you create this ttxt ? With SubRip ? Directly from MP4Box ?
chipzoller
12th June 2006, 04:32
Kurt,
Used Yamb 20060512 and mp4box 20060610 to extract vobsubs from an MP4 file I encoded into a separate MP4 file (RAW format failed) so I can import the whole file into MKV container (3 streams in this MP4 file...only audio and video were picked up by mkvmerge 1.7.0). When adding the resulting mp4 file created from vobsub stream and importing via mkvmerge, it tells me "the input file contains no tracks." I remember you mentioning a while back about your builds of mp4box now supporting demux of vobsub stream, but aren't you still working on being able to demux to the .idx/.sub files? In any case, this this an mp4box problem or mkvmerge?
Kurtnoise
12th June 2006, 05:04
mmh, not me...;) but Falco and for the moment we can't extract directly idx/sub from mp4. So, if you have a mp4 containing vobsub file, you can't use it for mkv/divx. In this case, use directly idx/sub files from vob or (re)create them with a srt file.
This is not a MP4Box or MKVMerge problem.
chipzoller
12th June 2006, 05:59
Kurt...sorry :)
I understand it is not yet possible to extract .idx/.sub from a MP4 file with vobsubs, but is it possible to extract this track to an MP4 file itself, nevermind the correct formatting exported along in the .idx file. I thought for sure it would at least do this.
Kurtnoise
12th June 2006, 06:54
is it possible to extract this track to an MP4 file itself
Yes it's possible but only MP4Box will be able to use this kind of file...for the moment.
IMOON
12th June 2006, 13:39
mmh...how did you create this ttxt ? With SubRip ? Directly from MP4Box ?
I used Subrip 1.50 beta 3a to extract the ttxt from the vob file.
chipzoller
12th June 2006, 13:41
Yes it's possible but only MP4Box will be able to use this kind of file...for the moment.
Kurt...thanks for the info.
Kurtnoise
12th June 2006, 20:18
I used Subrip 1.50 beta 3a to extract the ttxt from the vob file.
Save your file in Unicode...
Same thing for you Hyper Shinchan : reopen your srt through SubRip and save it as Unicode form.
This should fix your problem.
Kurtnoise
12th June 2006, 22:36
From the last cvs :
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
http://kurtnoise.free.fr/mp4tools/MP4Box_20060612.zip
SeeMoreDigital
12th June 2006, 22:50
Oh cool.... Great stuff ;)
Kostarum Rex Persia
13th June 2006, 00:56
Cool, man. Great news.
Hyper Shinchan
13th June 2006, 17:21
Save your file in Unicode...
Same thing for you Hyper Shinchan : reopen your srt through SubRip and save it as Unicode form.
This should fix your problem.
Tnx for the hint. I'll try it and I'll let you know if it works for me.
Anyway what does it mean? Maybe the older builds were able to perform an UTF-8 conversion before to encode the srt to ttxt???
Sharktooth
14th June 2006, 01:52
Did anyone test this latest gpac revision? Is it safe to add it to MeGUI auto-update repository?
Hyper Shinchan
14th June 2006, 08:46
About subtitles:
Arghhhh!!! It doesn't work! i've tried to save my srt in utf-8, I've tried to reconvert the ttxt in utf-8 and I've also tried to make a ttx directly with subrip 1.5b3, but it doesn't work with the new builds, but it works with the old ones...
Unrelated: why the newer MP4Box build doesn't show the progress bar while they are importing a file? They show it only while they are writing the file....
SeeMoreDigital
14th June 2006, 08:55
From the last cvs :
http://kurtnoise.free.fr/mp4tools/MP4Box_20060612.zip
Just tried muxing an MPEG-4 SP with MP3 in .AVI test sample into MP4 using YAMB and MP4Box crashed....
Can anybody else confirm?
Cheers
foxyshadis
14th June 2006, 09:30
utf-8 or utf-16? Usually "unicode" means utf-16, but not always...
Kurtnoise
14th June 2006, 10:08
Just tried muxing an MPEG-4 SP with MP3 in .AVI test sample into MP4 using YAMB and MP4Box crashed....
Can anybody else confirm?
No problem here...
About subtitles:
Arghhhh!!! It doesn't work! i've tried to save my srt in utf-8, I've tried to reconvert the ttxt in utf-8 and I've also tried to make a ttx directly with subrip 1.5b3, but it doesn't work with the new builds, but it works with the old ones...
Could you send me your srt file :: kurtnoise at free dot fr
Hyper Shinchan
14th June 2006, 10:15
I've linked an srt in an old post, have you tried it? there is the srt and the converted ttxt.
I can send you another srt later, if you wish.
http://forum.doom9.org/showthread.php?p=838412#post838412
EDIT:
utf-8 or utf-16? Usually "unicode" means utf-16, but not always...
I think UTF-8, actually the 3GPP Timed text supports both UTF-8 and 16, but GPAC MP4Box says that it supports only UTF-8 stuffs in the encoding .
SeeMoreDigital
14th June 2006, 10:32
No problem here...After further investigation it would seem the MPEG-4 SP with MP3 in .AVI test sample I was trying to mux was an: -Multipart OpenDML AVI, "rec list" styleoriginally muxed using some dubious setting with AVI-Mux GUI :scared:
Kurtnoise
14th June 2006, 11:06
I've linked an srt in an old post, have you tried it?
Using your srt and resaving it into SubRip...I've got no problem. It works fine with MPC & VLC as I said.
Try to play this sample (http://kurtnoise.free.fr/Sample_xvid.mp4) and you'll see. I used this sub file (http://kurtnoise.free.fr/Subs_Unicode.zip).
@SMD : yeah, I'm not sure that MP4Box supports OpenDML...
Hyper Shinchan
14th June 2006, 11:19
Using your srt and resaving it into SubRip...I've got no problem. It works fine with MPC & VLC as I said.
Try to play this sample (http://kurtnoise.free.fr/Sample_xvid.mp4) and you'll see. I used this sub file (http://kurtnoise.free.fr/Subs_Unicode.zip).
.
You opened my srt into subrip and you saved it as ttxt or as srt again?and then you muxed it? OK, I'll try the samples.
Kurtnoise
14th June 2006, 12:40
I saved it as srt...and yes, I muxed this file with a video stream.
bond
14th June 2006, 18:53
last time i tested it mp4box automatically converted my subs to utf-8 from ansi
also storing files as "unicode" in the text editor doesnt give you utf-16. the textpad supports storing as utf-8 tough
JoeBG
15th June 2006, 15:28
last time i tested it mp4box automatically converted my subs to utf-8 from ansi
I can confirm that
Hyper Shinchan
16th June 2006, 08:49
Well, if I open my srt and I saved them into UTF-16 LE (Unicode for the notepad) it works.
But if I use the -ttxt string to convert them to ttxt and then I try to mux the ttxt it doesn't work (well, it works, but with the problem with the ').
I seriously think that this is a bug, at least it was better in the past.
IMOON
16th June 2006, 10:04
Yesterday I have tested your tip with unicode. But it doesn't work for me. Only build 20060303 and earlier works. And with these build it doesn't matter if you use ansi or unicode.
Hyper Shinchan
16th June 2006, 10:42
Yesterday I have tested your tip with unicode. But it doesn't work for me. Only build 20060303 and earlier works. And with these build it doesn't matter if you use ansi or unicode.
For me it worked if you directly muxed his srt into an mp4, directly, without converting it into ttxt and editing it.
Anyway you're right, older builds don't give any problem, we would ask to Jean.
Kurtnoise
25th June 2006, 07:10
PSP support in MP4Box seems to be partially introduce according to the last cvs changes. Files must have .psp extension instead of mp4/3gp. So, does it mean that AtomChanger is not needed any more ?
http://kurtnoise.free.fr/mp4tools/MP4Box_20060625.zip
KRUSADER
26th June 2006, 03:30
Is there any command or something for MPlayer that display MP4 muxed subtitles.
Hyper Shinchan
27th June 2006, 16:39
Is there any command or something for MPlayer that display MP4 muxed subtitles.
I guess that MPlayer doesn't support MP4 subtitles (but maybe I'm wrong, anyway at least the build that I was using some time ago said that it's not fully understood the box that contain the subtitle).
PSP support in MP4Box seems to be partially introduce according to the last cvs changes. Files must have .psp extension instead of mp4/3gp. So, does it mean that AtomChanger is not needed any more ?
This is really a good thing, but how can be activated? I don't see a -psp option, at least in the avaible command-lines. Where can I read the changelog of the CVS (I'm not confiedent with SourceForce)?
Kurtnoise
27th June 2006, 17:30
This is really a good thing, but how can be activated?
Just using .psp extension I guess...Didn't tried myself coz I don't have a PSP.
Where can I read the changelog of the CVS (I'm not confiedent with SourceForce)?
When you browse CVS repository, the changelog file is in gpac root directory. but all changes/new things in the code aren't included in this file...
Hyper Shinchan
30th June 2006, 10:08
Just using .psp extension I guess...Didn't tried myself coz I don't have a PSP.
But PSP uses standard .mp4 exentsion, it doesn't use weird .psp extension... anyway I'll try it.
Kurtnoise
7th July 2006, 23:15
Latest CVS Changes 06/07/06
- commit of GPAX (GPAC ActiveX) - controller only works in IE and ActiveX control tester for now.
- bug fixes and API changes to Osmozilla to keep in sync with GPAX. Sample html file can be found in applications/GPAX.
NOTE: both plugin now support browser navigation (ie link to html within MPEG-4 content)
- committed patch from Andrew Voznytsa (with slight modif) for iTunes tag support. Tagging can be done with MP4Box -itags option. The tags are passed in a single string, separated by ':', formatted as 'tag_name=tag_value'. Supported tags names are: album, artist, comment, compilation, composer, created, disk, encoder, genre, name, tempo, track, tracknum, writer.
NOTE: to make sure you mp4 is importable on an iPod, you must:
- use .m4a extension
- specify the right brands: MP4Box -brand "M4A " -ab mp42
This process will soon be automated in mp4 box...
- more LASeR fixes
- fixed AVC/H264 parsing (pic size detection on interleaved stream and cropping were broken)
Not tested personally...anyway here is a win32 build (http://kurtnoise.free.fr/index.php?dir=mp4tools/).
Kostarum Rex Persia
9th July 2006, 00:07
Kurtnoise13, your newest MP4BOX build is broken!
foxyshadis
9th July 2006, 00:45
That's a useful bugreport if I ever heard one! =D
Kurtnoise
9th July 2006, 05:55
your newest MP4BOX build is broken!
More details are needed please...:rolleyes: Which command line did you use ? Have you got any message(s) ? If yes, post it (them) here.
Personally, I used the last build yesterday w/o problem.
Kostarum Rex Persia
9th July 2006, 17:18
More details are needed please...:rolleyes: Which command line did you use ? Have you got any message(s) ? If yes, post it (them) here.
Personally, I used the last build yesterday w/o problem.
Well, I always use MeGUI with x264 codec, and MP4 container, of course. I tried various settings, one pass, two pass, but nothing helps. Result is always same: encoded video won't play at all in BSPlayer 2.0. Mplayer also won't play mp4 file.
I tried various sources, but result is same. Broken mp4box build, for sure.
[Edit] I haven't got any error message(s) at all, MeGUI always finish with encoding, but output mp4 file isn't playable.
SeeMoreDigital
9th July 2006, 18:55
Hmmm!
No problems here with Kurt's latest build of MP4Box ;)
Kurtnoise
24th July 2006, 20:12
Does anyone have tested the iTunes tagging system within MP4Box ? It seems that some tags are not setted correctly (like compilation, composer, disk, genre...). Am I right or I missed something ?
Stay
24th July 2006, 22:28
The PSP option doesn't seem to work. I've tried extracting the tracks from a working PSP MP4 file and then remuxed them in mp4Box (Kurtnoise13's 20060722 build) but it shows up as corrupted. (I have changed the filename back to .MP4).
"C:\MP4Box_20060722\MP4Box.exe" -add "C:\MP_ROOT\100ANV01\MAQ10001_track1.h264" -add "C:\MP_ROOT\100ANV01\MAQ10001_track2.aac" "C:\MP_ROOT\100ANV01\MAQ10001.psp"
AVC-H264 import - frame size 320 x 240 at 25.0000 FPS
Adjusting AVC SizeLength to 16 bits
Import results: 9201 samples - Slices: 360 I 8841 P 0 B - 1 SEI - 66 IDR
AAC import - sample rate 48000 - MPEG-4 audio - 2 channels
Converting to PSP file...
Saving to C:\MP_ROOT\100ANV01\MAQ10001.psp: 0.500 secs Interleaving
bond
25th July 2006, 18:49
what streams did you have in the working psp file and from what file extension did you change to .mp4?
Stay
25th July 2006, 20:45
what streams did you have in the working psp file
I made a AVC video file using FFmpeg with the -psp option (which worked on my PSP) then i extracted the tracks using YAMB and remuxed them inputing
"C:\MP4Box_20060722\MP4Box.exe" -add "C:\MP_ROOT\100ANV01\MAQ10001_track1.h264" -add "C:\MP_ROOT\100ANV01\MAQ10001_track2.aac" "C:\MP_ROOT\100ANV01\MAQ10001.psp"
in the command prompt
and from what file extension did you change to .mp4?
I changed it from .psp to .MP4
You need to change the output filename to .psp or mp4box won't show
Converting to PSP file...
in the command prompt, which i'm assuming is it trying to add the extra info that sony (annoyingly) is required in the file.
JoeBG
28th July 2006, 07:36
Does anyone have tested the iTunes tagging system within MP4Box ? It seems that some tags are not setted correctly (like compilation, composer, disk, genre...). Am I right or I missed something ?
I just use the encoder option from mp4box and this works great. Did not test the other ones, sorry.
Let me resume what crazy things I do :) :
encoder tag: with mp4box, but the command "-itags" is integrated in the final muxing commandline with "-add" and "-chap". If you use -itags with a already muxed mp4, all other tags and all chapters get lost.
cover tag: with atomicparsley. If you choose mp4tags for tagging the cover, not all shell extensions will show it. And if you use atomicparsley for all other tags, the chapters get lost.
all other tags: mp4tags
JoeBG
28th July 2006, 18:51
I forgot some important informations:
- if I don´t use atomicparsley for the cover, the cover will not be shown in my shell extension.
- I always use the -freefree option from atomicparsley which seems to make the file more compliant
- when I use atomicparsley for other tags than the cover the chapters get lost
- when you have the intention to add the encoder tag to an already existing mp4 all other tags and the chapter informations get lost
Kurtnoise
31st July 2006, 08:23
if I don´t use atomicparsley for the cover, the cover will not be shown in my shell extension.
Just to be curious...what kind of shell extension did you use ?
JoeBG
1st August 2006, 12:50
AudioShell (http://www.softpointer.com/AudioShell.htm)
Do you know a better one? I would be glad to use a better one :)
Kurtnoise
5th August 2006, 07:56
iTunes ? :D
/me just kidding...
emmel
6th August 2006, 22:49
I'm using "neroAacEnc -he" to encode wav into aac he. The output of the encoder is a mp4, for which "MP4Box -info" reports the stream type as "MPEG-2 Audio AAC LC". Is this consistent with the "-he" setting of the encoder?
[edit] Just a small addition to describe the case in more detail:
>neroAacEnc_sse2 -he -q 0.4 -if soundtrack.wav -of soundtrack.mp4
>MP4Box -add soundtrack.mp4 all.mp4:
Isomedia import - track ID 1 - HE-AAC (SR 24000 SBR-SR 48000 - 2 channels)
>MP4Box -info all.mp4:
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 24000 - SBR SampleRate 48000
So, import reports the track as HE, but info says it is LC. Is this a feature? Replay works ok atm though.
orbitlee
8th August 2006, 19:08
I have trouble on use mp4box. I'm using MP4Box_20060731.zip to convert raw h264 video stream(about 5.4GB) to mp4. Command line is "mp4box -add video.h264 video.mp4". mp4box displays "Importing AVC-H264: |== |(1/100)", the number increase to (100/100), and then 101/100, 102/100, ... fall into an infinite loop...
Then I use binary edit tool to cut the h264 video stream into small parts(at the boundary of H264 Access UD, hex 00 00 00 01 90 ), It is very strange that every small parts can be converted to mp4 without any trouble. And, I also have plenty of free disk space.
Is it a bug of mp4box, or I missed anything? Your suggestions will be highly appreciated.
Sorry I can't post the h264 video stream since it is so huge...
Here is the mp4 info(generated from the small parts). Maybe it helps.
* Movie Info *
Timescale 600 - Duration 00:00:12.720
Fragmented File no - 1 track(s)
File Brand isom - version 1
Created: GMT Tue Aug 08 18:16:51 2006
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 25000 - Duration 00:00:12.720
Media Info: Language "Undetermined" - Type "vide" - Sub Type "avc1" - 318 sample
s
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1920 x 1088 - Profile Main @ Level 4
Pixel Aspect Ratio 1:1 - Indicated track size 1920 x 1088
Self-synchronized
UPDATE: I found this should be a 4GB size limitation bug.
H264 video stream file with a few bytes less than 4GB is OK.
after adding one H264 access UD(so file size just exceed 4GB)
, mp4box will give ridicuous result:
Importing AVC-H264: |=====| (820710/100) ...
Drachir
9th August 2006, 08:22
>MP4Box -info all.mp4:
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 24000 - SBR SampleRate 48000
MP4Box show you the right info. HE-AAC = AAC LC (24000Hz) + SBR (24000Hz -48000Hz).
Drachir
9th August 2006, 08:24
UPDATE: I found this should be a 4GB size limitation bug.
H264 video stream file with a few bytes less than 4GB is OK.
after adding one H264 access UD(so file size just exceed 4GB)
, mp4box will give ridicuous result:
Importing AVC-H264: |=====| (820710/100) ...
Write a bugreport: http://sourceforge.net/tracker/?group_id=84101
emmel
9th August 2006, 10:14
MP4Box show you the right info. HE-AAC = AAC LC (24000Hz) + SBR (24000Hz -48000Hz).
Right. Thank you.
emilius256
11th August 2006, 11:08
Hi,
i have a problem with yamb/mp4box when i mux vobsub subtitles, when i play in my hardware player (irradio dvx-107 nero digital compatible) the video starts playing well, i can change audio and subtitles but after a few seconds the video stop playing.
This doesen't happen when i use nero recode files or mp4box files without subtitles.
I've extracted video, audio and subtitles from nero recode created file with yamb/mp4box and remuxed again, i have the same problem.
I use Koepi XviD-1.1.0-30122005 for video,AAC-HE 64Kbps audio encoded with belight 0.22beta_20060626, subtitles extracted with vobsub, muxed with Yamb-1.6_20060614 and Kurtnoise13 MP4Box_20060731.zip.
These are the log and command used
Yamb
[07:42:29] : YAMB 1.6.0 started !
[07:42:29] : OS type detection...
[07:42:29] : Windows XP Professional (version 5.1, Build 2600 : Service Pack 1)
[07:42:29] : Checking MP4Box location...MP4Box found.
[07:42:29] : Checking MediaInfo.dll...0.7.2.1 found.
[07:44:20] : Muxing started...
[07:44:25] : Muxing finished completely.
Output
Saving to D:\DVD-RB\Out\DVDVolume_track3_1.mp4: 0.500 secs Interleaving
MP4Box Command line
"F:\Video\YAMB\MP4Box.exe" -add "D:\DVD-RB\Out\DVDVolume_track3.cmp" -add "D:\DVD-RB\Out\DVDVolume_track4.aac" -add "D:\DVD-RB\Out\DVDVolume_track5.aac" -add "D:\DVD-RB\Out\DVDVolume_track6.idx:lang=und" -add "D:\DVD-RB\Out\DVDVolume_track7.idx:lang=und" "D:\DVD-RB\Out\DVDVolume_track3_1.mp4"
Movie info of MP4box muxed file
* Movie Info *
Timescale 600 - Duration 00:03:00.956
Fragmented File no - 5 track(s)
File Brand isom - version 1
Created: GMT Fri Aug 11 05:44:20 2006
File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: Advanced Simple Profile @ Level 5 (0xf5)
Audio PL: AAC Profile @ Level 1 (0x28)
No streams included in root OD
Track # 1 Info - TrackID 1 - TimeScale 25000 - Duration 00:03:00.400
Media Info: Language "Undetermined" - Type "vide" - Sub Type "mp4v" - 4510 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x20
MPEG-4 Visual Size 560 x 432 - Advanced Simple Profile @ Level 5
Pixel Aspect Ratio 1:1 - Indicated track size 560 x 432
Self-synchronized
Track # 2 Info - TrackID 2 - TimeScale 24000 - Duration 00:03:00.309
Media Info: Language "Undetermined" - Type "soun" - Sub Type "mp4a" - 4226 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 24000
Synchronized on stream 1
Track # 3 Info - TrackID 3 - TimeScale 24000 - Duration 00:03:00.309
Media Info: Language "Undetermined" - Type "soun" - Sub Type "mp4a" - 4226 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 24000
Synchronized on stream 1
Track # 4 Info - TrackID 4 - TimeScale 90000 - Duration 00:03:00.956
Media Info: Language "Undetermined" - Type "subp" - Sub Type "mp4s" - 58 samples
MPEG-4 Config: NeroDigital Subpicture Stream - ObjectTypeIndication 0xe0
Synchronized on stream 1
Track # 5 Info - TrackID 5 - TimeScale 90000 - Duration 00:03:00.956
Media Info: Language "Undetermined" - Type "subp" - Sub Type "mp4s" - 58 samples
MPEG-4 Config: NeroDigital Subpicture Stream - ObjectTypeIndication 0xe0
Synchronized on stream 1
Movie info of Nero Digital file
* Movie Info *
Timescale 1000 - Duration 00:03:00.400
Fragmented File no - 7 track(s)
File Brand mp41 - version 0
Created: GMT Wed Jul 26 06:15:58 2006
File has root IOD
Scene PL 0x01 - Graphics PL 0xfe - OD PL 0xfe
Visual PL: Advanced Simple Profile @ Level 5 (0xf5)
Audio PL: Scalable Audio Profile @ Level 1 (0x05)
Chapters:
Chapter #1 - 00:00:00.000 - "Capitolo 1"
Track # 1 Info - TrackID 1 - TimeScale 1000 - Duration 00:00:00.001
Track is present in Root OD
Media Info: Language "English" - Type "odsm" - Sub Type "mp4s" - 1 samples
MPEG-4 Config: ObjectDescriptor Stream - ObjectTypeIndication 0x01
Self-synchronized
Track # 2 Info - TrackID 2 - TimeScale 1000 - Duration 00:00:00.001
Track is present in Root OD
Media Info: Language "English" - Type "sdsm" - Sub Type "mp4s" - 1 samples
MPEG-4 Config: SceneDescription Stream - ObjectTypeIndication 0x01
BIFS Scene description - Command stream
Synchronized on stream 1
Track # 3 Info - TrackID 3 - TimeScale 25000 - Duration 00:03:00.400
Media Info: Language "English" - Type "vide" - Sub Type "mp4v" - 4510 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x20
MPEG-4 Visual Size 560 x 432 - Advanced Simple Profile @ Level 5
Pixel Aspect Ratio 1:1 - Indicated track size 560 x 432
Synchronized on stream 1
Track # 4 Info - TrackID 4 - TimeScale 24000 - Duration 00:03:00.309
Media Info: Language "Italian" - Type "soun" - Sub Type "mp4a" - 4226 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 24000 - SBR SampleRate 48000
Synchronized on stream 1
Track # 5 Info - TrackID 5 - TimeScale 24000 - Duration 00:03:00.309
Media Info: Language "English" - Type "soun" - Sub Type "mp4a" - 4226 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 24000 - SBR SampleRate 48000
Synchronized on stream 1
Track # 6 Info - TrackID 6 - TimeScale 90000 - Duration 00:02:59.000
Media Info: Language "Italian" - Type "subp" - Sub Type "mp4s" - 59 samples
MPEG-4 Config: NeroDigital Subpicture Stream - ObjectTypeIndication 0xe0
Synchronized on stream 1
Track # 7 Info - TrackID 7 - TimeScale 90000 - Duration 00:02:59.000
Media Info: Language "English" - Type "subp" - Sub Type "mp4s" - 59 samples
MPEG-4 Config: NeroDigital Subpicture Stream - ObjectTypeIndication 0xe0
Synchronized on stream 1
Anybody know how to solve the problem ?
Thank you
lebanni
19th August 2006, 13:48
Hi,
Any news for the problem with the ' character ?
I also have the issue of test disappearing after #apos code in ttxt subtitles while playing. I have bob0r's ffdshow-2546-gcc4.0.3-sse-x264.nl.exe, latest haali splitter, played with MPC 6.4.9.0 rev911. I tried both MPC internal and ffdshow subtitles handling. I have also tried vlc 0.8.5.
I use ttxt file directly generated from SubRip 1.50 beta3a, saved in unicode and muxed in .mp4 with latest mp4box from MeGUI auto-update.
Le Banni.
Kurtnoise
19th August 2006, 16:43
Any news for the problem with the ' character ?
Nope...but someone has already made a bugreport.
lebanni
20th August 2006, 00:34
Nope...but someone has already made a bugreport.
Thanks. I hope this will be soon fixed.
chelala
23rd August 2006, 14:00
Hi I've read about mp4box can mux subs compatible with nero, I also read nero subs are vobsubs. Also read about taking srt and obtaining idx/sub
Can someone guide me to just (if possible using MeGUI) have a movie and srt (say avi, srt) and obtain a mp4 movie muxed with AVC, AAC, and nero compatible sub (s) ??
Playable with nero showtime and also with haali splitter/directvobsub/ffdshow. In the say way nero recode 2 produces and work.
thanks in advance
harold chelala
Kurtnoise
23rd August 2006, 15:24
Well...srt to idx/sub is not possible through MP4Box. You need to use some other tools to do that. Check out Subtitles Stickies & Section.
Plus, Haali splitter doesn't work properly with vobsub streams embedded in mp4. You need to use the MP4 Splitter from Gabest instead.
Kurtnoise
24th August 2006, 09:02
I hope this will be soon fixed.
I'm just checking the code about this issue and I found why...TTXT uses the ' as special character to delimit each lines of text. So, when you have a word with the ', the parsers read this as an end of line. That's why we can have the fisrt part in the first line and the second part in a new line and so on...
I've made a workaround (http://kurtnoise.free.fr/index.php?dir=mp4tools/&file=MP4Box-0.4.3_20060824.zip) to resolve this but there's still a problem : no carriage return anymore with multilines. :o i.e parsers will read multilines as a whole line.
I know this is a hack but it's better than nothing after all...:p
Sharktooth
24th August 2006, 15:46
cant the ' character be replaced by something different? like a ^ or # ?
Kurtnoise
24th August 2006, 16:16
Sure but this implies to update parsers/readers filters. and I don't have the skills to do that personally...
Anyway, ^ and # can't be used.
Sharktooth
24th August 2006, 17:15
whatever... mine was an example...
CruNcher
25th August 2006, 10:11
I have a big big problem with Captured Sat H.264 (Tandberg) Streams muxed with mp4box these don't playback with CyberLinks Decoder but with every other i fixed the startcode and everything but that doesn't fix it, other Decoders don't have those problems but the best of all the pure bitstream playbacks fine with Cyberlinks Decoder (3 or 4byte startcode) :(
Edit: useing mp4creator no such playback problems with both startcodes so i assume mp4box is once again b0rked or Haali and Gabest Mp4 Splitter are, wich i can't belive as other Decoders playback with them (what seem to be borked mp4box muxed files)
oh how i hate such interoperability problems :(
Drachir
25th August 2006, 11:32
Edit: useing mp4creator no such playback problems with both startcodes so i assume mp4box is once again b0rked or Haali and Gabest Mp4 Splitter are, wich i can't belive as other Decoders playback with them (what seem to be borked mp4box muxed files)
oh how i hate such interoperability problems :(
Maybe you should post at the GPAC forum and provide a sample(source) stream?
Playback of other player/decoder doesn't say much, the file can still be borked. But however I would post at the GPAC forum, if you want get an answer.
bond
25th August 2006, 16:41
once again: those ts captures dont start at the sps/pps. a valid avc stream needs to start with sps/pps
now we have two things to consider:
1) the demuxer
2) the muxer
ad 1) mplayer will not remove the garbage before the first sps/pps
mencoder will remove it, but changes some things in the stream, which i am not sure is a good idea
ad 2) mp4box will not mux streams not starting with sps/pps
mp4creator will mux streams not starting with sps/pps, but will simply place the sps/pps before the garbage, without removing the garbage, resulting in a kinda wierd stream
that said, if every decoder plays a file fine, except one decoder, i would first assume its this one decoder thats buggy and not the muxer tool
Kurtnoise
28th August 2006, 20:53
Thanks. I hope this will be soon fixed.
Should be fixed now in the last CVS.. :)
I've made a quick test and all seems to be fine. Thanks Jean for the fix...
nickolasemp
21st September 2006, 22:04
Back to the ' part I found out that when using ' thing, it doesn't display the subs after that. But if you have in another part of the same line the ' , it will continue from there the rest of the sub... Hope that helps a bit...
Besides that there is a way to trick that part using something else. In greek we have something that is sooo very close to ', and it is called "tonos". It is this ΄. When using this instead of an apostrophe everyhting works fine because the file sees it as a greek character. And you can't tell the difference. Still that doesn;t fix the bug, just merely putting back for now the problems that you might come along.
mroz
22nd September 2006, 00:18
In greek we have something that is sooo very close to ', and it is called "tonos". It is this ΄. When using this instead of an apostrophe everyhting works fine because the file sees it as a greek character. And you can't tell the difference. Still that doesn;t fix the bug, just merely putting back for now the problems that you might come along.
Thanks, that's helpful - saves me looking for a suitable character :)
As a result of broken audio, earlier today I had to remux an mp4 with video, audio, subs & chaptering for the first time. The source mp4 was created by Nero Recode from some vobs which it turns out contained a broken ac3 stream (the vobs played back fine, but Recode produced aac that stuttered beyond the stream error).
Initially I tried to extract the vobsubs from the mp4 to mp4 with the intention of reusing them directly, but mp4box crashed repeatedly.
In the end I resorted to Subrip on the source vobs resulting in my first experiment with ttxt.
I thought I was going to have to give up for the night, but now a simple
:%s/'/\΄/g
has saved the day
[Aside: getting the above line to render in vBulletin was a pain in the ass as it keeps translating the numeric character reference when the post is previewed or submitted, including the copy in the textarea - how do you tell the damned thing to leave text as is? I ended up with
: % s / & a p o s ; / \ & # 3 8 ; # 9 0 0 ; / g
less the excess spaces.]
Incidentally, DirectVobSub doesn't seem to like hex numeric character references - ΄ lead to the char rendering as an empty square.
As to the core of this bug, does anyone know if the problem is with the ttxt format or its interpretation by DirectVobSub?
Clearly the problem could be worked around by applying the processing which handles single quotes before replacing character entities with their corresponding character, but would this not be contrary to the correct handling of the xml?
If that is the case, unless the ttxt format provides another representation of single quotes or (bizarrely) forbade their inclusion, surely it must be a broken format?
I've just noticed the reference to this now being fixed in cvs... what was the nature of the fix & where can I find a binary for the fixed code? Cheers.
Kurtnoise
22nd September 2006, 17:49
I've just noticed the reference to this now being fixed in cvs... what was the nature of the fix
http://sourceforge.net/tracker/index.php?func=detail&aid=1527712&group_id=84101&atid=571738
where can I find a binary for the fixed code?
In my sig or from Celtic_Druid mirrors...
mroz
22nd September 2006, 19:04
http://sourceforge.net/tracker/index.php?func=detail&aid=1527712&group_id=84101&atid=571738
Ah, right, now I understand. I naively assumed the ttxt was stored directly in the mp4, which would mean there was little mp4box could do about it - I realise that's not the case now :o
As to jeanlf's partial solution, I'm still curious as to when the character entities are replaced in the xml during parsing - couldn't this be delayed so that the apostrophe entity could be used to distinguish such chars from literal apostophes used as line terminators?
In my sig or from Celtic_Druid mirrors...
http://kurtnoise.free.fr/index.php?dir=mp4tools/&file=MP4Box-0.4.3_20060828.zip
I assume. Cheers :)
Kurtnoise
23rd September 2006, 08:55
As to jeanlf's partial solution, I'm still curious as to when the character entities are replaced in the xml during parsing - couldn't this be delayed so that the apostrophe entity could be used to distinguish such chars from literal apostophes used as line terminators?
Ask directly to the GPAC developpers...
mroz
23rd September 2006, 23:38
Ask directly to the GPAC developpers...
Okay. I've added a comment to the above tracker, however I use Sourceforge very little - given the tracker item is closed, is anyone likely to be watching it still?
:thanks: again
Kurtnoise
15th November 2006, 16:42
Does anyone have tested the iTunes tagging system within MP4Box ? It seems that some tags are not setted correctly (like compilation, composer, disk, genre...). Am I right or I missed something ?
With the last MP4Box from cvs, all iTunes tags (album, artist, compilation, genre, name, track/tracknumber, disk, writer, composer, comment, created == date, cover (jpg or png file)) are setted correctly now...:)
/me go back to YAMB dev...
SeeMoreDigital
15th November 2006, 18:35
Thanks Kurt.... I've just downloaded it from your site :)
SeeMoreDigital
25th November 2006, 11:24
Hi Kurt,
Have there been any reported issues with MP4Box 0.4.3_20061115?
It does not seem to handle VOBsubs as reliably (ie: muxing and de-muxing and playing in MediaPlayer Classic) as your previous MP4Box 0.4.3 build, dated 2006-08-28....
Cheers
Drachir
25th November 2006, 12:16
Hi Kurt,
Have there been any reported issues with MP4Box 0.4.3_20061115?
It does not seem to handle VOBsubs as reliably (ie: muxing and de-muxing and playing in MediaPlayer Classic) as your previous MP4Box 0.4.3 build, dated 2006-08-28....
Yes, there is a report.
http://sourceforge.net/forum/forum.php?thread_id=1615412&forum_id=287547
Like mentioned in GPAC's changelog, there may be some trouble, introduced through the porting to symbian.
Lele-brz
18th April 2007, 09:40
Hi all,
I'd like to use mp4box to set the header at the beginning, is it possible, generally I have a aac audio track and h264 track then I mux them but no always the header is at the beginning so when opening the file I have to go at the end or the middle of the file preventing me from streaming that.
thanks for any tips on that
Bye
Drachir
18th April 2007, 10:06
By default the moov box/atom is placed at the beginning in mp4/3gp files created by MP4Box. Only if you use -flat you will find this box/atom at the end of the file.
Your goal seems to be progressive download not streaming. A short comparison can be found here:
http://www.streamingmedia.com/article.asp?id=8456&page=1&c=11
Lele-brz
19th April 2007, 10:15
yes, you're right, and I found that using mp4creator -optimize it's possible to move it at the beginning if you have non Mp4box file
Lele-brz
2nd May 2007, 13:44
Hi all,
I'm trying to use the -frag oprion of mp4box, my intention is to have a smaller header size.
But when I mulptiplex using this option with MP4Box the file is not readable, what can I do?
thanks
bye
Drachir
2nd May 2007, 17:48
Hi all,
I'm trying to use the -frag oprion of mp4box, my intention is to have a smaller header size.
But when I mulptiplex using this option with MP4Box the file is not readable, what can I do?
thanks
bye
Did you try to play the file with Osmo4? I don't know if fragmented MP4 files are supported by other players.
You will get a smaller moov box/atom, but you will get also a moof box/atom every 0.500 seconds(MP4Box default).
An other alternative could be a streaming server like the Darwin Streaming Server.
fragmented mp4 files indeed need special parsers (iirc also 3ivx' mp4 directshow splitter supports it) and i kinda doubt that they are having smaller headers/overhead as drachir mentioned
Drachir
6th May 2007, 12:10
fragmented mp4 files indeed need special parsers (iirc also 3ivx' mp4 directshow splitter supports it) and i kinda doubt that they are having smaller headers/overhead as drachir mentioned
I didn't said that there will be less overhead for the complete mp4 file.;) I only said that the moov box will be smaller, because there will be no tables entries in the Sample Table Box[stbl].
But you will also get a moof box every x time.
SeeMoreDigital
1st June 2007, 13:49
Please refer to Drachir's thread: -
http://forum.doom9.org/showthread.php?t=126453
What do you think about implementing a pasp atom in mp4box as described in Amendment 1 of ISO/IEC 14496-12 (http://standards.iso.org/ittf/PubliclyAvailableStandards/c043689_ISO_IEC_14
496-12_2005_Amd_1_2007(E).zip) (MP4 standard)?
Currently I cannot use any tools using mp4box (like staxrip or megui), for encoding.
I have added a Feature Request to the tracker, but no reply there:
http://sourceforge.net/tracker/index.php?func=detail&aid=1721563&group_id=84101&atid=571741
Something like that has been requested in two other feature requests and in the sf.net forum too. I don't think the solution is very complicated, but I have problems to identify the exactly affected sourcecode from GPAC. In my feature request I've described my problem. Perhaps you could give me some hints so that we can find a solution together?
best regards
mcka
Drachir
7th June 2007, 09:00
@mcka to rephrase the same question, again and again, probably won't help. You did a feature request, wait some time if Jenlf will do something in this regard.
Maybe there is something we do not see.
About the other feature request you mentioned there, was asked about implementing the use of the transformation matrix for anamorphic video. The transformation matrix isn't used in the MP4 File Format(ISO/IEC 14496-14).
This is a diffrent feature request, probably with the same goal.
The use of transformation matrix to deform a video elementary stream in MP4 files is not standard conformance.
pasp is a new feature specified in MP4 file format (ISO/IEC 14496-14) which makes the transformation matrix obsolete, because latest Quicktime Applications already understand pasp in MP4. So anamorphic encoded video streams could be implemented in a standard conformance way, which is understood by nearly all client applications.
As said I'd like to help implementing it, but I ran into some problems and I'm looking for help. It does not need to be implemented in official gpac source (though this would be the best). With some help I could create a patch, so anybody who would like to use StaxRip or MeGUI to create anamorphic video files which should work with most players could compile mp4box by oneself.
An alternative could be to create a small tool, which only adds the pasp atom to a completed mp4 file. This way I could avoid to understand all the GPAC internals, but I'd need to write a lot more code...
SeeMoreDigital
7th June 2007, 16:42
...An alternative could be to create a small tool, which only adds the pasp atom to a completed mp4 file. This way I could avoid to understand all the GPAC internals, but I'd need to write a lot more code...Adding or amending the "aspect ratio signalling" values of MPEG-4 part-2 or part-10 video streams is pretty simple to do (for .AVI and .MP4 contained files). And works in just about every software and hardware player I have :)
Personally, I don't see much point in being able to add or amend pasp values at the container level, when (as far as I know) only Quicktime player supports them anyway...
Personally, I don't see much point in being able to add or amend pasp values at the container level, when (as far as I know) only Quicktime player supports them anyway...
But it doesn't hurt either if it's done in a standards compliant way. On the other hand it would make a lot of people happy. It's not because I love to play mp4 files on my PC using Quicktime, but I'd like to play them with AppleTV, where I cannot simply change the player. I really don't like the limitations from Quicktime, but if I don't use anamorphic encoding everything works fine. So this is the only problem which could be solved by adding pasp to mp4box.
Since I'd like to encode my videos on Windows, I'd like to use StaxRip or MeGUI, at the moment anamorphic encoding only works with Quicktime pro or a SVN Version of Handbrake.
SeeMoreDigital
7th June 2007, 19:34
... but I'd like to play them with AppleTV, where I cannot simply change the player. I really don't like the limitations from Quicktime, but if I don't use anamorphic encoding everything works fine.So your saying AppleTV has the same limitations as QT7 player at not recognising aspect ratio signalling at the MPEG-4 video stream level.... Jeez that's lame!
On that basis your proposed suggestion would indeed be useful...
Cheers
mcka
28th June 2007, 14:11
So your saying AppleTV has the same limitations as QT7 player at not recognising aspect ratio signalling at the MPEG-4 video stream level.... Jeez that's lame!
Indeed! Before QT 7.1 you had to use a on standard compliant transformation matrix, that's what Handbrake people did. But since QT 7.1 it supports pasp which is standard compliant. So I looked at the specification and at gpac source-code to write a patch to add pasp to mp4box, I already added a proposal how to add a PixelAspectRatioBox structure in isomedia_dev.h. But I could not figure out how to add the PixelAspectRatioBox into the file creation process. If someone who knows more details about mp4box source code could give me some advice, I could come up with a patch which could be integrated in the source or which could make it possible for Apple TV users to patch mp4box and create an own mp4box binary to create anamorphic movies which work on their Apple TVs.
On that basis your proposed suggestion would indeed be useful...
I think so. It would help every Apple TV / iPhone / iPod user, who likes to use encoding guis based on mp4box. Thanks to Awkwardtv community (http://wiki.awkwardtv.org/wiki/Main_Page) we can turn Apple TV into a really nice device for watching our encoded movies on TV (up to 720p H.264 @ 5Mbit). The only missing thing is support for anamorphic encoding in encoding guis. Since Apple TV was made to watch your movies (which can be stored on a PC or NAS) on HD screens, it definitly matters if you use anamorphic encoding or resize the movies.
Kurtnoise
28th June 2007, 15:06
Jean Lefeuvre, the main developper of GPAC, is going to introduce the pasp support into the framework. So, wait & see...:)
or check out the code in the cvs tree.
mcka
28th June 2007, 17:56
That's great news!
Looking at the cvs commits I think I'd never got this working on my own ;-)
Thanks a lot! Looking forward to test this great new feature!
@Kurtnoise13: Is your mp4box-dev build a CVS checkout from 2007-Jun-25? If so, the patch does not seem to be complete yet (or needs a special command line switch...) - for those who'd like to test it (like me ;-)). But from now on I'll wait patiently...
Kurtnoise
28th June 2007, 19:53
Yes, not complete yet. That's why I said "wait & see"...
bond
28th June 2007, 23:08
is there some docu for this pasp?
SealTooGreat
29th June 2007, 03:14
is there some docu for this pasp?
c043689_ISO_IEC_14496-12_2005_Amd_1_2007(E).zip (http://standards.iso.org/ittf/PubliclyAvailableStandards/c043689_ISO_IEC_14496-12_2005_Amd_1_2007(E).zip) taken from here (http://sourceforge.net/tracker/index.php?func=detail&aid=1721563&group_id=84101&atid=571741).
JoeBG
29th June 2007, 17:47
How can I use pasp?
SeeMoreDigital
29th June 2007, 18:41
How can I use pasp?Currently, the only software player I know of that makes use of PASP is QuickTime7 player. No MPEG-4 direct-show decoder filter supports it...
Cheers
fight2win
29th June 2007, 19:30
pasp?
SeeMoreDigital
29th June 2007, 23:49
pasp?Essentially it relates to assigning the shape of a pixel at the "container" level, instead of (or including) at the "video steam" level.
mcka
30th June 2007, 07:11
Hi!
pasp?
For those who don't know what's meant with pasp, that's the most important paragraph from the ISO specification (which has already been posted by SealTooGreat):
Part 12: ISO base media file format
AMENDMENT 1: Support for timed metadata, non-square pixels and improved sample groups
[...]
8.16.1
[...] The width and height in the video sample entry document the pixel counts that the codec will deliver; this
enables the allocation of buffers. Since these are counts they do not take into account pixel aspect ratio.
The pixel aspect ratio and clean aperture of the video may be specified using the ‘pasp’ and ‘clap’ sample
entry boxes, respectively. These are both optional; if present, they over-ride the declarations (if any) in
structures specific to the video codec, which structures should be examined if these boxes are absent.
In the PixelAspectRatioBox, hSpacing and vSpacing have the same units, but those units are unspecified:
only the ratio matters. hSpacing and vSpacing may or may not be in reduced terms, and they may reduce
to 1/1. Both of them must be positive.
They are defined as the aspect ratio of a pixel, in arbitrary units. If a pixel appears H wide and V tall, then
hSpacing/vSpacing is equal to H/V. This means that a square on the display that is n pixels tall needs to be
n*vSpacing/hSpacing pixels wide to appear square.
[...]
This could be used for implementing anamorphic encoding. That's what QT7 does.
best regards
mcka
PASP is neat. We're currently adding support for the 'pasp' atom to our DirectShow filter suite.
Our muxer will set the PASP correctly based on the stream's PAR, so people should just continue to encode with in-stream PAR. You can always remux.
(The muxer can also be used to reset the PAR)
Kurtnoise
3rd July 2007, 17:32
Can somebody test the -psp switch from my last MP4Box's build please ?...It's just to know if it works as well because I haven't a PSP device around me.
Cmd line example :
MP4Box -add video.264:fps=30.000 -add audio.m4a -psp output.mp4
SeeMoreDigital
3rd July 2007, 17:41
Can somebody test the -psp switch from my last MP4Box's build please ?...It's just to know if it works as well because I haven't a PSP device around me.... Do you not have QT7?
Kurtnoise
3rd July 2007, 18:12
uhh ???
PASP atom != Sony PSP devices
;)
SeeMoreDigital
3rd July 2007, 18:19
uhh ???
PASP atom != Sony PSP devices
;)As far as I'm aware PASP works in QT7 player, as well as certain hardware devices!
Schrade
3rd July 2007, 18:52
Can somebody test the -psp switch from my last MP4Box's build please ?...It's just to know if it works as well because I haven't a PSP device around me.
Cmd line example :
MP4Box -add video.264:fps=30.000 -add audio.m4a -psp output.mp4
What exactly are you testing for the PSP?
I have to know so I know where to place the video on the PSP. There's something like 4 places you can put videos on the PSP and depending on what firmware you're running you have more or less capabilities in certain directories.
Is it the AtomChanger mangling that you added?
Also, which MP4Box of yours? The dev version or 0.4.4?
Kurtnoise
3rd July 2007, 19:36
It's just for testing the playback on these devices. In other words, does the PSP is able to play back flawlessly the file created by MP4Box or not...
and yes, it's the dev build from today.
Schrade
3rd July 2007, 19:50
OK well I tried it with and without the -psp option and both worked on the PSP from the /VIDEO folder using Firmware 3.40 OE-A.
So again, what exactly does the -psp switch do?
Kurtnoise
4th July 2007, 05:52
Adds UUID atom + MSNV as brand name + something else...
hubereevez
18th July 2007, 21:48
I did test adding idx.
PLayer is showing the entire list of subs that are is this idx, spite of empty index
# Polish
id: pl, index: 10
# Decomment next line to activate alternative name in DirectVobSub / Windows Media Player 6.x
# alt: Polish
How can I properly set the command line to just add the streams who got timestamp ?
yawoo
29th July 2007, 17:22
Adds UUID atom + MSNV as brand name + something else...
It do not work for psp old format (Atom changer) that places under /MP_ROOT/100MNV01/ or /MP_ROOT/100ANV01/. If the video place under /VIDEO, it do not need to patch with atom changer.
What source you refer to write your patch? If from the source of Atomchanger (written by delphi), it is required to add one more option "Build_edts=1" to make it workable. Here is the sample.
[Config]
Title=PSP MPEG-4 AVC
MQV=2
CODEC=2
Build_edts=1
[DeleteAtom]
Item0=ftyp
Item1=free
Item2=udta
Item3=iods
[InsertAtom]
Item0=ftypMSNV%01%00%07%86MSNVmp42isom
Kurtnoise
29th July 2007, 17:47
I'm not the author of this patch...You have to ask to GPAC developpers for that (but I'm sure they didn't use the AtomChanger canvas or code). I just updated the switches to enable or not the support for this.
Anyway, what is the goal to use still the old format ?
yawoo
29th July 2007, 18:12
I'm not the author of this patch...You have to ask to GPAC developpers for that (but I'm sure they didn't use the AtomChanger canvas or code). I just updated the switches to enable or not the support for this.
Anyway, what is the goal to use still the old format ?
After firmware 3.30, PSP accept mp4-avc video file under /VIDEO without atom patched. But for mp4 sp/asp, it still require atom patched and is placed under specified folder.
I'm the author of WinMEnc (mencoder GUI). I just find the mp4box updated with "-psp", and I'm interested to produce PSP directly by mp4box without Atomchanger.
Kurtnoise
30th July 2007, 18:04
Could you upload somewhere several samples which works *and* which doesn't work with the old FW ?
yawoo
1st August 2007, 15:55
Could you upload somewhere several samples which works *and* which doesn't work with the old FW ?
http://www.badongo.com/file/3916112
Three sample here, all are placed under /MP_ROOT/100ANV01/
MAQ90001.MP4 - 368x208 AVC by AtomChanger (worked)
MAQ90002.MP4 - 368x208 AVC by MP4box switch "-psp" (not worked)
MAQ90003.MP4 - 480x272 AVC by AtomChanger (worked)
If these all video file relocate to /VIDEO/, all will be playable.
Kurtnoise
1st August 2007, 18:00
10x..I'll look at this later.
Kurtnoise
1st August 2007, 20:56
Tell me if these samples (http://kurtnoise.free.fr/index.php?dir=samples/&file=MAQ9000X.zip) work for you...
yawoo
2nd August 2007, 15:13
Tell me if these samples (http://kurtnoise.free.fr/index.php?dir=samples/&file=MAQ9000X.zip) work for you...
Sorry, both two video are not playable under /MP_ROOT/100ANV01/.
If relocated to /VIDEO/, it works.
Schrade
2nd August 2007, 21:29
Sorry, both two video are not playable under /MP_ROOT/100ANV01/.
If relocated to /VIDEO/, it works.
You might want to state what PSP Firmware version you're running and whether or not it's the Official or a Custom Firmware.
Lele-brz
18th October 2007, 13:54
Hello,
I'm using Mp4Box for muxing h264 + aac.
What I noticed is that the interleaving is not as expected.
Using default values should be 0.500 seconds but when I check the access to the file when playing it's not like that, and I see big leaps when looking for audio packets.
I managed to fix it running mp4creator -optimize on the file generate by MP4Box, but maybe there's a way to accomplish that with some MP4Box parameters.
Has anyone already noticed that?
xxx666yyy777
12th February 2008, 15:11
I am using MP4Box version 0.4.5-DEV (build 16 - Feb 1 2008) to mux 264 and aac videos for playback on an iPod. I use the '-ipod' parameter. While the resulting file can be loaded (and played) into iTunes, it will not synchronize over to my iPod. However, after I run the vide through NicMP4Box, the file can be loaded into iTunes AND will synchronize over to my iPod. It appears that MP4Box does not add the "special" uuid Atom "6b6840f2-5f24-4fc5-ba39-a51bcf0323f3", which is aaprently required to sync. Are there any plans to enhance the "-ipod" functionality to include this Atom to enable synching?
Thx.
Selur
4th April 2008, 15:19
Does anyone know a howto for compiling gpac on 64bit system (ubuntu)?
x264 compiles fine, but gpac gives a bunch error's like:
/usr/bin/ld: i386 architecture of input file `utils/os_divers.o' is incompatible with i386:x86-64 output and gpac is needed for mp4 output. :)
Cu Selur
Ps.: compiling gpac on 32bit ubuntu and 32bit winxp worked fine too.
Kurtnoise
4th April 2008, 15:40
by using the last cvs co or the last official package ?
Kurtnoise
4th April 2008, 15:41
It appears that MP4Box does not add the "special" uuid Atom "6b6840f2-5f24-4fc5-ba39-a51bcf0323f3", which is aaprently required to sync.
reading the code, it does...
Selur
4th April 2008, 15:44
redownloaded source files and now it works,.. strange must have borked something here during the installation,..
sorry, got another problem now but I'll have to recheck my building environment, seems liek something is borked :/
Kurtnoise
4th April 2008, 15:46
ubuntu surely...:D
jmartinr
14th April 2008, 12:47
MP4Box-0.4.5-dev Jan 11 2008 has like Sep 14 2007 a bug in windows.
When using very long path\filenames it works but before exiting is stopped with an error (EventType. BEX. which probably indicates a buffer overflow).
Though very minor and windows-related I guess it should be easy to fix.
Isuldor
14th May 2008, 23:34
This Quicktime error occurs when you open an mp4 with mp4box muxed aac audio and h.264 video streams.
http://forum.doom9.org/attachment.php?attachmentid=7793&stc=1&d=1195906672
I found that changing the audio container (encoded by faac in an aac container) to the .mov container with Quicktime Pro before muxing with mp4box resolved the issue. The resulting muxed file plays in Quicktime without error.
Here is another post regarding the same issue:
this is a problem with either enc_aacplus or mp4box (I can't figure out which). You will have to either extract the audio seperately and then encode it to m4a using iTunes and then mux it up using mp4box or use Quicktime Pro to encode the intermediate [...] then mux it with mp4box (using Yamb is easier).
Can you guys think of another workaround for this compatibility issue that doesn't involve changing containers in software besides mp4box?
Here's a video <redacted> to try in quicktime if you'd like. It is a brief fraps recording compressed by faac, x264 and muxed with mp4box. You should see the error quoted above in QT.
thommyfilm
8th June 2008, 08:20
i really like mp4box. it's a great software!!! but for an actual project i'm working on there is a feature missing.
i'm looking for a system that can do the following:
a user clicks on a download link: he gets a standard compliant mpeg4 movie (ca. 1 gb) with personal information in a title during the first 3 seconds.
or in detail:
1. a user clicks on a movie download link on a website (mpeg4, php/mysql)
2. some information is pulled out of a database
3. a short movie (3 secs) containing this info as a title is generated (we currently do this with quartz under os x)
4. now this short movie will is joined with a very long movie (90 min 1 gb) that is already encoded with the same parameters
5. the download of the new movie (short and long conntected to one mpeg4 movie file) begins
and now it comes: this has to happen very fast (ca. 5 secs). we only found solutions where the new movie has to be written down to a new file, before the download starts. even with a fast machine this is very time consuming. it also needs a lot of storage.
is there a possebility to do this directly?
i imagine something like modifying mp4box to accept two files as an input then ultimately generating the mpeg4 header and passing it on to the webserver to start with the download. can the movie information be pulled out of the two existing files? it's like an ordinary "join two files operation" but instead of a "save as" command there is a "pass to webserver" comand. or you can see it like this: the file is not saved locally but directly to the requesting user over the web. for the user it has to be like just downloading one file.
would be really really cool to do this with mp4box. thankyou in advance for any help!
Atak_Snajpera
17th June 2008, 18:53
I need command for mp4box which extracts chapters. I haven't found nothing interesting under -h extract :(
Kurtnoise
17th June 2008, 21:23
this doesn't exist...
Atak_Snajpera
17th June 2008, 21:46
So how do you extract chapters in YAMB????
Kurtnoise
18th June 2008, 06:52
I use mediainfo...More exactly, I created a function to retrieve chapters lines using mainly this library.
Otherwise, if you're able to parse stdout from command prompt, then you can use MP4Box -info input.mp4 to display all infos from the file and grab only chapters part.
lordadmira
4th February 2009, 01:10
I'm trying to use mp4box to demux the audio from a Quicktime file but it isn't extracting the whole track. I have MP4Box-0.4.5-dev_20081101. I can't compile from GPAC because it doesn't like Cygwin.
mp4box -raw 2 file.mov gives me a pcm file that has a few seconds of sound looping over and over for the duration of the original file. The documentation doesn't have any examples.
Using mp4box -single 2 file.mov gets the whole audio track but puts it in another .mov file, which doesn't help me.
Ideas?
LA
SeeMoreDigital
4th February 2009, 10:19
I'm trying to use mp4box to demux a the audio from a Quicktime file but it isn't extracting the whole track. I have MP4Box-0.4.5-dev_20081101. I can't compile from GPAC because it doesn't like Cygwin.
mp4box -raw 2 file.mov gives me a pcm file that has a few seconds of sound looping over and over for the duration of the original file. The documentation doesn't have any examples.
Using mp4box -single 2 file.mov gets the whole audio track but puts it in another .mov file, which doesn't help me.
Ideas?Hi lordadmira,
This is not the correct thread for such questions....
lordadmira
4th February 2009, 10:26
This is not the correct thread for such questions....Uh, then where is? o_O The subject line is fairly generic regarding mp4box...
If u want to thread split this that's fine. Do u have any information that could help me?
LA
SeeMoreDigital
4th February 2009, 10:37
I suggest you ask your questions over in the YAMB thread: -
http://forum.doom9.org/showthread.php?t=115459
YAMB can be used to de-mux streams out of the .MOV container - I use it all the time....
lordadmira
4th February 2009, 10:49
YAMB is just a frontend for mp4box. I already posted a YAMB question there. When it comes to gui frontends I usually prefer to use the command line tool directly.
Is the mp4box command line I posted not correct for demuxing the audio stream?
LA
Kurtnoise
26th February 2009, 18:36
New dev build up (http://kurtnoise.free.fr/index.php?dir=mp4tools/&file=MP4Box-0.4.6-dev_20090226.zip)...the only new thing is the subtitles QuickTime/iPod "compliancy" support...
It's automatically on when you use -ipod switch. Otherwise, you can specify the handler directly in the command line :
MP4Box -add mysub_file.srt:hdlr=sbtl ...............................
TwoToad
15th March 2009, 05:23
Kurtnoise, thanks for the subtitle support! I've tried it out several times, but I think it still has issues. When I mux a srt file into the video, the text comes out at the top of the video in really huge letters so you can't read them. If I convert the srt into ttxt first, then it comes out almost perfect. The only issue with ttxt subs I have is that they appear on the top of a video file instead of the bottom, but I can manually edit the ttxt to put them there.
I have to edit:
<TextStreamHeader width="400" height="60" layer="0" translation_x="0" translation_y="0">
to
<TextStreamHeader width="787" height="60" layer="0" translation_x="0" translation_y="372">
in order for the subs to place at the bottom of a 787x432 animophically encoded video.
Is there a way for MP4Box to automatically place ttxt subs at the bottom of your video and also stretch the box to fit the width of the video?
Kurtnoise
15th March 2009, 10:25
could you post your exact command line please ?
TwoToad
15th March 2009, 14:43
Sure, I was using YAMB with the new MP4Box to do this, but here is the command line from the Yamb.log:
MP4Box.exe -ipod -add video.mp4#1:lang=en:fps=23.976:par=40:33 -add video.mp4#2:lang=en -add subs.ttxt:lang=en "new video.mp4"
Also, I don't suppose it is possible to add Quicktime/iTunes chapter support into MP4Box, like mp4creator does?
Edit: Actually, I can't get the correct Aspect Ratio when doing this. I'm not sure how to get mp4box to output a 16/9 animorphically stretched video in QT/iTunes...
Edit2: I just figured out the work flow to create a QT/iTunes compatible video with subs and chapters.
1. encode video to ipod 5.5 profile in megui, except replace mp4box with nicmp4box
2. add chapters with mp4creator
3. convert srt subtitles to ttxt with yamb/mp4box
4. edit ttxt subs header with notepad to stretch the sub box across the video (default is a sub box 400 px wide) and also place them at the bottom of the video.
5. mux subs into video using mp4box command line "mp4box -add subs.ttxt:hdlr=sbtl video.mp4" (do not use the -ipod switch or try to remux the the audio/video into a new file, otherwise mp4box will destroy the aspect ratio if you encoded animorphically)
6.and last, of course, you have to rename the file to video.m4v
Anyway, that is a very brief description of how I got subs and chapters to work. Amazingly it even syncs to my iPod Touch (haven't tried on my 5.5 iPod yet)! heh
Kurtnoise
17th March 2009, 07:38
1/ when you convert srt to ttxt, MP4Box uses its default settings...that's why you have to change width & height afterward.
2/ if you mux directly a video + a subtitle, MP4Box will use width & height from this video stream to fit subtitles settings.
3/ if you don't mux any video stream within subtitles, MP4Box will use its default settings.
eduo
18th July 2009, 02:02
1/ when you convert srt to ttxt, MP4Box uses its default settings...that's why you have to change width & height afterward.
2/ if you mux directly a video + a subtitle, MP4Box will use width & height from this video stream to fit subtitles settings.
3/ if you don't mux any video stream within subtitles, MP4Box will use its default settings.
I'm not sure why no replies were issues, but this isn't exactly true.
Let's do this:
Case 1:
mp4box -ipod -add Black\ Books\ 1x01\ -\ Cooking\ The\ Books.en.srt:lang=en:hdlr=sbtl -add Black\ Books\ 1x01\ -\ Cooking\ The\ Books.es.srt:lang=es:hdlr=sbtl Black\ Books\ 1x01\ -\ Cooking\ The\ Books.mp4
File converted with Handbrake's preset for iPhone. No further modification.
Subs appear in VLC.
No subs shown in Quicktime. No subs shown in iTunes.
Tried with both extension MP4 and M4V.
Then tried again without "-ipod" switch:
mp4box -add Black\ Books\ 1x01\ -\ Cooking\ The\ Books.en.srt:lang=en:hdlr=sbtl -add Black\ Books\ 1x01\ -\ Cooking\ The\ Books.es.srt:lang=es:hdlr=sbtl Black\ Books\ 1x01\ -\ Cooking\ The\ Books.mp4
VLC shows subs, defaults to the english ones, shows 4 subs tracks (2 language-coded, 2 unnamed). Subs are repeated (named, unnamed).
Quicktime shows subtitles all over the place, misformatted, mistreated and piled on. Only shows "English":
Picture 1
iTunes does the same thing. Both subtitles hugely shown, can't be disabled.
iPod Touch/iPhone show no subtitles nor options to enable them.
So no, clearly SRTs are not being imported properly for some reasons in these files. Could be due to the way the MP4 is encoded, or a problem with the tags. I wouldn't know, but to me this has never worked.
Now, trying with the files pre-tagged by AtomicParsley and loading the subs, converted to ttxt and edited for size:
AtomicParsley Black\ Books\ 1x01\ -\ Cooking\ The\ Books.mp4 --DeepScan iPod-uuid 1200 --overWrite --stik "TV Show" --title "Cooking the Books" --TVShowName "Black Books" --TVEpisode "1" --TVSeasonNum "1" --TVEpisodeNum "1x01" --comment "Converted and Tagged for iPod by Eduo with SolEol" --artist "Black Books" --albumArtist "Black Books" --album "Black Books, Season 1" --tracknum "101/101" --disk "1"
(this adds a "track/chapter" menu in itunes and quicktime)
mp4box -ttxt Black\ Books\ 1x01\ -\ Cooking\ The\ Books.en.srt
(edited the texstreamheader so it reflected the true width of the video, got ~20% of the height for the subs and the height - ~20% as translation_y
<TextStreamHeader width="480" height="54" layer="0" translation_x="0" translation_y="218">
)
mp4box -add Black\ Books\ 1x01\ -\ Cooking\ The\ Books.en.ttxt:lang=en:hdlr=sbtl -add Black\ Books\ 1x01\ -\ Cooking\ The\ Books.es.ttxt:lang=es:hdlr=sbtl Black\ Books\ 1x01\ -\ Cooking\ The\ Books.mp4
After this, subtitles again show piled up in Quicktime, and a single menu item. The identical file, with extension .mp4 doesn't even get that. So the moviefile extension is also playing a part here.
So, exactly for what definition of "working" is this, actually, working? :) I can't find a way to make subtitles appear properly in the iPhone, nor to be able to disable when I do manage to get them to show.
The other thing this leaves clear is that, at least in some cases, the SRT on-the-fly conversion misses the dimensions of the video enormously.
For the fun of it I tried loading subs one by one. When adding just one (in ttxt format, we've proven srt import is broken) then quicktime can see it, see the language and although it's enabled by default it can be disabled. When done like this they can be enabled/disabled in iTunes! This is the first time we even see the menu option!
Transferring to the iPod we have no luck. No subs. Nothing.
So, what gives? Subs are active in some places but others not? Sizes are calculated correctly for the SRTs for everyone but a few of us? Can the handbrake encoding affect anything? AtomicParsley tagging? More than one sub inserted at the same time?
Lastly, to rule it out, I tried adding the second subtitle in a separate command. I got Quicktime thinking there was only one sub, in spanish, and shows both piled on top of each other. iTunes doesn't recognize the subs any more. I didn't even tried with the iPhone, as this is a joke already as it is.
b66pak
18th July 2009, 18:08
try this tutorial...
http://forum.doom9.org/showthread.php?t=147494
_
eduo
18th July 2009, 23:25
try this tutorial...
http://forum.doom9.org/showthread.php?t=147494
_
I'm sorry, I believe I wasn't clear enough: I know how to do thus, but the purported support from mp4box as it currently stands us incomplete and pretty much useless.
I don't mean this in any way as a disrespect. It's just a fact. It's probably halfway but until it's complete it shouldn't be sold as such.
The proof is that for the tutorial you link it's irrelevant if the version of mp4box supports the "sbtl" handler, as it still need the only other program that was ever necessary: dumpster.
Of course, if what you want to automate all steps then you can't use mp4box. Not until the support is completed.
In the meantime one can use subler, which is fantastic, but works only on mac.
b66pak
25th July 2009, 21:08
bug:
":disable" imported track will be disabled
":group=G" adds the track as part of the G alternate group
don't work with subtitles!!!
_
bkman
31st July 2009, 10:33
Hi guys,
I think I've found a bug in the following version:
MP4Box - GPAC version 0.4.6-DEV (build 1 - May 19 2009)
I've set it to split an MP4 with the following switch: -splits 4194304
only to see mp4box start splitting the file into tiny few-kilobyte chunks. I think that this switch actually interprets the parameter as bytes instead of kilobytes as the documentation states?
Is this a bug, or is there an issue with my video source?
Kurtnoise
28th August 2009, 08:22
fyi :
27/08/09:
- Added overwrite of profile and level of AVC streams when adding tracks in mp4box(from ISOFF or .264). Use ":profile=X" and ":level=Z" when importing
- Fixed chapters and text tracks handling for iTunes. Using the -ipd option in MP4Box should fix all subtitles tracks.
When adding a track (including subtitle), it is now possible to override the track layout. For example:
MP4Box -add test.srt:layout=0x20x0x-1 test.mp4
will set the track box to be max width of the file tracks, 20 pixels height, translated by 0 pixels left and aligned to the bottom (max height - 20)
To add a chapter track, you simply have to add ":chap" in the -add command.
- Added modular compilation of most libgpac features. See configure or include/gpac/configuration
- Fixed streaming interoperability with Live555
- More fixed and speed improvement in VRML/BIFS scripting
- Added support for PBuffers on Win32/DirectX
SeeMoreDigital
28th August 2009, 11:27
Thanks Kurt :)
b66pak
28th August 2009, 18:49
thanks a lot...
_
b66pak
28th August 2009, 19:42
i cant get the new ":chap" option to work...
my line:
mp4box -add video.264:lang=eng:name=Video -add audio.aac:lang=eng:name=Audio_Eng -add sub_eng.srt:lang=eng:name=Sub_English:layout=0x72x0x-1 -add video.chap:chap -new video_final.m4v
i get:
Unknown input file type
Error importing video.chap:chap: End Of Stream / File
i try two chapters format:
CHAPTER01=00:00:00.000
CHAPTER01NAME=Intro
CHAPTER02=00:01:00.000
CHAPTER02NAME=Middle
CHAPTER03=00:02:00.000
CHAPTER03NAME=End
and:
00:00:00.000 Intro
00:01:00.000 Middle
00:02:00.000 End
the old "-chap" option works but it generate NERO style chapters!
_
yau
28th August 2009, 23:33
Are there any plans for ALS audio support?
.als files generated by the reference encoder don't seem to be recognized. While this is also the case for ALS in MP4, the (unknown) audio track is imported OK in that case.
Still, it would be nice to handle the format directly, considering that ALS seems to be the only lossless codec for MP4 and that a decoder for FFmpeg is in the works.
[Edit: Oh, forgot about ALAC. Nevertheless this would be nice to have.]
Kurtnoise
29th August 2009, 12:42
i cant get the new ":chap" option to work...
what did you try to do exactly ? muxing for iPod ? if yes, -ipod switch seems missing in your command line.
Anyway, :chap command must be use when you import a mp4 file containing chapters stream...at least, that's I understand.
Are there any plans for ALS audio support?
I think it's planned...no timeline however.
b66pak
29th August 2009, 16:42
what did you try to do exactly ? muxing for iPod ? if yes, -ipod switch seems missing in your command line.
yes. using .m4v is the same as -ipod switch. anyway i tried with -ipod switch and no success...
:chap command must be use when you import a mp4 file containing chapters stream...at least, that's I understand.
tried this too...no success...
any ideas?
_
L.E. This new ":chap" option is designed to add chapters in Apple style or Nero style (or both)? Its unclear from the help...
b66pak
1st September 2009, 19:53
for who wants to know "-chap" switch add chapters in NERO style ONLY...the new ":chap" switch add chapters in APPLE style ONLY...
the APPLE style chapters are assigned to the first audio/video track...chapters are working fine with QT, iTunes and VLC but haali media splitter (1.7.401.3) displays them as subtiles!!!
it would be nice to add the possibility of assigning the apple chapter track to the desired track (something like ":chap=trackID") and support for adding multiple apple chapter tracks (1 per audio track for multiple audio tracks)...
loot at this example (open it in QT change the audio track and notice the changing of chapter track!!!)
http://www.megaupload.com/?d=3Y3T1YQH
_
N.B. the new "MP4Box-0.4.6-dev_20090828" build will fail to open some type of .mp4 and .mov (including the above example)...this is not happening with the old "MP4Box-0.4.6-dev_20090519" build...
MP4Box-0.4.6-dev_20090828>mp4box -info sample.mov
[iso file] Read Box "text" failed (Invalid IsoMedia File)
[iso file] Read Box "stsd" failed (Invalid IsoMedia File)
[iso file] Read Box "stbl" failed (Invalid IsoMedia File)
[iso file] Read Box "minf" failed (Invalid IsoMedia File)
[iso file] Read Box "mdia" failed (Invalid IsoMedia File)
[iso file] Read Box "trak" failed (Invalid IsoMedia File)
[iso file] Read Box "moov" failed (Invalid IsoMedia File)
Error opening file sample.mov: Invalid IsoMedia File
Kurtnoise
1st September 2009, 20:32
this is not the right place to report issues or request new features...
b66pak
2nd September 2009, 18:41
i guess the request part is in the title...
GPAC MP4Box Information, Requests and Discussion
_
SeeMoreDigital
2nd September 2009, 18:58
i guess the request part is in the title...
GPAC MP4Box Information, Requests and Discussion
_I suppose it is... But discussing bug reports, muxing issues and failures is not ;)
I guess what's needed is for one of our moderators to split this thread and create a new one from (your) post #439.
Cheers
Kurtnoise
2nd September 2009, 20:35
i guess the request part is in the title...
GPAC MP4Box Information, Requests and Discussion
_
GPAC developers don't read this thread...better use the SF website. It's freely available and doesn't require registration.
b66pak
19th September 2009, 18:05
@Kurtnoise thanks for the MP4Box-0.4.6-dev_20090918 build.
what is new?
_
Kurtnoise
19th September 2009, 19:49
some bugfixes (but not yours)...Note that I'll upload a new one probably tomorrow.
Rodoga
30th September 2009, 23:50
Hi! Excellent app i must say.
I have one problem though, I´m trying to mux soft subs for my iphone. If I mux one sutitle it works fine but if I mux two subtitles it gets all messed up. I opened the file in dumpster from another guide to edit the mp4/m4v file and noticed this.
* Double-click the first 'trak' that corresponds to your first subtitle track.
* Double-click 'tkhd'.
* Change Flags to $000001. This is already edited with mp4box
* Press the Apply button at the bottom of the window (note: press Apply after you make each change described below or else your changes will not be saved).
* Change Alternate Group to $0002. This I had to edit myself then it worked just fine
* Double-click 'tkhd' to close.
* Double-click 'mdia'.
* Double-click 'hdlr'.
* Change Component subtype to $7362746c (this will change the type to 'sbtl'). This is already edited with mp4box
* Double-click 'hdlr' to close.
Hopefully you can fix this in another build I use the 090925 build.
When I changed alternate group to $0002 it worked in itunes but in my iphone none of the subs showed any clues?
SeeMoreDigital
1st October 2009, 09:11
Hi Rodoga,
Just so as you know... This thread is not for discussing bug reports or muxing issues with MP4box.
hxhxd
30th November 2009, 16:11
I have a problem about anamorphic muxing. My cmd is:
mp4box -add 1.264:par=32:27:fps=29.970:layout=854x480 -add 1.mp4 -psp -new 1-muxed.mp4
whenever I remove layout=854x480 or change par value from command line, the final resolution stays at 720x480.
* Movie Info *
Timescale 600 - Duration 00:19:14.986
Fragmented File no - 2 track(s)
File Brand MSNV - version 0
Created: GMT Mon Nov 30 14:59:10 2009
File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x15)
Audio PL: AAC Profile @ Level 2 (0x29)
No streams included in root OD
Track # 1 Info - TrackID 1 - TimeScale 30000 - Duration 00:19:14.920
Media Info: Language "Undetermined" - Type "vide:avc1" - 34613 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 720 x 480 - Profile Main @ Level 3
NAL Unit length bits: 32
Pixel Aspect Ratio 32:27 - Indicated track size 720 x 480
Self-synchronized
Track # 2 Info - TrackID 2 - TimeScale 48000 - Duration 00:19:14.986
Media Info: Language "Undetermined" - Type "soun:mp4a" - 54140 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Synchronized on stream 1
the raw video stream is encoded correctly, as mplayer can confirm this.
My question is, how to create a anamorphic file?
thanks very much!
may24
30th November 2009, 16:39
Hi everybody,
actually I'm having a strange problem mit MP4Box.
I have a full PAL AVC encoded video and two AAC streams of audio. All in RAW format. I'll try to mux them into one .mp4 file using MP4Box on a Linux machine. I tried the same on Win Vista and it fails as well.
All streams togeter make a total of aprox. 5 GB, and I observed that the application crashes when the total filesize is over 4 GB and there are more then just one audio track. I did multiplexing of a 20GB file without any problems, but with only one audio track.
As soon as you try to add another, it'll crash.
If you stay below the 4GB plimsoll line, it works perfectly
Any help would be highly appreciated
Here is the output:
MP4Box -fps 25 -par 1=1:1 -add "Tine Tauchen_Track1.h264" -add "Tine Tauchen_Track2.aac" -add "Tine Tauchen_Track3.aac" -new "Tine Tauchen.mp4"
AVC-H264 import - frame size 1024 x 576 at 25.000 FPS
Import results: 347421 samples - Slices: 3954 I 125983 P 217484 B - 1 SEI - 3905 IDR
AAC import - sample rate 48000 - MPEG-4 audio - 2 channels
AAC import - sample rate 48000 - MPEG-4 audio - 2 channels
Saving Tine Tauchen.mp4: 0.500 secs Interleaving
*** glibc detected *** MP4Box: double free or corruption (out): 0x0807a0c8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb71dc50b]
/lib/libc.so.6[0xb71ddde4]
/lib/libc.so.6(cfree+0x6d)[0xb71e0fdd]
/usr/local/lib/libgpac.so(ResetWriters+0xb9)[0xb75cb4fa]
/usr/local/lib/libgpac.so[0xb75ce5ab]
/usr/local/lib/libgpac.so(WriteToFile+0x15a)[0xb75ce825]
/usr/local/lib/libgpac.so(gf_isom_close+0x63)[0xb75c6c52]
MP4Box[0x805230c]
/lib/libc.so.6(__libc_start_main+0xfe)[0xb7185ace]
======= Memory map: ========
08048000-08070000 r-xp 00000000 08:03 2564113 /usr/local/bin/MP4Box
08070000-08071000 r--p 00027000 08:03 2564113 /usr/local/bin/MP4Box
08071000-08072000 rw-p 00028000 08:03 2564113 /usr/local/bin/MP4Box
08072000-080cb000 rw-p 00000000 00:00 0 [heap]
b112a000-b1f60000 rw-p 00000000 00:00 0
b1f60000-b2510000 rw-p 00000000 00:00 0
b326e000-b3546000 rw-p 00000000 00:00 0
b3911000-b3f0a000 rw-p 00000000 00:00 0
b4305000-b513b000 rw-p 00000000 00:00 0
b52d0000-b5c4a000 rw-p 00000000 00:00 0
b5c4a000-b6015000 rw-p 00000000 00:00 0
b6090000-b6368000 rw-p 00000000 00:00 0
b6600000-b6621000 rw-p 00000000 00:00 0
b6621000-b6700000 ---p 00000000 00:00 0
b6735000-b67c3000 rw-p 00000000 00:00 0
b67c3000-b69a9000 rw-p 00000000 00:00 0
b6a1c000-b6a55000 rw-p 00000000 00:00 0
b6a55000-b6a8e000 rw-p 00000000 00:00 0
b6acd000-b6aeb000 r-xp 00000000 08:03 2392386 /lib/libgcc_s.so.1
b6aeb000-b6aec000 r--p 0001d000 08:03 2392386 /lib/libgcc_s.so.1
b6aec000-b6aed000 rw-p 0001e000 08:03 2392386 /lib/libgcc_s.so.1
b6aed000-b6cd3000 rw-p 00000000 00:00 0
b6cdc000-b6d6a000 rw-p 00000000 00:00 0
b6d87000-b6d89000 rw-p 00000000 00:00 0
b6d89000-b6d8b000 r-xp 00000000 08:03 3617045 /usr/lib/libXau.so.6.0.0
b6d8b000-b6d8c000 r--p 00001000 08:03 3617045 /usr/lib/libXau.so.6.0.0
b6d8c000-b6d8d000 rw-p 00002000 08:03 3617045 /usr/lib/libXau.so.6.0.0
b6d8d000-b6d8e000 rw-p 00000000 00:00 0
b6d8e000-b6d96000 r-xp 00000000 08:03 2392116 /lib/librt-2.10.1.so
b6d96000-b6d97000 r--p 00007000 08:03 2392116 /lib/librt-2.10.1.so
b6d97000-b6d98000 rw-p 00008000 08:03 2392116 /lib/librt-2.10.1.so
b6d98000-b6db5000 r-xp 00000000 08:03 3617064 /usr/lib/libxcb.so.1.1.0
b6db5000-b6db6000 r--p 0001c000 08:03 3617064 /usr/lib/libxcb.so.1.1.0
b6db6000-b6db7000 rw-p 0001d000 08:03 3617064 /usr/lib/libxcb.so.1.1.0
b6db7000-b6dc1000 r-xp 00000000 08:03 3613748 /usr/lib/libdrm.so.2.4.0
b6dc1000-b6dc2000 r--p 00009000 08:03 3613748 /usr/lib/libdrm.so.2.4.0
b6dc2000-b6dc3000 rw-p 0000a000 08:03 3613748 /usr/lib/libdrm.so.2.4.0
b6dc3000-b6dc7000 r-xp 00000000 08:03 3613668 /usr/lib/libXfixes.so.3.1.0
b6dc7000-b6dc8000 r--p 00003000 08:03 3613668 /usr/lib/libXfixes.so.3.1.0
b6dc8000-b6dc9000 rw-p 00004000 08:03 3613668 /usr/lib/libXfixes.so.3.1.0
b6dc9000-b6dcb000 r-xp 00000000 08:03 3613813 /usr/lib/libXdamage.so.1.1.0
b6dcb000-b6dcc000 r--p 00001000 08:03 3613813 /usr/lib/libXdamage.so.1.1.0
b6dcc000-b6dcd000 rw-p 00002000 08:03 3613813 /usr/lib/libXdamage.so.1.1.0
b6dcd000-b6dce000 rw-p 00000000 00:00 0
b6dce000-b6dd2000 r-xp 00000000 08:03 3613842 /usr/lib/libXxf86vm.so.1.0.0
b6dd2000-b6dd3000 r--p 00003000 08:03 3613842 /usr/lib/libXxf86vm.so.1.0.0
b6dd3000-b6dd4000 rw-p 00004000 08:03 3613842 /usr/lib/libXxf86vm.so.1.0.0
b6dd4000-b6de4000 r-xp 00000000 08:03 3616974 /usr/lib/libXext.so.6.4.0
b6de4000-b6de5000 r--p 0000f000 08:03 3616974 /usr/lib/libXext.so.6.4.0
b6de5000-b6de6000 rw-p 00010000 08:03 3616974 /usr/lib/libXext.so.6.4.0
b6de6000-b6f16000 r-xp 00000000 08:03 3616961 /usr/lib/libX11.so.6.2.0
b6f16000-b6f17000 ---p 00130000 08:03 3616961 /usr/lib/libX11.so.6.2.0
b6f17000-b6f18000 r--p 00130000 08:03 3616961 /usr/lib/libX11.so.6.2.0
b6f18000-b6f1b000 rw-p 00131000 08:03 3616961 /usr/lib/libX11.so.6.2.0
b6f1b000-b6f1e000 r-xp 00000000 08:03 2392075 /lib/libdl-2.10.1.so
b6f1e000-b6f1f000 r--p 00002000 08:03 2392075 /lib/libdl-2.10.1.so
b6f1f000-b6f20000 rw-p 00003000 08:03 2392075 /lib/libdl-2.10.1.so
b6f20000-b6f36000 r-xp 00000000 08:03 2392421 /lib/libpthread-2.10.1.so
b6f36000-b6f37000 r--p 00015000 08:03 2392421 /lib/libpthread-2.10.1.so
b6f37000-b6f38000 rw-p 00016000 08:03 2392421 /lib/libpthread-2.10.1.so
b6f38000-b6f3b000 rw-p 00000000 00:00 0
b6f3b000-b6f63000 r-xp 00000000 08:03 3614322 /usr/lib/libpng12.so.0.39.0
b6f63000-b6f64000 r--p 00027000 08:03 3614322 /usr/lib/libpng12.so.0.39.0
b6f64000-b6f65000 rw-p 00028000 08:03 3614322 /usr/lib/libpng12.so.0.39.0
b6f65000-b6f87000 r-xp 00000000 08:03 3614259 /usr/lib/libjpeg.so.62.0.0
b6f87000-b6f88000 r--p 00021000 08:03 3614259 /usr/lib/libjpeg.so.62.0.0
b6f88000-b6f89000 rw-p 00022000 08:03 3614259 /usr/lib/libjpeg.so.62.0.0
b6f89000-b70e1000 r-xp 00000000 08:03 2679561 /usr/lib/libcrypto.so.0.9.8
b70e1000-b70e9000 r--p 00157000 08:03 2679561 /usr/lib/libcrypto.so.0.9.8
b70e9000-b70f7000 rw-p 0015f000 08:03 2679561 /usr/lib/libcrypto.so.0.9.8
b70f7000-b70fb000 rw-p 00000000 00:00 0
b70fb000-b7141000 r-xp 00000000 08:03 2679562 /usr/lib/libssl.so.0.9.8
b7141000-b7142000 ---p 00046000 08:03 2679562 /usr/lib/libssl.so.0.9.8
b7142000-b7143000 r--p 00046000 08:03 2679562 /usr/lib/libssl.so.0.9.8
b7143000-b7146000 rw-p 00047000 08:03 2679562 /usr/lib/libssl.so.0.9.8
b7146000-b716d000 r-xp 00000000 08:03 2392083 /lib/libm-2.10.1.so
b716d000-b716e000 r--p 00027000 08:03 2392083 /lib/libm-2.10.1.so
b716e000-b716f000 rw-p 00028000 08:03 2392083 /lib/libm-2.10.1.so
b716f000-b72c8000 r-xp 00000000 08:03 2392070 /lib/libc-2.10.1.so
b72c8000-b72c9000 ---p 00159000 08:03 2392070 /lib/libc-2.10.1.so
b72c9000-b72cb000 r--p 00159000 08:03 2392070 /lib/libc-2.10.1.so
b72cb000-b72cc000 rw-p 0015b000 08:03 2392070 /lib/libc-2.10.1.so
b72cc000-b72d0000 rw-p 00000000 00:00 0
b72d0000-b7303000 r-xp 00000000 08:03 3613808 /usr/lib/libglut.so.3.9.0
b7303000-b7305000 r--p 00033000 08:03 3613808 /usr/lib/libglut.so.3.9.0
b7305000-b7308000 rw-p 00035000 08:03 3613808 /usr/lib/libglut.so.3.9.0
b7308000-b7376000 r-xp 00000000 08:03 3613845 /usr/lib/libGL.so.1.2
b7376000-b7377000 ---p 0006e000 08:03 3613845 /usr/lib/libGL.so.1.2
b7377000-b737c000 r--p 0006e000 08:03 3613845 /usr/lib/libGL.so.1.2
b737c000-b737e000 rw-p 00073000 08:03 3613845 /usr/lib/libGL.so.1.2
b737e000-b737f000 rw-p 00000000 00:00 0
b737f000-b7391000 r-xp 00000000 08:03 2392274 /lib/libz.so.1.2.3
b7391000-b7392000 r--p 00011000 08:03 2392274 /lib/libz.so.1.2.3
b7392000-b7393000 rw-p 00012000 08:03 2392274 /lib/libz.so.1.2.3
b7393000-b7801000 r-xp 00000000 08:03 2539548 /usr/local/lib/libgpac-0.4.6-DEV.so
b7801000-b7802000 r--p 0046d000 08:03 2539548 /usr/local/lib/libgpac-0.4.6-DEV.so
b7802000-b7803000 rw-p 0046e000 08:03 2539548 /usr/local/lib/libgpac-0.4.6-DEV.so
b7803000-b7806000 rw-p 00000000 00:00 0
b7819000-b781d000 rw-p 00000000 00:00 0
b781d000-b783b000 r-xp 00000000 08:03 2392572 /lib/ld-2.10.1.so
b783b000-b783c000 r--p 0001d000 08:03 2392572 /lib/ld-2.10.1.so
b783c000-b783d000 rw-p 0001e000 08:03 2392572 /lib/ld-2.10.1.so
bfd6e000-bfda5000 rwxp 00000000 00:00 0 [stack]
bfda5000-bfda7000 rw-p 00000000 00:00 0
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Aborted
... BTW: I'm using the latest CVS build: libgpac-0.4.6-DEV
war59312
6th March 2010, 03:57
Development dead?
Latest version 0.4.6-DEV (build 1) tends to crash a lot.
GPAC is not dead! And we're glad to see it used by doom9 forumers :)
However we can't browse the whole web for your remarks! If you see any bug or want to contact us, post on our forums (https://sourceforge.net/projects/gpac/forums) or send a PM. Please don't forget to provide us with sample files to reproduce your behaviour. :thanks:
Despite our commitment to provide a decent level of support, if you fell your bug/request gets too much time to be processed, we remind you GPAC is an open-source project. This means you can also help us improving it by submitting patches. We will be happy to merge them :)
This thread is yours!!
The GPAC Team
SeeMoreDigital
28th July 2010, 13:49
Many thanks for the update RBO :)
RBO
3rd August 2010, 09:31
For all people compiling GPAC: we have recently moved from CVS to SVN.
See: https://sourceforge.net/news/?group_id=84101
Brazil2
6th September 2010, 20:12
There is a bug in all MP4Box versions I've tried since 2010-04-10 builds when using the built-in tagging system: the file is getting tagged the day before it has been created.
Example with a file I've created some minutes ago:
General
Complete name : F:\Test\TEST.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
...
Tagged date : UTC 2010-09-05 18:34:31
Writing application : Yamb 2.1.0.0 [http://yamb.unite-video.com]
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
...
Encoded date : UTC 2010-09-05 18:34:32
Tagged date : UTC 2010-09-05 18:34:32
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
...
Encoded date : UTC 2010-09-05 18:34:32
Tagged date : UTC 2010-09-05 18:34:32
2010-09-05 instead of 2010-09-06.
I'm using MP4Box through Yamb 2.1.0.0 beta2 but it was working fine with older versions.
VFR maniac
6th September 2010, 21:50
GPAC uses wrong epoch offset 2082758400 according to 14496-5 reference sofware.
Correct offset is 2082844800.
(This is the fault of ISO reference software.)
diff --git a/include/gpac/internal/isomedia_dev.h b/include/gpac/internal/isomedia_dev.h
index 2a564a9..229d6c2 100644
--- a/include/gpac/internal/isomedia_dev.h
+++ b/include/gpac/internal/isomedia_dev.h
@@ -1855,7 +1855,7 @@ GF_Err gf_isom_datamap_add_data(GF_DataMap *ptr, char *data, u32 dataSize);
/*time def for MP4/QT/MJ2K files*/
-#define GF_ISOM_MAC_TIME_OFFSET 2082758400/*208284480 */
+#define GF_ISOM_MAC_TIME_OFFSET 2082844800
#ifndef GPAC_DISABLE_ISOM_FRAGMENTS
#define GF_ISOM_FORMAT_FRAG_FLAGS(pad, sync, deg) ( ( (pad) << 17) | ( ( !(sync) ) << 16) | (deg) );
I don't know why GPAC guys had begun to use the wrong offset.
RBO
9th September 2010, 08:37
Thank you for reporting! The fix has been committed: https://sourceforge.net/apps/trac/gpac/changeset/2024/
Romain
Selur
15th January 2011, 15:39
Small question: is there a way to extract the nhml of a track without extracting the track at the same time?
RBO
17th January 2011, 09:59
No you can't. What are you trying to do?
Selur
18th January 2011, 05:52
Was thinking about some general mp4->XY conversions and since I need the nhml files to handle vfr, but when not remuxing, most tools handle mp4 files better than raw streams I was wondering if it is necessary to extract the videotrack to get the nhml file. :P
Dogway
5th February 2011, 05:34
I have an avi file with 2 audio streams and I want to demux the secondary audio so I do:
mp4box -aviraw audio2 "source"
is this correct?
EDIT: nevermind solved it with virtualdub
coroner2
7th February 2011, 16:13
Hi. I contacted the bug tracker:
https://sourceforge.net/tracker/?func=detail&aid=3164751&group_id=84101&atid=571738
I understand - this is not a bug, but if possible I would like to return to the issue.
I compiled a new version from SVN:
MP4Box.exe -version
MP4Box - GPAC version 0.4.6-DEV (internal rev. 8)
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
(c) ENST 2005-200X
GPAC Configuration: (static configuration file)
Features: GPAC_HAS_SPIDERMONKEY GPAC_HAS_JPEG GPAC_HAS_PNG
now there were additional message while concatenating:
MP4Box.exe -force-cat -cat 1.mp4 -cat 2.mp4 -cat 3.mp4 -new a.mp4
Appending file 1.mp4
No suitable destination track found - creating new one (type soun)
No suitable destination track found - creating new one (type vide)
Appending file 2.mp4
WARNING: Concatenating track ID 2 even though sample descriptions do not match
Appending file 3.mp4
Saving a.mp4: 0.500 secs Interleaving
MediaInfo shows 6 seconds of video/audio and only one video track, everything looks good, but unfortunately VLC is behaving exactly as well - video stops after two seconds of playback.
BR, Igor
phibertron
25th March 2011, 23:42
@Kurtnoise
or anyone who can help with this
In itunes and apple devices, when there are multiple tracks
It will display each track as <language> ( <Type Track #> )
For ex: English ( Audio Track 1 )
If the trak.udta.name atom or userDataName
is populated it will use that in place of <Type Track #>
For ex: English ( Dolby Surround )
Itunes and apple devices are not reading the trak.hdlr.name or handlerName
that I can use with name= for a track
How I currently deal with it is I use mp4box like this
mp4box
-add Video..h264:lang=en:name="AVC Video"
-add Audio_track2.aac:lang=en:group=1:name="Mono"
-add Audio_track3.aac:lang=en:group=1:disable:name="Stereo"
-add Audio_track4.aac:lang=en:group=1:disable:name="Dolby Surround"
-add Audio_track5.aac:lang=en:group=1:disable:name="Dolby Pro Logic"
-add Audio_track6.ac3:lang=en:group=1:disable:name="AC3"
output.mp4
I use the mp4track.exe to check to see what is there
mp4track "output.mp4" --list
track[1] id=2
type = audio
enabled = true
inMovie = false
inPreview = false
layer = 0
alternateGroup = 1
volume = 1.0000
width = 0.00000000
height = 0.00000000
language = English
handlerName = Mono
userDataName = <absent>
I then add the userDataName string with mp4track.exe
mp4track "output.mp4" --track-id 2 --udtaname "Mono"
I use the mp4track.exe to check to see that it is there
mp4track "output.mp4" --list
track[1] id=2
type = audio
enabled = true
inMovie = false
inPreview = false
layer = 0
alternateGroup = 1
volume = 1.0000
width = 0.00000000
height = 0.00000000
language = English
handlerName = Mono
userDataName = Mono
Is it possible to add the userDataName string to a track with mp4box ?
I was hoping I could do it with -add-arg
If it is not possible, sure I'll keep using mp4track
But would it be possible to add this feature to mp4box?
SeeMoreDigital
26th March 2011, 10:49
Hi phibertron,
Just so as you know... This thread is not for discussing bug reports or muxing issues with MP4box
phibertron
26th March 2011, 14:47
Ah I see, i'll make it post in the forum, thanks
Hi guys!
Simple question. I've noticed that I can easily set language and title names for tracks which I chose to mux into an .MP4 using GPAC MP4Box.
Eg.
mp4box -add video.mp4:name=MyVideo -add audio.aac:lang=eng:name=AnAudioTrack -new output.mp4
However, say I want to set a title name for the entire "mux", i.e. what is shown at the container section of MediaInfo output. Is there any way (that I don't know of) so I can set this with MP4Box? Right now I have a work-around by simply running the file through the good ol' ffmpeg.
Eg.
ffmpeg -i output.mp4 -vcodec copy -acodec copy -metadata title="My cool project with audio and video" output2.mp4
However, this "extra step" feels really silly and stupid if there is actually a way of doing it right through MP4Box. Therefor, I ask you guys, do you, by any chance, know of any?
Regards~
:thanks:
b66pak
7th April 2011, 20:12
you can't...use mp3tag (http://www.mp3tag.de/en/)...
SeeMoreDigital
7th April 2011, 20:16
Once again... This thread is not for discussing bug reports, muxing issues or Q&A's with MP4box!
Oleg Rode
25th May 2011, 14:18
GPAC developers don't read this thread...better use the SF website. It's freely available and doesn't require registration.
So MP4BOX is a part of GPAC project, isn't it? Is it okay to ask at SF about new features for MP4BOX?
Just wanted to ask about 3D video support in mp4box.
Kurtnoise
25th May 2011, 14:21
by 3D video, you mean MVC ?
Oleg Rode
10th June 2011, 12:27
by 3D video, you mean MVC ?
No, take a look at this file.
http://www.mediafire.com/file/odt7tw9j1xsh3yw/OA3DDEMO.MP4
The video goes at a 2 x 29.97 = 59.940 fps. CODEC is AVC, yes?
At least all Sony 3D HW players (PS3, BRAVIA TV) recognize 3D content in it.
Looks like this file has a special "3D content" flag in a header. I tried to demux streams and make a new mp4 file with a same framerate, but 3D HW player doesn't recognize 3D content in it.
jamesN
14th June 2011, 16:01
Hey everybody. . .
By default, mp4box adds date fields to every stream in the muxed file.
I read the documentation many times, but i can not find a switch to stop adding these dates, currently i have to run ffmpeg on the file to remove those dates, so could you please add a switch to stop adding those dates to the file?
Hello!
It is possible to manipulate (mux/demux) with MVC stream inside mp4 from JVC TD1 stereoscopic camcorder, or convert m2ts from Sony TD10 to mp4 by using mp4box ? Thanks!
SeeMoreDigital
21st July 2011, 08:59
Once again... This thread is not for discussing bug reports, muxing issues or Q&A's with MP4box!The same!
jfcarbel
6th December 2012, 09:46
for who wants to know "-chap" switch add chapters in NERO style ONLY...the new ":chap" switch add chapters in APPLE style ONLY...
the APPLE style chapters are assigned to the first audio/video track...chapters are working fine with QT, iTunes and VLC but haali media splitter (1.7.401.3) displays them as subtiles!!!
Have not purchased myself a tablet yet but looking to get one for holidays. Will these Apple chapters style work on the default video players on iPads and Android tablets?
Selur
8th January 2013, 23:53
normally I use:
MP4Box -par 1=1 -add "x264Video.264"#video:fps=23.976 -ipod -new "test.m4v"
to multiplex H.264 raw stream in an iTunes compatible way into a mp4 container. (works fine)
now I got a MPEG-4 ASP video (only) stream and if I use:
MP4Box -par 1=1 -add "xvidVideo.avi"#video:fps=23.976 -ipod -new "test.m4v"
the video is not shown in Quicktime&Co.
If I use:
ffmpeg -i xvidVideo.avi -c:v copy "test.mp4" the file plays fine.
-> is there a way to remux MPEG-4 ASP with mp4box in a way that iTunes&co support it?
Cu Selur
LoRd_MuldeR
9th January 2013, 00:40
Did you use "MP4Box.exe -diso filename.mp4" to check what makes the files different?
Selur
9th January 2013, 00:50
Nope,... problem is I'm unsure what to look for :/
muxed with ffmpeg: http://pastebin.com/58i9PKeu
muxed with mp4box: http://pastebin.com/dZmjTNXE
-> any help is appreciated :)
LoRd_MuldeR
9th January 2013, 01:00
Well, there's a quite obvious difference right at the beginning, in the "ftyp" atom:
<FileTypeBox MajorBrand="isom" MinorVersion="512">
<BoxInfo Size="28" Type="ftyp"/>
<BrandEntry AlternateBrand="isom"/>
<BrandEntry AlternateBrand="iso2"/>
<BrandEntry AlternateBrand="mp41"/>
</FileTypeBox><FileTypeBox MajorBrand="M4V " MinorVersion="1">
<BoxInfo Size="28" Type="ftyp"/>
<BrandEntry AlternateBrand="isom"/>
<BrandEntry AlternateBrand="M4V "/>
<BrandEntry AlternateBrand="mp42"/>
</FileTypeBox>
Selur
9th January 2013, 01:03
there are so many differences,... that it's hard to know what's important, so I thought some one here probably would have used mp4box to remux Xvid content for iTunes&Co and could say something more.
-> will look further into it tomorrow. (need some sleep now :))
LoRd_MuldeR
9th January 2013, 01:05
Well, I'd say a difference in the "ftyp" atom, which is an "file type" identifier for ISO Media (MP4) files, is a good candidate for compatibility issues.
Interestingly it seems to make a difference whether you let MP4Box save the output file with a .MP4 or .M4V extension :eek:
Also note the following related MP4Box options:
-brand ABCD[:v]
Sets the major brand of a file. Brands are used to identify the most common usage of a file (MPEG-4 presentation, 3GP movie, etc…). If ‘v’ is set, also sets the version of the brand (default version is 0).
-ab ABCD
adds an alternate brand to the file. Alternate Brands are used to identify the other possible usage of a file (whether the 3GP file compliant with MPEG-4, etc…)
Selur
9th January 2013, 09:26
Normally iTunes&Co files need the .m4v extension otherwise chapters&co are not identified properly,..
Selur
9th January 2013, 10:10
found the problem:
MP4Box -par 1=1 -add "xvidVideo.avi"#video:fps=23.976 -ipod -new "test.m4v"
needs to be:
MP4Box -par 1=1:1 -add "xvidVideo.avi"#video:fps=23.976 -ipod -new "test.m4v"
DOH,...
Mattlb0619
9th January 2013, 13:02
i cant believe ive not seen this thread before.... listening.
Matt Bodin
RBO
9th January 2013, 15:30
Hey guys,
I'm a GPAC maintainer. I came here by chance.
@Selur: the parsing now emits an error to avoid this non-obvious issue: http://sourceforge.net/apps/trac/gpac/changeset/4277/
Please post on our forums or tracker when you see errors.
Thanks,
Romain
Jamaika
5th August 2015, 17:18
How to enter commands globaltags in MP4Box 0.5.2-DEV-rev529?
I can't use itags because I can't use the Enter and write in UTF-8. Can it do somehow with DOS?
Why don't players and MediaInfo show the metadata attachment in MP4Box?
<MetaBox>
<BoxInfo Size="166" Type="meta"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<HandlerBox Type="mdir" Name="GPAC mdir Handler" reserved1="0" reserved2="data:application/octet-string,000000000000000000000000">
<BoxInfo Size="50" Type="hdlr"/>
<FullBoxInfo Version="0" Flags="0x0"/>
</HandlerBox>
<ItemLocationBox offset_size="0" length_size="4" base_offset_size="4">
<BoxInfo Size="30" Type="iloc"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<ItemLocationEntry item_ID="1" data_reference_index="0" base_offset="806422" />
<ItemExtentEntry extent_offset="0" extent_length="446082" />
</ItemLocationBox>
<ItemInfoBox>
<BoxInfo Size="74" Type="iinf"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<ItemInfoEntryBox item_ID="1" item_protection_index="0" item_name="photo1.jpg" content_type="image/jpeg" content_encoding="">
<BoxInfo Size="60" Type="infe"/>
<FullBoxInfo Version="0" Flags="0x0"/>
</ItemInfoEntryBox>
</ItemInfoBox>
<ItemInfoBox>
<BoxInfo Size="74" Type="iinf"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<ItemInfoEntryBox item_ID="2" item_protection_index="0" item_name="photo2.jpg" content_type="image/jpeg" content_encoding="">
<BoxInfo Size="60" Type="infe"/>
<FullBoxInfo Version="0" Flags="0x0"/>
</ItemInfoEntryBox>
</ItemInfoBox>
<ItemInfoBox>
<BoxInfo Size="74" Type="iinf"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<ItemInfoEntryBox item_ID="3" item_protection_index="0" item_name="photo3.jpg" content_type="image/jpeg" content_encoding="">
<BoxInfo Size="60" Type="infe"/>
<FullBoxInfo Version="0" Flags="0x0"/>
</ItemInfoEntryBox>
</ItemInfoBox>
</MetaBox>
SeeMoreDigital
5th August 2015, 21:47
Why don't players and MediaInfo show the metadata attachment in MP4Box?
Which 'meta-data' tags do you want to see?
Jamaika
6th August 2015, 06:50
Format : MPEG-4
Format profile : Base Media
Codec ID : iso4
File size : 556 MiB
Duration : 16mn 31s
Overall bit rate mode : Variable
Overall bit rate : 4 703 Kbps
Movie name : Sunflowers field
Performer : Jamaika
Attachements : photo1.jpg / photo2.jpg /photo3.jpg / font.otf
Encoded date : UTC 2015-08-06 05:15:12
Tagged date : UTC 2015-08-06 05:15:12
Cover : Yes
Comment : Bike trail
Photo of the Matroska container
http://i58.tinypic.com/10wislx.jpg
Kurtnoise
6th August 2015, 09:33
I can't use itags because I can't use the Enter and write in UTF-8. Can it do somehow with DOS?
did you try to switch to Lucida Console font first and then chcp 65001 in the command prompt ?
Jamaika
6th August 2015, 11:33
It doesn't help command @chcp 65001. The file *.bat is saved in ANSI.
Active code page: 65001
...
iTunes Info:
Comment: Krajobraz w?woz?w i zach?d s?o?ca
1 UDTA types: meta (1)
When we want to obtain information about the MP4 container with the proper save itunes texts UTF-8 then function DOS chcp 65001 as the most useful.
iTunes Info:
Comment: Krajobraz wąwozów i zachód słońca
1 UDTA types: meta (1)
My ideas on the use of covers.
The registers to display the cover icons JPEG, PNG in File Explorer Windows 10. The cover don't open by Windows Photo.
HKCR\.mp4,"Content Type",,"video/mp4"
HKCR\.mp4,"PerceivedType",,"video"
HKCR\.mp4\ShellEX\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1},,,{9DBD2C50-62AD-11D0-B806-00C04FD706EC}
HKCR\.mp4\ShellEX\{e357fccd-a995-4576-b01f-234630154e96},,,{9DBD2C50-62AD-11D0-B806-00C04FD706EC}
HKCR\MIME\Database\Content Type\video/mp4,"AutoplayContentTypeHandler",,"PicturesContentHandler"
HKCR\MIME\Database\Content Type\video/mp4,"CLSID",,"{cd3afa99-b84f-48f0-9393-7edc34128127}"
Reboot Windows
SeeMoreDigital
6th August 2015, 15:06
Have you considered creating 'named' chapters for each image?
Jamaika
6th August 2015, 16:07
Description chapters was before.
http://forum.doom9.org/showthread.php?t=94874&page=22
I need command for mp4box which extracts chapters. I haven't found nothing interesting under -h extract :(
This is a hidden function.
mp4box.exe -dump-chap-ogg input.mp4 -out chapter.txt
RBO
19th August 2015, 13:22
I have added the missing doc to the option: https://github.com/gpac/gpac/commit/678014c5b35925b0304b584e5090725a99cf3ecd
Thanks, Romain
Jamaika
20th August 2015, 11:29
I miss still a function to copy metadata. It has already been repeatedly reported and probably not achievable in MP4Box.
MP4Box.exe -new -info -add "(video+audio).mp4:????(copy itunes)" -add "subtitle.ttxt/srt" "output.mp4"
I wonder also why any cover (webp, bpg, jpeg2000, others) and the name cover we can't use attachment(add-item) in the function itunes. For me it is an unnecessary duplication of functions "cover" and "set-meta/add-item". :(
Edit:
How to transfer metadata information to the newly created MP4 file? :idea: As we know, no such function "copy UDTA types: meta (1) chpl (1)" and could be a problem because the metadata information using -add functions are cleared.
Use a trick if you want to enter additional subtitles, chapter or cover.
mp4box.exe -add "subtitle.srt" -add "chapter.txt" -itags cover = "*. jpg,*. png" output{metadata}.mp4
Note:!: output{metadata}.mp4 file metadata is overwritten by newly added function. If muxer something wrong to do it the original file isn't recoverable.
Kurtnoise
20th August 2015, 13:11
- Use m4v or m4a as output extension in order to activate Apple devices support.
- only jpg and png are supported as well for Apple devices. See MP4Box -tag-list switch...
Jamaika
20th August 2015, 14:25
- Use m4v or m4a as output extension in order to activate Apple devices support.
Theoretically, yes. Unfortunately, everyone knows that Apple fought with MP4 and Apple implemented container MOV for all video codecs. So the struggle the worlds with Microsoft continues today.
MP4Box doesn't support MOV.
- only jpg and png are supported as well for Apple devices. See MP4Box -tag-list switch...
It is known for years with documentation help. Only apparently we have a world of new codecs photo HEVC/VPX. Hence my whining.
filler56789
20th August 2015, 14:50
http://sourceforge.net/p/gpac/discussion/287546/thread/43881fa9/
Very interesting, there was no "lack of time" for adding HEVC support to MP4Box...
Jamaika
20th August 2015, 15:01
Very old discussion ...
MP4Box - GPAC version 0.5.2-DEV-rev560-g611ead4-master
Track # 1 Info - TrackID 1 - TimeScale 30000 - Media Duration 00:16:31.090
Media Info: Language "und (und)" - Type "vide:hvc1" - 29703 samples
Visual Track layout: x=0 y=0 width=1920 height=1080
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x23
HEVC Video - Visual Size 1920 x 1080
HEVC Info: Profile Unknown @ Level 4 - Chroma Format 2
NAL Unit length bits: 32 - general profile compatibility 0x08000000
Parameter Sets: 1 VPS 1 SPS 1 PPS
SPS resolution 1920x1080
Bit Depth luma 10 - Chroma 10 - 1 temporal layers
Self-synchronized
RFC6381 Codec Parameters: hvc1.4.10.L120.9d
Average GOP length: 11 samples <-- all frames for OpenGOP, for no-OpenGOP info "Average GOP" is impractical, ex. GOP=(30+30+1)/3=~20
No information about the framerate and OpenGOP detection!!! Information is only by muxing MP4
HEVC import - frame size 1920 x 1080 at 29.970 FPS
HEVC Import results: 29703 samples - Slices: XX I XXX P X B - XX SEI - 1 IDR
OpenGOP detected - adjusting file brand
MediaInfo 7.76
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : @L4@Main
Codec ID : hvc1
Duration : 16mn 31s
Width : 1 920 pixels
Height : 1 080 pixels
Bit depth : 10 bits
I don't have problem with playing HEVC MP4. It must be the only LAV splitter. Decoder MPC-BE doesn't rewind (opengop). Unless you about something I don't know.
Edit:
Theoretically corrected, it is busier, but it doesn't work all codec configuration 8/10bit X264/X265. Well, at least there are some response. It works only me=dia!!!
https://github.com/gpac/gpac/commit/adfd6c271301b172830b2a72ddf1fae004385ed4
RBO
21st August 2015, 08:45
@all for Apple support, we could edit a wiki page on github to centralize the information. What do you think?
@Jamaika for HEVC, the notion of closed and open-GOP has been replaced by 6 types of "SAP". ISOBMF/MP4 only reports about "sync" samples that are SAP types 1 or 2 so the import info is lost. Also note that since H264/AVC there is no such thing as I/P/B-frames but only slices with slice-types. Also see https://github.com/gpac/gpac/issues/144
To list the 'sync samples' number from a file (there is a blog post being prepared on this):
MP4Box -std -diso source.mp4 | grep SyncSampleEntry > sync_list.txt
Jamaika
21st August 2015, 09:05
@all for Apple support, we could edit a wiki page on github to centralize the information. What do you think?
A little littering the forum if a problem then we can go to the PW. I always think that it is no longer a general discussion.
@all for Apple suport:
http://download.wavetlan.com/SVV/Media/HTTP/H264/Other_Media/H264_test8_voiceclip_mov_480x320.mov
mp4box -info H264_test8_voiceclip_mov_480x320.mov
[iso file] Duplicate FTYP detected!
Error opening file H264_test8_voiceclip_mov_480x320.mov: Invalid IsoMedia File
One more thing I didn't like it.
mp4box -new -info -brand XAVC -add TEST_MOV.mov output.mp4
http://www.e-ratusz.pl/download/TEST_MOV.mov
The final result, audio vertical off the scale:
http://i61.tinypic.com/16iumn7.jpg
Let's say that this is an exception.
Rhetorical question. I asked once the question. Can I convert losslessly containers MOV to MP4 XAVCS?
I received a reply. NO. The audio and video track has other standards. It doesn't makes sense to do it.
for HEVC, the notion of closed and open-GOP has been replaced by 6 types of "SAP". ISOBMF/MP4 only reports about "sync" samples that are SAP types 1 or 2 so the import info is lost.
I know nothing about it. I know the end result for opengop (decoder MPC-BE 1.4.5.677).
http://i57.tinypic.com/2cx6op1.jpg
Recommended: If there is such an effect for LAVsplitter should be use a demuxer to h265/aac/srt and resubmit convert by latest MP4Box. Correctly write in framerate. :!:
amayra
21st August 2015, 11:33
thanks for your work but there something i went to ask you about it
does MP4Box support ASS (Aegisub Advanced Substation Alpha File)
SeeMoreDigital
21st August 2015, 11:47
thanks for your work but there something i went to ask you about it
does MP4Box support ASS (Aegisub Advanced Substation Alpha File)MP4box might be able to support them upon input, however they would have to be converted to TTXT subtitles. As TTXT subtitles are supported by the .mp4 container.
The .mp4 container supports specified types of video, audio and subtitle streams. It's not an open container like Matroska (.mkv) ;)
Jamaika
21st August 2015, 20:43
does MP4Box support ASS (Aegisub Advanced Substation Alpha File)
MP4Box doesn't support ASS. I don't know also answer, what can functions use TTXT(MOV_TEXT) with ASS?
http://docs.aegisub.org/3.2/ASS_Tags/
Which is the record TTXT(MOV_TEXT) proper?
<TextSample sampleTime="00:00:00.000" xml:space="preserve"><font color="#ffff80"><font size="14"><font face="CoreCircusRough2DLine1">Trasa przełajowa przez las</font></font></font></TextSample>
<FontTableEntry fontName="CoreCircusRough2DLine1" fontID="1"/>
<TextSample sampleTime="00:00:00.000" xml:space="preserve">Trasa przełajowa przez las<Style fromChar="0" toChar="26" styles="Normal" fontID="1" fontSize="14" color="ff ff 80 ff"/></TextSample>
The second record isn't read <Style> by a players MPC-BE/HC,VLC. :!: I don't know a GUI editor with preview for TTXT (mov_text). :(
PS My remarks may be useful to someone, but the topic didn't be visited in two years. At the updates will give you a more of years. ;) :search:
Kurtnoise
24th August 2015, 08:16
Subtitle Edit is able to open ttxt files...
btw, it's not clear what you said. :rolleyes:
Jamaika
24th August 2015, 10:29
It able to open Subtitle Edit 3.4.8, Aegisub 3.2.2, but it don't view color, font, sizefont for single line text. <Style fromChar="0" toChar="26" styles="Normal" fontID="1" fontSize="14" color="ff ff 80 ff"/>
FFmpeg / MP4Box don't convert correctly SRT/ASS to TTXT and vice versa. Color, font, size are deleted or disagree and have to manually correct.
For me it's a little poorly. No comfort in working with the editors TTXT and video players.
Kurtnoise
24th August 2015, 10:36
Pull a feature request in the Subtitle Edit thread (http://forum.doom9.org/showthread.php?t=162721) then...why are you complaining here ? This is not related to MP4Box.
Jamaika
24th August 2015, 10:41
OK. I don't know. Does the program subtitle has a flaw or is bad record TTXT MP4Box? The end of my writing.
SeeMoreDigital
24th August 2015, 15:00
I agree with Kurtnoise. If you are having problems 'converting' ASS subtitles to TTXT subtitles it's not an MP4box issue!
OK. I don't know. Does the program subtitle has a flaw or is bad record TTXT MP4Box? The end of my writing.Just to let you know... .ttxt subtitle support in software media players can be pretty basic. And it's almost non-existent in hardware media players.
Out of interest which media player are you using to view your '.ttxt in .mp4' files?
Jamaika
24th August 2015, 16:04
Out of interest which media player are you using to view your '.ttxt in .mp4' files?
This switch off function TTXT and itunes in MP4box. What is the use?
The topic is also wrong a title "Feature Requests". I don't see any development for the MP4 container, in addition to HEVC.
avih
24th August 2015, 20:30
@Jamaika, let's keep this thread for feature requests and other development related discussions.
For other subjects, please open new threads.
Thank you.
vivan
16th September 2015, 20:13
Is the number of chapters in mp4 limited to 256? I tried to find information about it, but no luck so far.
If I add 255 chapters it works as expected, but with 256 I'm getting no chapters and with 304 I'm getting 48 (304 - 256 = 48) in MPC-HC and ffmpeg. But the strange thing is that MediaInfo reports all (256 and 304 respectively) of them. Same thing happens with L-SMASH...
Jamaika
17th September 2015, 11:27
Is the number of chapters in mp4 limited to 256?
The limit is 508/2 for ffmpeg and 88/2 for mp4box.
When 300/2 chapters there isn't limit for mp4box.
If you are more limit 508/2 remains Matroska.
You can check yourself:
@echo off
set id1=0
set id2=0
set id3=0
set w1=0
:label2
set /a id1=%id1%+%w1%
if [%id1%]==[10] set /a id2=%id2%+1
if [%id1%]==[10] set id1=0
if [%id2%]==[10] set /a id3=%id3%+1
if [%id2%]==[10] set id2=0
echo.CHAPTER%id3%%id2%%id1%=00:00:%id3%%id2%.%id1%00>>chapters.txt
echo.CHAPTER%id3%%id2%%id1%NAME=Chapter %id3%%id2%%id1%>>chapters.txt
if [%id3%]==[6] goto label1
set w1=2
echo %id1% %id2% %id3%
goto label2
:label1
pause
I use player MPC-HC v1.7.9 build 145
ffmpeg.exe -i x264_yuv420p08le.h264 -i audio.aac -i ffmetadata.txt -f mp4 -c copy -bsf:a aac_adtstoasc -movflags faststart ffmpeg.mp4
mp4box.exe -info -new -add x264_yuv420p08le.h264:fps=59.940 -add audio.aac -add chapters.txt:chap mp4box.mp4
vivan
17th September 2015, 13:09
The limit is 508 for ffmpeg and 88 for mp4box.500 % 256 = 88.
Okay, so with ffmpeg the result is a bit different. With mp4box MPC-HC gets mod 256 chapters, and MediaInfo reports a single Menu that list them all.
With ffmpeg MPC-HC getting fully functional chapters but MediaInfo reports 2 Menus:
Menu #1 like it was a subtitle track (it has ID, codec ID language and doesn't list chapters).
Menu #2 that lists first 255 chapters.
I think I figured that out: there're 2 chapter formats: mp4box uses Nero which seems to be limited to 255. ffmpeg uses both chapter formats (Apple and Nero), limiting Nero chapters o 255.
Selur
5th April 2016, 20:13
MP4box seems to have problems with hevc content and sometimes breaks the first gop.
MP4Box -par 1=32:27 -add "H:\Output\original hevc_20_07_53_4610_02.265"#video:fps=23.976 -brand hvc1 -mpeg4 -tmp "H:\Temp" -new "H:\Output\mp4box_remux.mp4"
-> first gop broken
ffmpeg -r 25 -i "H:\Output\original hevc_20_07_53_4610_02.265" -c copy h:\Output\ffmpeg_remux.mp4
-> fine
mkvmerge --ui-language en -o "H:\Output\mkvmerge_remux.mkv" --disable-track-statistics-tags -d 0 --default-track 0:yes --default-duration 0:24000/1001fps --aspect-ratio-factor 0:1.185 --compression -1:none --forced-track 0:yes --no-audio --no-subtitles "H:\Output\original hevc_20_07_53_4610_02.265"
-> fine
uploaded source .265 and the remuxed files to http://www.embedupload.com/?d=8YVWCXFQHQ
Jamaika
6th April 2016, 06:03
MP4box seems to have problems with hevc content and sometimes breaks the first gop.
Copy the mp4 container again and you should be fine. Note the loss of iTunes.
MP4Box -add "H:\Output\mp4box_remux.mp4:mpeg4:noedit:trailing:xps_inband" -tmp "H:\Temp" -new -info "H:\Output\mp4box_remux_1.mp4"
GPAC/MP4Box maintainer here: don't hesitate to post on our github if you encounter any issue or have questions: https://github.com/gpac/gpac/issues/
We'd be also happy to enrich our wiki if you want to share your knowledge. Github's wiki is git too, so we can merge any input quite easily. We can also forward on our blog if it can be useful to the many.
Thanks
Selur
9th April 2016, 16:53
@Jamaika: I tried you call, but the output still doesn't show the first gop properly here. (r2d2 is still not really visible)
@RBO: Will post new issues there in the future. Should I post the current problem there also?
RBO
10th April 2016, 07:35
@RBO: Will post new issues there in the future. Should I post the current problem there also?
Please do if you feel we can help. We are a bit overwhelmed but always happy to help :)
And of course thank you for your feedbacks. They are essential to improve our tools.
Selur
10th April 2016, 13:33
posted the issue to the bugtracker.
filler56789
27th May 2016, 10:57
Feature request: finally add AC3 and ALAC to the list of supported formats. After all these years, MP4Box still doesn't mention them:
=> mp4box -h format
Supported raw formats and file extensions:
NHNT .media .nhnt .info
NHML .nhml (opt: .media .info)
MPEG-1-2 Video .m1v .m2v
MPEG-4 Video .cmp .m4v
H263 Video .263 .h263
AVC/H264 Video .h264 .h26L .264 .26L .x264 .svc
HEVC Video .hevc .h265 .265 .hvc .shvc
JPEG Images .jpg .jpeg
PNG Images .png
MPEG 1-2 Audio .mp3, .m1a, .m2a
ADTS-AAC Audio .aac
AMR(WB) Audio .amr .awb
EVRC Audio .evc
SMV Audio .smv
:mad: :mad: :mad:
Updated: https://github.com/gpac/gpac/commit/d55ac84373230a0ac03fafdb9e2d5b4792d771f6
Thanks for reporting. Please use github whenever possible.
Jamaika
30th May 2016, 06:06
Is something blocked for Windows? I can't download the latest version rev535.;)
I can see 0.6.2-DEV build 551 at https://gpac.io/downloads/gpac-nightly-builds/
Jamaika
31st May 2016, 08:01
Thanks, have you deleted Nero chapters? Mp4box didn't import.
Supported chapter formats:
Nero chapters .txt .chap
Error importing *.txt *.chap: Feature Not Supported
It may be a regression. Someone reported success recently following these steps: http://froebe.net/blog/2009/12/24/how-to-create-an-itunesipod-compatible-audiobook-mpeg4-m4b-on-linux-using-mp4box-and-mp4v2-v1-9-1-it-can-be-done/.
Could you post an issue on github so that other contributors can have a look too?
Jamaika
1st June 2016, 08:00
It isn't a regresion. This is a simple operation.
mp4box.exe "h264/h265.mp4" -add chapter.txt
CHAPTER01=00:00:00.000
CHAPTER01NAME=Jamaika
Your example works here. Please submit an issue on the GPAC github if you wish to get some community help.
Jamaika
2nd June 2016, 11:08
I have one more question.
I am referring to merge video tracks, audio and subtitles. (function -catx)
mp4box.exe -mpeg4 -add video1.h265:xps_inband:noedit:trailing:name= -add audio1.aac:name= -add subtitle_all.ttxt:disable:name="No color, font, display flags in the LAVFilters" -catx "video2.h265 +audio2.aac" -catx "videoX.h265 +audioX.aac" output.mp4
How to make time was counted relative to the video track and not on the longest track? Is there such a function?
http://i64.tinypic.com/2h4mjih.jpg
Interestingly, chapters no problem time.
Do all {:X} functions track -add need to save to the -catx?
Does function {:xps_inband} always changing codec with hvc1 to hev1?
Maybe a silly question. Is MP4Box supports crafted files h264/h265 Matroska?
Could you please submit your question on our github? I am unfortunately not the right person to provide you with the best answer.
Jamaika
11th June 2016, 08:26
How to make time was counted relative to the video track and not on the longest track? Is there such a function?
Himself answer the question. For suggestions don't expect. To whom it may be useful, maybe not.
This is a function that merge the tracks in the order is 'unalign-cat'. It is provided for only to a single subtitle for the whole movie. Can not then merge the subtitles! <-- fixed
-unalign-cat does not attempt to align timestamps of samples inbetween tracks
This function also automatically doesn't compensate for the time length of the audio to video. As it is unevenly, errors add up and lip movements don't agree with the audio.
There is another function of 'force-cat'
-force-cat skips media configuration check when concatenating file
!!! THIS MAY BREAK THE TRACK concatenated (S) !!!
The truth is. Many think that it is possible to combine different video tracks h264/h265 only with the same frame size and fps. That's not true. All other codec parameters must be identical. This function doesn't allow such a merge, because it isn't technically possible. When merge all the data from the tracks 'cat' is erased, is only the first. If the parameters don't agree with the rest of the films aren't displayed.
The 'force-cat' is useful for merge containers mp4 and for me is similar function to the 'xps_inband'.
:xps_inband sets XPS inband for AVC/H264 and HEVC (for reverse operation, re-import from raw media)
Edit:
Attempting to preserve the original realtime of the subtitles.
The above record MP4Box makes it impossible. No manual information.
Currently should be divided recording into a twice. It is imperfect implementation or something I don't know.
mp4box.exe -new -info -fps 29.970 -add video_1.h265 -add audio_1.aac -add subtitle_1.ttxt test2a.mp4
mp4box.exe -new -info -fps 29.970 -add video_2.h265 -add audio_2.aac -add subtitle_2.ttxt test2b.mp4
mp4box.exe -new -info -fps 29.970 -mpeg4 -force-cat -cat test2a.mp4 -cat test2b.mp4 test2.mp4
What errors occur in adding up the realtimes? v0.6.2-rev595
properly times
<TextSample sampleTime="00:00:00.000" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:00:05.000" xml:space="preserve">________________
________________<Style fromChar="0" toChar="16" styles="Normal" fontID="1" fontSize="120" color="f3 e6 15 ff"/>
<Style fromChar="17" toChar="33" styles="Italic " fontID="1" fontSize="80" color="f3 e6 15 ff"/>
</TextSample>
<TextSample sampleTime="00:00:15.000" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:02:38.330" xml:space="preserve">____________<Style fromChar="0" toChar="12" styles="Normal" fontID="1" fontSize="120" color="f3 e6 15 ff"/>
</TextSample>
<TextSample sampleTime="00:02:48.330" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:03:55.430" xml:space="preserve">_________
_________<Style fromChar="0" toChar="9" styles="Normal" fontID="1" fontSize="120" color="f3 e6 15 ff"/>
<Style fromChar="10" toChar="19" styles="Italic " fontID="1" fontSize="80" color="f3 e6 15 ff"/>
</TextSample>
<TextSample sampleTime="00:04:05.430" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:05:06.770" xml:space="preserve">____________
________________<Style fromChar="0" toChar="12" styles="Normal" fontID="1" fontSize="120" color="f3 e6 15 ff"/>
<Style fromChar="13" toChar="29" styles="Italic " fontID="1" fontSize="80" color="f3 e6 15 ff"/>
</TextSample>
<TextSample sampleTime="00:05:16.770" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:06:30.770" xml:space="preserve">_______<Style fromChar="0" toChar="7" styles="Normal" fontID="1" fontSize="120" color="f3 e6 15 ff"/>
</TextSample>
<TextSample sampleTime="00:06:40.770" text="" />
merge times
<TextSample sampleTime="00:00:00.000" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:00:05.000" xml:space="preserve">________________
________________<Style fromChar="0" toChar="16" styles="Normal" fontID="1" fontSize="120" color="f3 e6 15 ff"/>
<Style fromChar="17" toChar="33" styles="Italic " fontID="1" fontSize="80" color="f3 e6 15 ff"/>
</TextSample>
<TextSample sampleTime="00:00:15.000" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:02:38.330" xml:space="preserve">____________<Style fromChar="0" toChar="12" styles="Normal" fontID="1" fontSize="120" color="f3 e6 15 ff"/>
</TextSample>
<TextSample sampleTime="00:03:50.442" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:03:55.442" xml:space="preserve">_________
_________<Style fromChar="0" toChar="9" styles="Normal" fontID="1" fontSize="120" color="f3 e6 15 ff"/>
<Style fromChar="10" toChar="19" styles="Italic " fontID="1" fontSize="80" color="f3 e6 15 ff"/>
</TextSample>
<TextSample sampleTime="00:04:05.442" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:05:06.747" xml:space="preserve">____________
________________<Style fromChar="0" toChar="12" styles="Normal" fontID="1" fontSize="120" color="f3 e6 15 ff"/>
<Style fromChar="13" toChar="29" styles="Italic " fontID="1" fontSize="80" color="f3 e6 15 ff"/>
</TextSample>
<TextSample sampleTime="00:05:16.747" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:06:30.762" xml:space="preserve">_______<Style fromChar="0" toChar="7" styles="Normal" fontID="1" fontSize="120" color="f3 e6 15 ff"/>
</TextSample>
<TextSample sampleTime="00:06:30.971" text="" />
Last record times merge containers MP4 are from outer space.
Jamaika
24th August 2016, 11:52
I return to the subject.
https://github.com/gpac/gpac/issues/555
I recently discovered that a joined subtitles as SRT real time agree. I understand that GPAC resigned from the subtitle TTXT. I just want to add some attention on the SRT.
Subtitles can't have empty lines, I don't know why.
1
00:02:38,330 --> 00:02:48,330
<-- I can't use 'Enter'
<i>text</i>
Bad SRT formatting - expecting number got "<i>text</i>"
At the end of a trifle. I have a problem with the removal of descriptions tracks [-catx "image1.h265 +image1.aac +subtitle1.srt +chapter1.txt":noedit:trailing:xps_inband:name=""].
Message:
Error scanning SRT frame 1 timing
This means a bad description of the real time, ex. use dot, and not a comma.:cool:
filler56789
7th September 2016, 23:54
NOT a bug report, BUT the more "GPAC-ers" are aware of the problem, the better.
Latest two "installers" for 64-bit Windows are broken
http://forum.videohelp.com/attachments/38489-1473288546/gpac--bug-report.png
stax76
25th October 2016, 11:15
I've downloaded a snapshot today and compiled it, how do I know the ref number now? I tried -version and get:
D:\Projekte\VS\VB\StaxRip\bin\Apps\MP4Box>mp4box.exe -version
MP4Box - GPAC version 0.6.2-DEV-revUNKNOWN_REV
Jamaika
16th November 2016, 07:42
Can you ask for about examples of applications with new functions attachments for HEVC?
" -set-meta args sets given meta type - syntax: "ABCD[:tk=ID]"\n"
" * ABCD: four char meta type (NULL or 0 to remove meta)\n"
" * [:tk=ID]: if not set use root (file) meta\n"
" if ID is 0 use moov meta\n"
" if ID is not 0 use track meta\n"
" -add-item args adds resource to meta\n"
" * syntax: file_path + options (\':\' separated):\n"
" file_path "this" or "self": item is the file itself\n"
" tk=ID: meta location (file, moov, track)\n"
" name=str: item name\n"
" type=itype: item 4cc type (not needed if mime is provided)\n"
" mime=mtype: item mime type\n"
" encoding=enctype: item content-encoding type\n"
" id=id: item ID\n"
" ref=4cc,id: reference of type 4cc to an other item\n"
" Image Item options\n"
" image-size=wxh sets the width and height of the image.\n"
" image-pasp=wxh sets the pixel aspect ratio property of the image.\n"
" image-rloc=wxh sets the location of this image within another image item.\n"
" image-irot=a sets the rotation angle for this image to 90*a degrees anti-clockwise.\n"
" image-hidden indicates that this image item should be hidden.\n"
" -rem-item args removes resource from meta - syntax: item_ID[:tk=ID]\n"
" -set-primary args sets item as primary for meta - syntax: item_ID[:tk=ID]\n"
" -set-xml args sets meta XML data\n"
" * syntax: xml_file_path[:tk=ID][:binary]\n"
" -rem-xml [tk=ID] removes meta XML data\n"
" -dump-xml args dumps meta XML to file - syntax file_path[:tk=ID]\n"
" -dump-item args dumps item to file - syntax item_ID[:tk=ID][:path=fileName]\n"
" -package packages input XML file into an ISO container\n"
" * all media referenced except hyperlinks are added to file\n"
" -mgt packages input XML file into an MPEG-U widget with ISO container.\n"
" * all files contained in the current folder are added to the widget package\n"
);
Adding support for MPEG Image File Format (mainly HEVC, incl. tiles) (https://github.com/gpac/gpac/commit/61f4ef915f76b0f5616363d430626fbf3215e51b)
egr
22nd January 2017, 08:43
Alright, so I haven't gone through the 27 pages but would like to ask a quick question which should have been asked a week ago, but I had to wait 5 days for some reason to post.... :confused::eek::mad::( Forcing people to wait just to post a quick question, really?
So I'm back again, here's the quick question:
I used that to the cut out the section of video I recorded on my phone, however some of the files I split, they apparently become unreadable(the thumbnails doesn't load either) in windows media player.....what's causing this? I don't understand, did I not do the splitting correctly? Is there a preliminary step I need to do BEFORE splitting a section out via that program? Here's a screenshot for illustration: https://s23.postimg.org/vnw7a1avf/Capture.png
Selur
22nd January 2017, 08:51
Not much details to go on,..
What calls did you use to cut your content?
What format is your content in (container and streams)?
Did you cut on key-frames, if you didn't the output won't be decodable.
egr
22nd January 2017, 17:30
Not much details to go on,..
What calls did you use to cut your content?
What format is your content in (container and streams)?
Did you cut on key-frames, if you didn't the output won't be decodable.
oooh a reply - praise the lord! :) Sorry about the lack of information, I wasn't sure what I needed to post so you guys can answer back - but just posted a simple issue I had and hoped that it was enough for the time being!:o
I just went to Split tab and click on "Extract by duration (hr:min:sec) and typed in the values I want and then click on the "Split" button. Here's an illustration of the Split tab and "Extract by duration preselected: https://s23.postimg.org/7mp4sh1vf/tracert.png
Original format is MP4? and streams in, according to mediaInfo, says oh I'll just take a screenshot of it so you can have a look yourself: https://s29.postimg.org/6fd2zrbo7/tracert.png
As for the cuts, well I just used the Split tab, I am unsure if it cuts on key frames or not.....probably not because it's not playable in windows media player.....
Selur
22nd January 2017, 18:09
Seeing that you did not use mp4box directly but through a GUI (MY MP4Box GUI 0.6.0.6) so I would recommend to try to contact the author of the gui, since this doesn't look like an issue with mp4box itself.
Seeing that the tool seems to be discontinued and I can't find a working homepage for it you are probably better of looking for another gui.
egr
23rd January 2017, 00:49
Seeing that you did not use mp4box directly but through a GUI (MY MP4Box GUI 0.6.0.6) so I would recommend to try to contact the author of the gui, since this doesn't look like an issue with mp4box itself.
Seeing that the tool seems to be discontinued and I can't find a working homepage for it you are probably better of looking for another gui.
Oh....I must have have read wrong.....thought this was a all-in-one discussion topic about the base program and any other modifications made to it....ok, so what other GUI based mp4box versions are there that I could try out then that IS up to date and the author HAS NOT abandoned it?
Selur
23rd January 2017, 05:03
To be frank: A gui which also supports splitting into multiple parts: No clue, since I never tried that, but I guess some other user will be able to recommend one. :)
egr
24th January 2017, 04:27
To be frank: A gui which also supports splitting into multiple parts: No clue, since I never tried that, but I guess some other user will be able to recommend one. :)
Alright then....what if I try the CLI version? Is it any different?
egr
26th January 2017, 05:08
Alright then....what if I try the CLI version? Is it any different?
Hmmm :confused: Well the download for the CLi version is also dead on thread post........
Selur
26th January 2017, 05:13
https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/
Jamaika
14th April 2017, 15:46
GPAC v0.7.0
Overview of the community activity:
•~1550 commits since 0.6.0.
•Launched a few side projects - cf https://github.com/gpac/.
•New test public infrastructure.
General:
•Many security fixes (static compile and fuzzing through AFL, always ongoing)
•Colorized log.
•Fix pkg-config Private.libs.
•Changed default audio volume to 100% instead of 75%.
•Expose more experimental options through the documentation.
•Improved GLES renderer on mobile platforms
•YUV422 and YUV444 8 and 10 bit support in GLES renderer
•Improvements on AVI dump.
•SAT>IP modified RTSP client.
Codecs and File Formats
•Added L-HEVC File Format support (SHVC/MV-HEVC tracks and HEVC Tile Tracks).
•Added MPEG IFF (image File Format) support.
•Range extension support for AVC and HEVC.
•SHVC and MV-HEVC importers and playback: moved to final spec version (SHM6+).
Adaptive streaming:
•Support of HLS with fragmented MP4 playback.
•APIs: gf_mpd_() functions and new segmenter API.
•Improved alternate groups.
•More support for PIFF PSEC and Smooth Streaming ( file format & playback).
•DASH client: pluggable algorithms + improvements with scalable contents.
•The counter source from the DASH sequences added to the public content.
•HLS and DASH playback minor fixes.
•Cleanup of DASH client logs.
VR and 360:
•Added support for DASH SRD in 360 for independent videos videos (NxM partial spheres) more
•Added support for DASH SRD in 360 for HEV Ctiled videos (NxM tiles on one sphere) - checkout tuto
Mobile:
•Apple VideoToolBox hardware decoding support for OSX and iOS for AVC|H264.
•Android hardware decoding hardware acceleration for AVC|H264 (HEVC on its way).
•Android build is based on Android Studio.
•Android: new File Manager.
Subtitles:
•Import of TTML via NHML according to MPEG-4 part 30 improved.
Barough
16th April 2017, 14:04
GPAC/MP4Box v0.7.0-rev1-g544b69041
Built on Apr 16, 2017, GCC 6.3.0
32 & 64-Bit Windows EXE's
https://gpac.wp.imt.fr/2017/04/14/gpac-0-7-0/
https://github.com/gpac/gpac
http://www93.zippyshare.com/v/ojoxwWWs/file.html
stax76
16th April 2017, 15:16
@egr
the unreadable files are probably caused by mp4box, what might work is to cut with mkvmerge and then remux to mp4. staxrip can cut in the preview window, if you don't re-encode you have to set both audio and video to 'just mux' so staxrip will cut with mkvmerge instead of avisynth/vapoursynth, after that re-muxing from mkv to mp4 can also be done with staxrip again with audio and video set to 'just mux'.
SeeMoreDigital
16th April 2017, 19:02
GPAC/MP4Box v0.7.0-rev1-g544b69041
Built on Apr 16, 2017, GCC 6.3.0
32 & 64-Bit Windows EXE's
I must be a bit dense... I can't find your .exe files :(
Barough
16th April 2017, 19:12
I must be a bit dense... I can't find your .exe files :(
There is a Zippyshare link in my post above. From there so can you DL the 7Zip archive with the EXE's.
Skickat från min SM-G935F via Tapatalk
SeeMoreDigital
16th April 2017, 21:40
There is a Zippyshare link in my post above. From there so can you DL the 7Zip archive with the EXE's.
Skickat från min SM-G935F via TapatalkThanks :)
Barough
20th April 2017, 17:35
GPAC/MP4Box v0.7.0-rev3-g10dc09ce9
Built on Apr 20, 2017, GCC 6.3.0
32 & 64-Bit Windows Binaries
https://gpac.wp.imt.fr/2017/04/14/gpac-0-7-0/
https://github.com/gpac/gpac
DL :
http://www47.zippyshare.com/v/LzLSFwFI/file.html
stax76
22nd April 2017, 00:02
Demuxing mov files stopped working with this build, I also tried a Visual Studio build from today, same problem. It worked in previous builds. Is a dev reading here or should I create a issue on the tracker?
https://pastebin.com/zppBCaEH
Selur
22nd April 2017, 06:14
You probably better create an issue in the bug tracker, especially since the thread title says '[No bug reports]',..
(I can confirm the issue with my own v0.7.0-rev3-g10dc09ce9 builds here)
Midzuki
22nd April 2017, 08:25
I gave up on MP4box.
It's sluggish, outdated, and has stupid design flaws.
Now I use only L-Smash and ffmpeg.
stax76
22nd April 2017, 09:22
https://github.com/gpac/gpac/issues/806
stax76
3rd May 2017, 07:57
The mov issue is said to be fixed.
https://github.com/gpac/gpac/issues/806
Barough
25th May 2017, 18:20
MP4Box v0.7.2-DEV-rev67-g975c0eb7b
Built on May 25, 2017, GCC 6.3.0
32 & 64-Bit Windows Binaries
https://github.com/gpac/gpac/commits/master
DL :
http://www66.zippyshare.com/v/k3pjiTFq/file.html
SeeMoreDigital
25th May 2017, 21:36
Thanks Barough,
Is there a 'change log' for this version?
Barough
26th May 2017, 07:25
Thanks Barough,
Is there a 'change log' for this version?
Have a look here
https://github.com/gpac/gpac/commits/master
Jamaika
13th June 2017, 09:34
With GPAC versions is a little mess. Currently there is version 7.2.0 already. I don't know what GPAC contains, who is interested in this.
I pinch what the users forced on the creators.
https://github.com/gpac/gpac/compare/v0.7.1...master
https://github.com/gpac/gpac/issues/840
https://github.com/gpac/gpac/commit/c7e5aa383df43272ebacec80cbd3df8a16f3b0f5
26/04/2017: GPAC 0.7.1
- Full changelog at https://github.com/gpac/gpac/wiki/GPAC-0.7.0
- Many security fixes (static compile and fuzzing through [AFL](http://lcamtuf.coredump.cx/afl/), always ongoing)
- Colorized log.
- Fix pkg-config Private.libs.
- Changed default audio volume to 100% instead of 75%.
- Expose more experimental options through the [documentation](http://htmlpreview.github.io/?https://github.com/gpac/gpac/blob/master/doc/configuration.html).
- Improved GLES renderer on mobile platforms
- YUV422 and YUV444 8 and 10 bit support in GLES renderer
- Improvements on AVI dump.
- SAT>IP modified RTSP client.
- Added L-HEVC File Format support (SHVC/MV-HEVC tracks and HEVC Tile Tracks).
- Added MPEG IFF (image File Format) support.
- Range extension support for AVC and HEVC.
- SHVC and MV-HEVC importers and playback: moved to final spec version (SHM6+).
- Support of HLS with fragmented MP4 playback.
- APIs: gf_mpd_() functions and new segmenter API.
- Improved alternate groups.
- More support for PIFF PSEC and Smooth Streaming ( file format & playback).
- DASH client: pluggable algorithms + improvements with scalable contents.
- The counter source from the DASH sequences added to the public content.
- HLS and DASH playback minor fixes.
- Cleanup of DASH client logs.
- Added support for DASH SRD in 360 for independent videos videos (NxM partial spheres) [more](https://gpac.wp.imt.fr/2016/05/25/srd/)
- Added support for DASH SRD in 360 for HEV Ctiled videos (NxM tiles on one sphere) - [checkout tuto](https://gpac.wp.imt.fr/2017/02/01/hevc-tile-based-adaptation-guide/)
- Apple VideoToolBox hardware decoding support for OSX and iOS for AVC|H264.
- Android hardware decoding hardware acceleration for AVC|H264 (HEVC on its way).
- Android build is based on Android Studio.
- Android: new File Manager.
- Import of TTML via NHML according to MPEG-4 part 30 improved.
SeeMoreDigital
13th June 2017, 15:30
Hi all,
Out of interest, are there any new MP4box muxing UI's that offer support for muxing HEVC in .mp4?
Cheers
stax76
13th June 2017, 16:31
staxrip can be used as muxing UI as it supports stream copy.
Jamaika
30th July 2017, 06:55
New function for image HEIF(Apple):
https://gpac.wp.imt.fr/2017/06/09/gpac-support-for-heif/
MP4Box -add-image file.hvc:primary -ab heic -new image.heic
MP4Box -add-image file.hvc:time=1.2:primary -ab heix -new image.heic
MP4Box -add-image tiled.hvc:split_tiles:primary -ab heic -new tiled.heic
Dumping Options
-dump-cover Extracts cover art
-dump-item args dumps item to file - syntax item_ID[:tk=ID][:path=fileName] (What is with dump-image???)
Importing Options
File importing syntax:
":xps_inband" Sets xPS inband for AVC/H264 and HEVC (for reverse operation, re-import from raw media)
":max_lid=N" sets HEVC max layer ID to be imported to N. Default imports all.
":max_tid=N" sets HEVC max temporal ID to be imported to N. Default imports all.
":tiles" adds HEVC tiles signaling and NALU maps without splitting the tiles into different tile tracks.
":split_tiles" splits HEVC tiles into different tile tracks, one tile (or all tiles of one slice) per track.
Supported raw formats and file extensions:
JPEG Images .jpg .jpeg
JPEG-2000 Images .jp2 .j2k(???)
PNG Images .png
HEIF Images .heic (???)
Supported iTunes tag modifiers:
cover usage: cover=*.jpg,*.png,*.jp2,(*.j2k,*.heic)???
Meta handling Options
-set-meta args sets given meta type - syntax: "ABCD[:tk=ID]"
* ABCD: four char meta type (NULL or 0 to remove meta)
* [:tk=ID]: if not set use root (file) meta (dead function)
if ID is 0 use moov meta
if ID is not 0 use track meta
-add-item args adds resource to meta (dead function)
* syntax: file_path + options (':' separated):
file_path "this" or "self": item is the file itself
tk=ID: meta location (file, moov, track)
name=str: item name
type=itype: item 4cc type (not needed if mime is provided)
mime=mtype: item mime type
encoding=enctype: item content-encoding type
id=id: item ID
ref=4cc,id: reference of type 4cc to an other item
-add-image args adds the given file (with parameters) as HEIF image item) (experimental function) (How is argument ABCD for meta type???)
* same syntax as add-item with the following options
name=str same as for -add-item
id=id same as for -add-item
ref=4cc, id same as for -add-item
primary indicates that this item should be the primary item.
time=t uses the next sync sample after time t (float, in sec, default 0)
split_tiles for an HEVC tiled image, each tile is stored as a separate item
rotation=a sets the rotation angle for this image to 90*a degrees anti-clockwise.
image-hidden indicates that this image item should be hidden.
GPAC version: 0.7.2-DEV-rev219-g9aec64d-master
Can I generate HEIF screenshots from other codecs?
filler56789
27th June 2019, 20:51
GPAC 0.8.0 is out.
We are happy to announce the new release 0.8.0 of GPAC, featuring AV1, full CENC and ATSC3.0 support.
General
Many security fixes (static compile and fuzzing through AFL, always ongoing).
Many bugs fixes
Added :ncl option in log levels to disable color logs
More tests and coverage
File Formats
Better support of QTFF / ProRes files
Support for AV1
-- import and export
-- source formats: OBUs (Section 5), IVF and AnnexB
-- AV1 in HEIF
Support for color (nclc, nclx and ICC profiles) in HEIF and ISOBMFF
Support for HDR (mdcv, clli) info in HEIF and ISOBMFF
Support for alpha in HEIF
Support for enforcing pasp presence even for 1:1 ratios
HEVC temporal sublayer split in MP4Box
Allow meta storage before mdat for meta-only files (heif and co)
Added option to keep AU delimiter in isobmff samples
Support for opus import
Support for pixi and ccst in HEIF
DolbyVision 'dvcC' and partial 'dvhe' boxes for HDR
Support for VP9 import and playback
Sample dependency in avc and hevc importers, and track thinner for non-refs images
Support for audio_roll signaling
New audio import mode to control AudioSampleEntry creation (v0, v1 ISOBMFF, v1 QTFF)
xHE-AAC import with detection of sync samples
Added support for MPEG-H 3D audio boxes (no import yet)
Handle Vobsub empty SPU packets
Added auxv and pict support
Common Encryption
Fully compliant CENC supporting cenc, cens, cbc1 and cbcs
CENC for AV1
Improved DASH+CENC support, pssh in MPD
ForceClear mode for CENC to skip encryption without sample groups
Made senc in movie fragments always stored before truns
Added default values handling for cbcs and possibility to set protection system per track
Compatibility with OpenSSL 1.1.x
Streaming and Adaptive Streaming
Support for ATSC3.0 both US and Korean versions !
Support for for live splices (xlink period insertions) in DASH client
Automatic period continuity in DASH when no codec change between periods
Added DASH cue-base segmentation (XML based) and -dsap option to generate cue files from source
Support for BBA-0 and BOLA implementations
Write fragment defaults in trex even when not using them
Support for simple ssix for keyframe data byterange at the start of a segment
Moved segment template at AdaptationSet level if only one representation
Changed default bsmode in dasher if single input file
Added init-seg-ext option
Added -mvex-after-traks option to MP4Box when dashing for CMAF
Added segmentation option to insert a tfdt per traf
Added -closest mode for DASH segmentation
Added -bound option to use audio segmenting method for video
Renamed -dash-run-for to -run-for
Added '=' in dash templates
Improved bandwith estimation when using HTTP 1.1 chunk transfer
Add option to force moof base offsets
MP4Box
Added -catpl to concatenate from playlist in MP4Box
Added options to set movie timescale at import and dash time
Added mpd rip option and top-level box compressor in MP4Box
Made -dts skip timing check and added -dtsc for that
Made force-cat option more agressive
Support for MovieFragmentRandomAccess using -mfra option
Added -dtsx to dump timing without offset
Added -dnalc opt for nal CRC dump
Added chunk extraction up to time until end
ISOBMFF single track import now removes references by default
Decoders
Updated ffmpeg to 4.0.2
Moved to openHEVC 3.0 API
Added nvdec support (windows, linux) with reuse of decoder context for tiled VR
Added HEVC support to mediacodec on android
AV1 playback through ffmpeg
Opus playback through ffmpeg
3D, VR and 360
Added vrhud for multiviewpoint 360
Added forced visibility mode of tiles in VR
Added tile visibility debug mode
Added forced stereo output for openhevc
Disable face nav if mouse grabbed
Added simple face tracking vr navigation based on udp commands
Added PSVR support
Added mouse move emulation at window border to force sphere rotation when inactive
Changed tile visibility algo to sample points in mesh
Players (Mobile and Desktop)
Added about extension
Added multiple audio objects in dynamic scene
Added addon splicing of main content
Added mosaic://v1:.:vN url support
Added gaze simulation through mouse and gaze-sphere visibility test
Subtitles
Allow * as argument of -srt|ttxt to dump all possible tracks (#925)
Improved support for WebVTT import
Improved support for WebVTT DASHing/fragmentation
Misc
OSX install now done through PKG and modify PATH env in/etc/paths
Added initial PMT version and disc marker to TS muxer
Moved dektec output to matrix API, added SDI clipping
Added temi periodic toggle and manual toggle in MP42TS
https://www.videohelp.com/software/MP4Box
SeeMoreDigital
27th June 2019, 21:31
Nice one ;)
filler56789
2nd July 2019, 00:28
http://sourceforge.net/p/gpac/discussion/287546/thread/43881fa9/
Very interesting, there was no "lack of time" for adding HEVC support to MP4Box...
Seven years later, jeanlf finally confirmed he and his team don't care at all:
https://github.com/gpac/gpac/issues/536
Kurtnoise
14th January 2021, 18:21
TrueHD support has been added recently...does anyone have test it ?
SeeMoreDigital
15th January 2021, 16:13
If somebody creates some muxes, I'm happy to test them with my hardware playback devices...
filler56789
17th January 2021, 19:06
MP4Box - GPAC version 1.0.1-rev0-gd8538e8a-master
now requires the av* and sw* libraries...
So why not just use ffmpeg instead of mp4box? ;)
stax76
17th January 2021, 20:32
TrueHD support has been added recently...does anyone have test it ?
Just tried it, did not work, MP4Box did freeze/hang.
---------------------------- Muxing to MP4 ----------------------------
MP4Box 1.1.0-rev447-g8c190b551-gcc10.2.0 Patman
D:\Projekte\VB\staxrip\bin\Apps\Support\MP4Box\MP4Box.exe -add "D:\Samples\Jupiter_temp\Jupiter.h265#video:name=" -add "D:\Samples\Jupiter_temp\ID2 English {TrueHD 7.1 @ 5484 kbps [Atmos]}.thd#audio:lang=eng:name=" -new D:\Samples\Jupiter_new.mp4
Track Importing HEVC - Width 3840 Height 2160 FPS 480000/20020 SAR 1/1
OpenGOP detected - adjusting file brand
HEVC Import results: 1311 samples (13609 NALUs) - Slices: 568 I 3288 P 6632 B - 1666 SEI - 152 IDR
HEVC Stream uses forward prediction - stream CTS offset: 2 frames
----------------------------------------------------------------------------
G: MLP FBA, 28.0 MiB
A: MLP FBA 16-ch, 8ch, 48.0 kHz
General
CompleteName : D:\Samples\Jupiter_temp\ID2 English {TrueHD 7.1 @ 5484 kbps [Atmos]}.thd
Format/String : MLP FBA 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Format_Commercial_IfAny : Dolby TrueHD with Dolby Atmos
FileSize/String : 28.0 MiB
OverallBitRate_Mode/String : Variable
Audio
Format/String : MLP FBA 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Format_Commercial_IfAny : Dolby TrueHD with Dolby Atmos
BitRate_Mode/String : Variable
BitRate_Maximum/String : 8 955 kb/s
Channel(s)/String : 8 channels
ChannelLayout : L R C LFE Ls Rs Lb Rb
SamplingRate/String : 48.0 kHz
FrameRate/String : 1 200.000 FPS (40 SPF)
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE
SeeMoreDigital
29th January 2021, 13:54
TrueHD support has been added recently...does anyone have test it ?
Has anyone been able to generate any muxes yet?
filler56789
29th January 2021, 17:16
Has anyone been able to generate any muxes yet?
Just use ffmpeg, problem solved :)
ffmpeg -i input.thd -strict -2 -acodec copy output.mp4
Kurtnoise
30th January 2021, 05:48
Just use ffmpeg, problem solved :)
ffmpeg -i input.thd -strict -2 -acodec copy output.mp4
Stop the troll...
filler56789
30th January 2021, 09:27
Stop the troll...
Look who's talking :rolleyes:
filler56789
30th January 2021, 09:35
By the way.....
this thread was started on 23rd May 2005, 16:55 UTC...
maybe it should be locked for good, since nothing important has happened to GPAC after the HEVC support was added to it.
Kurtnoise
30th January 2021, 11:26
obvioulsy, you know nothing...so, please go away.
manolito
30th January 2021, 17:54
I know this is a little bit OT, but since some MP4 gurus are here I figured that I can ask a question about the MP4 container here...
I do not like the Apple world, so my favorite container is MKV. But sometimes I get a request from a friend to repack the file I sent him into an MP4 container because his player(s) do not like MKV.
Of course I can do this, and the resulting MP4 plays fine. But what I do not understand is why this resulting MP4 has a Variable Frame Rate when the source had a Constant Frame Rate.
My original source is an FLV file with AVC video and AAC audio at a CFR of 29.97 fps. Repacking it to MKV always keeps the CFR. But when I use either FFmpeg or MP4Box to repack it into an MP4 container I get a file with VFR.
Frame rate mode : Variable
Frame rate : 29.970 FPS
Minimum frame rate : 29.412 FPS
Maximum frame rate : 30.303 FPS
Only the latest AviDemux repacks it into a CFR Mp4 file. An older AviDemux version which I need to use under WinXP has a choice of 2 different MP4 muxers, and one of them creates CFR and the other one VFR files. Quite confusing...
Can anyone shed some light on why FFmpeg and MP4Box need to create VFR MP4 files when the source clearly was CFR?
tormento
8th February 2021, 11:56
Uhm, seriously, what to use if I need to mux something to mp4? So used to Matroska that I almost never needed it.
Tried with
ffmpeg -i something.mkv -codec copy samething.mp4
but it copies video only, no audio, subs or chapters.
stax76
8th February 2021, 17:09
StaxRip has a stream copy mode, so it can be used for plain re-muxing. If you prefer command line you can use StaxRip to learn what command line you need.
The ffmpeg muxer in staxrip currently does not support subtitles, but the MP4Box muxer in StaxRip supports subtitles.
Cut/Trim in stream copy mode works only with the mkvmerge muxer.
Balling
1st September 2021, 07:05
TrueHD encoder losing 16 frames was fixed today in ffmpeg. See https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=9f420163c6207b9c54badd30056974a6b3450bfd
AudioGear944
15th July 2025, 22:12
https://i.imgur.com/MkQz5Ik.png
Somewhat related to MP4Box, does anyone perhaps recognize the name of this software?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.