Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • How to know if uploaded file is a video file [closed]

    20 octobre 2012, par Gage Thomson

    Possible Duplicate:
    How do I validate that an uploaded file is a video?

    How to know using exec with ffmpeg and php if the uploaded file or any file on the hard disk is a video or not?

    Turned out to use finfo for checking the mime, unsure if it is the best solution, but it appears everyone is happy by giving down votes instead of reasoning.

    Well, some of my videos have a mime of application octet-stream which makes finfo not the solution, LIKE I ASKED. I suppose with ffmpeg there might be an is_video() function somehow just that I couldn't find it.

    Trouble: http://mimeapplication.net/octet-stream

  • Running ffmpeg command in android gives Protocol not found error for image path

    20 octobre 2012, par Abdul Mateen

    I am trying to use ffmpeg from android command line to convert images into video. I have stored my sequence of images on sdcard.When I run ffmpeg command to convert images into video, ffmpeg command give me error Protocol not found.My command is like this

    /data/data/package/files/ffmpeg -r 40 -qscale 2 -i /mnt/sdcard/images/img%d.jpg /mnt/sdcard/images/finalvideo.mp4
    

    Error is like this /mnt/sdcard/vid.mp4: Protocol not found

    I found the same error message mentioned in error.c file.But I am not getting the type of error and condition when it throws the error. Also when I run ffmpeg command i.e. ffmpeg -protocols from android and linux,the number of supported protocols are not same. I found file and many protocols missing in android.

    I need solution for this urgent...Please do help me

    Thanking you!!!

  • Composite 2 video(.mov) files using ffmpeg

    20 octobre 2012, par eco_bach

    Novice user of ffmpeg but going thru whatever docs I can find online.

    For a current project I will need to composite 2 videos together to create a .flv file.

    Does anyone know the commands to do this?

  • Problems when make ffmpeg with ios5.1

    20 octobre 2012, par why

    I am using https://github.com/lajos/iFrameExtractor and there is ffmpeg directory.

    I can configure and make successful, but there some errors when run ./build_universal

     libavformat/metadata_compat.c: In function ‘ff_metadata_mux_compat’:
    libavformat/metadata_compat.c:129: warning: the address of ‘number’ will always evaluate as ‘true’
    libavformat/metadata_compat.c:130: warning: the address of ‘number’ will always evaluate as ‘true’
    /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -DHAVE_AV_CONFIG_H -I. -I"/Users/why/work/iFrameExtractor/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno -fno-tree-vectorize       -MMD -MF libavformat/options.d -MT libavformat/options.o -c -o libavformat/options.o libavformat/options.c
    /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -DHAVE_AV_CONFIG_H -I. -I"/Users/why/work/iFrameExtractor/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno -fno-tree-vectorize       -MMD -MF libavformat/os_support.d -MT libavformat/os_support.o -c -o libavformat/os_support.o libavformat/os_support.c
    libavformat/os_support.c: In function ‘resolve_host’:
    libavformat/os_support.c:68: warning: implicit declaration of function ‘inet_aton’
    /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -DHAVE_AV_CONFIG_H -I. -I"/Users/why/work/iFrameExtractor/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno -fno-tree-vectorize       -MMD -MF libavformat/sdp.d -MT libavformat/sdp.o -c -o libavformat/sdp.o libavformat/sdp.c
    /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -DHAVE_AV_CONFIG_H -I. -I"/Users/why/work/iFrameExtractor/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno -fno-tree-vectorize       -MMD -MF libavformat/seek.d -MT libavformat/seek.o -c -o libavformat/seek.o libavformat/seek.c
    /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -DHAVE_AV_CONFIG_H -I. -I"/Users/why/work/iFrameExtractor/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno -fno-tree-vectorize       -MMD -MF libavformat/utils.d -MT libavformat/utils.o -c -o libavformat/utils.o libavformat/utils.c
    libavformat/utils.c: In function ‘parse_date’:
    libavformat/utils.c:3100: warning: cast discards qualifiers from pointer target type
    /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -DHAVE_AV_CONFIG_H -I. -I"/Users/why/work/iFrameExtractor/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno -fno-tree-vectorize       -MMD -MF libavformat/avio.d -MT libavformat/avio.o -c -o libavformat/avio.o libavformat/avio.c
    /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -DHAVE_AV_CONFIG_H -I. -I"/Users/why/work/iFrameExtractor/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno -fno-tree-vectorize       -MMD -MF libavformat/aviobuf.d -MT libavformat/aviobuf.o -c -o libavformat/aviobuf.o libavformat/aviobuf.c
    libavformat/aviobuf.c: In function ‘url_fdopen’:
    libavformat/aviobuf.c:560: warning: passing argument 6 of ‘init_put_byte’ from incompatible pointer type
    libavformat/aviobuf.c:560: warning: passing argument 7 of ‘init_put_byte’ from incompatible pointer type
    libavformat/aviobuf.c:560: warning: passing argument 8 of ‘init_put_byte’ from incompatible pointer type
    /var/folders/59/7srh1dk537s3hr4b2_4k1nxr0000gn/T//cc7qLhBK.s:2662:no such instruction: `eor %ecx, %eax,%eax,ror'
    /var/folders/59/7srh1dk537s3hr4b2_4k1nxr0000gn/T//cc7qLhBK.s:2663:no such instruction: `bic %ecx, %ecx,'
    /var/folders/59/7srh1dk537s3hr4b2_4k1nxr0000gn/T//cc7qLhBK.s:2664:suffix or operands invalid for `mov'
    /var/folders/59/7srh1dk537s3hr4b2_4k1nxr0000gn/T//cc7qLhBK.s:2665:no such instruction: `eor %eax, %eax,%ecx,lsr'
        make: *** [libavformat/aviobuf.o] Error 1
        mv: rename libavcodec/libavcodec.a to armv7/libavcodec.a: No such file or directory
        mv: rename libavformat/libavformat.a to armv7/libavformat.a: No such file or directory
        mv: rename libavutil/libavutil.a to armv7/libavutil.a: No such file or directory
        mv: rename libswscale/libswscale.a to armv7/libswscale.a: No such file or directory
        rm: No match.
        rm: No match.
        lipo: can't open input file: armv7/libavcodec.a (No such file or directory)
        lipo: specifed architecture type (armv7) for file (armv7/libavdevice.a) does not match its cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (9))
        lipo: can't open input file: armv7/libavformat.a (No such file or directory)
        lipo: can't open input file: armv7/libavutil.a (No such file or directory)
        lipo: can't open input file: armv7/libswscale.a (No such file or directory)
        cp: No match.
    
  • FFmpeg HD Video Transformation [closed]

    19 octobre 2012, par Stryker33

    Would it be possible to transcode a Video with bitrate of 150 kbps and contains somewhat blurry edges into a HD Quality Video using FFmpeg 1.0...?