Newest 'x264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • In x264 encoder where to find quantized residuals

    28 juillet 2016, par dasy

    I'm new to x264 video encoding, so my question is simple, I would like to know where are stored the quantized residuals (a variable or a function). As a note, I'm using the latest x264 snapshot(x264-snapshot-20160727-2245). Thanks

  • FFmpeg. avcodec_find_encoder(AV_CODEC_ID_H264) return false

    14 juillet 2016, par Иван Чванов

    The problem: I can not connect the h264 codec for encoding and decoding of frames.


    Description:

    I downloaded from here ffmpeg library https://ffmpeg.zeranoe.com/builds/, version dev.

    Connect it to your project QT:

    extern "C"
    {
        #include 
        #include 
        #include 
        #include 
        #include 
    }
        
    #pragma comment (lib, "avcodec.lib")
    #pragma comment (lib, "avformat.lib")
    #pragma comment (lib, "swscale.lib")
    #pragma comment (lib, "avutil.lib")
    

    Next prescribe av_register_all(); to include all codecs.

    Next, call the function: avcodec_find_encoder(AV_CODEC_ID_H264), returns false.

    In the ReadMe file, the library said that it was collected with --enable-libx264 and --enable-gpl compile the keys including h264 codec that is supposed to be.

    If the call: avcodec_find_encoder(AV_CODEC_ID_MPEG1VIDEO), it returns an object AVCodec, as it should.

    I use the MinGW compiler. OC Windows 7.

    How can I resolve or work around the problem? Compile the library itself has not yet obtained. I understand you to connect sources and "poking" them, that too is meaningless.


    ** Once again, I will describe my problem: **

    I need to encode the codec h264 (can VP9) individual frames in one program, and then decode them in another program. You can use other libraries. The language C ++. It is necessary to use interframe compression codec, rather than simply pressed apart frames.

    Sorry for my english.

    Ideas. Advice. Suggestions.

  • libav :0: : cabac decode of qscale diff failed at 4 26 ? While UDP Streaming in Gstreamer

    28 juin 2016, par Prasanth Kumar Arisetti

    I would like to stream the webcam data over UDP in mpegts format.

    At Sending End::

    gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! video/x-raw,width=720,height=576,framerate=25/1,format=I420 ! videoparse width=720 height=576 framerate=25/1 ! x264enc bitrate=2048 ref=4 key-int-max=20 byte-stream=true tune=zerolatency speed-preset=3 sliced-threads=true threads=4  ! video/x-h264,stream-format=byte-stream,profile=main ! queue ! mpegtsmux ! rtpmp2tpay ! udpsink host=192.168.2.149 port=8888 sync=true async=false qos=true qos-dscp=46
    

    At Receiving End::

    GST_DEBUG=4 gst-launch-1.0 -v udpsrc port=8888 caps=application/x-rtp,media=video,encoding-name=MP2T buffer-size=524288 ! rtpmp2tdepay ! tsdemux name=demuxer  demuxer. !  queue max-size-buffers=0 max-size-time=0 ! h264parse ! avdec_h264 ! videoconvert ! xvimagesink qos=true sync=true async=false 
    

    For few seconds, video is coming good, but after that it is getting disturbed, and not at all coming, struck at single frame.

    And when i used GST_DEBUG=4, i observed below error:

    0:00.000000000, position 0:00:10.397114020, duration 99:99:99.999999999
    0:00:10.396195300   536 0x7f1328001300 ERROR                  libav :0:: cabac decode of qscale diff failed at 4 26
    0:00:10.396212221   536 0x7f1328001300 ERROR                  libav :0:: error while decoding MB 4 26, bytestream -1
    0:00:10.396255836   536       0xe03320 INFO                   libav :0:: concealing 1215 DC, 1215 AC, 1215 MV errors
    

    But, if I stream the Data to localhost, then it is perfectly working.

    After setting cabac=false on x264enc,

    0:00.000000000, position 0:00:14.796602703, duration 99:99:99.999999999
    0:00:15.020440888 15449 0x7f69dc4fe2c0 ERROR                  libav :0:: out of range intra chroma pred mode at 18 14
    0:00:15.020464168 15449 0x7f69dc4fe2c0 ERROR                  libav :0:: error while decoding MB 18 14
    0:00:15.020694828 15449      0x2513320 INFO                   libav :0:: concealing 1215 DC, 1215 AC, 1215 MV errors
    

    What is the problem here? is this because of network bandwidth or any other else? And how to solve this problem?

  • mediaelement.js MP4-Files AVC Profile and Level

    28 juin 2016, par Luke Dollard

    Can anyone tell me if a High AVC Profile and a 5.0 level x264 mp4 @12mbps is incompatible with mediaelement.js and/or if there is documentation someplace for what is and is not compatible. (Encoded in sorenson squeeze).

    Right now the player has to download the whole 60 min video before it streams, but then you cannot jump around the video at all without it restarting.

    BUT it will play our 10 mins streams with the exact same specs fine.

    Videos play fine when downloaded.

  • Not able to Receive Exact Data over UDP

    20 juin 2016, par Prasanth Kumar Arisetti

    I am transferring the data over udp using below pipeline,

    gst-launch-1.0 videotestsrc ! videoconvert ! x264enc ! mpegtsmux ! rtpmp2tpay ! udpsink host=192.168.1.139 port=8090 
    

    And receiving the data by using below pipeline,

    gst-launch-1.0 udpsrc port=8090 ! tsdemux ! h264parse ! avdec_h264 ! videoconvert ! xvimagesink
    

    The Problem is,

    Until a moment, i am getting the data exactly, but after few seconds,

    The whole window is becoming in greem color,Green Colored Screen

    But Sometimes, getting the data correctly, but sometimes, i am getting the green screen. What is the Problem Here? And how to resolve it? And Why it is happening like that?