ffmpeg transcoding not working
| Project: | OpenPackage Video |
| Version: | 5.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | jbrown |
| Status: | active |
Jump to:
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!
| Attachment | Size |
|---|---|
| op-video-field.png | 31.59 KB |

#1
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
The views integration is not complete yet. See this bounty: http://openpackage.biz/bounties/improved-views-integration
#3
this is now in 5.x-3.x-dev
#4
Thanks! I was also looking for that! :)
#5
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
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
Automatically closed -- issue fixed for two weeks with no activity.
#8
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
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
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
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
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
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
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
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
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
I will keep tinkering with it. I hope there is another way to get it to work than reinstalling Drupal.
#18
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
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
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
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
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
:-)) 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
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
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
#18 - ldway: http://openpackage.biz/video-present-views-filter
#27
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
Still not working...
#29
can you post the video to openpackage.biz?