Newest 'x264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFmpeg cannot recognize a preset even though it does exist Ubuntu 12.04

    6 septembre 2017, par Ahmad Tahboub

    I have installed ffmpeg and x264 folloowing the steps in this documentation :http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide

    Now I have this line to execute :

    sudo /usr/bin/ffmpeg -i input_file.flv -f flv -vcodec libx264 -vpre normal -r 25 -s 0x0 -aspect 1.7777777777778 -padcolor 000000 -padtop 0 -padbottom 0 -padleft 0 -padright 0 -acodec libfaac -ab 128000 -ar 22050 output_file.flv
    
    Input #0, flv, from 'WIN! Jwow.flv':
      Metadata:
        starttime       : 0
        totalduration   : 101
        totaldatarate   : 865
        bytelength      : 10897460
        canseekontime   : true
        sourcedata      : BD58B2E43HH1338284027987695
        purl            : 
        pmsg            : 
      Duration: 00:01:40.66, start: 0.000000, bitrate: 877 kb/s
        Stream #0.0: Video: h264 (Main), yuv420p, 640x360, 745 kb/s, 29.97 tbr, 1k tbn, 59.94 tbc
        Stream #0.1: Audio: aac, 44100 Hz, stereo, s16, 131 kb/s
    **File for preset 'normal' not found**
    

    I have the presets in the the following directories:

    /usr/share/ffmpeg
    /usr/local/share/ffmpeg
    /home/user/.ffmpeg
    /usr/local/src/ffmpeg/presets
    

    And still getting the same error: File for preset 'normal' not found

    What is the problem here?

    Extra info - this is what i get when i do ffmpeg -version

    ffmpeg version git-2012-05-31-60de761
    built on May 31 2012 15:54:11 with gcc 4.6.3
    configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
    
  • Malloc Check Failed when opening video stream

    30 août 2017, par donturner

    I'm writing a BlackBerry 10 application which decodes an H264 video stream (from a Parrot AR Drone) using ffmpeg and libx264. These libraries have both been compiled for BlackBerry QNX.

    Here's my code:

    av_register_all();
    avcodec_register_all();
    avformat_network_init();
    
    printf("AV setup complete\n");
    
    const char* drone_addr = "http://192.168.1.1:5555";
    AVFormatContext* pFormatCtx = NULL;
    AVInputFormat* pInputFormat = av_find_input_format("H264");
    
    printf("Opening video feed from drone\n");
    
    //THIS LINE FAILS 
    int result = avformat_open_input(&pFormatCtx, drone_addr, pInputFormat, NULL); 
    

    The last line fails with the error:

    Malloc Check Failed: :../../dlist.c:1168
    

    How can I fix this error or debug it further?

    Update: The error only occurs when I supply pInputFormat to avformat_open_input. If I supply NULL I don't get an error. But for my app I must supply this parameter since it is not possible for ffmpeg to determine the video format from the feed alone.

  • installing x264 0.120 for redhat el7

    16 août 2017, par Mohammad Alkhaldi

    im trying to install x264 for redhat el7

    i cloned it from github then compiled it and installed

    this is the clone link:http://git.videolan.org/git/x264.git

    when i run x264 --version it gives me this output

    x264 0.148.x built on Aug 16 2017, gcc: 4.8.5 20150623 (Red Hat 4.8.5-11) x264 configuration: --bit-depth=8 --chroma-format=all libx264 configuration: --bit-depth=8 --chroma-format=all x264 license: GPL version 2 or later

    i need x264 0.120 for installing x264-plugins-ugly

    Thank you in advance.

  • Cannot find yasm even though I have installed it

    20 juillet 2017, par zhen lee

    I got a strange problem. I tried to install x264. When run sudo ./configure --enable-shared, it gave:

    Found no assembler Minimum version is yasm-0.7.0 If you really want to compile without asm, configure with --disable-asm.

    But I already installed yasm-0.7.0 ,to prove that ,i run yasm --version,it gave:

    *yasm 0.7.0.2066 Compiled on May 8 2012. Copyright (c) 2001-2008 Peter Johnson and other Yasm developers. Run yasm --license for licensing overview and summary.*

    I install yasm to /usr/local/yasm, Why can it not find yasm?

  • Is it possible to use libx264 to convert H264 raw data to a image(PNG/JPEG) without ffmpeg ?

    1er juillet 2017, par hipitt

    I received some video data via RTP / RTSP / SIP, the data is encoded by H264 and sent by a IP camera. I would like to convert H264 keyframe data into a picture and analyze whether it contains faces. I do not want to use FFMPEG such a huge library, just use libx264 and opencv can do it? How?

    Thanks.