View Full Version : MP4Box missing bytes
leoenc
1st November 2007, 14:49
When muxing a raw .264 stream with MP4box, and then demuxing - the raw stream is demuxed with less bytes than the original stream. Anyone knows where those missing bytes went?
Original raw .264 stream: 86,797,511
Demuxed raw with MP4Box: 86,789,042
these are the commands I use:
MP4Box.exe -add "c:\test.264:fps=25: par=16:11" "c:\test.mp4"
MP4Box.exe -raw 1 -v "c:\test.mp4"
Sharktooth
1st November 2007, 14:55
:search:
leoenc
1st November 2007, 15:17
Sorry, Sharktooth, I overlooked this thread
http://forum.doom9.org/showthread.php?t=111886&highlight=mp4box+raw+size
To quote foxyshadis:
Also, outputting headers at each keyframe makes sense if the stream was going to be muxed into .ts, where that's required although the muxer should handle it, or even used directly as a poor man's .ts. (Is that even possible?)
As I understand, this is bad if my raw .264 needs to go back to a TS, right? so is there a way to prevent MP4box from stripping those headers?
foxyshadis
2nd November 2007, 09:00
I would ask the author of tsremux if he would consider regenerating the headers. Alternately, someone familiar with AVC bitstream syntax (the ffmpeg, gpac, or mpeg4ip mailing lists might be good for that) might be willing to make a tool that can repeat headers. I know far too little about it myself.
leoenc
2nd November 2007, 13:45
Thanks but I'm getting too far away from my original need- all I want is to change the aspect ratio of a raw H.264 stream (without altering anything else).
IIRC, this is the "aspect_ratio_info" in the Video Object Layer, but I have no idea how to access this.:confused:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.