View Full Version : GPAC MP4Box Information, Feature Requests & Discussions [No bug reports]
Pages :
1
2
3
4
5
6
7
8
9
[
10]
11
12
SeeMoreDigital
1st October 2009, 09:11
Hi Rodoga,
Just so as you know... This thread is not for discussing bug reports or muxing issues with MP4box.
hxhxd
30th November 2009, 16:11
I have a problem about anamorphic muxing. My cmd is:
mp4box -add 1.264:par=32:27:fps=29.970:layout=854x480 -add 1.mp4 -psp -new 1-muxed.mp4
whenever I remove layout=854x480 or change par value from command line, the final resolution stays at 720x480.
* Movie Info *
Timescale 600 - Duration 00:19:14.986
Fragmented File no - 2 track(s)
File Brand MSNV - version 0
Created: GMT Mon Nov 30 14:59:10 2009
File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x15)
Audio PL: AAC Profile @ Level 2 (0x29)
No streams included in root OD
Track # 1 Info - TrackID 1 - TimeScale 30000 - Duration 00:19:14.920
Media Info: Language "Undetermined" - Type "vide:avc1" - 34613 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 720 x 480 - Profile Main @ Level 3
NAL Unit length bits: 32
Pixel Aspect Ratio 32:27 - Indicated track size 720 x 480
Self-synchronized
Track # 2 Info - TrackID 2 - TimeScale 48000 - Duration 00:19:14.986
Media Info: Language "Undetermined" - Type "soun:mp4a" - 54140 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Synchronized on stream 1
the raw video stream is encoded correctly, as mplayer can confirm this.
My question is, how to create a anamorphic file?
thanks very much!
may24
30th November 2009, 16:39
Hi everybody,
actually I'm having a strange problem mit MP4Box.
I have a full PAL AVC encoded video and two AAC streams of audio. All in RAW format. I'll try to mux them into one .mp4 file using MP4Box on a Linux machine. I tried the same on Win Vista and it fails as well.
All streams togeter make a total of aprox. 5 GB, and I observed that the application crashes when the total filesize is over 4 GB and there are more then just one audio track. I did multiplexing of a 20GB file without any problems, but with only one audio track.
As soon as you try to add another, it'll crash.
If you stay below the 4GB plimsoll line, it works perfectly
Any help would be highly appreciated
Here is the output:
MP4Box -fps 25 -par 1=1:1 -add "Tine Tauchen_Track1.h264" -add "Tine Tauchen_Track2.aac" -add "Tine Tauchen_Track3.aac" -new "Tine Tauchen.mp4"
AVC-H264 import - frame size 1024 x 576 at 25.000 FPS
Import results: 347421 samples - Slices: 3954 I 125983 P 217484 B - 1 SEI - 3905 IDR
AAC import - sample rate 48000 - MPEG-4 audio - 2 channels
AAC import - sample rate 48000 - MPEG-4 audio - 2 channels
Saving Tine Tauchen.mp4: 0.500 secs Interleaving
*** glibc detected *** MP4Box: double free or corruption (out): 0x0807a0c8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb71dc50b]
/lib/libc.so.6[0xb71ddde4]
/lib/libc.so.6(cfree+0x6d)[0xb71e0fdd]
/usr/local/lib/libgpac.so(ResetWriters+0xb9)[0xb75cb4fa]
/usr/local/lib/libgpac.so[0xb75ce5ab]
/usr/local/lib/libgpac.so(WriteToFile+0x15a)[0xb75ce825]
/usr/local/lib/libgpac.so(gf_isom_close+0x63)[0xb75c6c52]
MP4Box[0x805230c]
/lib/libc.so.6(__libc_start_main+0xfe)[0xb7185ace]
======= Memory map: ========
08048000-08070000 r-xp 00000000 08:03 2564113 /usr/local/bin/MP4Box
08070000-08071000 r--p 00027000 08:03 2564113 /usr/local/bin/MP4Box
08071000-08072000 rw-p 00028000 08:03 2564113 /usr/local/bin/MP4Box
08072000-080cb000 rw-p 00000000 00:00 0 [heap]
b112a000-b1f60000 rw-p 00000000 00:00 0
b1f60000-b2510000 rw-p 00000000 00:00 0
b326e000-b3546000 rw-p 00000000 00:00 0
b3911000-b3f0a000 rw-p 00000000 00:00 0
b4305000-b513b000 rw-p 00000000 00:00 0
b52d0000-b5c4a000 rw-p 00000000 00:00 0
b5c4a000-b6015000 rw-p 00000000 00:00 0
b6090000-b6368000 rw-p 00000000 00:00 0
b6600000-b6621000 rw-p 00000000 00:00 0
b6621000-b6700000 ---p 00000000 00:00 0
b6735000-b67c3000 rw-p 00000000 00:00 0
b67c3000-b69a9000 rw-p 00000000 00:00 0
b6a1c000-b6a55000 rw-p 00000000 00:00 0
b6a55000-b6a8e000 rw-p 00000000 00:00 0
b6acd000-b6aeb000 r-xp 00000000 08:03 2392386 /lib/libgcc_s.so.1
b6aeb000-b6aec000 r--p 0001d000 08:03 2392386 /lib/libgcc_s.so.1
b6aec000-b6aed000 rw-p 0001e000 08:03 2392386 /lib/libgcc_s.so.1
b6aed000-b6cd3000 rw-p 00000000 00:00 0
b6cdc000-b6d6a000 rw-p 00000000 00:00 0
b6d87000-b6d89000 rw-p 00000000 00:00 0
b6d89000-b6d8b000 r-xp 00000000 08:03 3617045 /usr/lib/libXau.so.6.0.0
b6d8b000-b6d8c000 r--p 00001000 08:03 3617045 /usr/lib/libXau.so.6.0.0
b6d8c000-b6d8d000 rw-p 00002000 08:03 3617045 /usr/lib/libXau.so.6.0.0
b6d8d000-b6d8e000 rw-p 00000000 00:00 0
b6d8e000-b6d96000 r-xp 00000000 08:03 2392116 /lib/librt-2.10.1.so
b6d96000-b6d97000 r--p 00007000 08:03 2392116 /lib/librt-2.10.1.so
b6d97000-b6d98000 rw-p 00008000 08:03 2392116 /lib/librt-2.10.1.so
b6d98000-b6db5000 r-xp 00000000 08:03 3617064 /usr/lib/libxcb.so.1.1.0
b6db5000-b6db6000 r--p 0001c000 08:03 3617064 /usr/lib/libxcb.so.1.1.0
b6db6000-b6db7000 rw-p 0001d000 08:03 3617064 /usr/lib/libxcb.so.1.1.0
b6db7000-b6dc1000 r-xp 00000000 08:03 3613748 /usr/lib/libdrm.so.2.4.0
b6dc1000-b6dc2000 r--p 00009000 08:03 3613748 /usr/lib/libdrm.so.2.4.0
b6dc2000-b6dc3000 rw-p 0000a000 08:03 3613748 /usr/lib/libdrm.so.2.4.0
b6dc3000-b6dc7000 r-xp 00000000 08:03 3613668 /usr/lib/libXfixes.so.3.1.0
b6dc7000-b6dc8000 r--p 00003000 08:03 3613668 /usr/lib/libXfixes.so.3.1.0
b6dc8000-b6dc9000 rw-p 00004000 08:03 3613668 /usr/lib/libXfixes.so.3.1.0
b6dc9000-b6dcb000 r-xp 00000000 08:03 3613813 /usr/lib/libXdamage.so.1.1.0
b6dcb000-b6dcc000 r--p 00001000 08:03 3613813 /usr/lib/libXdamage.so.1.1.0
b6dcc000-b6dcd000 rw-p 00002000 08:03 3613813 /usr/lib/libXdamage.so.1.1.0
b6dcd000-b6dce000 rw-p 00000000 00:00 0
b6dce000-b6dd2000 r-xp 00000000 08:03 3613842 /usr/lib/libXxf86vm.so.1.0.0
b6dd2000-b6dd3000 r--p 00003000 08:03 3613842 /usr/lib/libXxf86vm.so.1.0.0
b6dd3000-b6dd4000 rw-p 00004000 08:03 3613842 /usr/lib/libXxf86vm.so.1.0.0
b6dd4000-b6de4000 r-xp 00000000 08:03 3616974 /usr/lib/libXext.so.6.4.0
b6de4000-b6de5000 r--p 0000f000 08:03 3616974 /usr/lib/libXext.so.6.4.0
b6de5000-b6de6000 rw-p 00010000 08:03 3616974 /usr/lib/libXext.so.6.4.0
b6de6000-b6f16000 r-xp 00000000 08:03 3616961 /usr/lib/libX11.so.6.2.0
b6f16000-b6f17000 ---p 00130000 08:03 3616961 /usr/lib/libX11.so.6.2.0
b6f17000-b6f18000 r--p 00130000 08:03 3616961 /usr/lib/libX11.so.6.2.0
b6f18000-b6f1b000 rw-p 00131000 08:03 3616961 /usr/lib/libX11.so.6.2.0
b6f1b000-b6f1e000 r-xp 00000000 08:03 2392075 /lib/libdl-2.10.1.so
b6f1e000-b6f1f000 r--p 00002000 08:03 2392075 /lib/libdl-2.10.1.so
b6f1f000-b6f20000 rw-p 00003000 08:03 2392075 /lib/libdl-2.10.1.so
b6f20000-b6f36000 r-xp 00000000 08:03 2392421 /lib/libpthread-2.10.1.so
b6f36000-b6f37000 r--p 00015000 08:03 2392421 /lib/libpthread-2.10.1.so
b6f37000-b6f38000 rw-p 00016000 08:03 2392421 /lib/libpthread-2.10.1.so
b6f38000-b6f3b000 rw-p 00000000 00:00 0
b6f3b000-b6f63000 r-xp 00000000 08:03 3614322 /usr/lib/libpng12.so.0.39.0
b6f63000-b6f64000 r--p 00027000 08:03 3614322 /usr/lib/libpng12.so.0.39.0
b6f64000-b6f65000 rw-p 00028000 08:03 3614322 /usr/lib/libpng12.so.0.39.0
b6f65000-b6f87000 r-xp 00000000 08:03 3614259 /usr/lib/libjpeg.so.62.0.0
b6f87000-b6f88000 r--p 00021000 08:03 3614259 /usr/lib/libjpeg.so.62.0.0
b6f88000-b6f89000 rw-p 00022000 08:03 3614259 /usr/lib/libjpeg.so.62.0.0
b6f89000-b70e1000 r-xp 00000000 08:03 2679561 /usr/lib/libcrypto.so.0.9.8
b70e1000-b70e9000 r--p 00157000 08:03 2679561 /usr/lib/libcrypto.so.0.9.8
b70e9000-b70f7000 rw-p 0015f000 08:03 2679561 /usr/lib/libcrypto.so.0.9.8
b70f7000-b70fb000 rw-p 00000000 00:00 0
b70fb000-b7141000 r-xp 00000000 08:03 2679562 /usr/lib/libssl.so.0.9.8
b7141000-b7142000 ---p 00046000 08:03 2679562 /usr/lib/libssl.so.0.9.8
b7142000-b7143000 r--p 00046000 08:03 2679562 /usr/lib/libssl.so.0.9.8
b7143000-b7146000 rw-p 00047000 08:03 2679562 /usr/lib/libssl.so.0.9.8
b7146000-b716d000 r-xp 00000000 08:03 2392083 /lib/libm-2.10.1.so
b716d000-b716e000 r--p 00027000 08:03 2392083 /lib/libm-2.10.1.so
b716e000-b716f000 rw-p 00028000 08:03 2392083 /lib/libm-2.10.1.so
b716f000-b72c8000 r-xp 00000000 08:03 2392070 /lib/libc-2.10.1.so
b72c8000-b72c9000 ---p 00159000 08:03 2392070 /lib/libc-2.10.1.so
b72c9000-b72cb000 r--p 00159000 08:03 2392070 /lib/libc-2.10.1.so
b72cb000-b72cc000 rw-p 0015b000 08:03 2392070 /lib/libc-2.10.1.so
b72cc000-b72d0000 rw-p 00000000 00:00 0
b72d0000-b7303000 r-xp 00000000 08:03 3613808 /usr/lib/libglut.so.3.9.0
b7303000-b7305000 r--p 00033000 08:03 3613808 /usr/lib/libglut.so.3.9.0
b7305000-b7308000 rw-p 00035000 08:03 3613808 /usr/lib/libglut.so.3.9.0
b7308000-b7376000 r-xp 00000000 08:03 3613845 /usr/lib/libGL.so.1.2
b7376000-b7377000 ---p 0006e000 08:03 3613845 /usr/lib/libGL.so.1.2
b7377000-b737c000 r--p 0006e000 08:03 3613845 /usr/lib/libGL.so.1.2
b737c000-b737e000 rw-p 00073000 08:03 3613845 /usr/lib/libGL.so.1.2
b737e000-b737f000 rw-p 00000000 00:00 0
b737f000-b7391000 r-xp 00000000 08:03 2392274 /lib/libz.so.1.2.3
b7391000-b7392000 r--p 00011000 08:03 2392274 /lib/libz.so.1.2.3
b7392000-b7393000 rw-p 00012000 08:03 2392274 /lib/libz.so.1.2.3
b7393000-b7801000 r-xp 00000000 08:03 2539548 /usr/local/lib/libgpac-0.4.6-DEV.so
b7801000-b7802000 r--p 0046d000 08:03 2539548 /usr/local/lib/libgpac-0.4.6-DEV.so
b7802000-b7803000 rw-p 0046e000 08:03 2539548 /usr/local/lib/libgpac-0.4.6-DEV.so
b7803000-b7806000 rw-p 00000000 00:00 0
b7819000-b781d000 rw-p 00000000 00:00 0
b781d000-b783b000 r-xp 00000000 08:03 2392572 /lib/ld-2.10.1.so
b783b000-b783c000 r--p 0001d000 08:03 2392572 /lib/ld-2.10.1.so
b783c000-b783d000 rw-p 0001e000 08:03 2392572 /lib/ld-2.10.1.so
bfd6e000-bfda5000 rwxp 00000000 00:00 0 [stack]
bfda5000-bfda7000 rw-p 00000000 00:00 0
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Aborted
... BTW: I'm using the latest CVS build: libgpac-0.4.6-DEV
war59312
6th March 2010, 03:57
Development dead?
Latest version 0.4.6-DEV (build 1) tends to crash a lot.
GPAC is not dead! And we're glad to see it used by doom9 forumers :)
However we can't browse the whole web for your remarks! If you see any bug or want to contact us, post on our forums (https://sourceforge.net/projects/gpac/forums) or send a PM. Please don't forget to provide us with sample files to reproduce your behaviour. :thanks:
Despite our commitment to provide a decent level of support, if you fell your bug/request gets too much time to be processed, we remind you GPAC is an open-source project. This means you can also help us improving it by submitting patches. We will be happy to merge them :)
This thread is yours!!
The GPAC Team
SeeMoreDigital
28th July 2010, 13:49
Many thanks for the update RBO :)
RBO
3rd August 2010, 09:31
For all people compiling GPAC: we have recently moved from CVS to SVN.
See: https://sourceforge.net/news/?group_id=84101
Brazil2
6th September 2010, 20:12
There is a bug in all MP4Box versions I've tried since 2010-04-10 builds when using the built-in tagging system: the file is getting tagged the day before it has been created.
Example with a file I've created some minutes ago:
General
Complete name : F:\Test\TEST.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
...
Tagged date : UTC 2010-09-05 18:34:31
Writing application : Yamb 2.1.0.0 [http://yamb.unite-video.com]
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
...
Encoded date : UTC 2010-09-05 18:34:32
Tagged date : UTC 2010-09-05 18:34:32
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
...
Encoded date : UTC 2010-09-05 18:34:32
Tagged date : UTC 2010-09-05 18:34:32
2010-09-05 instead of 2010-09-06.
I'm using MP4Box through Yamb 2.1.0.0 beta2 but it was working fine with older versions.
VFR maniac
6th September 2010, 21:50
GPAC uses wrong epoch offset 2082758400 according to 14496-5 reference sofware.
Correct offset is 2082844800.
(This is the fault of ISO reference software.)
diff --git a/include/gpac/internal/isomedia_dev.h b/include/gpac/internal/isomedia_dev.h
index 2a564a9..229d6c2 100644
--- a/include/gpac/internal/isomedia_dev.h
+++ b/include/gpac/internal/isomedia_dev.h
@@ -1855,7 +1855,7 @@ GF_Err gf_isom_datamap_add_data(GF_DataMap *ptr, char *data, u32 dataSize);
/*time def for MP4/QT/MJ2K files*/
-#define GF_ISOM_MAC_TIME_OFFSET 2082758400/*208284480 */
+#define GF_ISOM_MAC_TIME_OFFSET 2082844800
#ifndef GPAC_DISABLE_ISOM_FRAGMENTS
#define GF_ISOM_FORMAT_FRAG_FLAGS(pad, sync, deg) ( ( (pad) << 17) | ( ( !(sync) ) << 16) | (deg) );
I don't know why GPAC guys had begun to use the wrong offset.
RBO
9th September 2010, 08:37
Thank you for reporting! The fix has been committed: https://sourceforge.net/apps/trac/gpac/changeset/2024/
Romain
Selur
15th January 2011, 15:39
Small question: is there a way to extract the nhml of a track without extracting the track at the same time?
RBO
17th January 2011, 09:59
No you can't. What are you trying to do?
Selur
18th January 2011, 05:52
Was thinking about some general mp4->XY conversions and since I need the nhml files to handle vfr, but when not remuxing, most tools handle mp4 files better than raw streams I was wondering if it is necessary to extract the videotrack to get the nhml file. :P
Dogway
5th February 2011, 05:34
I have an avi file with 2 audio streams and I want to demux the secondary audio so I do:
mp4box -aviraw audio2 "source"
is this correct?
EDIT: nevermind solved it with virtualdub
coroner2
7th February 2011, 16:13
Hi. I contacted the bug tracker:
https://sourceforge.net/tracker/?func=detail&aid=3164751&group_id=84101&atid=571738
I understand - this is not a bug, but if possible I would like to return to the issue.
I compiled a new version from SVN:
MP4Box.exe -version
MP4Box - GPAC version 0.4.6-DEV (internal rev. 8)
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
(c) ENST 2005-200X
GPAC Configuration: (static configuration file)
Features: GPAC_HAS_SPIDERMONKEY GPAC_HAS_JPEG GPAC_HAS_PNG
now there were additional message while concatenating:
MP4Box.exe -force-cat -cat 1.mp4 -cat 2.mp4 -cat 3.mp4 -new a.mp4
Appending file 1.mp4
No suitable destination track found - creating new one (type soun)
No suitable destination track found - creating new one (type vide)
Appending file 2.mp4
WARNING: Concatenating track ID 2 even though sample descriptions do not match
Appending file 3.mp4
Saving a.mp4: 0.500 secs Interleaving
MediaInfo shows 6 seconds of video/audio and only one video track, everything looks good, but unfortunately VLC is behaving exactly as well - video stops after two seconds of playback.
BR, Igor
phibertron
25th March 2011, 23:42
@Kurtnoise
or anyone who can help with this
In itunes and apple devices, when there are multiple tracks
It will display each track as <language> ( <Type Track #> )
For ex: English ( Audio Track 1 )
If the trak.udta.name atom or userDataName
is populated it will use that in place of <Type Track #>
For ex: English ( Dolby Surround )
Itunes and apple devices are not reading the trak.hdlr.name or handlerName
that I can use with name= for a track
How I currently deal with it is I use mp4box like this
mp4box
-add Video..h264:lang=en:name="AVC Video"
-add Audio_track2.aac:lang=en:group=1:name="Mono"
-add Audio_track3.aac:lang=en:group=1:disable:name="Stereo"
-add Audio_track4.aac:lang=en:group=1:disable:name="Dolby Surround"
-add Audio_track5.aac:lang=en:group=1:disable:name="Dolby Pro Logic"
-add Audio_track6.ac3:lang=en:group=1:disable:name="AC3"
output.mp4
I use the mp4track.exe to check to see what is there
mp4track "output.mp4" --list
track[1] id=2
type = audio
enabled = true
inMovie = false
inPreview = false
layer = 0
alternateGroup = 1
volume = 1.0000
width = 0.00000000
height = 0.00000000
language = English
handlerName = Mono
userDataName = <absent>
I then add the userDataName string with mp4track.exe
mp4track "output.mp4" --track-id 2 --udtaname "Mono"
I use the mp4track.exe to check to see that it is there
mp4track "output.mp4" --list
track[1] id=2
type = audio
enabled = true
inMovie = false
inPreview = false
layer = 0
alternateGroup = 1
volume = 1.0000
width = 0.00000000
height = 0.00000000
language = English
handlerName = Mono
userDataName = Mono
Is it possible to add the userDataName string to a track with mp4box ?
I was hoping I could do it with -add-arg
If it is not possible, sure I'll keep using mp4track
But would it be possible to add this feature to mp4box?
SeeMoreDigital
26th March 2011, 10:49
Hi phibertron,
Just so as you know... This thread is not for discussing bug reports or muxing issues with MP4box
phibertron
26th March 2011, 14:47
Ah I see, i'll make it post in the forum, thanks
Hi guys!
Simple question. I've noticed that I can easily set language and title names for tracks which I chose to mux into an .MP4 using GPAC MP4Box.
Eg.
mp4box -add video.mp4:name=MyVideo -add audio.aac:lang=eng:name=AnAudioTrack -new output.mp4
However, say I want to set a title name for the entire "mux", i.e. what is shown at the container section of MediaInfo output. Is there any way (that I don't know of) so I can set this with MP4Box? Right now I have a work-around by simply running the file through the good ol' ffmpeg.
Eg.
ffmpeg -i output.mp4 -vcodec copy -acodec copy -metadata title="My cool project with audio and video" output2.mp4
However, this "extra step" feels really silly and stupid if there is actually a way of doing it right through MP4Box. Therefor, I ask you guys, do you, by any chance, know of any?
Regards~
:thanks:
b66pak
7th April 2011, 20:12
you can't...use mp3tag (http://www.mp3tag.de/en/)...
SeeMoreDigital
7th April 2011, 20:16
Once again... This thread is not for discussing bug reports, muxing issues or Q&A's with MP4box!
Oleg Rode
25th May 2011, 14:18
GPAC developers don't read this thread...better use the SF website. It's freely available and doesn't require registration.
So MP4BOX is a part of GPAC project, isn't it? Is it okay to ask at SF about new features for MP4BOX?
Just wanted to ask about 3D video support in mp4box.
Kurtnoise
25th May 2011, 14:21
by 3D video, you mean MVC ?
Oleg Rode
10th June 2011, 12:27
by 3D video, you mean MVC ?
No, take a look at this file.
http://www.mediafire.com/file/odt7tw9j1xsh3yw/OA3DDEMO.MP4
The video goes at a 2 x 29.97 = 59.940 fps. CODEC is AVC, yes?
At least all Sony 3D HW players (PS3, BRAVIA TV) recognize 3D content in it.
Looks like this file has a special "3D content" flag in a header. I tried to demux streams and make a new mp4 file with a same framerate, but 3D HW player doesn't recognize 3D content in it.
jamesN
14th June 2011, 16:01
Hey everybody. . .
By default, mp4box adds date fields to every stream in the muxed file.
I read the documentation many times, but i can not find a switch to stop adding these dates, currently i have to run ffmpeg on the file to remove those dates, so could you please add a switch to stop adding those dates to the file?
Hello!
It is possible to manipulate (mux/demux) with MVC stream inside mp4 from JVC TD1 stereoscopic camcorder, or convert m2ts from Sony TD10 to mp4 by using mp4box ? Thanks!
SeeMoreDigital
21st July 2011, 08:59
Once again... This thread is not for discussing bug reports, muxing issues or Q&A's with MP4box!The same!
jfcarbel
6th December 2012, 09:46
for who wants to know "-chap" switch add chapters in NERO style ONLY...the new ":chap" switch add chapters in APPLE style ONLY...
the APPLE style chapters are assigned to the first audio/video track...chapters are working fine with QT, iTunes and VLC but haali media splitter (1.7.401.3) displays them as subtiles!!!
Have not purchased myself a tablet yet but looking to get one for holidays. Will these Apple chapters style work on the default video players on iPads and Android tablets?
Selur
8th January 2013, 23:53
normally I use:
MP4Box -par 1=1 -add "x264Video.264"#video:fps=23.976 -ipod -new "test.m4v"
to multiplex H.264 raw stream in an iTunes compatible way into a mp4 container. (works fine)
now I got a MPEG-4 ASP video (only) stream and if I use:
MP4Box -par 1=1 -add "xvidVideo.avi"#video:fps=23.976 -ipod -new "test.m4v"
the video is not shown in Quicktime&Co.
If I use:
ffmpeg -i xvidVideo.avi -c:v copy "test.mp4" the file plays fine.
-> is there a way to remux MPEG-4 ASP with mp4box in a way that iTunes&co support it?
Cu Selur
LoRd_MuldeR
9th January 2013, 00:40
Did you use "MP4Box.exe -diso filename.mp4" to check what makes the files different?
Selur
9th January 2013, 00:50
Nope,... problem is I'm unsure what to look for :/
muxed with ffmpeg: http://pastebin.com/58i9PKeu
muxed with mp4box: http://pastebin.com/dZmjTNXE
-> any help is appreciated :)
LoRd_MuldeR
9th January 2013, 01:00
Well, there's a quite obvious difference right at the beginning, in the "ftyp" atom:
<FileTypeBox MajorBrand="isom" MinorVersion="512">
<BoxInfo Size="28" Type="ftyp"/>
<BrandEntry AlternateBrand="isom"/>
<BrandEntry AlternateBrand="iso2"/>
<BrandEntry AlternateBrand="mp41"/>
</FileTypeBox><FileTypeBox MajorBrand="M4V " MinorVersion="1">
<BoxInfo Size="28" Type="ftyp"/>
<BrandEntry AlternateBrand="isom"/>
<BrandEntry AlternateBrand="M4V "/>
<BrandEntry AlternateBrand="mp42"/>
</FileTypeBox>
Selur
9th January 2013, 01:03
there are so many differences,... that it's hard to know what's important, so I thought some one here probably would have used mp4box to remux Xvid content for iTunes&Co and could say something more.
-> will look further into it tomorrow. (need some sleep now :))
LoRd_MuldeR
9th January 2013, 01:05
Well, I'd say a difference in the "ftyp" atom, which is an "file type" identifier for ISO Media (MP4) files, is a good candidate for compatibility issues.
Interestingly it seems to make a difference whether you let MP4Box save the output file with a .MP4 or .M4V extension :eek:
Also note the following related MP4Box options:
-brand ABCD[:v]
Sets the major brand of a file. Brands are used to identify the most common usage of a file (MPEG-4 presentation, 3GP movie, etc…). If ‘v’ is set, also sets the version of the brand (default version is 0).
-ab ABCD
adds an alternate brand to the file. Alternate Brands are used to identify the other possible usage of a file (whether the 3GP file compliant with MPEG-4, etc…)
Selur
9th January 2013, 09:26
Normally iTunes&Co files need the .m4v extension otherwise chapters&co are not identified properly,..
Selur
9th January 2013, 10:10
found the problem:
MP4Box -par 1=1 -add "xvidVideo.avi"#video:fps=23.976 -ipod -new "test.m4v"
needs to be:
MP4Box -par 1=1:1 -add "xvidVideo.avi"#video:fps=23.976 -ipod -new "test.m4v"
DOH,...
Mattlb0619
9th January 2013, 13:02
i cant believe ive not seen this thread before.... listening.
Matt Bodin
RBO
9th January 2013, 15:30
Hey guys,
I'm a GPAC maintainer. I came here by chance.
@Selur: the parsing now emits an error to avoid this non-obvious issue: http://sourceforge.net/apps/trac/gpac/changeset/4277/
Please post on our forums or tracker when you see errors.
Thanks,
Romain
Jamaika
5th August 2015, 17:18
How to enter commands globaltags in MP4Box 0.5.2-DEV-rev529?
I can't use itags because I can't use the Enter and write in UTF-8. Can it do somehow with DOS?
Why don't players and MediaInfo show the metadata attachment in MP4Box?
<MetaBox>
<BoxInfo Size="166" Type="meta"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<HandlerBox Type="mdir" Name="GPAC mdir Handler" reserved1="0" reserved2="data:application/octet-string,000000000000000000000000">
<BoxInfo Size="50" Type="hdlr"/>
<FullBoxInfo Version="0" Flags="0x0"/>
</HandlerBox>
<ItemLocationBox offset_size="0" length_size="4" base_offset_size="4">
<BoxInfo Size="30" Type="iloc"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<ItemLocationEntry item_ID="1" data_reference_index="0" base_offset="806422" />
<ItemExtentEntry extent_offset="0" extent_length="446082" />
</ItemLocationBox>
<ItemInfoBox>
<BoxInfo Size="74" Type="iinf"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<ItemInfoEntryBox item_ID="1" item_protection_index="0" item_name="photo1.jpg" content_type="image/jpeg" content_encoding="">
<BoxInfo Size="60" Type="infe"/>
<FullBoxInfo Version="0" Flags="0x0"/>
</ItemInfoEntryBox>
</ItemInfoBox>
<ItemInfoBox>
<BoxInfo Size="74" Type="iinf"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<ItemInfoEntryBox item_ID="2" item_protection_index="0" item_name="photo2.jpg" content_type="image/jpeg" content_encoding="">
<BoxInfo Size="60" Type="infe"/>
<FullBoxInfo Version="0" Flags="0x0"/>
</ItemInfoEntryBox>
</ItemInfoBox>
<ItemInfoBox>
<BoxInfo Size="74" Type="iinf"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<ItemInfoEntryBox item_ID="3" item_protection_index="0" item_name="photo3.jpg" content_type="image/jpeg" content_encoding="">
<BoxInfo Size="60" Type="infe"/>
<FullBoxInfo Version="0" Flags="0x0"/>
</ItemInfoEntryBox>
</ItemInfoBox>
</MetaBox>
SeeMoreDigital
5th August 2015, 21:47
Why don't players and MediaInfo show the metadata attachment in MP4Box?
Which 'meta-data' tags do you want to see?
Jamaika
6th August 2015, 06:50
Format : MPEG-4
Format profile : Base Media
Codec ID : iso4
File size : 556 MiB
Duration : 16mn 31s
Overall bit rate mode : Variable
Overall bit rate : 4 703 Kbps
Movie name : Sunflowers field
Performer : Jamaika
Attachements : photo1.jpg / photo2.jpg /photo3.jpg / font.otf
Encoded date : UTC 2015-08-06 05:15:12
Tagged date : UTC 2015-08-06 05:15:12
Cover : Yes
Comment : Bike trail
Photo of the Matroska container
http://i58.tinypic.com/10wislx.jpg
Kurtnoise
6th August 2015, 09:33
I can't use itags because I can't use the Enter and write in UTF-8. Can it do somehow with DOS?
did you try to switch to Lucida Console font first and then chcp 65001 in the command prompt ?
Jamaika
6th August 2015, 11:33
It doesn't help command @chcp 65001. The file *.bat is saved in ANSI.
Active code page: 65001
...
iTunes Info:
Comment: Krajobraz w?woz?w i zach?d s?o?ca
1 UDTA types: meta (1)
When we want to obtain information about the MP4 container with the proper save itunes texts UTF-8 then function DOS chcp 65001 as the most useful.
iTunes Info:
Comment: Krajobraz wąwozów i zachód słońca
1 UDTA types: meta (1)
My ideas on the use of covers.
The registers to display the cover icons JPEG, PNG in File Explorer Windows 10. The cover don't open by Windows Photo.
HKCR\.mp4,"Content Type",,"video/mp4"
HKCR\.mp4,"PerceivedType",,"video"
HKCR\.mp4\ShellEX\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1},,,{9DBD2C50-62AD-11D0-B806-00C04FD706EC}
HKCR\.mp4\ShellEX\{e357fccd-a995-4576-b01f-234630154e96},,,{9DBD2C50-62AD-11D0-B806-00C04FD706EC}
HKCR\MIME\Database\Content Type\video/mp4,"AutoplayContentTypeHandler",,"PicturesContentHandler"
HKCR\MIME\Database\Content Type\video/mp4,"CLSID",,"{cd3afa99-b84f-48f0-9393-7edc34128127}"
Reboot Windows
SeeMoreDigital
6th August 2015, 15:06
Have you considered creating 'named' chapters for each image?
Jamaika
6th August 2015, 16:07
Description chapters was before.
http://forum.doom9.org/showthread.php?t=94874&page=22
I need command for mp4box which extracts chapters. I haven't found nothing interesting under -h extract :(
This is a hidden function.
mp4box.exe -dump-chap-ogg input.mp4 -out chapter.txt
RBO
19th August 2015, 13:22
I have added the missing doc to the option: https://github.com/gpac/gpac/commit/678014c5b35925b0304b584e5090725a99cf3ecd
Thanks, Romain
Jamaika
20th August 2015, 11:29
I miss still a function to copy metadata. It has already been repeatedly reported and probably not achievable in MP4Box.
MP4Box.exe -new -info -add "(video+audio).mp4:????(copy itunes)" -add "subtitle.ttxt/srt" "output.mp4"
I wonder also why any cover (webp, bpg, jpeg2000, others) and the name cover we can't use attachment(add-item) in the function itunes. For me it is an unnecessary duplication of functions "cover" and "set-meta/add-item". :(
Edit:
How to transfer metadata information to the newly created MP4 file? :idea: As we know, no such function "copy UDTA types: meta (1) chpl (1)" and could be a problem because the metadata information using -add functions are cleared.
Use a trick if you want to enter additional subtitles, chapter or cover.
mp4box.exe -add "subtitle.srt" -add "chapter.txt" -itags cover = "*. jpg,*. png" output{metadata}.mp4
Note:!: output{metadata}.mp4 file metadata is overwritten by newly added function. If muxer something wrong to do it the original file isn't recoverable.
Kurtnoise
20th August 2015, 13:11
- Use m4v or m4a as output extension in order to activate Apple devices support.
- only jpg and png are supported as well for Apple devices. See MP4Box -tag-list switch...
Jamaika
20th August 2015, 14:25
- Use m4v or m4a as output extension in order to activate Apple devices support.
Theoretically, yes. Unfortunately, everyone knows that Apple fought with MP4 and Apple implemented container MOV for all video codecs. So the struggle the worlds with Microsoft continues today.
MP4Box doesn't support MOV.
- only jpg and png are supported as well for Apple devices. See MP4Box -tag-list switch...
It is known for years with documentation help. Only apparently we have a world of new codecs photo HEVC/VPX. Hence my whining.
filler56789
20th August 2015, 14:50
http://sourceforge.net/p/gpac/discussion/287546/thread/43881fa9/
Very interesting, there was no "lack of time" for adding HEVC support to MP4Box...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.