lrudor
October 3rd, 2008, 04:26 PM
First post on ubuntu forums, great os I must admit ;)
here is my issue:
I am attempting to re-encode a video with mencoder on ubuntu 8.04 (64 bit if it matters) from mkv to mp4
so I extracted the h264 and audio streams from the mkv
changed "67 64 00 33" to "67 64 00 29" using hexedit, no problems
I then re-encode the video to something smaller:
mencoder "/videos/toencode/test.h264" -o "/videos/encoded/test.temp.264" -passlogfile "/videos/encoded/test.temp.log" -vf scale=848:480 -nosound -ovc x264 -x264encopts bitrate=1200:frameref=8:bframes=3:b_adapt:b_pyrami d:weight_b:partitions=all:8x8dct:me=umh:subq=6:tre llis=2:brdo:threads=auto:pass=1:analyse=all -ofps 23.976
and
mencoder "/videos/toencode/test.h264" -o "/videos/encoded/test.temp.264" -passlogfile "/videos/encoded/test.temp.log" -vf scale=848:480 -nosound -ovc x264 -x264encopts bitrate=1200:frameref=8:bframes=3:b_adapt:b_pyrami d:weight_b:partitions=all:8x8dct:me=umh:subq=6:tre llis=2:brdo:threads=auto:pass=2:analyse=all -ofps 23.976
ok, spends about 1 hour doing that. no problem
I use encode the audio using neroAacEnc
now here is where I start getting issues:
MP4Box -fps 23.976 -add test.264 -add audio.mp4 output.mp4
mp4 box:
Cannot find H264 start code
Error: BitStream Not CompliantError importing test.264: BitStream Not Compliant
I have been looking for 2 days on how to solve this issue, but have not come across anything on how to fix this. if someone could tell me what I am doing wrong that would be great ^^. (I can play the video fine in vlc so I don't know why MP4Box hates it so much...)
Thanks for your help :D
here is my issue:
I am attempting to re-encode a video with mencoder on ubuntu 8.04 (64 bit if it matters) from mkv to mp4
so I extracted the h264 and audio streams from the mkv
changed "67 64 00 33" to "67 64 00 29" using hexedit, no problems
I then re-encode the video to something smaller:
mencoder "/videos/toencode/test.h264" -o "/videos/encoded/test.temp.264" -passlogfile "/videos/encoded/test.temp.log" -vf scale=848:480 -nosound -ovc x264 -x264encopts bitrate=1200:frameref=8:bframes=3:b_adapt:b_pyrami d:weight_b:partitions=all:8x8dct:me=umh:subq=6:tre llis=2:brdo:threads=auto:pass=1:analyse=all -ofps 23.976
and
mencoder "/videos/toencode/test.h264" -o "/videos/encoded/test.temp.264" -passlogfile "/videos/encoded/test.temp.log" -vf scale=848:480 -nosound -ovc x264 -x264encopts bitrate=1200:frameref=8:bframes=3:b_adapt:b_pyrami d:weight_b:partitions=all:8x8dct:me=umh:subq=6:tre llis=2:brdo:threads=auto:pass=2:analyse=all -ofps 23.976
ok, spends about 1 hour doing that. no problem
I use encode the audio using neroAacEnc
now here is where I start getting issues:
MP4Box -fps 23.976 -add test.264 -add audio.mp4 output.mp4
mp4 box:
Cannot find H264 start code
Error: BitStream Not CompliantError importing test.264: BitStream Not Compliant
I have been looking for 2 days on how to solve this issue, but have not come across anything on how to fix this. if someone could tell me what I am doing wrong that would be great ^^. (I can play the video fine in vlc so I don't know why MP4Box hates it so much...)
Thanks for your help :D