Closed (works as designed)
Project:
Video
Version:
7.x-2.8
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2012 at 10:22 UTC
Updated:
29 Dec 2015 at 19:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drupov commentedHere's a snapshot of what my node looks like at the moment, when two different video formats have been added to a video field.
Comment #2
dp_warren commentedHi
I had a similar scenario but ended up adjusting my workflow to use Zencoder to create the HTML5 variants (ogv and webm formats) from a single source file.
Using this approach meant the video module will return all zen(encoded) files back in a 'playablefiles' array by default which means less coding providing you are happy to use zencoder. Here is what the returned array looks like for my custom field 'field_video_source':
Comment #3
drupov commentedThanks!
So such a thing cannot be achieved without Zencoder?
I see that the service is not free so there is no helper function to do that manually?
Thanks
Comment #4
dp_warren commentedI'm sure it probably can be achieved without but I haven't looked at it as an option.
The
function video_field_loadin video.field.inc in the video module should provide an insight of how it's currently done if you are thinking of writing your own function to overrideComment #5
xqbzzr commentedAny progress on this yet? I am interested in exactly this solution but am not able to code this.
Comment #6
ben.denham commentedI also needed this functionality, so I created a custom field formatter that renders each video in a multiple-value field as a separate source.
I've uploaded a sandbox module with the field formatter, which you can download here: Multi-source Video.
Comment #7
jamesrward commentedNeeded this for a client site and your code is working beautifully. Thanks so much! This allows me to use a free service like online-convert.com to convert the files myself and upload the variants manually. For a lot of folks without ffmpeg on their servers this provides a good free fallback option. Would love to see this included in the main module but for now ben.denham's solution is great.
Comment #8
RedTop commentedThanks, great addition. Would be great for this to be included with the Video module!
I did have to change line 58 from:
for ($i = 1; $i < count($items); $i++) {to
for ($i = 1; $i <= count($items); $i++) {to have all files included in the video tag when adding more than two versions (m4v, webm, ogv).
I do have an issue remaining when using this in conjuction with flexslider:
However, not your problem. :)
Comment #9
haysuess commentedThanks so much for this module, I have it working great. Makes it so much easier than transcoding with Zencoder.
Do you know a way to manually upload 3 different resolutions (480p, 720p, 1080p) and have the user be able to choose which one to see? Just like YouTube...
Comment #10
haysuess commentedThis seems to be working fine, but I'm seeing these errors in Watchdog, after applying the chance listed in #8. Should I change the code back?
Comment #11
hypertext200