[x264-devel] [h264 @ 0x****] AVC: nal size (big) no frame!

Pierre pepe.miga at gmail.com
Thu Apr 21 18:12:04 CEST 2011


Hi,
I am encoding video using x264 api and put it in .mp4 container.
I manage to read it fine on vlc only if i specify -demux=h264, otherwise i
have grey video with a lots of :

[h264 @ 0x****]  AVC: nal size (big number)
[h264 @ 0x****]  no frame!
[h264 @ 0x****]  AVC: nal size (big number)
[h264 @ 0x****]  no frame!
[h264 @ 0x****]  AVC: nal size (big number)
[h264 @ 0x****]  no frame!
.....

I have same result when i use my own ffmpeg-based player.

Here is the way i am encoding:


    x264_param_default(&t);
    x264_param_default_preset(&t,"ultrafast","fastdecode");
    x264_param_apply_profile(&t,"baseline");

    t.b_repeat_headers = 1;
    t.b_annexb = 1;
    t.b_aud =1;
    t.i_width =_width;
    t.i_height =_height;
    t.i_fps_num= 1;
    t.i_fps_den= 12;
    t.i_timebase_den = 12;
    t.i_timebase_num = 1;
    t.i_bframe = 0;
    t.i_frame_reference = 1;
    t.i_keyint_min = 12;
    t.i_keyint_max = 13;

    h = x264_encoder_open(&t);
    x264_encoder_parameters( h, &t );
    int size = x264_encoder_headers( h, &headers, &nal_count );
    output.set_param(p_handle,&t);
    output.write_headers(p_handle,headers);

then encode, write and close ....

Does anyone have an idea of what iam missing to be able to decode a video
without forcing the demuxer.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20110421/09249af8/attachment.html>


More information about the x264-devel mailing list