Newest 'x264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • x264 exec command to encode video with PHP [closed]

    21 février 2012, par matt

    does anybody know why the below command outputs an mp4 file with the video being only noise? I just can't figure it out :(

    exec("x264 --output video.mp4 inputVid.wmv 320x240");
    
  • Use opencv to encode into flv, playable by flash player

    13 février 2012, par Hemang Shah

    I've compiled ffmpeg with libx264 using configure options given at 1.

    This results in the following codecs being available in ffmpeg:

    $ ffmpeg -codecs | grep "264\|flv"
    ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
    built on Feb 10 2012 13:54:15 with gcc 4.6.1
    configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
    libavutil      51. 34.101 / 51. 34.101
    libavcodec     53. 60.100 / 53. 60.100
    libavformat    53. 31.100 / 53. 31.100
    libavdevice    53.  4.100 / 53.  4.100
    libavfilter     2. 60.100 /  2. 60.100
    libswscale      2.  1.100 /  2.  1.100
    libswresample   0.  6.100 /  0.  6.100
    libpostproc    52.  0.100 / 52.  0.100
    DEVSD  flv             Flash Video (FLV) / Sorenson Spark / Sorenson H.263
    D V D  h264            H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    D V D  h264_vdpau      H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
    EV    libx264         libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    EV    libx264rgb      libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB
    

    After this, I compiled opencv. Here is partial cmake result:

    --   Video I/O:
    --     DC1394 1.x:                 NO
    --     DC1394 2.x:                 NO
    --     FFMPEG:                     YES
    --       codec:                    YES
    --       format:                   YES
    --       util:                     YES
    --       swscale:                  YES
    --       gentoo-style:             YES
    --     GStreamer:                  YES
    --     UniCap:                     NO
    --     PvAPI:                      NO
    --     V4L/V4L2:                   /1
    --     Xine:                       NO
    

    Now, using opencv's VideoWriter, I tried to encode into flv with the following FOURCC codes:
    FLV1, X264

    While the FLV1 results in a video file not playable by flash player, but playabe by vlc; X264 produces no results at all.
    Here is the console output for X264, resulting in a 0 byte file.

    Output #0, flv, to 'd.flv': Stream #0.0: Video: [0][0][0][0] / 0x0000, yuv420p, 320x240, q=2-31, 4915 kb/s, 90k tbn, 24 tbc

    Do you see anything amiss or incorrect?
    thanks,

  • BGRA to AVFrame(ffmpeg) and viceversa ? for IOS

    8 février 2012, par Asta ni enohpi

    Am working Video Processing in IOS(iphone/ipod/ipad) Using Objective c. i am using AVFoundation Framework to Capture Video . i want to Encode/decode those video frame using ffmpeg-libx264. i have compiled ffmpeg-x264 lib for ios. i got kCVPixelFormatType_32BGRA from AVFoundation.

    my problem is
    1.How to convert kCVPixelFormatType_32BGRA to AVFrame for enode using avcodec_encode_video?

    2.How to convert AVFrame to kCVPixelFormatType_32BGRA @ decode side from avcodec_decode_video2?

    Please help me to start above process or give path for working tutorial .Thanks in advance.

  • 32BGRA to AVFrame(ffmpeg) and viceversa ? for IOS

    8 février 2012, par Asta ni enohpi

    Am working Video Processing in IOS(iphone/ipod/ipad) Using Objective c. i am using AVFoundation Framework to Capture Video . i want to Encode/decode those video frame using ffmpeg-libx264. i have compiled ffmpeg-x264 lib for ios. i got kCVPixelFormatType_32BGRA from AVFoundation.

    my problem is
    1.How to convert kCVPixelFormatType_32BGRA to AVFrame for enode using avcodec_encode_video?

    2.How to convert AVFrame to kCVPixelFormatType_32BGRA @ decode side from avcodec_decode_video2?

    Please help me to start above process or give path for working tutorial .Thanks in advance.

  • Facebook video upload [closed]

    2 février 2012, par Ahmet Kapıkıran

    I can't add subtitle to an avi file with mencoder. The length of avi videos are about 100 minutes. I split the videos to 19 minutes parts with ffmpeg and x264 codec and then I upload the video to user's facebook account with my facebook application. So, facebook starts to encode the video but after a period of time the video suddenly is removed by facebook. What is the problem. Is there a time period limit to send video to facebook profile or is my problem about codecs?