Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFMPEG RTMP not working in my red5pro module on Ubuntu 14.0.4

    23 janvier, par Atul

    This following command not working in my java module (this takes snap from live stream and save it) Runtime.getRuntime().exec("ffmpeg -i \"rtmp://127.0.0.1:1935/live/mytest live=1 timeout=2\" -f image2 -vframes 1 /snaps/testo.jpg");

    If I use same command on Ubuntu 14.0.4 console it works. Same command working in my red5pro module on Window but not on Ubuntu.

    When I use String[] execStr = {"/usr/local/bin/ffmpeg","-i","rtmp://127.0.0.1:1935/live/mytest","live=1","timeout=2","-f","image2","-vframes","1","/snaps/tt.jpg"}; ProcessBuilder pb = new ProcessBuilder("ffmpeg -i rtmp://localhost/live/mytest live=1 timeout=2 -f image2 -vframes 1 /snaps/testo.jpg");

    It always throw stream not found ( in red5pro console)

  • Read rtmp live streaming vido data using java code

    23 janvier, par Vijay Shegokar

    My requirement is that How to read and create mp4 file from live stream video URL.

    I have did many R&D's for this topic but failed to get any answer. Following link also not useful to me. When I run ffmpeg command given in this question, it gives me an exception.

    I want to use FFMPEG, not xuggle library

    Thanks.

  • Error trying to decode 4K video using NVDEC

    22 janvier, par Nestoraj

    I am trying to convert a 4K HEVC MKV file of 70GB into another HECV file but with less size. I am using FFmpeg with Nvidia acceleration but when I execute the following command an error appears:

    ffmpeg -y -vsync 0 -hwaccel_device 0 -hwaccel cuvid -c:v hevc_cuvid -i input.mkv -c:a copy -c:v hevc_nvenc -preset slow -b:v 10M -bufsize 10M -maxrate 15M -qmin 0 -g 250 -bf 2 -temporal-aq 1 -rc-lookahead 20 -i_qfactor 0.75 -b_qfactor 1.1 output.mkv
    

    The error is:

    [hevc_nvenc @ 0000021036b0d000] Provided device doesn't support required NVENC features
    Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    

    The video file has these details:

    enter image description here

    It seems that FFmpeg cannot recognize my GPU as a supported device to decode but I have read that Nvidia has support for my card with NVDEC.

    I am running Windows 10 64 bits with i7 4790 and GTX 1080

  • Convert audio to video ffmpeg with a gif as the background but keep the audio length

    22 janvier, par akiva

    I used this to combine a JPG and MP3 into a video:

    ffmpeg -loop 1 -i 1.jpg -i song.mp3 -strict -2 -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4
    

    I'm trying to change the .jpg to a .gif, but the gif should loop to the MP3 length

  • FFMPEG : FFPLAY binary not getting generated on compilation

    22 janvier, par Zax

    I have downloaded FFMPEG with FFPLAY enabled code from: https://github.com/cus/ffplay

    I use the following command to configure and make the package:

    ./configure --enable-ffplay
    make
    

    Here it shows that: SDL support no as one of the outputs. But i have sdl packages installed in my system.

    However, the packages created are:

    ffmpeg
    ffmpeg_g
    ffserver
    ffserver_g
    ffprobe
    ffprobe_g
    

    I have referred this post : http://ffmpeg-users.933282.n4.nabble.com/Compiling-FFMPEG-with-ffplay-support-td3414041.html But this didn't help out.

    I checked my config.log, it has the below lines:

    ffplay='yes'
    ffplay_deps='avcodec avformat swscale swresample sdl'
    ffplay_select='rdft crop_filter'
    

    I have the sdl packages installed in my system. What is the issue actually. Could anyone please guide me through this.