Newest 'ffmpeg' Questions - Stack Overflow

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

Articles published on the website

  • What steps are needed to Stream RTSP from FFMPEG?

    10 June 2016, by user1767754

    What steps are needed to Stream RTSP from FFMPEG?

    Streaming udp is not a problem, but as i want to stream to mobile-devices which can natively read rtsp streams, i couldn't find any setup which tells what exactly is needed. Do i need an rtsp streaming server like LIVE555 or can i use ffmpeg only?

    My Command:

    ffmpeg -i space.mp4 -vcodec libx264 -tune zerolatency -crf 18 -f rtsp -muxdelay 0.1 rtsp://192.168.1.200:1234
    

    I get an Input/Output error

    Do i need a SDP Description to use rtsp? and if yes where do i have to put it?

  • FFmpeg zoom not smooth-centered (but zigzag)

    10 June 2016, by SebSob

    I try to perform a basic zoompan with FFmpeg. I have an input image (.png 1280x720) and i create an 8 seconds video (.mp4 320x180) from it, with a zoom. This is my command:

    ffmpeg -loop 1 -i in_img.png -c:v libx264 -pix_fmt yuv420p -strict experimental -framerate 25 -vf zoompan=z='min(zoom+0.011835363,2.1835363)':d=375:x=400:y=247 -s 320x180 -t 00:00:08.882 out_vid.mp4

    Everything works...but the zoom is not looking okay. It is going zig-zag.

    Does anyone know how to make it zoom smooth, like centered? (And not first left then right)

    Thanks

    EDIT


    I've come a small step closer to a solution by slightly modifying the 'x' and 'y' in the -vf filter (rest of the command is the same as above):

    -vf zoompan=z='min(zoom+0.022,3.25)':d=375:x='if(gte(zoom,3.25),x,x+8.24)':y='if(gte(zoom,3.25),y,y+4.72)':s=1280x720

    I incement x and y every frame (for x +8.24, for y +4.72, i know those values because i know how many frames it takes get to the end-zoom state) so that it will move to its end zoom state coordinate (1011,582), see image:

    Zoom Visualization This is the video of the result, as you can see it does not do the zig-zag effect, but now it looks like its going first to the center and then to the zoomed result. Or is that only an illusion?? Any idea's?

  • How to make FFMPEG insert dynamic data in a video stream?

    10 June 2016, by Bepeho

    I'm trying to add an dynamic overlay to a file FFMPEG is generating for me.

    The overlay must display data received in real-time (let's say the speed of a car where the video is being recorderd)

    Note that my question is not about displaying things in the video, but about how to have FFMPEG receive this data so it can display them.

    Has anyone done this before? How?

    Thank you

  • FFMPEG Android, android/arm: No such file or directory while compiling the ffmpeg for android with ndk10

    10 June 2016, by Prabhat

    I am compiling the ffmpeg library i am facing some issues while compiling this.

    I follow the steps of compilation form here.But i am failed to compile. The issues are as below.

    WARNING: /home/prabhat/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-pkg-config not found, library detection may fail.
        libavcodec/bsf_list.c is unchanged
        libavformat/protocol_list.c is unchanged
        common.mak:26: *** unterminated call to function `foreach': missing `)'.  Stop.
        common.mak:26: *** unterminated call to function `foreach': missing `)'.  Stop.
        common.mak:26: *** unterminated call to function `foreach': missing `)'.  Stop.
        sumit@sumit-H81M-S:~/android-ndk-r10e/sources/ffmpeg$ 
    
  • How to install ffmpeg in Xampp?

    10 June 2016, by Don Donllei

    How do I install ffmpeg on Xampp?

    I tried this but it did not work Install FFMPEG on XAMPP

    Use: PHP Version 5.6.15, Windows 10, 64bits