Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Anybody has any idea how this site works ? www.ivipid.com [closed]

    14 décembre 2011, par Aamir Siddique

    I am a website developer (php) and i have been given a task to develop a similar website:

    http://ivipid.com/

    I need to make an identical website and i am trying to figure out how this can be done.

    Any ideas would be highly appreciated, please advice.

    Thanks!

  • FFMPEG : is there a way to keep RTSP connection alive in code ?

    14 décembre 2011, par Alex

    I'm taking frames from a RTSP connection as follows (in pseudocode):

    av_open_input_file(&avcontext)
    while(av_read_frame(&frame) > 0) {
        doSomething(frame);
        av_free_packet(frame);
    }
    

    For some reason the doSomething() function takes much time and, because of this (at least, I think so) the connection interupts - av_read_frame() returns 'eof' and the loop exits.

    When I make doSomething() shorter such interruptions do not occur.

    For some reasons I can't do doSomething() in another thread.

    Therefore, I'm interested if maybe there are some parameters to avcontext which will let me keep the connection alive or increase the timeout?

    Thank you!

  • Installing faad library for ffmpeg through Homebrew on mac OS X Lion

    14 décembre 2011, par alex

    Following up with my previous question, I decided to give Ffmpeg a try and installed it on my Mac with Homebrew.

    I am now trying to follow this tutorial and use the linked script. But can't make/install the script. I first corrected a small bug (replaced CODEC_TYPE_AUDIO, CODEC_TYPE_VIDEO and PKT_FLAG_KEY with AVMEDIA_TYPE_AUDIO, AVMEDIA_TYPE_VIDEO, and AV_PKT_FLAG_KEY respectively in live_segmenter.c). But now, when I run make in the unzipped folder, I get the following warning and error messages:

    gcc -Wall -g live_segmenter.c -o live_segmenter -lavformat -lavcodec -lavutil -lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad -lpthread
    live_segmenter.c: In function ‘main’:
    live_segmenter.c:149: warning: ‘av_open_input_file’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1093)
    live_segmenter.c:165: warning: implicit declaration of function ‘guess_format’
    live_segmenter.c:165: warning: initialization makes pointer from integer without a cast
    live_segmenter.c:208: warning: ‘av_set_parameters’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1407)
    live_segmenter.c:214: warning: ‘dump_format’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1535)
    live_segmenter.c:232: warning: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
    live_segmenter.c:238: warning: ‘av_write_header’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1465)
    live_segmenter.c:283: warning: ‘put_flush_packet’ is deprecated (declared at /usr/local/include/libavformat/avio.h:293)
    live_segmenter.c:284: warning: ‘url_fclose’ is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
    live_segmenter.c:289: warning: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
    live_segmenter.c:326: warning: ‘url_fclose’ is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
    ld: library not found for -lfaad
    collect2: ld returned 1 exit status
    make: *** [all] Error 1
    

    I also downloaded the faac/faad libraries from here. When I run make in faac, it says I have nothing to install, but I can't find out how to install faad...

    Would love any help you can offer!

  • ffmpeg watermarking error : video pixel format unknown, Parser not found for codec

    13 décembre 2011, par Sunil

    I am trying to watermark my video but I am getting pixel format and codec errors.

    I am using latest version of FFmpeg git-7d531e8 64-bit Static (Latest) (2011-12-12) from link http://ffmpeg.zeranoe.com/builds/

    I am using the below code to add watermark to my video.

    ffmpeg -i inputputfile.avi -target pal-vcd "movie=abc.png [Watermark]; [in][Watermark] overlay=10:10 [out]" outputfile.avi.

    But i am receiving the error of video pixel format unknown and parser not found for codec error.

    Later, I changed by code to add codec and pixel format.

    ffmpeg -i inputputfile.avi -vcodec wmv3 -pxl_fmt yuv420p -target pal-vcd "movie=abc.png [Watermark]; [in][Watermark] overlay=10:10 [out]" outputfile.avi.

    However I am still receiving the same error. Please help.

  • Installing ffmpeg into Python 2.7

    13 décembre 2011, par suffa

    I have been trying to install pyffmpeg in Python 2.7 unsuccessfully. I found a package for Python 2.6, but I can't get it to work. So, I have been mulling around with 2.7. I've seen previous post from others on this site, but they have not helped. Does anyone have experience with this. Ultimately, I want to develop an wxPython app that converts video formats. Thanks