[FFmpeg-user] ffmpeg how to output multiple file

Huang Soho soho123.2012 at gmail.com
Mon Oct 14 07:25:14 CEST 2013


In advance, can i limit the size of output file?
If I would like to output to a file and each file have the same file size ,
is it possible?


2013/10/10 Jason Runta <jrunta at gmail.com>

> It can. See this article for more information:
> http://ffmpeg.org/trac/ffmpeg/wiki/Creating%20multiple%20outputs
>
> The important part is the tee command and getting the mappings correct.
> Here's an example I was using to test:
>
> ffmpeg -y -f dshow -s 640x480 -r 29.97 -i video="Microsoft LifeCam
> Cinema":audio="Desktop Microphone (Cinema - Mi" -c:v libx264 -preset
> ultrafast -b:v 800k -c:a aac -strict experimental -ar 44100 -b:a 56k -f tee
> -map 0:0 -map 0:1 "[f=rtsp] -rtscp_transport tcp
> rtsp://localhost:1234/live.sdp|C:\\users\\jasonr\\mymovie.mkv"
>
> and then using ffplay I could watch my stream using:
> ffplay -rtsp_flags listen rtsp://localhost:1234/live.sdp
>
>
> On Wed, Oct 9, 2013 at 6:41 AM, Huang Soho <soho123.2012 at gmail.com> wrote:
>
> > Hi All,
> >
> > Can ffmpeg output to multiple file?
> > for example:
> > if the command line is :
> > ffmpeg -sn -f video4linux2 -r 30 -s 1280x720 -input_format h264 -i
> > /dev/video1 -f alsa -ar 48000 -ac 2 -i hw:0 -vcodec copy -acodec copy
> -map
> > 0:0 -map 1:0 http://localhost:8090/feed2.ffm
> >
> > I can capture video and audio from device, then output to feed2.ffm,
> > Can ffmpeg output the video and audio data to local file? for example
> .avi
> > or others?
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
>
>
>
> --
> *-_-=Jason Runta=-_-*
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list