Feature: optionally write new headers while copying streams
|Reported by:||TiredEyes||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
This would be useful for fixing files with broken headers, but correct data.
The idea is that ffmpeg analyzes the type of the stream, then wites new headers for this format as if it would transcode the stream fom another format to this format, but short-circuit the transcoding and instead use the original data, throwing away the original headers.
Maybe the command should be named copy-data, corresponding to the existing copy.
ffmpeg -i input.mpg -c:v copy -c:a copy-data output.mpg