ffmpeg transcoding not working

heather - September 22, 2007 - 21:36
Project:OpenPackage Video
Version:5.x-3.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:jbrown
Status:active
Description

i have uninstalled and deleted and reinstalled and i have cleared the views cache and i have deleted and reuploaded different videos... the whole shebang, short of reinstalling all of drupal. sorry if i am cross posting from the op-video website.

I was just trying to make a Random video block following instructions. I only want a random video with the title, and no other content appearing in the block. so...

- I installed op video module and views first. then installed CCK following instructions to make a random video block. *however* i never saw a "video field" option in the views build page. it seems i am missing that particular thing. what will make it appear? when i use node: body i get the entire video and i don't want that i just want the video, no text or title or comments link.

I enabled everything for content, and op video and all.. I also enabled all the Open package options in the module setting page including... OpenPackage Video Field... but I can't see the video field in my options when i go to build a new view.

These are the only options I see in the views "field" menu.

  • OpenPackage Video: Duration
  • OpenPackage Video: Total views
  • OpenPackage Video: Total views completed
  • OpenPackage Video: Total downloads
  • OpenPackage Video: Views in duration
  • OpenPackage Video: Complete views in duration
  • OpenPackage Video: Downloads in duration
  • OpenPackage Video: Filesize

how can i test for this OpenPackage Video: Video field? Can you give me a query to run to test if it exists?

i can't think of what trouble shooting i could do... short of just reinstalling all of drupal? thanks for any advice...

also if anyone could just copy and paste to show me what is the list of "Field" options they see in a build-view page when they have CCK and Op Video installed. thank you!

AttachmentSize
op-video-field.png31.59 KB

#1

heather - September 22, 2007 - 23:11

update: no joy

i made a new site, with a fresh install of drupal. i installed and enabled modules in this order, making sure to first enable any items which were depended on by others:
- CCK first
- views
- op video

- and i still have the same problem. when i got o build a view, i can't see a "video" field option. i'm obviously missing some step here... but i can't see what i might have missed since i have enabled everything.

any hints appreciated :)

#2

jbrown - September 26, 2007 - 18:01
Priority:normal» critical

The views integration is not complete yet. See this bounty: http://openpackage.biz/bounties/improved-views-integration

#3

jbrown - December 11, 2007 - 23:08
Status:active» fixed

this is now in 5.x-3.x-dev

#4

ferrangil - December 14, 2007 - 15:57

Thanks! I was also looking for that! :)

#5

tysonlee19 - December 19, 2007 - 03:26

I don't see any OP Video fields in my drop-down list. What am I missing? Also, wre there "instructions" somewhere for creating this random video block?

#6

jbrown - December 19, 2007 - 13:31

There is no longer a node type in 5.x-3.x-dev, just a field type. Views support is much improved.

http://openpackage.biz/block-theme-options

#7

Anonymous - January 2, 2008 - 13:32
Status:fixed» closed

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

#8

steven9 - February 21, 2008 - 11:16

Hi guys,

I also had the same problem as heather (couldn't find any video field in views). After reading the comments here I uninstalled the 5.x-2.5 module and installed the dev one instead. But now I don't get a Video option under "Create content"...

Any ideas?

Steven

#9

ferrangil - February 21, 2008 - 12:16

Yea.
Now, in dev (and all future) versions, the video doesn't create a content type itself. You should create a content type (using CCK) and add a video field type.
It's better, because you have all the funcionality of CCK, and the params of the video (bitrate and so on) are specific for each field. So, you can create a content type called video, and inside that content type, have more than one videos, with different sizes/bitrates, etc...

#10

steven9 - February 21, 2008 - 13:49

Thank you ferrangil,

I followed your instructions. I created a new content type "video" and I have added a video field "video_field".

The only problem is that I am now back to ground zero: :-))))

video_field:
Transcoding failed. Please try another video.

Steven

#11

ferrangil - February 21, 2008 - 15:35

