[Libav-user] using ffmpeg libraries to split a video
Anshul maheshwari
er.anshul.maheshwari at gmail.com
Wed Aug 14 05:51:54 CEST 2013
On Aug 14, 2013 7:14 AM, "Paul B Mahol" <onemda at gmail.com> wrote:
>
> On 8/11/13, Yousef Alhashemi <yousef.alhashemi at gmail.com> wrote:
> > Hi,
> >
> > I asked a question on the ffmpeg support forum (ffmpeg.gusari.org) and
> > someone pointed me to this list, so I'm repeating my question here:
> >
> > I would like to use ffmpeg libraries to split a video into equal-sized
> > chunks of smaller files. For example, let's say I have a 100MB video
that
> > I'd like to split into 10 10MB videos using the same audio/video codec
and
> > container format. On the command-line, it would be something like this
> > (assuming 10MB of data = 10 seconds of video): ffmpeg -i input.file -ss
> > "00:00:00" -t "00:00:10" -vcodec copy -acodec copy output.file (and
repeat
> > the same for the remaining 9 chunks)
> >
> > My question is, what are the actual ffmpeg library calls that do the
> > equivalent of this command? I can dig in the code and find out myself
but
> > that would take me a lot of time because I'm not familiar with the
(large)
> > code base of ffmpeg. I would appreciate any help from ffmpeg
developers; I
> > imagine this is easy to answer.
>
> It is far from easy answer, you are actually asking someone to write
> code for you.
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
You may want to see the hls code, search for file hls
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130814/77c10ffb/attachment.html>
More information about the Libav-user
mailing list