Changes

Jump to: navigation, search

Create Transport File/en

2,235 bytes added, 12:58, 23 September 2014
Новая страница: «==Syntax== To create transport file you have to start command <tt>acestreamengine --create-transport</tt> ''required parameters'' *<tt>--input-path PATH</tt> - path…»
==Syntax==
To create transport file you have to start command <tt>acestreamengine --create-transport</tt>

''required parameters''
*<tt>--input-path PATH</tt> - path to a file, for which transport file has to be created
*<tt>--tracker TRACKER_URL</tt> - tracker's address (it is required to specify at least one tracker). If you need to add several trackers, you should specify this option several times

''optional parameters''
*<tt>--output-dir PATH</tt> - path to a directory, in which resulting transport file will be created. By default it is a current directory.
*<tt>--name NAME</tt> - name of transport file (if not specified, extension .acestream will be added automatically). If not specified, by default name of a file with content will be used for transport file.
*<tt>--piece-size PIECE_SIZE</tt> - size of a piece in bytes. By default 32768. Valid values: degrees of 2 from 32768 to 16777216.
*<tt>--http-seed URL</tt> - link to http-seed to support distribution. This link must point to the same file, which is specified in option --input-path. To add several links you should specify this option several times.
*<tt>--provider-key KEY</tt> - key of content organizer
*<tt>--sid ID</tt> - content identifier used for statistics (this ID is set by the organizer, it can be any alphanumeric string)
*<tt>--copy-protected</tt> - allow saving content on the user's side in encrypted container .acemedia
*<tt>--copy-disable</tt> - prohibit saving content on the user's side
*<tt>--premium</tt> - mark this content as premium content
*<tt>--duration SECONDS</tt> (''available from version 2.1.5.3'') - specify duration of the content in seconds

==Example==
Creation of transport file for file /tmp/test.mp4, save the result in /var/www/files/test.acestream, piece size 256 Kbyte, prohibit saving content on the user's side, tracker udp://tracker.publicbt.com:80/announce, add http-seed <nowiki>http://example.com/files/test.mp4</nowiki>:

<tt><nowiki>acestreamengine --create-transport \
--input-path /tmp/test.mp4 \
--output-dir /var/www/files \
--name test \
--piece-size 262144 \
--copy-disable \
--tracker udp://tracker.publicbt.com:80/announce \
--http-seed http://example.com/files/test.mp4</nowiki></tt>

Navigation menu