View Full Version : GPAC MP4Box Information, Feature Requests & Discussions [No bug reports]
Pages :
1
2
3
4
5
6
7
8
[
9]
10
11
12
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?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.