[FFmpeg-trac] #6651(ffmpeg:new): cut file without specifying codecs

FFmpeg trac at avcodec.org
Tue Sep 12 14:22:30 EEST 2017


#6651: cut file without specifying codecs
-------------------------------------+-------------------------------------
             Reporter:               |                     Type:
  Xoristzatziki                      |  enhancement
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:
             Keywords:               |  unspecified
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
 Summary of the enchancement:
 Copy with as much codec parameters as possible in order to do a fair exact
 cut. In current versions user should read audio and video codecs with
 ffprobe, make effort to assign as much information as possible to ffmpeg
 encoders and run the command. Since ffmpeg already know which ones of them
 are compatible, ffmpeg '''at least''' could suggest them somehow. Ex. by
 printing a suggested command line to use.

 The ideal is to use them without any user intervention.
 We could use:
 ffmpeg -ss startminisecond -to endmillisecond infile.ext -c copyAMIAP
 outfile
 or
 ffmpeg -read_intervals startminisecond:endmillisecond infile.ext -c
 copyAMIAP
 (outfile without extension, same extension as infile will be used)

 to transcode a part of file using exact start, stop milliseconds without
 the need to rewrite all relevant parameters (ex. codecs, sizes, fps's etc)
 Since copyAMIAP (copy As Much Info As Possible) is a special parameter we
 can not make any further warnings.

 Having this as copy parameter, ffmpeg could also copyAMIAP from interval-
 start to next K keyframe, exact copy from that point to last K keyframe
 (if such exists), and finally copyAMIAP from that point to interval-end.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6651>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list