Just as mp3 it could use the getid3 to fetch movie dimensions and meta-data. I will play around with the mp3 field and try to understand how it works. Maybe I can code this feature myself.

Comments

Anonymous’s picture

Uwe Hermann’s picture

Reopening, I think this was closed erroneously, because the default status for new issues is "fixed" (which it shouldn't).

Uwe Hermann’s picture

harald.walker’s picture

StatusFileSize
new7.63 KB

I have been working on the Quicktime movie implemenation this weekend and it is working in most parts (adding and displaying works!). My biggest problem is now to update properties. The existing extensions (mp3, images) only use the upload form field but no editable fields (like tag, alt-text,...). If you know more about flexnode and module development, please have a look at the attachment.

harald.walker’s picture

StatusFileSize
new378.66 KB

notes:
the getid3 library is currently required. Is is used to retrieve the dimensions and tags from the Quicktime movie. But there is a size limit in php, so don't try to import your 20MB music video!

to-do:
- check for getid3
- do not use getid3 if the file is larger than X
- add common tag fields and dimensions in the form for manual data entry
- enable user to update field data of an existing node

I attached a small sample QT movie for those who would like to experiment with this.

Anonymous’s picture

any updates on this? I tried it but it was problematic...

Anonymous’s picture

Category: feature » bug

i add this .inc to the modules/flexinode dir and whenever i load my site, i get this error:

Parse error: parse error, unexpected ')' in /path/to/site/modules/flexinode/field_mov.inc on line 44

Anonymous’s picture

i adjusted the parse errors to work.
then, i noticed images in posts (image nodes) could not appear... and when i updated an image node, i got this error:

| |

warning: Cannot modify header information - headers already sent by (output started at /path/to/site/modules/flexinode/field_mov.inc:1) in /path/to/site/includes/common.inc on line 155.

harald.walker’s picture

I will start working on this again soon and make it compatible with the 4.5.1. release.
Anonymous: please don't stay 'anonymous'. It is much nicer to talk to real people.

Dan Check@drupal.org’s picture

StatusFileSize
new7.68 KB

Hi,

I've cleaned up the module a little bit so that the controller / loop / autoplay sections now function properly, and are editable. The form also remembers current values. There's an outstanding issue in that the controller / loop / autoplay checkboxes cannot be edited unless you upload a new file.

Also, the width and height were reversed on the movie (width = x; height = y), and the height is now adjusted to be 15 pixels taller if the controller is enabled.

Hope this helps.

Dan

Dan Check@drupal.org’s picture

StatusFileSize
new3.51 KB

...and here's the diff

seaneffel’s picture

Version: » 4.6.x-1.x-dev

I'm looking all over the place for a way to embed video in a node. I tried Flexinode and attemped to add this QuickTime include.

Running that unmodified Flexinode module works great. However, when I add this field_mov.inc to the flexinode folder then the site fails to load (blank screen of death, very scary).

I have not attemped to patch/diff/etc anything, this is vocabulary that I do not understand. I'll just make a plea for the author to please repost a current modded .inc file for us to try out. Maybe there are changes needed since 4.6?

ica’s picture

field_mov.inc plugin does not work with versin 4.7 of flexinode mode

i get this message

Fatal error: Call to undefined function: form_file() in /home/dp/modules/flexinode/contrib/field_mov.inc on line 18

and that is
-18
$output .= form_file(t($field->label), $fieldname, 40, ($node->$fieldname ? t('"%filename" has been uploaded. If you upload another file, the current file will be replaced.', array('%filename' => $node->$fieldname->filename)) : '') .' '. t($field->description), $field->required);

resaon?
any update on the field_mov.inc on the sight?

9802008’s picture

Title: Quicktime field » Update of script to work with 4.7.0
Version: 4.6.x-1.x-dev » 4.7.x-1.x-dev
Category: bug » task
Status: Active » Needs work
StatusFileSize
new11.7 KB

Hi Guys

Thanks to everyone who has worked on this script - very handy to have. Thanks also for some of the code from the video module. I have started upgrading the script to 4.7.0 . It only supports mpg and quick time at the moment. Also the size and state of the player are fixed. Redundant code is still in the script.

Please note that the script has not been tested properly. I know of two bugs:
1. Only one MOV field can be added per flexinode.
2. Script only works on some servers (? no idea why). The video is uploaded to the tmp folder correctly, however it is never moved to 'files'.

9802008’s picture

StatusFileSize
new10.71 KB

Found the bug with the video not uploading correctly on some servers.

file_save_upload in _validate function should be file_check_upload

Also added support for some more video types.

maastrix’s picture

Great work guys! Looking forward to see more of this patch.. Can someone please tell me how I can add the video code in my node-flexinode template?

Hope this is possible...

maastrix’s picture

BTW, You missed a DIV closing tag in the following function:

function _theme_mov_format_play($output, $url, $title, $link_text, $file) {
  $output = "\n<div id=\"video-player\">\n" . $output;
  $output .= "<br />\n";
  $output .= l('Download Video ('. format_size($file->filesize) .')', file_create_url($file->filepath) ); 
  $output .= "<br />\n". t('Problems viewing videos?');
  $output .= "<br />\n";
  $output .= l($link_text, $url, array('title' => $title), NULL, NULL, TRUE);
  $output .= "</div>";

I added the last line so my page didn't get messed up.

maastrix’s picture

What is the code to show the video? I would like to make a template for my video pages.

ahoeben’s picture

Title: Update of script to work with 4.7.0 » Quicktime field
maastrix’s picture

Title: Quicktime field » Add video field in flexinode
heckp’s picture

StatusFileSize
new10.73 KB

the file with the little change mentioned above

schwa’s picture

Using the version from #27 on a fresh install of 4.7.4, I'm getting infinite loops where the video is not being uploaded - submit or preview returns to a screen with the video file upload field empty again and the red 'field is required' text since I've designated that field required for the node type. So, video simply isn't writing/loading. Version from #27 does include the file_check_upload change mentioned above.

Note: no 'upload' button appears, simply the browse button. Normal behavior?

Using Mac Firefox and a new vanilla install with pushbutton theme in a standard LAMP environment. Creating content as user=1 (admin). No other media modules enabled. Files directory has 777 chmod.

Help?

schwa’s picture

Make that "using the version from comment #21", thanks.