Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFMPEG video streaming error

    2 octobre 2013, par Vigo

    I have downloaded FFMPEG static builds for carrying out audio/video streaming on a LAN. A webcam captures the video and this has to be streamed. I use the following command to know the name of the video device connected.

    ffmpeg -list_devices true -f dshow -i dummy  
    

    The webcam connected is "USB Video Device".
    Next i use the following command to transmit the video.

    ffmpeg -f dshow -i video="USB Video Device" -vcodec libx264 -tune zerolatency -b 900k -f rtp rtp://10.1.0.102:1234  
    

    But it throws me the error "Could not run filter. video=USB Video Device: Input/output error" as shown below.

    enter image description here

    Please let me know what is the issue here.

  • ffmpeg need some quality advices

    2 octobre 2013, par xakepp35

    help! current dir: contains files in .bmp formt! I need to get *.avi at 4fps from frames i have alredy got in current forlder

    D:\WORK\MyFrames>"C:\Users\Den\Downloads\ffmpeg-latest-win32-static\ffmpeg-201 30928-git-c461265-win32-static\bin\ffmpeg.exe" -i d:\WORK\MyFrames\IMG_%4d.bmp
     -r 4 -vcodec h264 -y out.avi
    ffmpeg version N-56715-gc461265 Copyright (c) 2000-2013 the FFmpeg developers built on Sep 28 2013 18:02:00 with gcc 4.8.1 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
    e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
    ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
    ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
    eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
    cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
    ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
    libavutil      52. 46.100 / 52. 46.100
    libavcodec     55. 33.101 / 55. 33.101
    libavformat    55. 18.104 / 55. 18.104
    libavdevice    55.  3.100 / 55.  3.100
    libavfilter     3. 88.100 /  3. 88.100
    libswscale      2.  5.100 /  2.  5.100
    libswresample   0. 17.103 /  0. 17.103
    libpostproc    52.  3.100 / 52.  3.100
    [image2 @ 022cfa60] Could find no file with path 'd:\WORK\MyFrames\IMG_%4d.bmp
    ' and index in the range 0-4
    d:\WORK\Serega28-3\IMG_%4d.bmp: No such file or directory
    
  • convert avi to 3gp with ffmpeg

    2 octobre 2013, par jeet

    I'm trying to convert avi to 3gp, and reduce the size of frames from 800x600 to a smaller size, suitable for mobiles. What size should I use and where to set it in this command below? Please give me the new command.

    ffmpeg -i input.avi -vcodec libx264 -s qvga -b 6438912 -r 16 -acodec libvo_aacenc -ab 393216 -ar 32000 -ac 1 -y output.3gp
    

    Thanks

  • php+ffmpeg add logo to video having error

    2 octobre 2013, par Patel Vilay

    I create code for add logo to video using ffmpeg.

    ffmpeg -i 1.mp4 -i a.jpg -filter_complex "overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2" outputvideo.mp4
    

    When I use this code in windows dos there is no problem and logo is added, but it give me an error when I use this with PHP.

    PHP:

    <?php
        echo "Starting ffmpeg...\n\n";
        echo shell_exec("ffmpeg -i 1.mp4 -i a.jpg -filter_complex "overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2" outputvideo.mp4");
        echo "Done.\n";
    ?>
    

    Error:

    Parse error: syntax error, unexpected 'overlay' (T_STRING) in C:\xampp\htdocs\tts\2.php on line 3
    

    How to solve this?

    Please help me.

  • OpenCV won't open some videos of many videos of the same format

    2 octobre 2013, par OpenMinded

    I am using Visual Studio 2012 with OpenCV 2.4.6.

    I have 4 videos that I recorded one by one with my Nokia Lumia 920. OpenCV won't open .mp4 format from my phone by the default. So I converted all these 4 videos using Sony Vegas to .mp4 with the SAME preferences for all of them. Now the problem is that OpenCV has a problem to open two of them. The other two works like a charm with no problem. Below is the information about codec that I used (Yes, it is the same for all videos):

    Codec info

    And this is the error:

    Error

    Why is it so that they are the same type but only a few of them are loaded properly?