[FFmpeg-user] how can I set limit_filesize or recording_timefor the specific output dynamically?

Jacky 690271929 at qq.com
Tue Oct 15 05:37:49 CEST 2013


you need add -map 0:VideoTrack




------------------ Original ------------------
From:  "Huang Soho";<soho123.2012 at gmail.com>;
Date:  Tue, Oct 15, 2013 11:30 AM
To:  "FFmpeg user questions"<ffmpeg-user at ffmpeg.org>; 

Subject:  Re: [FFmpeg-user] how can I set limit_filesize or recording_timefor the specific output dynamically?



> > But the "segment" seems does not meet my requirement.
> > I would like to save multiple files that each file
> > hase fixed size.
>
> You wrote before:
> [quote]
> how can I set limit_filesize or recording_time
> [/quote]
> Setting an exact file size is not possible for real
> codecs, you can set the recording time with the
> segment muxer.
>  <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>

I try to use segment muxer, but there is a error when the command execue.
the log :

ffmpeg -sn -f video4linux2 -r 30 -s 1280x720 -input_format h264 -i
/dev/video1
 -vcodec copy http://localhost:8090/feed2.ffm -vcodec copy -f segment
-segment_
time 3 -segment_format mpegts /var/stream%05d.ts
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 15 2013 11:13:34 with gcc 4.4.7
  configuration: --enable-cross-compile --cross-prefix=sdk-linux-
--arch=mips --target-os=linux --disable-doc --disable-htmlpages
--disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2
--enable-small --disable-ffprobe --disable-ffplay --disable-postproc
--disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1
--disable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs
--bindir=/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl
--enable-libx264 --extra-cflags=-fPIC
--enable-filter='aformat,aresample,anull,copy,format,fps,framestep,resample'
--disable-encoders
--enable-encoder='mjpeg,h264,libx264,libx264rgb,yuv4,pcm_s16le,pcm_s16be,pcm_mulaw,wmav2,wmav1'
--disable-decoders --enable-decoder='mjpeg,h264,yuv4' --disable-hwaccels
--disable-muxers
--enable-muxer='ffm,asf,asf_stream,rtsp,mjpeg,h264,wav,mpegts,se
libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
[video4linux2,v4l2 @ 0x709350] Estimating duration from bitrate, this may
be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video1':
  Duration: N/A, start: 57.420000, bitrate: N/A
    Stream #0:0: Video: h264, yuv420p, 1280x720, -5 kb/s, 30 fps, 30 tbr,
1000k tbn, 2000k tbc
Tue Oct 15 11:22:50 2013 0.0.0.0 - - [GET] "/feed2.ffm HTTP/1.1" 200 32847
Output #1, segment, to '/var/stream%05d.ts':
Output file #1 does not contain any stream
Tue Oct 15 11:22:50 2013 0.0.0.0 - - [POST] "/feed2.ffm HTTP/1.1" 200 0
#
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
.


More information about the ffmpeg-user mailing list