Been trying to get the video module to work but am failing. The thubnails are created but the videos are not beeing rendered.

Here is a collection of the most frequent error codes I get:

---

Video conversion failed. FFMPEG reported the following output: FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Mar 4 2010 12:35:30, gcc: 4.4.3 Seems stream 1 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sites/default/files/videos/original/executionalxmaz.mp4': Duration: 00:00:37.20, start: 0.000000, bitrate: 393 kb/s Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16 Stream #0.1(und): Video: h264, yuv420p, 320x258, 25 tbr, 25 tbn, 50 tbc Incorrect frame size

---

warning: Division by zero in /media/disk/www/www.e-werk.com/htdocs/sites/all/modules/video/includes/conversion.inc on line 178.

---

warning: Division by zero in /media/disk/www/www.e-werk.com/htdocs/sites/all/modules/video/includes/conversion.inc on line 183.

---

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.

---

I've got no idea where I went wrong. Followed all the instructions, created a symlink to the video_scheduler.php, changed the cron file ...

Attached are some screenshot of the installed modules and the errors.

Comments

hypertext200’s picture

Did u install FLVTools2 on your server? Please install it and enable the meta data for the videos then this should fix.

paul_constantine’s picture

StatusFileSize
new59.43 KB
new80.14 KB

Thanks for that piece of information.

But as you can see on the attached screenshots "FLVTool2" is installed on the server (Ubuntu 10.04) and the path is set correctly in the video settings.

Have you got any other ideas? I tried googling the error but I am not getting anywhere.

hypertext200’s picture

What is the exact issue you got? Did you run the cron.php? then what heppened? Please upload some mp4 file and see sometimes when extracting file FFMPEG giving errors.

Send me the exact watchdog messages?

zacho’s picture

Likewise for me. I was using 6.x-4.0-r8, but tried with 6.x-4.x-dev also. I've tried using video_scheduler.php and using the option to use drupal's cron, but automatically and manually invoked. Also tried using video_ffmpeg directly and via the ffmpeg_wrapper module.

Interestingly, ffmpeg will successfully create thumbnails.

My configuration is similar to the OP. Nodes are created fine, awating video processing. When I invoke video_scheduler (or cron), the relevant output to syslog follows:

Aug  6 15:15:31 piano drupal: http:///.|1281118531|video_ffmpeg||http:///video_scheduler.php?video_scheduler.php||0||Executing command: nice -n 19 /usr/bin/ffmpeg  -i 'sites/default/files/videos/original/MELT5555.MPG'  2>&1

Aug  6 15:15:31 piano drupal: http:///.|1281118531|php||http:///video_scheduler.php?video_scheduler.php||0||Division by zero in /var/www/drupal/sites/default/modules/video/includes/conversion.inc on line 178.

Aug  6 15:15:31 piano drupal: http:///.|1281118531|php||http:///video_scheduler.php?video_scheduler.php||0||Division by zero in /var/www/drupal/sites/default/modules/video/includes/conversion.inc on line 183.

Aug  6 15:15:31 piano drupal: http:///.|1281118531|video_ffmpeg||http:///video_scheduler.php?video_scheduler.php||0||Executing command: nice -n 19 /usr/bin/ffmpeg -y -i sites/default/files/videos/original/MELT5555.MPG -f flv -ar 22050 -ab 64000 -s 0x0 -padtop 0 -padbottom 0 -b 200000 -qscale 1 sites/default/files/videos/converted/MELT5555.flv  2>&1

Aug  6 15:15:31 piano drupal: http:///.|1281118531|video_metadata||http:///video_scheduler.php?video_scheduler.php||0||Executing command: nice -n 19 /usr/bin/flvtool2 -UP sites/default/files/videos/converted/MELT5555.flv  2>&1

Aug  6 15:15:31 piano drupal: http:///.|1281118531|video_conversion||http:///video_scheduler.php?video_scheduler.php||0||Video conversion failed.  FFMPEG reported the following output: FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.   configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr   libavutil version: 1d.49.3.0   libavcodec version: 1d.51.38.0   libavformat version: 1d.51.10.0   built on Apr 23 2010 15:36:59, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) Input #0, mpegvideo, from 'sites/default/files/videos/original/MELT5555.MPG':   Duration: 00:00:00.0, start: 0.000000, bitrate: -2147483 kb/s   Stream #0.0: Video: mpeg1video, yuv420p, 320x200, 104857 kb/s, 23.98 fps(r) Incorrect frame size 

I wish I knew more about ffmpeg -- i.e., why the two distinct calls to the program.

I don't expect a solution to my problem per se, but maybe this log will be helpful.

--Edit--

So, the looks like the output dimension as represented by the !size token is not getting set correctly. I'm guessing that's the case for the OP also, though his logs don't explicitly show it. Not sure yet why this is so.

DaRK-1’s picture

Just a note to say i also had the same issue when the converter options included the '-s !size' argument, at first i was getting a blank error message (was using the ffmpeg wrapper option, something else that might need looking into) after changing to just ffmpeg i got the same error and noticed 'Incorrect frame size' at the end of the fail message.

Some extra info: not using flvtool2, and running on php 5.3

hypertext200’s picture

Status: Active » Fixed

If your using filefield_meta module please uninstall it, it seems video module is incompatible with it. We will work on it to fix it soon.

hypertext200’s picture

Status: Fixed » Active
hypertext200’s picture

zacho’s picture

Status: Closed (fixed) » Active

For the record, filefield_meta has never been enabled on my system.

kayakjim’s picture

In the Home › Administer › Site configuration › Video > Transcoders > Video Conversion > Advanced Settings add the following to your command:

-acodec libmp3lame

My entire command box looks like:
-y -i !videofile -f flv -acodec libmp3lame -ar 22050 -ab !audiobitrate -s !size -b !videobitrate -qscale 1 !convertfile

Note that I am running on an ubuntu server with libmp3lame installed.

Hope that helps others.

hypertext200’s picture

Status: Active » Closed (won't fix)

This is a way of configure your trancoder and not a video module issue.

sumit_drupal’s picture

Version: 6.x-4.0-rc8 » 6.x-1.x-dev
Component: Miscellaneous » Code
Assigned: Unassigned » sumit_drupal

* user warning: Unknown column 'vr.fid' in 'where clause' query: SELECT vr.status FROM video_rendering vr INNER JOIN files f ON vr.fid = f.fid WHERE vr.fid = f.fid AND f.status = 1 AND f.fid = 131 in C:\wamp\www\movieinfo\sites\all\modules\video\types\uploadfield\uploadfield_formatter.inc on line 38.
* warning: Division by zero in C:\wamp\www\movieinfo\sites\all\modules\video\includes\common.inc on line 17.

i am getting this warning with this message that is Use SwfTools Module to play FLV files if you only convert/upload FLV videos or FlowPlayer Module must be enabled in order to play FLV videos with other types.
in my view

Plz help me out of this