Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Can i use just ffmpeg ?

    7 février 2012, par Someone Like You

    I have a video sharing site, it uses phpmotion, i tried cliipbucket also, i didn't like any of the scripts, i decided to create my own script, using django and maybe pinax. the other 2 scripts, use ffmpeg, and many other stuff like ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encoder, and Libog

    i know that i won't need ffmpeg-php since i'm not gonna be using php, but do i really need those other things? can i just use ffmpeg to do all the work? i don't understand what the other stuff are used for.

  • logos and subtitles in reverse using ffmpeg and OpenGL in iOS 5.0

    6 février 2012, par resident_

    I am using ffmpeg to play video on iOS 5.0. In my app with ffmpeg decoded video frames and use OpenGL to display it.

    But I have a problem I don't resolve it. Chains logos and subtitles of the video image is displayed in reverse. I think that is the problem of rendering OpenGL 2.0 or ffmpeg decoded.

    Can you tell me what is wrong?, and How I can fix it?

    Very thanks,

    Edit: I change my prepareTExture method with this:

    - (void) prepareTextureW: (GLuint) texW textureHeight: (GLuint) texH frameWidth: (GLuint) frameW frameHeight: (GLuint) frameH {
    
    float aspect = (float)frameW/(float)frameH;
    float minX=-1.f, minY=-1.f, maxX=1.f, maxY=1.f;
    float scale ;
    if(aspect>=(float)backingHeight/(float)backingWidth){
        // Aspect ratio will retain width.
        scale = (float)backingHeight / (float) frameW;
        maxY = ((float)frameH * scale) / (float) backingWidth;
        minY = -maxY;
    } else {
        // Retain height.
        scale = (float) backingWidth / (float) frameW;
        maxX = ((float) frameW * scale) / (float) backingHeight;
        minX = -maxX;
    }
    if(frameTexture) glDeleteTextures(1, &frameTexture);
    glEnable(GL_TEXTURE_2D);
    glGenTextures(1, &frameTexture);
    glBindTexture(GL_TEXTURE_2D, frameTexture);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
    glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT );
    glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT );
    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, texW, texH, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, NULL);          
    
    
     verts[0] = maxX;           
      verts[1] = maxY;
      verts[2] = minX;      
      verts[3] = maxY;
      verts[4] = maxX;  
      verts[5] = minY;
      verts[6] = minX;    
      verts[7] = minY;
    
    float s = (float) frameW / (float) texW;
    float t = (float) frameH / (float) texH;             
    
    texCoords[0] = 0.f;        texCoords[1] = 1.f;
    texCoords[2] = 1;          texCoords[3] = 1.f;
    texCoords[4] = 0.f;        texCoords[5] =0;
    texCoords[6] = 1;          texCoords[7] =0;
    
    mFrameH = frameH;
    mFrameW = frameW;
    mTexH = texH;
    mTexW = texW;
    maxS = s;
    maxT = t;
    
    // Just supporting one rotation direction, landscape left.  Rotate Z by 90 degrees.
    matSetRotZ(&rot,M_PI_2);
    
    matMul(&mvp, &rot, &rot);
    [self setupShader];    
    

    }

    And now this is my result: link image

  • ffmpeg : create interlaced output from progrssive input

    6 février 2012, par user1190908

    I have a 720p60 (54.94 to be exact) clip that I would like to scale down and output in 540i30 (27.97 to be exact).

    Here is my command line:

    ffmpeg.exe -i clip720p60.m2t -ss 90 -t 30 -vcodec libxvid -s 960x540 -b 1000k -r 29.97 -acodec libmp3lame -ar 22050 -ab 64k -f avi clip540i30.avi
    ...
    Input #0, mpegts, from 'clip720p60.m2t':
      Duration: 01:53:55.76, start: 0.196678, bitrate: 17250 kb/s
      Program 1
        Stream #0.0[0x1011]: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 59.94 tb(r)
        Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
    Output #0, avi, to 'clip540i30.avi':
        Stream #0.0: Video: libxvid, yuv420p, 960x540 [PAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 29.97 tb(c)
        Stream #0.1: Audio: libmp3lame, 22050 Hz, stereo, s16, 64 kb/s
    ...
    

    The first options indicates to encode 30s at 90s past the start.

    Whatever options I tried up to now always end up with a video stream of 60s and an audio stream of 30s in the output clip.

    Can any one help me?

  • FFserver : Securing with HTTP Authentication ? (Apache ?)

    6 février 2012, par mdaddy

    Is there some way to secure an ffserver webcam stream using Apache / HTTP Authentication? Some type of Apache proxy perhaps?

    Right now I have it so only machines on the LAN can view the http://webcam/stream.mjpg, but I want people from the outside to be able to access it if they provide a username / pw (HTTP Auth, which isn't built into ffserver).

    Thanks!

  • Any updated http segmenter for IPad / iPhone video streaming with latest ffmpeg ?

    5 février 2012, par ipegasus

    I would like to know if there are any http file segmenters with support for the latest ffmpeg libraries?

    So far I have found some projects, although I haven't been able to compile them using ffmpeg 0.9

    1. http://svn.assembla.com/svn/legend/segmenter/
    2. http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/

    Thanks!