Hi,<br>I am encoding video using x264 api and put it in .mp4 container.<br>I manage to read it fine on vlc only if i specify -demux=h264, otherwise i have grey video with a lots of :<br><br>[h264 @ 0x****] AVC: nal size (big number) <br>
[h264 @ 0x****] no frame! <br>[h264 @ 0x****] AVC: nal size (big number) <br>
[h264 @ 0x****] no frame! <br>[h264 @ 0x****] AVC: nal size (big number) <br>
[h264 @ 0x****] no frame! <br>.....<br><br>I have same result when i use my own ffmpeg-based player.<br><br>Here is the way i am encoding:<br><br><br> x264_param_default(&t);<br> x264_param_default_preset(&t,"ultrafast","fastdecode");<br>
x264_param_apply_profile(&t,"baseline");<br><br> t.b_repeat_headers = 1;<br> t.b_annexb = 1;<br> t.b_aud =1;<br> t.i_width =_width;<br> t.i_height =_height;<br> t.i_fps_num= 1;<br> t.i_fps_den= 12;<br>
t.i_timebase_den = 12;<br> t.i_timebase_num = 1;<br> t.i_bframe = 0;<br> t.i_frame_reference = 1;<br> t.i_keyint_min = 12;<br> t.i_keyint_max = 13;<br><br> h = x264_encoder_open(&t);<br> x264_encoder_parameters( h, &t );<br>
int size = x264_encoder_headers( h, &headers, &nal_count );<br> output.set_param(p_handle,&t);<br> output.write_headers(p_handle,headers);<br><br>then encode, write and close ....<br><br>Does anyone have an idea of what iam missing to be able to decode a video without forcing the demuxer.<br>
<br>Thanks!<br>