Newest 'x264' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Error compiling and building DashEncoder code and how to play the .mpd file when generated [closed]

    11 avril 2013, par niuu

    I'm trying to build the DashEncoder code which I downloaded from github https://github.com/slederer/DASHEncoder. Well, I followed all the instructions given in the how to compile dash file. installed Gpac n X264 and compiled both successfully. Then did make of Dashencoder and ran it as ./Dashencoder. But I found some issues in it. Got this log :

    ==========DASH ENCODER=============== Unknown option in resourcefile : sql-pw : current encoder x264 YES x264 encoding @ 300 kbps: Pass 1 x264: x264 --profile baseline --preset slow --verbose --fps 24 --vbv-maxrate 300 --vbv-bufsize 600 --scenecut 0 --keyint 48 --output /opt/lampp/htdocs/tests_updates/sintel_trailer_2k_480p24_300kbit.h264 /home/niu/sintel_trailer_2k_480p24.y4m >out.txt 2>&1 mkdir: cannot create directory /opt/lampp/htdocs/tests_updates/sintel_300kbit': File exists cp: omitting directory/opt/lampp/htdocs/tests_updates/' copy audio: cp /opt/lampp/htdocs/tests_updates/ /opt/lampp/htdocs/tests_updates/sintel_300kbit/MP4Box multiplexing Video: /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.h264
    mp4box: MP4Box -add /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.h264 /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4 AVC-H264 import - frame size 854 x 480 at 24.000 FPS AVC Import results: 1253 samples - Slices: 27 I 1226 P 0 B - 1 SEI - 27 IDR Saving to /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4: 0.500 secs Interleaving MP4Box multiplexing Audio:/opt/lampp/htdocs/tests_updates/sintel_300kbit/ mp4box: MP4Box -add /opt/lampp/htdocs/tests_updates/sintel_300kbit/ /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4 Unknown input file type Unknown input file type Error importing /opt/lampp/htdocs/tests_updates/sintel_300kbit/: Bad Parameter MP4Box Cleaning ... mp4box: MP4Box -no-sys /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4 Saving /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4: 0.500 secs Interleaving MP4Box segmentation: /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.h264
    mp4box: MP4Box -frag 2000 -dash 2000 -rap -segment-name /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4 DASH-ing file: 2.00s segments 2.00s fragments single sidx per segment Spliting segments at GOP boundaries [DASH] Generating MPD at time 2013-03-16T16:40:03Z DASHing file /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4 terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr Error: Unable to open MPD file!Aborted Why is this error at the end? and also one folder got created in my /opt/lampp/htdocs/tests_updates/sintel_300kbit. which has two types of files : 27 files of .m4s extension 1 file -sintelinit.mp4 1 file- sintel_trailer_2k_480p24_300kbit.mp4 , which when played in vlc player played the video bt no audio! &

    1 file- sintel_trailer_2k_480p24_300kbit.h264 which cannot be opened.

    No .mpd file was created.

    Also I want to know aft creating that .mpd file how will i be able to test it on my android client say media player.

    I am damn confused with all this happening. Please help

  • Decoding realtime h264 stream using ffmpeg.Do I need to set zero-lantancy to ffmpeg.How to set it

    8 avril 2013, par penghao

    I write something like realtime video conference application. I use x264 library to encode a realtime video data, Then I put the data to another end throughout the network. I want to decode the realtime h264 stream using ffmpeg library.

    When I encode, I know a lot of thing need to set,like --rc-lookahead 0 --sync-lookahead 0. But on the another end of decoding, I don't know whether the same thing need to set. And how to set these option to the real decoder in ffmpeg.

    Thanks in advance.

  • why I can't compile x264 or ffmpeg downloaded from git [closed]

    4 avril 2013, par Monjura Rumi

    It has been just a few days that I am using x264, ffmpeg and trying to take help from codes in git. I am always having some peculiar problem. It seems like no one or few people faced such problems. Here is one of those problems. If I download x264 or ffmpeg using git then I could not compile that source code. At first terminal will show ./configure: Permission denied. Then If I change permission of configure file using chmod 755 command then it will show ./configure: /bin/bash^M: bad interpreter: No such file or directory. To build x264 and ffmpeg I have followed this link https://github.com/lince/libffmpeg-c/wiki. My attempt to compile x264 has failed. Can you please tell me how can one use source code downloaded from git?

  • Encoding h.264 with libavcodec/x264

    13 mars 2013, par szatmary

    I am attempting to encode video using libavcodec/libavformat. Audio works great, but when I try to encode video I get the following errors:

    [libx264 @ 0x10182a000]broken ffmpeg default settings detected  
    [libx264 @ 0x10182a000]use an encoding preset (vpre)  
    

    easy to fix using the command line ffmpeg, but I am trying to do this in C. my options are

    AVStream *pVideoOutStream = av_new_stream(pOutFormatCtx, 0);  
    AVCodecContext *pVideoOutCodecCtx  = pVideoOutStream->codec;  
    
    pVideoOutCodecCtx->codec_id        = CODEC_ID_H264;    
    pVideoOutCodecCtx->codec_type      = CODEC_TYPE_VIDEO;  
    pVideoOutCodecCtx->bit_rate        = pVideoInCodecCtx->bit_rate;  
    pVideoOutCodecCtx->width           = pVideoInCodecCtx->width;    
    pVideoOutCodecCtx->height          = pVideoInCodecCtx->height;  
    pVideoOutCodecCtx->pix_fmt         = pVideoInCodecCtx->pix_fmt;    
    pVideoOutCodecCtx->sample_rate     = pVideoInCodecCtx->sample_rate;    
    pVideoOutCodecCtx->gop_size        = 30;  
    

    but avcodec_open() fails.

    What other values do I need to set to make x264 happy?

  • CPU usage and memory of Gstreamer pipleline

    10 mars 2013, par Myles Megyesi

    I'm using gstreamer to capture video from a webcam, encode it with x264 and stream it using a gstrtpbin. It works great. However, it uses about 50% of all four of my cores and a lot of memory. Is there anything I can do to lower the CPU and memory usage? Here's the pipeline.

    pipeline_description = "gstrtpbin latency=0 max-latency=100 drop-on-latency=true use-pipeline-clock=true ntp-sync=true name=rtpbin " \
            "autovideosrc ! video/x-raw-yuv,width=640,height=480,framerate=30/1 ! " \
            "tee name=t_vid ! queue ! fpsdisplaysink name=fpssink text-overlay=false video-sink=xvimagesink signal-fps-measurements=true t_vid. ! " \
            "queue ! videorate ! ffmpegcolorspace ! x264enc pass=qual tune=zerolatency quantizer=40 ! queue ! rtph264pay ! rtpbin.send_rtp_sink_0 " \
            "rtpbin.send_rtp_src_0 ! udpsink port=%d host=%s sync=false async=false rtpbin.send_rtcp_src_0 ! " \
            "udpsink port=%d host=%s sync=false async=false name=vrtcpsink udpsrc port=%d ! " \
            "rtpbin.recv_rtcp_sink_0 autoaudiosrc ! queue ! audioresample ! audioconvert ! alawenc ! rtppcmapay ! rtpbin.send_rtp_sink_1 " \
            "rtpbin.send_rtp_src_1 ! udpsink port=%d host=%s sync=false async=false rtpbin.send_rtcp_src_1 ! " \
            "udpsink port=%d host=%s sync=false async=false udpsrc port=%d ! rtpbin.recv_rtcp_sink_1" % (VRTP_SEND_PORT, DEST,
            VRTCP_SEND_PORT, DEST, VRTCP_RECV_PORT, ARTP_SEND_PORT, DEST, ARTCP_SEND_PORT, DEST, ARTCP_RECV_PORT)