[FFmpeg-trac] #2933(avformat:new): flv captions
FFmpeg
trac at avcodec.org
Thu Apr 30 19:34:33 CEST 2015
#2933: flv captions
-------------------------------------+------------------------------------
Reporter: cehoyos | Owner:
Type: enhancement | Status: new
Priority: wish | Component: avformat
Version: git-master | Resolution:
Keywords: flv sub | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+------------------------------------
Comment (by al3x):
More info on: http://www.buraks.com/captionate/docs/receive.html and
http://flash.flowplayer.org/documentation/events/clip.html
Demuxer support implemented in 3727cd5416788df8e4a54dbde903de858de7de7b.
According to captionate documention there might be subs for multiple
streams:
{{{
nets.onCaption = function(captions,speaker){
trace('onCaption event at '+nets.time);
trace(' Speaker index: '+speaker);
for (n=0;n<captions.length;n++){
str=captions[n];
trace(' Caption for track '+n+' > "'+str+'"');
}
nets.onCaptionInfo = function(info){
trace('onCaptionInfo event at '+nets.time);
speakers=info.speakers;
for (n=0;n<speakers.length;n++){
obj=speakers[n];
trace(' Speaker '+n+' > '+
' name: "'+obj.name+'"'+
' data: "'+obj.data+'"' );
}
tracks=info.tracks;
for (n=0;n<tracks.length;n++){
obj=tracks[n];
trace(' Track '+n+' > '+
' displayname: "'+obj.displayname+'"'+
' type: "'+obj.type+'"'+
' languagecode: "'+obj.languagecode+'"'+
' targetwpm: '+obj.targetwpm+
' data: "'+obj.data+'"' );
}
}
}
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/2933#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list