Re: [FFmpeg-devel] MKV Header: Writing duration early

2016-08-31 Thread compn
On Tue, 12 Jul 2016 10:15:08 + Soft Works wrote: > anyway, while I haven't looked into that yet. I also haven't > performed research > > about other ffmpeg output formats, to see if there is an existing case > > where duration is written early... > > > Before coding anything I'd like to

Re: [FFmpeg-devel] MKV Header: Writing duration early

2016-07-13 Thread Soft Works
Nicolas George wrote: >Le quintidi 25 messidor, an CCXXIV, Soft Works a écrit : >> Such circumstances are not really "special" or even rare. >> Especially in most trivial cases (like mkv to mkv) there is a known >> duration from the source that could be used. >> >> No doubt, that it's not available

Re: [FFmpeg-devel] MKV Header: Writing duration early

2016-07-12 Thread Soft Works
> There are two sides to this issue: change the muxer to write the value if it > is known at the beginning and change the command-line tool to compute the > value for their output. > I suspect the muxer change would be reasonably easy. > The change on the command-line tool, on the other hand, yo

Re: [FFmpeg-devel] MKV Header: Writing duration early

2016-07-12 Thread Nicolas George
Le quintidi 25 messidor, an CCXXIV, Soft Works a écrit : > Such circumstances are not really "special" or even rare. > Especially in most trivial cases (like mkv to mkv) there is a known > duration from the source that could be used. > > No doubt, that it's not available in all cases. But it could

Re: [FFmpeg-devel] MKV Header: Writing duration early

2016-07-12 Thread Hendrik Leppkes
On Tue, Jul 12, 2016 at 11:11 AM, Soft Works wrote: > >> Unfortunately the duration is not available in all cases, so writing >> it early would only work in a few special circumstances, so as a >> generic solution its not going to work. > > Such circumstances are not really "special" or even rare.

Re: [FFmpeg-devel] MKV Header: Writing duration early

2016-07-12 Thread Soft Works
> Unfortunately the duration is not available in all cases, so writing > it early would only work in a few special circumstances, so as a > generic solution its not going to work. Such circumstances are not really "special" or even rare. Especially in most trivial cases (like mkv to mkv) there is

Re: [FFmpeg-devel] MKV Header: Writing duration early

2016-07-12 Thread Hendrik Leppkes
On Tue, Jul 12, 2016 at 10:11 AM, Soft Works wrote: > Now I'm wondering if this could be fixed by early writing the duration in > mkv_write_header if a duration is available at this time (usually taken from > the source stream)? > Unfortunately the duration is not available in all cases, so wri