CumulusClips - Forums
I can upload, but doesn't exist nor does it show up?!
Hi Damian!
I get following error in the converter.log file:
### Converter Called...
Values passed to encoder:
Array
(
[0] => /var/www/vhosts/urog.org/httpdocs/videos/cc-core/system/encode.php
[1] => --video=11
)
Validating requested video...
Establishing variables...
Verifying raw video exists...
Verifying raw video was valid size...
Preparing for: FLV Encoding...
FLV Encoding Command: /usr/local/bin/ffmpeg -i /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/temp/RWboIxpDb5hxi0YE0SRQ.wmv -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/flv/RWboIxpDb5hxi0YE0SRQ.flv >> /var/www/vhosts/urog.org/httpdocs/videos/cc-core/logs/RWboIxpDb5hxi0YE0SRQ.log 2>&1
sh: /ffmpeg: not found
Verifying FLV video was created...
The FLV file was not created. The id of the video is: 11
### Converter Called...
Values passed to encoder:
Array
(
[0] => /var/www/vhosts/urog.org/httpdocs/videos/cc-core/system/encode.php
[1] => --video=12
)
Validating requested video...
Establishing variables...
Verifying raw video exists...
Verifying raw video was valid size...
Preparing for: FLV Encoding...
FLV Encoding Command: /usr/local/bin/ffmpeg -i /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/temp/j1rE1PMQeDWrAC5zuwLy.wmv -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/flv/j1rE1PMQeDWrAC5zuwLy.flv >> /var/www/vhosts/urog.org/httpdocs/videos/cc-core/logs/j1rE1PMQeDWrAC5zuwLy.log 2>&1
Verifying FLV video was created...
The FLV file was not created. The id of the video is: 12
And here is the file info of those two (2):
RWboIxpDb5hxi0YE0SRQ.log:
FLV Encoding Command: /usr/local/bin/ffmpeg -i /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/temp/RWboIxpDb5hxi0YE0SRQ.wmv -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/flv/RWboIxpDb5hxi0YE0SRQ.flv >> /var/www/vhosts/urog.org/httpdocs/videos/cc-core/logs/RWboIxpDb5hxi0YE0SRQ.log 2>&1FLV Encoding Output:
j1rE1PMQeDWrAC5zuwLy.log:
FLV Encoding Command: /usr/local/bin/ffmpeg -i /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/temp/j1rE1PMQeDWrAC5zuwLy.wmv -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/flv/j1rE1PMQeDWrAC5zuwLy.flv >> /var/www/vhosts/urog.org/httpdocs/videos/cc-core/logs/j1rE1PMQeDWrAC5zuwLy.log 2>&1FLV Encoding Output:
Although this, I got absolutely EVERYTHING installed on the server (Debian Squeezy 64-bit) which is a Dedicated such, not a VPS nor hosted plan. I have managed all the necessary files as they should be etc but I can't locate the reason for the videos not showing up on the site nor in the Admin Panel. Yet due this, the PHP is found in /usr/bin/php and FFmpeg in /usr/local/bin/ffmpeg according to the "whereis" command.
I have also checked these forums earlier before compiling everything etc and even followed your links which you given in the posts and done everything step-by-step from them to get things working and yes, if I run locally a ffmpeg on a video it works but not through CumulusClips (HTTP).
You might have a solution for this, or?
Cheers,
Miska
I get following error in the converter.log file:
### Converter Called...
Values passed to encoder:
Array
(
[0] => /var/www/vhosts/urog.org/httpdocs/videos/cc-core/system/encode.php
[1] => --video=11
)
Validating requested video...
Establishing variables...
Verifying raw video exists...
Verifying raw video was valid size...
Preparing for: FLV Encoding...
FLV Encoding Command: /usr/local/bin/ffmpeg -i /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/temp/RWboIxpDb5hxi0YE0SRQ.wmv -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/flv/RWboIxpDb5hxi0YE0SRQ.flv >> /var/www/vhosts/urog.org/httpdocs/videos/cc-core/logs/RWboIxpDb5hxi0YE0SRQ.log 2>&1
sh: /ffmpeg: not found
Verifying FLV video was created...
The FLV file was not created. The id of the video is: 11
### Converter Called...
Values passed to encoder:
Array
(
[0] => /var/www/vhosts/urog.org/httpdocs/videos/cc-core/system/encode.php
[1] => --video=12
)
Validating requested video...
Establishing variables...
Verifying raw video exists...
Verifying raw video was valid size...
Preparing for: FLV Encoding...
FLV Encoding Command: /usr/local/bin/ffmpeg -i /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/temp/j1rE1PMQeDWrAC5zuwLy.wmv -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/flv/j1rE1PMQeDWrAC5zuwLy.flv >> /var/www/vhosts/urog.org/httpdocs/videos/cc-core/logs/j1rE1PMQeDWrAC5zuwLy.log 2>&1
Verifying FLV video was created...
The FLV file was not created. The id of the video is: 12
And here is the file info of those two (2):
RWboIxpDb5hxi0YE0SRQ.log:
FLV Encoding Command: /usr/local/bin/ffmpeg -i /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/temp/RWboIxpDb5hxi0YE0SRQ.wmv -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/flv/RWboIxpDb5hxi0YE0SRQ.flv >> /var/www/vhosts/urog.org/httpdocs/videos/cc-core/logs/RWboIxpDb5hxi0YE0SRQ.log 2>&1FLV Encoding Output:
j1rE1PMQeDWrAC5zuwLy.log:
FLV Encoding Command: /usr/local/bin/ffmpeg -i /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/temp/j1rE1PMQeDWrAC5zuwLy.wmv -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/flv/j1rE1PMQeDWrAC5zuwLy.flv >> /var/www/vhosts/urog.org/httpdocs/videos/cc-core/logs/j1rE1PMQeDWrAC5zuwLy.log 2>&1FLV Encoding Output:
Although this, I got absolutely EVERYTHING installed on the server (Debian Squeezy 64-bit) which is a Dedicated such, not a VPS nor hosted plan. I have managed all the necessary files as they should be etc but I can't locate the reason for the videos not showing up on the site nor in the Admin Panel. Yet due this, the PHP is found in /usr/bin/php and FFmpeg in /usr/local/bin/ffmpeg according to the "whereis" command.
I have also checked these forums earlier before compiling everything etc and even followed your links which you given in the posts and done everything step-by-step from them to get things working and yes, if I run locally a ffmpeg on a video it works but not through CumulusClips (HTTP).
You might have a solution for this, or?
Cheers,
Miska
This discussion has been closed.
Comments
php -v
whereis php
ffmpeg -version
whereis ffmpeg
# php -v
PHP 5.3.3-7+squeeze8 with Suhosin-Patch (cli) (built: Feb 10 2012 13:05:56)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd.
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
# whereis php
php: /usr/bin/php /usr/lib/php /usr/lib64/php /usr/share/man/man1/php.1.gz
# ffmpeg -version
ffmpeg version git-2012-04-22-70d5439
built on Apr 23 2012 04:05:48 with gcc 4.4.5
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
libavutil 51. 47.100 / 51. 47.100
libavcodec 54. 15.100 / 54. 15.100
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 71.102 / 2. 71.102
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 11.100 / 0. 11.100
libpostproc 52. 0.100 / 52. 0.100
# whereis ffmpeg
ffmpeg: /usr/local/bin/ffmpeg
Like I told, it works when I type it in the terminal but not through the site:
# /usr/local/bin/ffmpeg -i /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/temp/dsgu84EAYXhrm4K8RahU.wmv -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/flv/dsgu84EAYXhrm4K8RahU.flv
ffmpeg version git-2012-04-22-70d5439 Copyright (c) 2000-2012 the FFmpeg developers
built on Apr 23 2012 04:05:48 with gcc 4.4.5
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
libavutil 51. 47.100 / 51. 47.100
libavcodec 54. 15.100 / 54. 15.100
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 71.102 / 2. 71.102
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 11.100 / 0. 11.100
libpostproc 52. 0.100 / 52. 0.100
[wmv3 @ 0x20d64c0] Extra data: 8 bits left, value: 0
Input #0, asf, from '/var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/temp/dsgu84EAYXhrm4K8RahU.wmv':
Metadata:
SfOriginalFPS : 299
WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
Duration: 00:00:23.38, start: 0.000000, bitrate: 5830 kb/s
Stream #0:0(swe): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 channels, s16, 192 kb/s
Stream #0:1(swe): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 1280x720, 6099 kb/s, 29.97 tbr, 1k tbn, 1k tbc
[buffer @ 0x20cef80] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:flags=2
[scale @ 0x20ecb00] w:1280 h:720 fmt:yuv420p sar:0/1 -> w:640 h:480 fmt:yuv420p sar:0/1 flags:0x4
Guessed Channel Layout for Input Stream #0.0 : stereo
[wmv3 @ 0x20d64c0] Extra data: 8 bits left, value: 0
Output #0, flv, to '/var/www/vhosts/urog.org/httpdocs/videos/cc-content/uploads/flv/dsgu84EAYXhrm4K8RahU.flv':
Metadata:
SfOriginalFPS : 299
WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
encoder : Lavf54.3.100
Stream #0:0(swe): Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 640x480, q=2-31, 800 kb/s, 1k tbn, 29.97 tbc
Stream #0:1(swe): Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16, 96 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (wmv3 -> flv)
Stream #0:0 -> #0:1 (wmav2 -> libmp3lame)
Press [q] to stop, [?] for help
frame= 25 fps=0.0 q=12.7 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/frame= 53 fps= 52 q=12.7 size= 94kB time=00:00:00.13 bitrate=5848.2kbits/Audio timestamp 99 < 107 invalid, cliping
frame= 76 fps= 50 q=17.1 size= 250kB time=00:00:00.76 bitrate=2663.4kbits/frame= 102 fps= 50 q=19.2 size= 335kB time=00:00:01.38 bitrate=1984.8kbits/frame= 126 fps= 49 q=13.4 size= 429kB time=00:00:02.17 bitrate=1618.7kbits/frame= 150 fps= 49 q=10.4 size= 496kB time=00:00:02.92 bitrate=1392.4kbits/frame= 176 fps= 49 q=9.2 size= 576kB time=00:00:03.73 bitrate=1265.8kbits/sframe= 199 fps= 49 q=28.2 size= 657kB time=00:00:04.54 bitrate=1185.7kbits/frame= 224 fps= 49 q=20.9 size= 738kB time=00:00:05.33 bitrate=1132.3kbits/frame= 246 fps= 48 q=31.0 size= 824kB time=00:00:06.21 bitrate=1085.1kbits/frame= 270 fps= 48 q=31.0 size= 949kB time=00:00:06.93 bitrate=1121.2kbits/frame= 296 fps= 48 q=23.8 size= 1039kB time=00:00:07.65 bitrate=1111.5kbits/frame= 319 fps= 48 q=31.0 size= 1168kB time=00:00:08.55 bitrate=1118.8kbits/frame= 345 fps= 48 q=31.0 size= 1294kB time=00:00:09.39 bitrate=1128.3kbits/frame= 369 fps= 48 q=29.1 size= 1360kB time=00:00:10.26 bitrate=1085.5kbits/frame= 392 fps= 48 q=31.0 size= 1460kB time=00:00:11.00 bitrate=1087.1kbits/frame= 416 fps= 48 q=31.0 size= 1536kB time=00:00:11.73 bitrate=1073.0kbits/frame= 442 fps= 48 q=23.8 size= 1687kB time=00:00:12.73 bitrate=1085.4kbits/frame= 470 fps= 49 q=14.3 size= 1785kB time=00:00:13.58 bitrate=1076.2kbits/frame= 503 fps= 49 q=11.0 size= 1887kB time=00:00:14.49 bitrate=1066.4kbits/frame= 527 fps= 49 q=31.0 size= 1977kB time=00:00:15.56 bitrate=1040.4kbits/frame= 557 fps= 50 q=8.6 size= 2028kB time=00:00:16.32 bitrate=1017.9kbits/sframe= 590 fps= 50 q=5.7 size= 2175kB time=00:00:17.47 bitrate=1019.7kbits/sframe= 624 fps= 51 q=7.3 size= 2271kB time=00:00:18.46 bitrate=1007.6kbits/sframe= 656 fps= 52 q=6.0 size= 2416kB time=00:00:19.74 bitrate=1002.5kbits/sframe= 683 fps= 52 q=11.7 size= 2519kB time=00:00:20.50 bitrate=1006.5kbits/AV Filter told us it has a frame available but failed to output one
frame= 701 fps= 51 q=12.8 Lsize= 2773kB time=00:00:23.04 bitrate= 986.0kbits/s
video:2477kB audio:271kB global headers:0kB muxing overhead 0.916372%
Any idea why it's behaving as it is?
http://www.urog.org/info.php (PHP info)
Can you try this command from the command line and post the results:
php -r "echo exec('whereis ffmpeg');"
But for your concern:
# php -r "echo exec('whereis ffmpeg');"
sh: /whereis: not found
is the results I got back from the server through putty and running as root.
So what might be causing this "issue" now and how do I solve it?
You see when you simply run 'whereis ffmpeg' as your main system user or root user it works fine because the PATH environmental variable is set to find those commands.
However when you run the "odd command of mine":
php -r "echo exec('whereis ffmpeg');"
You are running the 'whereis ffmpeg' command as the Apache/PHP user that CumulusClips runs as. This returns what you reported:
'sh: /whereis: not found'
which is similar to the error you receive during encoding
'sh: /ffmpeg: not found'
(look closely at your first post in the 'Preparing for: FLV Encoding...' section.
So to sum it up, I think your issue is with the PATH variable of the PHP user.