Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • recording live stream video from tv card using ffmpeg at window [on hold]

    6 décembre 2013, par user2688423

    I want to record live stream every 1 second from tv card(tv signal) using ffmpeg in window.

    first of all, to record live video from tv card, I tried below.

    1. First I tried this.

    ffmpeg -list_devices true -f dshow -i dummy

    then the result is

    " [dshow @ 000000000024e6fe0] DirectShow video devices
    [dshow @000000000024e6fe0] "SKYTV HD USB Maxx Video Capture"
    [dshow @ 000000000024e6fe0] DirectShow audio devices
    [dshow @ 000000000024e6fe0] "Analog Audio In(SKYTV HD USB Ma" "

    so I tried

    ffmpeg -f dshow -i video="SKYTV HD USB Maxx Video Capture" -r 20 -threads 0 D://test.mkv

    But it didn't work. the Error message is

    "[dshow@000000000034d920] Could not run filter
    video=SKYTV HD USB Maxx Video Capture: Input/output error"

    I use the device called 'SKYTV HD USB Maxx Video Capture' for getting tv signal(TV card).

    1. The First way deosn't work, I tried different way.

    ffmpeg -y -f vfwcap -i list

    then the result is "

    [dshow @ 00000000003fd760] Driver 0

    [dshow @ 00000000003fd760] Microsoft WDM Image Capture (Win32)
    [dshow @ 00000000003fd760] Version: 6.1.7601.17514 list: Input/output error

    "

    so I tried

    ffmpeg -y -f vfwcap -r 25 -i 0 D://out.mp4

    then, there is some out.mp4 file in D drive but the file is nothing. (I think it is not TV signal)

    what should i do to record live video every 1 second from tv card(tv signal) using ffmpeg in window? And How can I set channel at tvcard(Because I want to get tv signal, there are many channels).

    Please help..!

  • FFMPEG JNI wrapper causes Android app exit

    5 décembre 2013, par user3043703

    I'm writing a JNI wrapper to use FFMPEG as a library in my Android project. I'm mainly using as references the halfninja project (and some forks) and this useful guide. I'm making a lot of personalizations but I got a working version with some additional codecs, the only problem is that, after FFMPEG ends, it causes my application to quit with no errors and I'd like to avoid this (for example to invoke FFMPEG again). Looking at the halfninja wrapper, the line of code exit(ret); from the cmdutils.c file is commented in the function void exit_program(int ret) but if I do the same with the latest (2.1.1) version of FFMPEG it causes me a signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 6f632494 error. My code looks like this:

    void exit_program(int ret)
    {
       if (program_exit)
          program_exit(ret);
    
       //exit(ret);
      //if I uncomment this the app automatically exits without errors
    }
    

    I see that both my references are a little old, also refering to a very old release of FFMPEG and it seems that meanwhile the source code changed a lot. I invoke FFMPEG through the JNI wrapper inserted in a new thread in the application code.

    All I'd like to know is: there's a way to avoid the automatic exit of my application after the end of FFMPEG thread?

  • rotate and place watermark with ffmpeg

    5 décembre 2013, par bruner

    I need to rotate an video and put watermark, but the code below does not work:

    ffmpeg -i teste.mp4 -vf "movie=/inetpub/wwwroot/Videos/bin-debug/assets/agua.png, scale= -1:100 [logo]; [in] [logo] overlay=main_w -overlay_w-5:main_h -overlay_h-5 [out]", "transpose=1" teste3.flv

  • How to convert aac to flac

    5 décembre 2013, par RaymondLe

    So how to convert aac to flac with 16000 sample rate with FFmpeg ?

    Please help me, i search google but have result of flac to aac.

    So my solution :

    1. I'm convert from aac to mp3

    2. And convert from mp3 to flac.

    But my solution take about 3s. So that i want to convert direct from aac to flac.

  • Java - xuggle/ffmpeg - mov atom not found

    5 décembre 2013, 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?