Probably (99%) the path to ffmpeg is wrong! Check it on the settings page. (By the way, the transcoding was working previously? And you're using a local ffmpeg, right?)

Yep, there's no option right now to import the old content type videos. jbrown is planning to do it in the future.

#12

steven9 - February 21, 2008 - 15:28

I am using local ffmpeg. The transcoding worked fine before. I set the path to ffmpeg in the settings of the op_video module. Should I set the path anywhere else as well?

#13

ferrangil - February 21, 2008 - 15:38

Ups! No, that's where it should be. In my case, /usr/bin/ffmpeg

Well, I don't know what else you can check...
There are a few changes with the flash player, (all explained in the op_video module page) but it's not your problem right now....

The files directory is still writtable...
Can you see the cron log?
I'm running out of ideas...

#14

steven9 - February 21, 2008 - 15:53

Well, I did get an error message earlier today. I don't know if it is important.

---------
Table 'op_video_image_cache' already exists query: CREATE TABLE op_video_image_cache ( video_id INT(10) UNSIGNED NOT NULL, image ENUM('start','third','custom') NOT NULL, width SMALLINT(5) UNSIGNED NOT NULL, height SMALLINT(5) UNSIGNED NOT NULL, file_id INT(10) UNSIGNED NOT NULL, PRIMARY KEY (video_id, image, width, height) ) in /home/(username)/public_html/includes/database.mysql.inc on line 172.
---------

Steven

#15

steven9 - February 21, 2008 - 16:12

I just uninstalled the dev version and reinstalled the 2.5 version and it works. So it has to be something with the settings when I am working with dev. The binary path is correct. I wonder what's wrong.

#16

ferrangil - February 21, 2008 - 16:55

If your Drupal installation is new, I really recomend you to start again, and use the dev version... It should work with a fresh install. If not, you will be forced to change in a close future, and you will loose again your video nodes...etc...

#17

steven9 - February 22, 2008 - 17:14
Priority:critical» normal
Status:closed» active

I will keep tinkering with it. I hope there is another way to get it to work than reinstalling Drupal.

#18

ldway - February 23, 2008 - 07:24

I spent hours on trying to figure out this problem with no way to filter views for videos. Using the new method of having cck fields, I expected that at least minimum functionality for filtering views would exist. If I am creating cck video fields in different content types, there seems to be no way to list only entries with videos attached to the node.

Interested in seeing this module develop into a usable cck field with at least standard views filtering ability.

#19

heather - February 26, 2008 - 15:04

In my situation, I was having trouble with just getting a video and title ONLY. By using the Views Bonus pack I was able to use the Grid view which allowed me more control over the display... Not sure if this helps in your situation?

See more here. http://drupal.org/node/178422

#20

ferrangil - February 27, 2008 - 09:27

Just two quick comments:
1-Views is working for me. I'm creating lists of videos, filtering and so on...
2-jbrown is still developing this module, so new features (and improvements of the existing ones) are expected.

#21

steven9 - February 27, 2008 - 20:40

So here is the update: I reinstalled Drupal. I uploaded CCK and OpenPAckage Video. And it doesn't work.

So here is my problem: 2.5 version works just fine, dev version doesn't. It uploads the video but the cron job just gives me:

videofield:
Transcoding failed. Try a different video.

I know for sure that the ffmpeg path is correct.

With the 2.5 version when I manually run cronjobs I get a white screen with some ffmpeg comands. With the dev version I don't get anything.

What I did:
- uploaded and enabled CCK and OpenPAckage Video and uploaded the flash player
- fixed the ffmpeg binary path and the permissions
- created new content type called "Video"
- added a field "videofield", for field type in the list I chose "Video" and under it "upload".

What I use:
-Drupal 5.7
-PHP5

MAybe somebody has had the same problem and managed to solve it.

#22

ferrangil - February 28, 2008 - 09:36

Just in case... which is your path to the ffmpeg binary??
It starts with a slash?? /..... must start with the slash, so check that... I remember another user having a problem like this (I mean, transcoding failed, but with old version was working).

#23

steven9 - February 28, 2008 - 12:56

:-)) Yeah, my ffmpeg binary path starts with a slash. The user who had this problem was...me. (I had a different username on the openpackage.biz forum)

#24

ferrangil - February 28, 2008 - 14:53

Hahaha! Ok! At least, I had memory :P
Well, I don't know what else could be happening with your system.... Did you tried with a fresh install, right?? So odd then...

#25

jbrown - February 28, 2008 - 18:54
Title:where is the "Video: video field" field on view build page? how can i test it?» ffmpeg transcoding not working
Version:5.x-2.2» 5.x-3.x-dev
Component:User interface» Code
Category:support request» bug report
Priority:normal» critical
Assigned to:Anonymous» jbrown

steven9 - you should have created a new bug - this is not a chat forum

Could you paste in the ffmpeg version info from admin/settings/op_video with 5.x-3.x-dev.

#26

jbrown - February 28, 2008 - 19:08

#27

steven9 - February 29, 2008 - 09:58

jbrown,

Thank you for replying. Yes, I should have created a new bug. I apologise for that.

ffmpeg version info:

FFmpeg version SVN-r10904, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared
libavutil version: 49.5.0
libavcodec version: 51.47.2
libavformat version: 51.17.0
built on Nov 1 2007 12:12:42, gcc: 3.4.6 20060404 (Red Hat 3.4.6-8)
FFmpeg SVN-r10904
libavutil 3212544
libavcodec 3354370
libavformat 3346688

#28

steven9 - March 16, 2008 - 07:31

Still not working...

#29

jbrown - March 18, 2008 - 21:21

can you post the video to openpackage.biz?

 
 

Drupal is a registered trademark of Dries Buytaert.