Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • ffmprg commad with colorchannelmixer

    12 décembre 2013, par bindal

    I am using following command: command = "ffmpeg -y -i "+strFinalPath+" -vf colorchannelmixer=.3:.4:.3:0:.3:.4:.3:0:.3:.4:.3 "+strRotatePath;

    But this command exit with error code 1

    is there any mistake in this command

    Please suggest me

    Thanks

  • JAVE Library - NullPointerException while trying to convert .mp3 to .ogg

    12 décembre 2013, par Xenocider

    I'm trying to make a basic program in java that will convert a .mp3 file into a .ogg file. I am on a Mac using a ffmpeg that was compiled for it from ffmpegmac.net. When I try to run my code I get a NullPointerException. I also noticed that .getAudioEncoders() return an empty string perhaps this has something to do with the error.

    Exception in thread "main" java.lang.NullPointerException
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1010)
        at java.lang.Runtime.exec(Runtime.java:615)
        at java.lang.Runtime.exec(Runtime.java:483)
        at it.sauronsoftware.jave.FFMPEGExecutor.execute(FFMPEGExecutor.java:103)
        at it.sauronsoftware.jave.Encoder.encode(Encoder.java:829)
        at it.sauronsoftware.jave.Encoder.encode(Encoder.java:713)
        at Main.main(Main.java:33)
    

    This is my code I use:

    public static void main(String[] args) throws IllegalArgumentException, InputFormatException, EncoderException {
    Encoder encoder = new Encoder(new FFMPEGExecutableLocator());
    //Encoder encoder = new Encoder();
    EncodingAttributes encodingAttributes = new EncodingAttributes();
    AudioAttributes audioAttributes = new AudioAttributes();
    
    String[] audioEncoders = encoder.getAudioEncoders();
    System.out.print(audioEncoders.length);
    for (int i = 0; icode>

    Any ideas or help would be appreciated! Thanks!

  • FFmpeg Decode Temporary File - C++

    11 décembre 2013, par user2492388

    I have a buffer and the size of the buffer in my memory and I want to decode this data a raw file. With this: http://www.ffmpeg.org/doxygen/trunk/doc_2examples_2demuxing_8c-example.html or this: http://www.ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html I decode a file from my disk. But how can I decode a temporary file which buffer is only in the memory?

  • FFmpeg av_read_frame returns a size but no data ?

    11 décembre 2013, par tommed

    I have written some C code to access ffmpeg and wrapped it in a C++/CLI (.NET managed) class. The program fetches a live video stream and extracts frames and converts them to PNG files.

    Unfortunately the images that are saved to disk are always black (opening them in Notepad++ shows that they are full of nulls).

    I am using the assemblies aformat/codec-55.dll and the development headers and libs for compilation from ffmpeg-20131120-git-e502783-win64-dev. The whole project is compiled using Managed C++ (Cpp/cli) .NET 4.0 for 64-bit.

    After some investigation the problem appears to be that av_read_frame fills the AVPacket->size value correctly, but the AVPAcket->data is always null. When the frame is finished (got==1) then the data for the AVFrame is just a matrix of nulls. :(

    Here is the code: Example code (sorry, but it didnt paste well into SO)

    I think the problem is at line 34 when the packet is returned like so: size is set but data is empty

    Please, how can I get this to work? What have I done wrong?

  • Apply effects using ffmpeg [on hold]

    11 décembre 2013, par bindal

    I have used ffmpeg recorder for recording video in my application, Through ffmpeg commnad i can trim , rotate and concate my videos but i want to apply some effects like:

    Black & White
    Sepia 
    Old Movie
    Noise 
    Brightness
    Thermal
    Xray
    Pencil
    Gamma
    Contrast
    Saturation
    Emboss
    

    Please suggest me any documentation of ffmpeg,

    Thanks Bindal