Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • can i mux h264 stream into mp4(aac) through libavformat without libx264 ?

    6 septembre 2011, par Faller

    i just have h.264 encoded video stream and i want to make mp4 file.

    /* find output format for mp4 */

    m_pOutputFormat= av_guess_format("mp4", NULL, NULL);

    if (!m_pOutputFormat) return FALSE; // could not find suitable output format(mp4).

    on this code, i get mpeg for video codec not h264, i think that's because i build ffmpeg without libx264. (and i dont want to build ffmpeg with libx264 for license)

    m_pOutputFormat->video_codec= CODEC_ID_H264;

    when i change its video_codec to CODEC_ID_H264, it works fine some player(kmplayer). but it's not work on ipod, QuickTime.

    this code maybe wrong because it could not change codec_tag value(this variable has const property).


    1. how can i get other result for av_guess_format("mp4",NULL,NULL) without recompile libav+libx264?

    2. how can i make mp4 file properly?

  • how to convert mp4 to mp3 by ffmpeg ? [migrated]

    6 septembre 2011, par user916350

    I need convert from mp4 video to mp3 (extracting audio track) by ffmpeg. I can do that for .flv -> mp3, but I don't know command line parameters for mp4->mp3. For example, for flv->mp3: 'ffmpeg -i video.flv -acodec copy audio.mp3'. Tell me parameters for mp4->mp3 please. Thank you, anyway.

  • Issue with Decoding H.263 Sorenson Spark D frames

    6 septembre 2011, par nitin goyal

    I am trying to decode the H.263 sorenson type of data using avcodec_decode_video function.

    It is able to decode the I and P frames but i have some D frames (Disposable inter frames) in my data and this function is not able to decode these frames and I am getting zero as return value.

    So, can somebody tells me how we can decode these type f frames as I am not finding any mention of D frame sin the ENUM value also.

    I have read somewhere that we can convert D frames into P frames but if we have raw data how we achieve that if we want to use the decode function directly.

  • Java - xuggle/ffmpeg - moov atom not found

    5 septembre 2011, par Mark Design

    I am trying to read a mov file from local using Xuggle. This gives me the following error:

    30-mag-2011 15.56.55 com.xuggle.ferry.NativeLogger log
    GRAVE: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x102840600] moov atom not found
    

    The problem is that until two minutes before it didn't give any error and the code was the same.

    However, I discover this:

    If I open the IContainer using a byte array it doesn't work and gives me the error:

    ByteArrayInputStream b = new ByteArrayInputStream(file);
    DataInputStream data = new DataInputStream(b);
    IContainer container = IContainer.make();
    if (container.open(data, null) < 0)
        throw new IllegalArgumentException("E001 - Cannot open the container");
    

    if I open the IContainer using a temporary file it works.

    File temp = File.createTempFile("temp_", ".mov");
    
    try
    {
        FileOutputStream fos = new FileOutputStream(temp);
        fos.write(file);
        fos.close();
    }
    catch(FileNotFoundException e)
    {
        System.out.println(e);
    }
    
    IContainer container = IContainer.make();
    
    if (container.open(temp.toString(), IContainer.Type.READ, null) < 0)
        throw new IllegalArgumentException("E001 - Cannot open the container");
    

    any suggestions?

    Thanks! Mark

  • ffmpeg : how to convert iphone4 720p video into similar quality Flash video ?

    5 septembre 2011, par Sajee

    What are the proper arguments to ffmpeg to covert an iphone4 720p video into the similar quality Flash video?

    I tried the following which resulted in a low quality Flash video:

    ffmpeg movie.mov movie.flv
    

    What are the right switches?