Opened 10 years ago
Closed 10 months ago
#5789 closed enhancement (invalid)
Fast in-place replacement of embedded subtitles with ffmpeg
| Reported by: | forthrin | Owned by: | |
|---|---|---|---|
| Priority: | wish | Component: | avformat |
| Version: | git-master | Keywords: | sub |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Let's say you have a 10 GB video file with embedded subtitles, and there is an error in the subtitles.
You extract subtitles with ffmpeg -i in.mp4 in.srt and quickly edit them, but to get subtitles back in the .mp4 the whole file must be rewritten, which takes forever even with -codec copy.
Since subtitles are 0.001% of of a modern video file, has ffmpeg developers considered an in-place replacement of subtitles, ie. use fseek in the same file and simply overwrite the previous data?
This would obviously require that the new data was smaller than the old one, but ffmpeg could even reserve a few extra K of zeroes when initially writing a full file to accommodate for this eventuality.
Change History (2)
comment:1 by , 10 years ago
| Component: | undetermined → avformat |
|---|---|
| Keywords: | sub added |
| Priority: | normal → wish |
| Version: | unspecified → git-master |
comment:2 by , 10 months ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |



Closing since this bug tracker is deprecated