On Nov 10, 4:12 pm, Marc <
marc.noi...@gmail.com> wrote:
> Yes, I'm planning to do that, with a few limitations inherent to the
> FLV format.
>
> For example, merging two FLV files can only be done if the two videos
> have the same resolution and encoding.
yeah, I figure it is up to the user to prepare the source video files
accordingly.
> For cutting, for the cut fragment to be playable, it needs to be cut
> just before a keyframe, which can cause some timing inexactitude.
yes, the defined in/out points would need to be aligned to the nearest
keyframe.
The resulting timings thus might get a little fuzzy, depending on the
source video keyframe interval.
I for example, usually deal with videos having a 5 sec keyframe
interval, and being able to slice out a 10 minute portion say 3:50
hours
into a video with a 5 seconds in/out precision is still quite
acceptable in my book.
> I don't know how flvtool2 proceeds.
flvtool2 aligns the user defined in/out points (defined in
milliseconds) as described above.
For example, if I wanted to cut out a 1 min slice at 30 minutes into a
video, with flvtool2 I would issue:
flvtool2 -Cio 1800000 1860000 sourcevideo.flv cutout.flv
>
> As for the interface, I can add two commands,
> -S : slice
> -M : merge
> and specify the times, in seconds or milliseconds.
or maybe "C" for "Cut", like flvtool2 uses.
Milliseconds would be more precise, especially since a flv file could
be encoded with a sub-second keyframe interval.
Anyway, seeing this feature added to flvmeta would be totally cool :)