Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • AVI to FLV. Getting files with high quality ? [closed]

    22 octobre 2012, par Guttemberg

    Using FFMPEG, what would be the command line to the FLV skirt with the best possible quality?

    You can convert a. Avi to. Flv, and flv end out with higher quality than the original avi?

    I'm using FormatFactory, I used Boxoft avi to flv, quality and could not in the end result. Could recommend another program?

    I intend to provide the videos on a website, via streaming.

  • naming dual audio tracks with ffmpeg

    22 octobre 2012, par Azevedo

    I'm using ffmpeg to combine 1 video + 2 audio tracks into a mp4 container.

    How do I set the name of each track? (so in the player it won't be '0' and '1')

    ffmpeg -i file1.avi -i extra-audio.mp4 -c copy -map 0:0 -map 0:1 -map 1:0 final.mp4
    

    thanks!

  • Copy 5 seconds from 28 minute video using ffmpeg

    22 octobre 2012, par Pete Oakey

    How do I use ffmpeg (from the command line in Windows) to try and copy 5 seconds of an mkv video?

    Here's what I've tried:

    ffmpeg -ss 00:15:00 -i myVideo.mkv" -t 5 c:v copy c:a copy output.mkv
    

    I'm getting this error:

    [NULL @ 0000000004909a60] Unable to find a suitable output format for 'c:v'
    c:v: Invalid argument
    

    Here's the info on the video:

    Input #0, matroska,webm, from 'Title 01_02.mkv':
      Duration: 00:28:18.57, start: 0.000000, bitrate: 10183 kb/s
        Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn
    , 48 tbc (default)
        Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s (default)
    
  • Couldn't open file with iFrameExtractor

    21 octobre 2012, par why

    I has built ffmpeg and iFrameExtractor with ios5.1 successful, But when I play the video, the log shows "Couldn't open file"

    // Register all formats and codecs
        avcodec_register_all();
        av_register_all();
    
        // Open video file
        if(avformat_open_input(&pFormatCtx, [moviePath cStringUsingEncoding:NSASCIIStringEncoding], NULL, NULL) != 0) {
            av_log(NULL, AV_LOG_ERROR, "Couldn't open file\n");
            goto initError;
        }
    

    This is my configure file for ffmpeg 0.11.1:

    #!/bin/tcsh -f
    
    rm -rf compiled/*
    
    ./configure \
    --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
    --as='/usr/local/bin/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
    --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk \
    --target-os=darwin \
    --arch=arm \
    --cpu=cortex-a8 \
    --extra-cflags='-arch armv7' \
    --extra-ldflags='-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk' \
    --prefix=compiled/armv7 \
    --enable-cross-compile \
    --enable-nonfree \
    --disable-armv5te \
    --disable-swscale-alpha \
    --disable-doc \
    --disable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --enable-decoder=h264 \
    --enable-decoder=svq3 \
    --disable-asm \
    --disable-bzlib \
    --disable-gpl \
    --disable-shared \
    --enable-static \
    --disable-mmx \
    --disable-neon \
    --disable-decoders \
    --disable-muxers \
    --disable-demuxers \
    --disable-devices \
    --disable-parsers \
    --disable-encoders \
    --enable-protocols \
    --disable-filters \
    --disable-bsfs \
    --disable-postproc \
    --disable-debug 
    
  • Retrieving User Uploaded Video Specifications

    21 octobre 2012, par SBerg413

    The web app I'm working on allows a user to upload videos. The videos must meet specific criteria as outlined by our client (format, frame size, frame rate, etc) or they will be rejected. I found the ffmpeg-php library from some googling. However, I noticed that it doesn't appear to be actively maintained.

    1. What's the current standard library for accessing video data via PHP?
    2. If this data is retrieved from the video's metadata, can this information be trusted to be accurate?