Hi,

I'm having an issue with using the private filesystem and transcoding video with the latest beta release of the module.

Any video I attach to a node is being transcoded correctly to the private filesystem (private://videos/converted/NID/FILENAME).

When I try to access the converted file I get 'access denied'... even on the top uber admin account. I can access the original video file under private://videos/original/FILENAME

I noticed that the converted files didn't have an entry in the file_usage table which I thought might cause the issue so I added entries for the files but it didn't help.

Cheers

Files: 
CommentFileSizeAuthor
#6 1293310-6.patch1.35 KBsepph
#5 1293310-5.patch1.3 KBsepph

Comments

Please see carefully in the file_managed table we've fixed that issue we had in older versions.

That's the odd thing. The converted files have entries in the file_managed table but they are still not accessible. The entries look correct to me.

Status:Active» Postponed (maintainer needs more info)

please provide me more information to re-produce the issue. What are your field configurations and video settings.

Firstly I'm running a multisite setup, though only with 1 site at the moment.

The video field is attached an 'asset' content type with the following settings:

Allowed extensions: mp4, m4v, ogg, avi, mov, wmv, flv, ogv, webm
File directory: videos/original
Maximum upload size: set via PHP settings to 150mb
Progress indicator: Bar with progress meter
Output video dimensions: 640x360
Number of values: 1
Upload destination: Private files
Enable auto video conversion: Checked
Video thumbnails: Don't create thumbnail

My video settings are as follows:

General settings...

Only 'Automatically start video buffering' checked

Players...

All default apart from mp4 which is set to use the VideoJS module

Transcoders...

FFmpeg - path: /usr/bin/ffmpeg - version 0.6.1 found
Path to save thumbnails: videos/thumbnails
Number of thumbnails: 5
Save all thumbnails in {file_managed} table: Unchecked

Manage preset...

Use preset WxH for video conversion: Checked
Using presets from video_presets module (FFmpeg version http://drupal.org/node/1293310)

Metadata...

FlvTool2 - path: /usr/bin/flvtool2

Cron settings...

Use Drupals built in cron: Checked
Video queue timeout (s): 90
Total videos to convert during each cron process: 5

Anything else you need let me know.

Cheers

StatusFileSize
new1.3 KB

I've looked further in to this and think I might have found the issue.

The video_file_download function is passing through the converted file's URI to the system file_file_download function which checks to see if the file is associated with a field.

If written a block of code to handle the converted files and attached a patch. It might need a bit more work as I'm still a Drupal noob... this is my 1st patch! I've avoided altering the rest of the code in the function.

Cheers

StatusFileSize
new1.35 KB

Just noticed a problem in the last patch. Ignore the last one.

Component:Video Trasncoding» Video Core

I LOVE YOU, MAN.

I was having the same issue, I could not stream video from the private file system. This module is way too far along for that....

Thanks sepph for a job well done. Great first patch I must say.

Status:Postponed (maintainer needs more info)» Needs review

Status:Needs review» Patch (to be ported)

Status:Patch (to be ported)» Closed (fixed)

Added to the dev

Version:7.x-2.2-beta3» 7.x-2.x-dev

Still, thumbnails are generated but not displayed - private filesystem.

Video thumbnails are displayed for the public filesystem.

(Image module is showing private photos and thumbnails just fine)

Status:Closed (fixed)» Active

This issue seems to have resurfaced for me — using 7.x-2.5 — and dev dated April 3.

Ok have some more info on this:
Seems that thumbnails are generated, and saved in a *public* file system:

/sites/default/files/styles/square_thumbnail/public/videos/thumbnails/287/thumbnail-287_0001.png

But when the node is opened and re-saved (with or without re-transcoding) — the path to the thumbnail is re-saved as one that the system manages:

/system/files/styles/square_thumbnail/private/videos/thumbnails/291/thumbnail-291_0001.png

Which points to the *private* file system for the thumbnail, but that's not where it's saved.
Any suggestions?

I am working on improving thumbnail generation with respect to various destinations. If I can fix this easily, I'll fix it, but my original intention was to fix all issues with the private file system in one go.

Understood — totally appreciated.

Assigned:Unassigned» Jorrit
Status:Active» Postponed (maintainer needs more info)

You can try the latest 7.x-2.x-dev if you want. It is quite unstable, but it seems to work for others as well. I recommend to make backups or try it on a separate installation. Also take a look at http://drupal.org/node/1215918 . Let me know if it works.

Status:Postponed (maintainer needs more info)» Fixed

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Status:Closed (fixed)» Active

When I sat upload destination of original file on a private file I get the error of zencoder Access to the file at

'http://my-sites.de/system/files/video/november.mp4' was denied (HTTP 403 response code). If this is a S3 URL, you probably need to grant read access to Zencoder for this bucket or file. Get more information in the documentation.

If I hire on public files Everything works. What can it be?

The video field is attached an 'asset' content type with the following settings:

Allowed extensions: mp4, m4v, ogg, avi, mov, wmv, flv, ogv, webm
File directory: videos/original
Maximum upload size: set via PHP settings to 150mb
Progress indicator: Bar with progress meter
Output video dimensions: 853x480
Number of values: 1
Upload destination: Private files
Upload destination of converted files: Amazon S3
Upload destination of thumbnails: Amazon S3
Enable auto video conversion: Checked
Video thumbnails: Automatically extract thumbnails from video (with fallback to manual upload)

Only 'Automatically start video buffering' checked

Players...

All default apart from mp4 which is set to use the VideoJS module

Transcoders...

Zencoder:
Number of thumbnails: 5

Location for Zencoder output:

enable: Amazon S3 bucket november-2012
enable: Store files on Amazon S3 privately

Cron settings...

Use Drupals built in cron: Checked
Video queue timeout (s): 90
Total videos to convert during each cron process: 5

Status:Active» Postponed (maintainer needs more info)

When you're not logged in, are you able to access 'http://my-sites.de/system/files/video/november.mp4'?
Is the node that 'http://my-sites.de/system/files/video/november.mp4' is attached to published when Zencoder tries to access it?

It may be because Zencoder can't access the file while it is in private storage because the node is not visible at that moment.

all clear to private files can only use registered user. When guest is the file is not available. That was actually the thought but zencoder hospitable needs access? can be the change that gets zencoder more right?

Issue summary:View changes

Is this bug still ongoing?