Hello guys!


I'm just add option to flvtool2 which allow you to generate fake (but valid) keyframes for FLV wiout video stream. For example, if you convert mp3 audio file into flv, you will get FLV file without keyframes (cos keyframes it property of video tags in flv format). This make troubles on flv streaming for such audio files. For instance flash client can't be use keyframes and streaming is disallowed for such files.


The solution is simple add keyframes meta information depends on Audio Tags, but not each one. I'm used every 28 audio tag (~0.5 sec) and insert keyframes into FLV. As result is FLV file, without video stream, but with valid (fake) keyframes. Anyway now i'm can use streaming for audio flv files and for video. It's work.


Usage:

[EMAIL PROTECTED]:~$ flvtool2
FLVTool2 1.0.6
Copyright (c) 2005-2007 Norman Timmler (inlet media e.K., Hamburg, Germany)
Get the latest version from http://www.inlet-media.de/flvtool2
This program is published under the BSD license.

Usage: flvtool2 [-ACDPUVaciklnoprstvxy]... [-key:value]... in-path|stdin [out-path|stdout]

If out-path is omitted, in-path will be overwritten.
In-path can be a single file, or a directory. If in-path is a directory,
out-path has to be likewise, or can be omitted. Directory recursion
is controlled by the -r switch. You can use stdin and stdout keywords
as in- and out-path for piping or redirecting.

Chain commands like that: -UP (updates FLV file than prints out meta data)

Commands:
  -A            Adds tags from -t tags-file
  -C            Cuts file using -i inpoint and -o outpoint
  -D            Debugs file (writes a lot to stdout)
  -H            Helpscreen will be shown
  -P            Prints out meta data to stdout
  -U            Updates FLV with an onMetaTag event

Switches:
  -a            Collapse space between cutted regions
  -c            Compatibility mode calculates some onMetaTag values different
  -key:value    Key-value-pair for onMetaData tag (overwrites generated values)
  -i timestamp  Inpoint for cut command in miliseconds
  -k            Keyframe mode slides onCuePoint(navigation) tags added by the
                add command to nearest keyframe position
  -l            Logs FLV stream reading to stream.log in current directory
  -n            Number of tag to debug
  -o timestamp  Outpoint for cut command in miliseconds
  -p            Preserve mode only updates FLVs that have not been processed
                before
  -r            Recursion for directory processing
  -s            Simulation mode never writes FLV data to out-path
  -t path       Tagfile (MetaTags written in XML)
  -v            Verbose mode
  -x            XML mode instead of YAML mode
  -y            Try to generate keyframes for audio only files automaticaly

REPORT BUGS at http://projects.inlet-media.de/flvtool2
Powered by Riva VX, http://rivavx.com


As you can see i'm added option '-y', which allow to generate keyframes depends on audio tags.


Thank you!
--
Alexey Efimov, Yandex

_______________________________________________
Flvtool2-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/flvtool2-users

Reply via email to