You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-2Lines changed: 31 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,11 @@ If you have managed hosting, contact your sysadmin to get `ffmpeg` installed.
32
32
33
33
## Transcoder Overview
34
34
35
-
The Transcoder allows you to take any locally stored video, and transcode it into any size, bitrate, framerate, and save it out as a web-ready video in a variety of file formats.
35
+
The Transcoder plugin allows you to take any video (local or remote), and transcode it into any size, bitrate, framerate, and save it out as a web-ready video in a variety of file formats.
36
36
37
37
It can also transcode audio files to any bitrate & sample rate, to a variety of file formats. It can even extract audio tracks from video files.
38
38
39
-
It also allows you to get a thumbnail of a video in any size and at any timecode, and can extract information about audio/video files such.
39
+
Transcoder also allows you to get a thumbnail of a video in any size and at any timecode, and can extract information about audio/video files such.
40
40
41
41
Finally, it lets you download an arbitrary file (such as the transcoded video) via a special download link.
42
42
@@ -59,6 +59,15 @@ To generate a transcoded video, do the following:
59
59
"height": 480
60
60
}) %}
61
61
62
+
You can also pass in an URL:
63
+
64
+
{% set transVideoUrl = craft.transcoder.getVideoUrl('http://vjs.zencdn.net/v/oceans.mp4', {
65
+
"videoFrameRate": 20,
66
+
"videoBitRate": "500k",
67
+
"width": 720,
68
+
"height": 480
69
+
}) %}
70
+
62
71
You can also pass in an `Asset`:
63
72
64
73
{% set myAsset = entry.someAsset.first() %}
@@ -122,6 +131,14 @@ To generate a transcoded audio File, do the following:
122
131
"audioChannels": 1
123
132
}) %}
124
133
134
+
You can also pass in a URL:
135
+
136
+
{% set transAudioUrl = craft.transcoder.getAudioUrl('http://www.noiseaddicts.com/samples_1w72b820/2514.mp3', {
137
+
"audioBitRate": "64k",
138
+
"audioSampleRate": 22050,
139
+
"audioChannels": 1
140
+
}) %}
141
+
125
142
You can also pass in an `Asset`:
126
143
127
144
{% set myAsset = entry.someAsset.first() %}
@@ -197,6 +214,14 @@ To generate a thumbnail from a video, do the following:
197
214
"timeInSecs": 20,
198
215
}) %}
199
216
217
+
You can also pass in a URL:
218
+
219
+
{% set transVideoUrl = craft.transcoder.getVideoUrl('http://vjs.zencdn.net/v/oceans.mp4', {
220
+
"width": 300,
221
+
"height": 200,
222
+
"timeInSecs": 20,
223
+
}) %}
224
+
200
225
You can also pass in an `Asset`:
201
226
202
227
{% set myAsset = entry.someAsset.first() %}
@@ -252,6 +277,10 @@ To get information about an existing video/audio file, you can use `craft.transc
252
277
253
278
{% set fileInfo = craft.transcoder.getFileInfo('/home/vagrant/sites/nystudio107/public/oceans.mp4', true) %}
254
279
280
+
You can also pass in a URL:
281
+
282
+
{% set fileInfo = craft.transcoder.getFileInfo('http://vjs.zencdn.net/v/oceans.mp4', true) %}
0 commit comments