Newest 'libx264' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/libx264

Les articles publiés sur le site

  • ffmpeg x264 CPU core scaling

    12 mai 2017, par alex416

    Does anyone have any experence with this type of thing? Currently using a Ryzen 7 8c/16T CPU, and using a program called BES. Using 10% CPU, is almost no slower at transcoding from mkv to mp4 (both x264, i know i can just copy them) than using 100% cpu on all 16 threads. So, Since this is the case, What is the ideal core count for libx264? I mean, Does the same type of thing happen with 32 threads? Or 8 threads, etc.

  • How to decode using libx264 package ?

    6 mai 2017, par Peter

    Environment: Ubuntu 16.04, package libx264-148

    I am looking at decoding some x264-encoded data using libx264 library. I found a sample at https://code.videolan.org/solaris/x264/raw/7d35ba6bf080610d8f144f4270e961c69ba14f1c/x264.c. It is using APIs such as x264_decoder_open and x264_decoder_decode. However, when I examine /usr/include/x264.h, I see APIs only for encoding such as x264_encoder_open and x264_encoder_encode. There are no APIs for decoding. I am wondering if I am missing something. Are we supposed to use the same APIs for encoding as well as decoding? Also, pointer to any code sample will be highly appreciated. Regards.

    PS: It is a similar issue with x265.h as well.

  • How to decode using libx264 package ?

    6 mai 2017, par Peter

    Environment: Ubuntu 16.04, package libx264-148

    I am looking at decoding some x264-encoded data using libx264 library. I found a sample at https://code.videolan.org/solaris/x264/raw/7d35ba6bf080610d8f144f4270e961c69ba14f1c/x264.c. It is using APIs such as x264_decoder_open and x264_decoder_decode. However, when I examine /usr/include/x264.h, I see APIs only for encoding such as x264_encoder_open and x264_encoder_encode. There are no APIs for decoding. I am wondering if I am missing something. Are we supposed to use the same APIs for encoding as well as decoding? Also, pointer to any code sample will be highly appreciated. Regards.

    PS: It is a similar issue with x265.h as well.

  • x264 Encoding use x264_picture_clean crash

    5 mai 2017, par Wong Sam

    When I use iphone encoding CMSampleBufferRef To H264, it offen crash at x264_picture_clean I dont't know how to deal it

    enter image description here

    x264_picture_t* pPic_in; 
    

    here is my init about pPic_in

    pPic_in = (x264_picture_t*)malloc(sizeof(x264_picture_t));
    pPic_out = (x264_picture_t*)malloc(sizeof(x264_picture_t));
    
    x264_picture_init(pPic_out);
    
    x264_picture_init(pPic_in);
    x264_picture_alloc(pPic_in, csp, pParam->i_width, pParam->i_height);
    
    pPic_in->img.i_stride[0] = width;
    pPic_in->img.i_stride[1] = width / 2;
    pPic_in->img.i_stride[2] = width / 2;
    pPic_in->img.i_plane = 3;
    

    and i set data here

        picture_buf = yuv420_data;
        pPic_in->img.plane[0] = picture_buf;
        pPic_in->img.plane[1] = picture_buf + y_size;
        pPic_in->img.plane[2] = picture_buf + y_size*5/4;
    

    it looks well , when i run it on my iphone,but sometimes it will crash at

    x264_picture_clean
    

    here is more detail abuot pPic_in when crash occer enter image description here

    Thank u very much

  • x264 Encoding use x264_picture_clean crash

    5 mai 2017, par Wong Sam

    When I use iphone encoding CMSampleBufferRef To H264, it offen crash at x264_picture_clean I dont't know how to deal it

    enter image description here

    x264_picture_t* pPic_in; 
    

    here is my init about pPic_in

    pPic_in = (x264_picture_t*)malloc(sizeof(x264_picture_t));
    pPic_out = (x264_picture_t*)malloc(sizeof(x264_picture_t));
    
    x264_picture_init(pPic_out);
    
    x264_picture_init(pPic_in);
    x264_picture_alloc(pPic_in, csp, pParam->i_width, pParam->i_height);
    
    pPic_in->img.i_stride[0] = width;
    pPic_in->img.i_stride[1] = width / 2;
    pPic_in->img.i_stride[2] = width / 2;
    pPic_in->img.i_plane = 3;
    

    and i set data here

        picture_buf = yuv420_data;
        pPic_in->img.plane[0] = picture_buf;
        pPic_in->img.plane[1] = picture_buf + y_size;
        pPic_in->img.plane[2] = picture_buf + y_size*5/4;
    

    it looks well , when i run it on my iphone,but sometimes it will crash at

    x264_picture_clean
    

    here is more detail abuot pPic_in when crash occer enter image description here

    Thank u very much