Opened 3 months ago

Last modified 3 months ago

#6651 new enhancement

cut file without specifying codecs

Reported by: Xoristzatziki Owned by:
Priority: wish Component: ffmpeg
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Change History (2)

comment:1 Changed 3 months ago by cehoyos

  • Priority changed from normal to wish
  • Version changed from unspecified to git-master

Most of what you request was rejected before, esp. mixed encoding and remuxing.

Do you really also request a special parameter for the format option so that -f input selects the input file format for the output file?

comment:2 Changed 3 months ago by Xoristzatziki

That's my main request. Thanks

Note: See TracTickets for help on using tickets.