Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (67)

Sur d’autres sites (10295)

  • Trim / Cut video on Android using FFMpeg's Copy

    6 août 2012, par Kevin P

    We're trying to replicate the functionality of this command line ffmpeg directive using the FFMpeg c api through JNI calls on Android.

    ffmpeg -ss 2 -t 120 -vcodec copy -acodec copy -i input.file output.file

    Basically, given a start and end time, we wish to copy (not re-encode) a small(er) segment of video from the larger (input) video source.

    We've been using the wonderful JavaCv wrapper to openCv and FFMpeg, but we just cannot figure out how to do this simple bit of work. We've been scouring the ffmpeg.c and related sources and while I now understand that it switches to stream_copy and remuxing rather than re-encoding when the codec is specified as copy I cannot for the life of me identify what series of method calls to make to replicate this through the C api. Does anyone have an example JNI file for doing this ? Or are there rockstar C types that can explain how I get from that command line to api calls ? We've spent the better part of two weeks working on this (we're not native C guys) and we're at the point where we just need to ship some code. Any example code, especially JNI code or method call maps etc. would be greatly appreciated !

  • live streaming video file from iphone to internet using FFMpeg

    18 avril 2014, par Luis Mok

    i am trying to live streaming some video content from iphone to the internet (or server). I have read the following post (http://stackoverflow.com/questions/4084811/iphone-http-live-streaming-without-any-server-side-processing)

    And i understand i can first capture the images and audio into file then send it out to the internet. But i really have no idea how to start the work on constantly send out these video files.

    I understand i can use ffmpeg to do the streaming part. after long researching i can only found a sample program called iFrameExtractor using FFmpeg library. But the sample only shows how to use ffmpeg to playback a video file, but no sample on how to use the live streaming function in ffmpeg...

    Can anyone provide a direction or tutorial how to live streaming a video file using ffmpeg ? or anyone can suggest other ways to solve this problem ? i am sure lots of people want to know how to do that.

  • How to transcode a video using python and ffmpeg library (no commandline call)

    25 mars 2014, par mojovski

    I would like to transcode a video using python and ffmpeg. But I dont want to use a command line call like
    call(ffmpeg -i ....")

    I will need to deploy the resulting application using py2exe, thus cannot use call method.

    Thanks in advance !