[FFmpeg-user] Conversion to prores, close encode every N minutes, how?

Boštjan Strojan bostjan.strojan at gmail.com
Tue Oct 22 01:13:46 CEST 2013


On Sun, Oct 20, 2013 at 9:08 PM, Werner Robitza
<werner.robitza at gmail.com> wrote:
>
> On Sat, Oct 19, 2013 at 2:23 PM, Boštjan Strojan
> <bostjan.strojan at gmail.com> wrote:
> >
> > Converting a very long stream, 2 hours and more into more editable format
> > like prores.
> >
> > My question is: Is it possible to close the encode every N minutes and
> > start a new one (generating multiple files), without restarting the
> > process, if yes, how?
>
> You can achieve this with the segment muxer. Refer to the
> documentation for some examples:
>
> http://ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment

Thanks, but getting various errors (freshly compiled ffmpeg from git) like:

ffmpeg started on 2013-10-22 at 01:10:48
Report written to "ffmpeg-20131022-011048.log"
Command line:
/Volumes/raid0/ffdrop_dev/dev/ffdrop14dev/ffmpeg/ffmpeg -report -i
/Volumes/raid0/mokrisca/ae/avto.mov -c:v prores -map 0 -f segment
-segment_time 10 "%03d.mov"
ffmpeg version N-57300-g2f9422d Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 21 2013 22:15:31 with Apple clang version 4.1
(tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/Volumes/tempdisk/sw --enable-gpl
--enable-libx264 --cc=clang --enable-runtime-cpudetect
  libavutil      52. 47.101 / 52. 47.101
  libavcodec     55. 37.102 / 55. 37.102
  libavformat    55. 19.103 / 55. 19.103
  libavdevice    55.  4.100 / 55.  4.100
  libavfilter     3. 88.102 /  3. 88.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a
report) with argument '1'.
Reading option '-i' ... matched as input file with argument
'/Volumes/raid0/mokrisca/ae/avto.mov'.
Reading option '-c:v' ... matched as option 'c' (codec name) with
argument 'prores'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'segment'.
Reading option '-segment_time' ... matched as AVOption 'segment_time'
with argument '10'.
Reading option '%03d.mov' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file /Volumes/raid0/mokrisca/ae/avto.mov.
Successfully parsed a group of options.
Opening an input file: /Volumes/raid0/mokrisca/ae/avto.mov.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8a4201ec00] Format
mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8a4201ec00] ISO: File Type Major Brand: qt
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8a4201ec00] File position before
avformat_find_stream_info() is 7713733
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8a4201ec00] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8a4201ec00] File position after
avformat_find_stream_info() is 588048
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/raid0/mokrisca/ae/avto.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2013-09-21 19:20:22
  Duration: 00:00:00.56, start: 0.000000, bitrate: 110196 kb/s
    Stream #0:0(eng), 1, 1/25: Video: prores (apcn / 0x6E637061),
yuv422p10le, 1920x1080, 110093 kb/s, SAR 1920:1920 DAR 16:9, 25 fps,
25 tbr, 25 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2013-09-21 19:20:22
      handler_name    : Apple Alias Data Handler
      timecode        : 00:00:11:17
    Stream #0:1(eng), 0, 1/25: Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2013-09-21 19:20:27
      handler_name    : Apple Alias Data Handler
      timecode        : 00:00:11:17
Successfully opened the file.
Parsing a group of options: output file %03d.mov.
Applying option c:v (codec name) with argument prores.
Applying option map (set input stream mapping) with argument 0.
Applying option f (force format) with argument segment.
Successfully parsed a group of options.
Opening an output file: %03d.mov.
Data stream encoding not supported yet (only streamcopy)
[AVIOContext @ 0x7f8a41c03ea0] Statistics: 627909 bytes read, 2 seeks

any clues?

tia, b.


More information about the ffmpeg-user mailing list