I'm using flowplayer as video player for .flv files, using the drupal module flowplayer.

I found that the path passed to player is relative, so if we aren't on url top level the video doesn't works.

I propose you add an slash before to the relative path.

Consider it or correct me. Thanks.

Comments

daniels____’s picture

StatusFileSize
new661 bytes

The patch.

threewestwinds’s picture

I've just encountered the same problem, and can confirm that the patch fixed the issue for me as well. It seems simple enough - does anyone have a reason why we shouldn't just use the absolute path in here?

hypertext200’s picture

Status: Needs review » Reviewed & tested by the community
dmurray’s picture

When I try and apply this patch I get this error:


Hunk #1 FAILED at 51.
1 out of 1 hunk FAILED -- saving rejects to file video_helper.inc.rej

any ideas?

threewestwinds’s picture

Can you specify what version of the module you're trying to apply it to? The error you posted suggests that the patch didn't apply because the base file (video_helper.inc) has changed. I'll reroll the patch for you, once I know what version you want it for.

You can also try to do the patch manually - search video_helper.inc for the line

$video->url = (!valid_url($converted->filepath)) ? file_create_url($converted->filepath) : $converted->filepath;

and replace ": $converted->filepath;" with ": '/' . $converted->filepath;"

dmurray’s picture

Excellent, thanks for the help. I was using the latest dev version of the module. After making the changes to video_helper.inc i no longer get the error and the video works. This should be committed to the svn. Thanks for your help.

parasox’s picture

This patch fixed a similar problem I was having when using Video combined with the Display Suite (http://www.drupal.org/project/ds) module.

The problem was that Videos would show in a teaser, but wouldn't show in a full node. If I dragged the Video field into the Display on a Full Node, it would give me the 200 stream error. This path resolved that issue for me, thanks!

ronline’s picture

Version: 6.x-4.x-dev » 6.x-4.1-rc6

Problem is showing in 6.x-4.1-rc6, patch fix the issue.

daniels____’s picture

Now I see that use base_path() is better than put '/' directly. This is for flexibility reasons.

tomfacts’s picture

Hello, I'm very new to Drupal. I have this same error 200 issue.
Where does this patch get applied?
Thanks for tracking this down.

parasox’s picture

tom, put the patch in the same directory as your "video_helper.inc" file and then run "patch < video_helper.inc_.955656.patch"

I forget if the inc file is in the main module directory or in like an "includes" subfolder.

mkdi’s picture

I have the same issue but when I checked the error in detail, the path that is included in the error is actually the path of the original file and not the converted file. Is this a normal behavior or am i missing some thing? I'm using 6.x-4.2-alpha2 with flowplayer3 module.

hypertext200’s picture

@mkdi are you using a fresh install or upgrade?

mkdi’s picture

heshan.lk, I'm using a clean install

hypertext200’s picture

Hmm, not sure about the issue, for me its working fine. Just have a look at the watchdog and try to debug.

mkdi’s picture

Could you please tell me what SWF, and Video modules you are using that works fine together.

daniels____’s picture

@mkdi, you said that you have the same error, if you look at rendered HTML, the path passed to video player is accesible from your browser?

bhosmer’s picture

I have the same issue as well. The filename that gets added contains the % symbol when I view the source.

I also can't seem to get the patch to work no matter what version of the module I use. It always ends with a failure on line 51.

Interestingly enough, the bug doesn't appear when I use video on my local MAMP installation, but when I use it with my webenabled account the filename gets changed for some reason to contain %'s. Hence the player can't find the file. The file exists in my files directory as my original file name.

psmx’s picture

After upgrading from 6x-4.1 to 6x-4.2alpha2 same issue here: Wrong path gets handed to flowplayer. Just the filepath gets handed (sites/default/files), no folders or filename. Downgrade to 6x-4.1rc6 fixed the issue.

rv0’s picture

Well, as the current patches didn't work and I didn't have time to delve thru the code for a decent fix (just launched a site, had to switch video player due to circumstances, the error popped up on live site: not good)

This is how I fixed it:

change (line 111) in video_helper_inc:
$thumbnail->swfthumb = $thumbnail->filepath;

to
$thumbnail->swfthumb = substr($thumbnail->filepath,19);

There's probably a much better way to do this, but it works and that's what counts for me now

beshox’s picture

you may made my mistake, I faced same error message , after spending some time, i discovered that i forget to assign the file field at "Display Field" to "swftools or flowplayer" instead of generic files, after that it worked good.

hypertext200’s picture

Status: Reviewed & tested by the community » Closed (fixed)
Roritharr’s picture

Status: Closed (fixed) » Active

I still encounter this exact problem in Video 4.2 6.x

Chris Durham’s picture

Same here

kdmarks’s picture

Same here.

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Could you post the HTML snippet of the player code?

schultetwin’s picture

I'm having the same problem. As a note, I do not have ffmpeg on the server, so I'm just using flv videos. I'm on the dev version (as of today) of video. Here is my html code:

<div id="video-plain" style="width:640px;height:504px;" class="flowplayer flowplayer-processed"><object width="100%" height="100%" id="video-plain_api" data="/sites/all/modules/flowplayer/flowplayer/flowplayer.swf" type="application/x-shockwave-flash"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="quality" value="high"><param name="cachebusting" value="false"><param name="bgcolor" value="#000000"><param name="flashvars" value="config={"playlist":[{"url":"http://dev.ejrst.net/sites/default/files/","scaling":"fit"},{"url":"","autoPlay":0,"autoBuffering":1,"scaling":"fit"}],"clip":{"scaling":"fit"},"playerId":"video-plain"}"></object></div>

This is the error that is displaying:
200, Stream not found, Netstream.Play.Streamnotfound, clip '[clip: http://dev.ejrst.net/sites/default/files/]'

I'm not sure why the clip is point to my sites directory, but that is the full error.

schultetwin’s picture

Ah, so I found the first error. Without ffmpeg, I have not thumbnails, so that causes an error. If I correct for that, using the method described here, I get the following the same error upon starting the video, except now its: (different url)

200, Stream not found, Netstream.Play.Streamnotfound, clip '[clip: http://dev.ejrst.net/content]'

Jorrit’s picture

Version: 6.x-4.1-rc6 » 6.x-4.2

I am unable to reproduce the error. Could you post your video module settings, field settings and the settings associated with the uploaded file? Screenshots of the screens are fine too, whatever is easier for you.

schultetwin’s picture

StatusFileSize
new935.74 KB

All necessary files are attached. For the field settings page, I just gave you the unformatted html. It should load fine, and that way you can actually see the full page, not just the screenshot.

As a reminder, on this system, I do not have ffmpeg.

Thanks
Mark Schulte

Jorrit’s picture

When I enter the settings like on your screenshots, I get the following error after saving the node:

The video conversion process has failed. You might want to submit a simpler video format like mpeg or divx avi.
If the problem persists please contact website administrators.

This is because you have the "Enable video conversion." on in your field settings.

I also have some other questions:

  • Do you have any presets toggled on?
  • What is the behavior after you upload the file and save the node? Are there any warnings?
schultetwin’s picture

So, after disabling "enable video conversion" on the field settings, I'm able to upload and play flv. I'm not sure what you mean by "presets", but I basically kept all the settings at default.

Thanks for the help!

Jorrit’s picture

Presets is one of the tabs in the administration panel. I was wondering if you had any presets selected.

Is your problem with the bad file path solved?

schultetwin’s picture

I only have flashed enabled for presets.

The problem is solved (I'm not sure what I should mark this thread as, fixed?). Thank you for your help.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Doesn't really matter. I am very glad that your problem has been solved.