[vlc-devel] Idea - Recut Timecode File

DJDaveMark djdavemark at yahoo.co.uk
Mon Jan 15 21:59:25 CET 2018

Hi François,
To be clear, I am not proposing anything like WebVTT (captions or subtitles for video content), but a format for creating on-the-fly recuts of videos:https://en.wikipedia.org/wiki/Recut

Think of a radio edit (~3 minutes) for a club song of about 6 minutes. Radio edits are taken from the ~6 minute song, but instead of a 2 minute intro before the break, they replace it with some thing about 10 seconds long, do the same with the end and chop some off in the middle to reduce the duration down to about 3 minutes. The radio edit introduces no new audio, it just cuts bits off to hear all the good parts quickly.

My previous example takes a full length video file of 60 minutes (video.avi), and using a simple text file of the same name in the same directory (video.recut), when watching the video with VLC Player, it gets turned into a much shorter version on-the-fly (~37mins), i.e. doing Playback > Jump to Specific Time (Ctrl+T) multiple times automatically.
In other words when watching the video the progress bar would jump from 22:22,222 to 33:33,333 instantaneously.
I just borrowed the format from SubRip (SRT) which WebVTT also did, which is where the confusion is coming from. Although, in it's most basic form, there is no need for text to accompany the timecodes (nor even the number sequence before the timecodes).

This can already be done via things like Avidemux using scripts, but that outputs a whole new video file, which is not only large in size (~700mb) but you would be infringing copyright by publishing it publicly.
On the other hand, a small text file (~1kb) detailing how to chop up a video file, which VLC Player interprets on-the-fly using the original full length video, can be freely published to the web no problem whatsoever.


    On Monday, 15 January 2018, 16:27:01 CET, Francois Cartegnie <fcvlcdev at free.fr> wrote:  
 Le 15/01/2018 à 16:06, DJDaveMark via vlc-devel a écrit :
> In the example above the transitions would be instantaneous.
> More advanced things to implement could be to use JSON format (allows future expansion) to specify things like transitions (as in CSS3 with effects/durations/etc.):
> 1
> 00:01:11,111 --> 00:22:22,222
>  {    "in": {"transition": "fadeIn", "duration": 2},     "out": {"transition": "fadeOut", "duration": 0.1}}
> The file extension could be .recut (or .rct)The file could be encoded in plain text UTF-8.An associated website indexing user submitted files could be openrecuts.org
> Let me know if anyone thinks it's a good idea and would like to code this up.

No thanks. You're just reinventing webvtt and bringing the sames issues.

We already have to deal with more formats we need.
Don't fork old formats. Use fully specified ones.

Francois Cartegnie
VideoLAN - VLC Developer
vlc-devel mailing list
To unsubscribe or modify your subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20180115/c6ce43ec/attachment.html>

More information about the vlc-devel mailing list