Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • How can I know the error in command in an exec function ?

    23 novembre 2011, par shinod

    I am using a ffmpeg command to cut a video with exec function in php. But it is not creating a video file and doesn't show any errors. I used exec as below

    exec("ffmpeg -i input.flv -ss 00:00:30.0 -t 00:00:10.0 -acodec copy -vcodec copy -async 1 output.flv");
    

    Can I get any help to know what is the error happening here?

    exec("ffmpeg -i input.flv -ss 00:00:30.0 -t 00:00:10.0 -acodec copy -vcodec copy -async 1 output.flv",$output);
    

    I tried it also. But I didn't get any error message in variable $output

  • AAC decoding with ffmpeg

    22 novembre 2011, par Ali

    I am trying to decode mms:// audio stream with ffmpeg. I am able to get stream using libmms and now using ffmpeg to decode frames. The problem is when i try to open codec using

    codec = avcodec_find_decoder(CODEC_ID_AAC);
    c= avcodec_alloc_context();
    avcodec_open(c, codec);
    

    FFmpeg library gives error :channel element 1.8 is not allocated and when i try to decode len = avcodec_decode_audio3(c, (short *)outbuf, &out_size,&avpkt); it does not decode, resulting len=-1

    Any idea?

  • VLC/FFMPEG streaming, how to detect ?

    22 novembre 2011, par John Smith

    I want something like that: user(s) decide to start a stream to my site. I know VLC and FFMPEG is able to do that. But how could a site detect that it's getting stream(s)? Because I want it to then display on a page "current live videos". And what kind of streams should I need to use? HTTP? RTSP? UPD?

    Thanx in advance.

  • Cross Platform C# Media API

    22 novembre 2011, par maxfridbe

    I'm trying to define a VideoFile in mono/.net object such that I can call

    var file = new VideoFile(filepath);
    file.VideoDuration 
    

    Is there a library (os or commercial) which will work across platforms mono/.net which can provide information such as VideoDuration. The only though I have had on this currently is to wrap ffmpeg.exe and read the console out-stream.

  • FFmpeg can 'encode' to mp3, but will not accept an 'input' mp3

    21 novembre 2011, par Jonathan Coe

    FYI: Fedora 8 running on Amazon EC2...

    Having a difficult time with FFmpeg doing a (what should be pretty simple) conversion. I can get FFmpeg to encode an mp3 file from an m4a file using the following:

    ffmpeg -i file1.m4a -acodec libmp3lame -ab 160k file2.mp3
    

    However, I cannot get it to to convert an mp3 -> mp3, it responds with "Unknown Format" using the following:

    ffmpeg -i file1.mp3 -acodec libmp3lame -ab 160k file2.mp3
    

    I get the following command string:

    FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.
    
    
    configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-libxvid --enable-libx264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip
      libavutil version: 49.6.0
      libavcodec version: 51.50.1
      libavformat version: 52.7.0
      libavdevice version: 52.0.0
      built on Feb 14 2008 17:47:08, gcc: 4.1.2 20070925 (Red Hat 4.1.2-33)
    file1.mp3: Unknown format
    

    Any help would be hugely appreciated!

    Edit for clarity: The input file is in /ebs/queue/input.mp3 and the output is /ebs/converted/output.mp3