jamesN
14th June 2011, 09:14
Hey everybody,
every time I mux a file using mp4box, it automatically adds "encoded date" and "tagged date" fields to each stream in the file so the MediaInfo output of the muxed file would look like:
General
Complete name : G:\001.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 52.5 MiB
Duration : 22mn 52s
Overall bit rate : 321 Kbps
Encoded date : UTC 2011-06-12 19:10:50
Tagged date : UTC 2011-06-12 19:10:50
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 10 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 22mn 52s
Bit rate mode : Variable
Bit rate : 275 Kbps
Maximum bit rate : 1 717 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.036
Stream size : 45.0 MiB (86%)
Writing library : x264 core 106 r1732 b20059a
Encoding settings : cabac=1 / ref=10 / deblock=1:1:2 / analyse=0x3:0x133 / me=esa / subme=9 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=275 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:0.60
Tagged date : UTC 2011-06-12 19:10:52
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : 40
Duration : 22mn 52s
Bit rate mode : Variable
Bit rate : 42.8 Kbps
Maximum bit rate : 46.5 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Stream size : 7.00 MiB (13%)
Encoded date : UTC 2011-06-12 19:10:52
Tagged date : UTC 2011-06-12 19:10:52
to remove those date fields, I was advised to run ffmpeg on the file using a command like this:
ffmpeg -i 001.mp4 -acodec copy -vcodec copy new001.mp4
ffmpeg worked to remove the dates on that file. so, I ran a batch script to process all the .mp4 files I have in ffmpeg(over 1900 files), surprisingly the size of the resulted set was about 450MB bigger than the source set, as each file was about 0.25MB bigger than its source.
Why is the resulted file bigger than source??, is ffmpeg adding some headers to the file that are not so necessary??
In other words:
1)mp4box is adding date fields to the muxed file
2)I ran ffmpeg on the muxed file to remove the date fields, it is working but it is giving a bigger file in about 0.25MB(it is bugging me because I have over 1900 files and that will make the whole size bigger by about 450MB), seems like ffmpeg is adding some additional headers to the file.
So the question is, is there any ffmpeg switch to stop adding those headers?? or is there anyway to remove the date fields added by mp4box other than ffmpeg??
Please help.
every time I mux a file using mp4box, it automatically adds "encoded date" and "tagged date" fields to each stream in the file so the MediaInfo output of the muxed file would look like:
General
Complete name : G:\001.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 52.5 MiB
Duration : 22mn 52s
Overall bit rate : 321 Kbps
Encoded date : UTC 2011-06-12 19:10:50
Tagged date : UTC 2011-06-12 19:10:50
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 10 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 22mn 52s
Bit rate mode : Variable
Bit rate : 275 Kbps
Maximum bit rate : 1 717 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.036
Stream size : 45.0 MiB (86%)
Writing library : x264 core 106 r1732 b20059a
Encoding settings : cabac=1 / ref=10 / deblock=1:1:2 / analyse=0x3:0x133 / me=esa / subme=9 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=275 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:0.60
Tagged date : UTC 2011-06-12 19:10:52
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : 40
Duration : 22mn 52s
Bit rate mode : Variable
Bit rate : 42.8 Kbps
Maximum bit rate : 46.5 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Stream size : 7.00 MiB (13%)
Encoded date : UTC 2011-06-12 19:10:52
Tagged date : UTC 2011-06-12 19:10:52
to remove those date fields, I was advised to run ffmpeg on the file using a command like this:
ffmpeg -i 001.mp4 -acodec copy -vcodec copy new001.mp4
ffmpeg worked to remove the dates on that file. so, I ran a batch script to process all the .mp4 files I have in ffmpeg(over 1900 files), surprisingly the size of the resulted set was about 450MB bigger than the source set, as each file was about 0.25MB bigger than its source.
Why is the resulted file bigger than source??, is ffmpeg adding some headers to the file that are not so necessary??
In other words:
1)mp4box is adding date fields to the muxed file
2)I ran ffmpeg on the muxed file to remove the date fields, it is working but it is giving a bigger file in about 0.25MB(it is bugging me because I have over 1900 files and that will make the whole size bigger by about 450MB), seems like ffmpeg is adding some additional headers to the file.
So the question is, is there any ffmpeg switch to stop adding those headers?? or is there anyway to remove the date fields added by mp4box other than ffmpeg??
Please help.