Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • How to play rtsp stream in android using ffmpeg

    7 octobre 2016, par msj

    I want to play rtsp stream using ffmpeg library. I was buid ffmpeg for android and also I try to save rtsp stream to file it's work fine. my command ffmpeg -i rtsp://@URL -acodec copy -vcodec copy abc.mp4

    now I want to view my ip camera live stream video using ffmpeg. Have any ideas.

    Thanks for ur time.

  • AWS lambda hitting size limitation with ffmpeg

    7 octobre 2016, par Guig

    I'm playing around with AWS lambda and trying to set up a task based on node + ffmpeg. Apparently Lambda cannot handle zip that are larger than 250Mb (I'm getting the exception Unzipped size must be smaller than 262144000 bytes)

    I've followed the build guideline from ffmpeg and my final build is 377Mb:

    enter image description here

    There might be a few things I can prune, but I'm not sure I can get bellow 200+Mb. Is Lambda not fit for ffmpeg tasks? If people have used for video processing, is the only solution to drastically prune ffmpeg build?

    == edit ==

    As mentioned in @idbehold's answer, it's likely that I only need the binaries. I first tried with only the binaries in ./bin, but I was getting errors like:

    {
      "errorMessage": "Command failed: /bin/sh -c ffprobe -v quiet -print_format json -show_format -show_streams test.mp4
      ffprobe: error while loading shared libraries: libva.so.1: cannot open shared object file: No such file or directory",
      "errorType": "Error",
      "stackTrace": [
        "ffprobe: error while loading shared libraries: libva.so.1: cannot open shared object file: No such file or directory",
        "",
        "ChildProcess.exithandler (child_process.js:213:12)",
        "emitTwo (events.js:87:13)",
        "ChildProcess.emit (events.js:172:7)","maybeClose (internal/child_process.js:821:16)",
        "Socket. (internal/child_process.js:319:11)",
        "emitOne (events.js:77:13)",
        "Socket.emit (events.js:169:7)",
        "Pipe._onclose (net.js:469:12)"
      ]
    }
    

    The lambda is just executing an input command with a child_process as in the node-exec blueprint aws function. So I thought I'd need to include those other files. I copied the binaries I obtained after following ffmpeg installation guidelines, but maybe they got linked differently in my ubuntu machine. I guess I should focus on fixing that error.

  • How to record or export the CACA output in FFMPEG ?

    7 octobre 2016, par Rodrigo Campos

    I'm trying to export (pipe) the output device CACA in FFMPEG whithout sucsess.

    The script work's fine, but no OUTPUT is recorded.

    ffmpeg -i final3.mp4 -pix_fmt rgb24 -color fullgray -window_size 244x66 -f caca - | ffmpeg -i - output.mp4
    

    Please help me!!!

  • How to use ffmpeg without root access

    6 octobre 2016, par Charlie227

    I've successfully installed ffmpeg using ssh, as root, on my dedicated server (CentOS 7).
    ffmpeg works fine - but now I need to use it without root access.

    When i try to use ffmpeg without root access, I get the following error :

    ffmpeg: error while loading shared libraries: libx264.so.148: 
            cannot open shared object file: No such file or directory
    

    The final goal is to be able to use ffmpeg inside my PHP scripts which do not root access.

    Any help is appreciated.

  • FFmpeg screen recording in grayscale to reduce file size ?

    6 octobre 2016, par wetjosh

    First off, I am unable to capture the screen of my Mac in grayscale. I've tried various combinations of -pix_fmt gray (for the input, for the output, and for both) but they never turn out grayscale.

    Secondly, assuming I figure out how to do it, is it actually a viable option for reducing file size? I was surprised that reducing the frame rate (-r) did not affect file size (though -size did).

    ffmpeg -f avfoundation -pix_fmt gray -s 1440x900 -i 1 \
    -pix_fmt gray -r 30 -preset ultrafast -b:v 5000k -t 5 out.mov