Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFMPEG SET ZxY width and height thumbnail while keeping aspect ratio with padding

    15 octobre 2014, par user3810748

    Ive been looking around stack overflow for code on how to make thumbnails using ffmpeg. But the two variations I find are either with -s 100x100 with a set frame - which ends in distorted thumbnails; or the use of -vf 100:-1, which only appropriately scales one side of the image - a problem for me since all thumbnails have to be of equal size! is there a way to get the best of both worlds? a set height/width with a constant ratio? Like line it with black boxes or something?

  • encode video to HD Format @ 1500 kbps = 1280x720 using ffmpeg in php

    15 octobre 2014, par Wikki

    I am new to ffmpeg and I have to convert videos to mp4 using H.264. I need SD format with below as well as HD format. I used SD format conversion with below command.

    $cmd = "ffmpeg -i $in -vcodec libx264 -b 700k -bf 3 -b_strategy 1 -coder 1 -qmin 10 -qmax 51 -sc_threshold 40 -flags +loop -cmp +chroma -me_range 16 -me_method hex -subq 5 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -directpred 1 -flags2 +fastpskip -dts_delta_threshold 1 -acodec libfaac -ab 128k $out";

    Now, i need to do HD format conversion: HD Format @ 1500 kbps = 1280x720

    Please guide me how run command for HD conversion. I have ffmpeg 0.6 version installed on server and unfortunately I cannot upgrade this or compile new version.

    Please guide me.

    thanks Wiki

  • ffmpeg work after close the application JAVA

    15 octobre 2014, par Muhamad Burhanudin

    I'm Burhan. I try split video to frame with ffmpg but i got a problem. picture did't show in folder before i closed my aplication. this is my code :

    public void SplitVideo(String lokasi) {
    try {
        //excecute cmd
        String cmd = "c:\\ff\\bin\\ffmpeg.exe -i " + lokasi + " -y -f image2 c:\\vid\\img-%07d.jpg";
        Process jalan = Runtime.getRuntime().exec(cmd);
        // Get output stream to write from it
        OutputStream keluaran = jalan.getOutputStream();
        System.out.println(keluaran);
    } catch (IOException e) {
        System.out.println(e);
    }}
    

    I'am using java. Please can u tell me about my problem.

  • Using linux programs within app

    15 octobre 2014, par user1503606

    Just going to ask this question feel free to say its a stupid question.

    Is it possible to use a program like ffmpeg within a mobile app i currently use Titanium for app development so it is all written in javascript.

    If i was going to go native and learn C objective C would this allow me to execute a program like ffmpeg or compile it into a app to run on the device?

    With a lot of my current apps i normally send/upload a file to my server then run all the file manipulation then download the newly encoded file.

    It would be great if you could do this directly on the app in C.

    How do people do this.

  • streaming video to c# app

    15 octobre 2014, par Ilya

    I'm writing a streaming app, and I need to show a preview in my app.

    I running ffmpeg process like ffmpeg -rtbufsize 100M -f dshow -i video="Logitech HD Webcam C525" -c:v libx264 -pix_fmt yuv420p -an -tune zerolatency -preset ultrafast -f tee -map 0:v "[f=flv]rtmp://video.dev/test/test|[f=mpegts]udp://localhost:18234"
    which streams into 2 output: remote rtmp and to local source for preview.

    So, what method I can use to show local preview?

    I tried this Show a tcp video stream (from FFPLAY / FFMPEG) in an C# application, but ffplay window doesn't shows, maybe because it creates console window first, and then new window with video.