PDA

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


Pages : 1 [2]

Oline 61
18th January 2006, 21: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, 14: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, 14: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, 14: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, 15: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, 18: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, 22: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, 10: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, 16: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, 17: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, 19:56
Replace # by _ . Such as Beet The Vandel Buster_45.264

mp4box associates some extra characters with #...

Varium
1st February 2006, 20: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 ?

bond
6th June 2006, 18:53
' ' 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&apos;c, wir leben schon lange''alleine in unserer Ecke der Galaxie.'">
</TextSample>

All the character after the &apos; 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 &apos; thing, it doesn't display the subs after that. But if you have in another part of the same line the &apos; , 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/&apos;/\&#900;/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 - &#x384; 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, 15: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, 17:35
Thanks Kurt.... I've just downloaded it from your site :)

SeeMoreDigital
25th November 2006, 10: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, 11: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.

bond
5th May 2007, 19:38
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

mcka
6th June 2007, 23:15
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.

mcka
7th June 2007, 16:06
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...

mcka
7th June 2007, 18:18
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

Stux
3rd July 2007, 07:19
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, 14: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 sample video (http://brian.baligad.name/gaming/v/as_wifo_match21b.mp4) 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, 00: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, 09: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, 09: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, 09: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, 09: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, 17: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, 04: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, 09:25
could you post your exact command line please ?

TwoToad
15th March 2009, 13: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, 06: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, 15: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, 15: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, 02:57
Development dead?

Latest version 0.4.6-DEV (build 1) tends to crash a lot.

RBO
28th July 2010, 12:48
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, 14: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, 08:59
No you can't. What are you trying to do?

Selur
18th January 2011, 04: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, 04: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, 15: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, 22: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, 09: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, 13:47
Ah I see, i'll make it post in the forum, thanks

Gew
7th April 2011, 19:35
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?

vsv
21st July 2011, 07:34
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!