Open kirantpatil opened 12 years ago
Kiran,
Just to be clear on how it works: ChiliVideos uses Transloadit for the transcoding of raw video files only...you can configure your Assembly to store your files wherever you want. I personally have only set it up to work with Amazon's S3 service, but, using a "local" server (one you own) should be fine as well.
It looks like Transloadit has a "/store/sftp" robot which would probably meet your needs (docs here). Using that, Transloadit would just SFTP the finished transcodings to whatever server/path you specify. I believe the JSON response will be the same format as it is when using S3 and ChiliVideos should Just Work(tm). I haven't tested this specific scenario, but...it should. ;-)
If you give it a try, let me know how it goes. If it fails, I can take a look at the response you are receiving from Transloadit and implement the necessary changes to support it.
Sound good?
Tom,
I just want to bypass the transcoding and upload the .ogg/.ogv/.wbem files to local storage and play them.
Thanks, Kiran.
On Thu, Nov 24, 2011 at 7:20 PM, Tom Kersten < reply@reply.github.com
wrote:
Kiran,
Just to be clear on how it works: ChiliVideos uses Transloadit for the transcoding of raw video files only...you can configure your Assembly to store your files wherever you want. I personally have only set it up to work with Amazon's S3 service, but, using a "local" server (one you own) should be fine as well.
It looks like Transloadit has a "/store/sftp" robot which would probably meet your needs (docs here). Using that, Transloadit would just SFTP the finished transcodings to whatever server/path you specify. I believe the JSON response will be the same format as it is when using S3 and ChiliVideos should Just Work(tm). I haven't tested this specific scenario, but...it should. ;-)
If you give it a try, let me know how it goes. If it fails, I can take a look at the response you are receiving from Transloadit and implement the necessary changes to support it.
Sound good?
Reply to this email directly or view it on GitHub: https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2864653
Hmmm. Let me think about it a little bit...
Here's a question: What format(s) do you expect to be uploading? Today, the plugin only supports FLV files, as the the video
macro expects it...
If you expect to be able to to upload several formats for a single "video" (eg: upload webm, ogg, flv versions all for the same "Video" for a Project)...the video
macro will need to be updated to choose the correct version according to the client type (browser)...
Thoughts?
Tom,
My scenario is not uploading the same video with multiple formats but to upload videos with only freesoftware formats like ogg/ogv/webm.
Firefox version 3.6 onwards supports playing ogg/ogv/webm by default in the browser which uses html5 video tag to play.
So we don't need any external video macro at client end to play videos.
Thanks, Kiran.
On Thu, Nov 24, 2011 at 7:59 PM, Tom Kersten < reply@reply.github.com
wrote:
Hmmm. Let me think about it a little bit...
Here's a question: What format(s) do you expect to be uploading? Today, the plugin only supports FLV files, as the the
video
macro expects it...If you expect to be able to to upload several formats for a single "video" (eg: upload webm, ogg, flv versions all for the same "Video" for a Project)...the
video
macro will need to be updated to choose the correct version according to the client type (browser)...Thoughts?
Reply to this email directly or view it on GitHub: https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2865002
Understood. However, the video
macro which is displayed would need to
detect the file type & change the HTML that is generated for these
videos...to use the
However, by doing this, the user will be required to use the "correct" browser for whichever format you are uploading (Firefox in the scenario you outlined). Is that the functionality you are asking for?
-tom
On Thu, Nov 24, 2011 at 8:45 AM, kirantpatil < reply@reply.github.com
wrote:
Tom,
My scenario is not uploading the same video with multiple formats but to upload videos with only freesoftware formats like ogg/ogv/webm.
Firefox version 3.6 onwards supports playing ogg/ogv/webm by default in the browser which uses html5 video tag to play.
So we don't need any external video macro at client end to play videos.
Thanks, Kiran.
On Thu, Nov 24, 2011 at 7:59 PM, Tom Kersten < reply@reply.github.com
wrote:
Hmmm. Let me think about it a little bit...
Here's a question: What format(s) do you expect to be uploading? Today, the plugin only supports FLV files, as the the
video
macro expects it...If you expect to be able to to upload several formats for a single "video" (eg: upload webm, ogg, flv versions all for the same "Video" for a Project)...the
video
macro will need to be updated to choose the correct version according to the client type (browser)...Thoughts?
Reply to this email directly or view it on GitHub:
https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2865002
Reply to this email directly or view it on GitHub: https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2865150
Yes, Absolutely.
I want users to use only Freesoftware :).
Thank you for allowing us to live in freedom (as RMS says).
Thanks, Kiran.
On Thu, Nov 24, 2011 at 8:20 PM, Tom Kersten < reply@reply.github.com
wrote:
Understood. However, the
video
macro which is displayed would need to detect the file type & change the HTML that is generated for these videos...to use theHowever, by doing this, the user will be required to use the "correct" browser for whichever format you are uploading (Firefox in the scenario you outlined). Is that the functionality you are asking for?
-tom
On Thu, Nov 24, 2011 at 8:45 AM, kirantpatil < reply@reply.github.com
wrote:
Tom,
My scenario is not uploading the same video with multiple formats but to upload videos with only freesoftware formats like ogg/ogv/webm.
Firefox version 3.6 onwards supports playing ogg/ogv/webm by default in the browser which uses html5 video tag to play.
So we don't need any external video macro at client end to play videos.
Thanks, Kiran.
On Thu, Nov 24, 2011 at 7:59 PM, Tom Kersten < reply@reply.github.com
wrote:
Hmmm. Let me think about it a little bit...
Here's a question: What format(s) do you expect to be uploading? Today, the plugin only supports FLV files, as the the
video
macro expects it...If you expect to be able to to upload several formats for a single "video" (eg: upload webm, ogg, flv versions all for the same "Video" for a Project)...the
video
macro will need to be updated to choose the correct version according to the client type (browser)...Thoughts?
Reply to this email directly or view it on GitHub:
https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2865002
Reply to this email directly or view it on GitHub:
https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2865150
Reply to this email directly or view it on GitHub: https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2865192
Let me think about it...I think I can put something together...
;-)
-tom
On Thu, Nov 24, 2011 at 8:57 AM, kirantpatil < reply@reply.github.com
wrote:
Yes, Absolutely.
I want users to use only Freesoftware :).
Thank you for allowing us to live in freedom (as RMS says).
Thanks, Kiran.
On Thu, Nov 24, 2011 at 8:20 PM, Tom Kersten < reply@reply.github.com
wrote:
Understood. However, the
video
macro which is displayed would need to detect the file type & change the HTML that is generated for these videos...to use theHowever, by doing this, the user will be required to use the "correct" browser for whichever format you are uploading (Firefox in the scenario you outlined). Is that the functionality you are asking for?
-tom
On Thu, Nov 24, 2011 at 8:45 AM, kirantpatil < reply@reply.github.com
wrote:
Tom,
My scenario is not uploading the same video with multiple formats but to upload videos with only freesoftware formats like ogg/ogv/webm.
Firefox version 3.6 onwards supports playing ogg/ogv/webm by default in the browser which uses html5 video tag to play.
So we don't need any external video macro at client end to play videos.
Thanks, Kiran.
On Thu, Nov 24, 2011 at 7:59 PM, Tom Kersten < reply@reply.github.com
wrote:
Hmmm. Let me think about it a little bit...
Here's a question: What format(s) do you expect to be uploading? Today, the plugin only supports FLV files, as the the
video
macro expects it...If you expect to be able to to upload several formats for a single "video" (eg: upload webm, ogg, flv versions all for the same "Video" for a Project)...the
video
macro will need to be updated to choose the correct version according to the client type (browser)...Thoughts?
Reply to this email directly or view it on GitHub:
https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2865002
Reply to this email directly or view it on GitHub:
https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2865150
Reply to this email directly or view it on GitHub:
https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2865192
Reply to this email directly or view it on GitHub: https://github.com/tomkersten/chili_videos/issues/13#issuecomment-2865257
Here's a bit of code I wrote for an html5 video player that should give you what you are looking for, utilizes Modernizr to detect html5 video capabilities:
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.0.6/modernizr.min.js"></script>
//HTML5 Video Extension Detection
if (Modernizr.video && Modernizr.video.h264) {var video_extension = ".mp4";}
if (Modernizr.video && Modernizr.video.ogg) {var video_extension = ".ogv";}
if (Modernizr.video && Modernizr.video.webm && Modernizr.video.h264) {var video_extension = ".webm";}
Below you can see how I used it in a playlist
var video_path = "./assets/videos/"
// Playlist swapping
$('.playlist li').click(function(){
$('video').attr('src', video_path + this.title + video_extension);
$('video').attr('autoplay', 'autoplay');
});
Acknowledging and the html markup looked something like this:
<div class="playlist"> <h1>Playlist</h1>
<ul>
<li class="current" title="demo-video"> Demo Video</li>
<li title="sample-video"> Sample Video</li>
</ul>
</div>
The resulting would produce a video linked to:
./assets/videos/demo-video.mp4 in Safari
./assets/videos/demo-video.webm in Chrome
./assets/videos/demo-video.ogv in Firefox/Opera
Hi Tom,
Wish you a belated happy new year.
Any updates so far ?
Thanks, Kiran.
@kirantpatil I haven't made any changes to date. Work has been quite busy recently, but I'll try to get going on this.
@beneggett Would you be willing to wrap that up into a pull request?
Hello Tom,
We would like to have this plugin to work with local storage as well.
Is it possible to add an option to the plugin to store and play the videos from local filesystem path ?
Where by we can play .ogg/.ogv/.webm videos on firefox browser.
Thanks, Kiran.