Hi,
I installed D7RC3 on my dedicated server and embedded some youtube videos. When I checked the apache logs, I see lot's of FFMPEG related errors like this -
[Sat Dec 19 10:36:04 2009] [error] [client ]]\ xx.xxx.xxx.xx] FFmpeg version SVN-r19066, Copyright (c) 2000-2009 Fabrice Bellard, et al., referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] configuration: --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-gpl --enable-libvorbis --enable-libogg --enable-libtheora --enable-liba52 --enable-libamr-nb --enable-libamr-wb --enable-libfaad --enable-libfaac --enable-pthreads --disable-shared --enable-static --enable-avfilter --enable-nonfree --disable-ffplay --disable-ffserver --extra-ldflags='-L/usr/lib -static', referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] libavutil 50. 3. 0 / 50. 3. 0, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] libavcodec 52.30. 1 / 52.30. 1, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] libavformat 52.34. 0 / 52.34. 0, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] libavdevice 52. 2. 0 / 52. 2. 0, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] libavfilter 0. 5. 0 / 0. 5. 0, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] libswscale 0. 7. 1 / 0. 7. 1, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] built on Jul 1 2009 10:40:54, gcc: 4.1.2 (Gentoo 4.1.2 p1.0.2), referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] Input #0, image2, from 'http://i.ytimg.com/vi/ABbmpSZA3sc/2.jpg':, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] Duration: 00:00:00.04, start: 0.000000, bitrate: N/A, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] Stream #0.0: Video: mjpeg, yuvj420p, 130x97 [PAR 1:1 DAR 130:97], 25 tbr, 25 tbn, 25 tbc, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] Output #0, image2, to '/home/pshjusr8/public_html/flash/modules/video/files/2_temp_small.jpg':, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] Stream #0.0: Video: mjpeg, yuvj420p, 140x102 [PAR 207:212 DAR 2415:1802], q=2-31, 200 kb/s, 90k tbn, 25 tbc, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] Stream mapping:, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] Stream #0.0 -> #0.0, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] Press [q] to stop encoding, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] frame= 1 fps= 0 q=6.0 Lsize= -0kB time=0.04 bitrate= -4.4kbits/s \r, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID [Sat Dec 19 10:36:04 2009] [error] [client xx.xxx.xxx.xx] video:3kB audio:0kB global headers:0kB muxing overhead -100.682806%, referer: http://www.mysite.com/m/videos/albums/my/add_objects/Videos/owner/UserID
Register_Globals is set to 'Off' in my server settings.
Any ideas anyone why these errors are being thrown and if there's something to correct them?
Thank You
M
|
Check with Zarcon, i have same problem with video and hi resolve it... Thanks Zarcon. |
In the Admin Panel under HOSTING TOOLS is everything GREEN and/or set to Recommended Settings? CRON working correctly etc. |
Recommended settings are set and everything's green. Cron is also set,how to check if it's working properly or not?
When I upload a video, it always goes into the 'not processed' state and keeps saying 'videos is being processed". The logs show this error -
[Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] FFmpeg version SVN-r19066, Copyright (c) 2000-2009 Fabrice Bellard, et al. [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] configuration: --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-gpl --enable-libvorbis --enable-libogg --enable-libtheora --enable-liba52 --enable-libamr-nb --enable-libamr-wb --enable-libfaad --enable-libfaac --enable-pthreads --disable-shared --enable-static --enable-avfilter --enable-nonfree --disable-ffplay --disable-ffserver --extra-ldflags='-L/usr/lib -static' [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] libavutil 50. 3. 0 / 50. 3. 0 [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] libavcodec 52.30. 1 / 52.30. 1 [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] libavformat 52.34. 0 / 52.34. 0 [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] libavdevice 52. 2. 0 / 52. 2. 0 [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] libavfilter 0. 5. 0 / 0. 5. 0 [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] libswscale 0. 7. 1 / 0. 7. 1 [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] built on Jul 1 2009 10:40:54, gcc: 4.1.2 (Gentoo 4.1.2 p1.0.2) [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.92 (359/12) [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] Input #0, flv, from '/home/public_html/flash/modules/video/files/3_temp': [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] Duration: 00:03:45.32, start: 0.000000, bitrate: 8 kb/s [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] Stream #0.0: Video: flv, yuv420p, 320x240, 29.92 tbr, 1k tbn, 1k tbc [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 8 kb/s [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] Output #0, image2, to '/home/public_html/flash/modules/video/files/3_temp_small.jpg': [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] Stream #0.0: Video: mjpeg, yuvj420p, 140x102, q=2-31, 200 kb/s, 90k tbn, 29.92 tbc [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] Stream mapping: [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] Stream #0.0 -> #0.0 [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] Press [q] to stop encoding [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] frame= 1 fps= 0 q=0.0 Lsize= -0kB time=0.03 bitrate= -5.3kbits/s \r [Sun Dec 20 10:47:55 2009] [error] [client xx.xxx.xxx.xx] video:2kB audio:0kB global headers:0kB muxing overhead -101.288056%
I tried to run the cron command manually but still the video is in 'not processed' state. I searched the forums but nothing helped so far.
|
Just wait . It will either process or fail. It can take a long time to process .. it makes 4 files. A Mpeg, a Mobi, A Flash and a Screen shot. Depending on size of the upload just be patient and make sure your cron isnt running every minute of every day as that will casue grief and put you on the most wanted list of your host provider.
What file type ar you uploading btw? wmv, avi ?
|
Just wait . It will either process or fail. It can take a long time to process .. it makes 4 files. A Mpeg, a Mobi, A Flash and a Screen shot. Depending on size of the upload just be patient and make sure your cron isnt running every minute of every day as that will casue grief and put you on the most wanted list of your host provider :)
Thanks,
It's 6 hours and the video i uploaded ( a .flv video type) was just 15 MB...do you want me to wait more????? The user's would go crazy if the wait is this long....
My /etc/crontab has this -
* * * * * cd /home/public_html/periodic; /usr/local/bin/php -q cron.php
I got a dedicated server so no hosting related issues.
|
No not six hours, you left out that information so Im just grasping at straws :) I would not run cron every minute, but thats up to you. I run mine every 15minutes.
You uploaded a flash file? Not sure how that is handled but the code will want to convert it to flash and mpeg hehe :) Not sure how it would handle that, never tried it. Have you tried uploading a avi or wmv just to see if the mechanics are working? Feel free to PM me your site I have a small vid I can upload to test.
|
Wait. Something doesn't make sense. If you are Embeding a YouTube Video, FFMPEG never get's involved, there is no processing etc. It should immediately pull the description and title, you edit the notoriously bad grammar and spelling of the youtuber and hit submit. There is no processing or anything ever on YouTube videos.
So are you uploading a video or embeding a youtube? ... I'm totally confused :)
|
I have uploaded a FLV to my site to see if it processes. I'll let you know in about 15 minutes :) |
Ok I uploaded my previously created FLV (the 25MB to 6.7MB test) and it processed it without issue. The new size was 6.4MB FLV. It also created the MPEG and MOBI files so it will process FLV files.
So we now know the software can do it, so it is installation or source file specific problem at this point.
|
mickscool, change your cron job command to look like this instead:
* * * * * /usr/local/bin/php -q /home/public_html/periodic/cron.php
Try to upload a video again and see if it processes on its own. IF NOT...
You can also check to se if your cron job is setup properly by going into the /periodic folder and renaming the .htaccess file to something like .htaccess.old.
Navigate to your cron job like this : www.mysite.com/periodic/cron.php (Note: the screen WILL be blank)
Refresh you pages, and see if it appears on the homepage then.
Chris
Nothing to see here |
Something else you may want to check is to make sure that your /flash/modules/global/app/ffmpeg.exe is set BACK to 777. During the upgrade to RC3, this permission is reverted back to 644. So it is important that you set it back to 777.
Chris
Nothing to see here |
Thanks Zarcon,
Tried all that but did not worked. ffmpeg.exe is 777, /tmp is 777, tried to run cron both ways but still when I upload a video, it keeps showing 'Video is being processed' and logs show this -
[Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] FFmpeg version SVN-r19066, Copyright (c) 2000-2009 Fabrice Bellard, et al. [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] configuration: --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-gpl --enable-libvorbis --enable-libogg --enable-libtheora --enable-liba52 --enable-libamr-nb --enable-libamr-wb --enable-libfaad --enable-libfaac --enable-pthreads --disable-shared --enable-static --enable-avfilter --enable-nonfree --disable-ffplay --disable-ffserver --extra-ldflags='-L/usr/lib -static' [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] libavutil 50. 3. 0 / 50. 3. 0 [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] libavcodec 52.30. 1 / 52.30. 1 [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] libavformat 52.34. 0 / 52.34. 0 [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] libavdevice 52. 2. 0 / 52. 2. 0 [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] libavfilter 0. 5. 0 / 0. 5. 0 [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] libswscale 0. 7. 1 / 0. 7. 1 [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] built on Jul 1 2009 10:40:54, gcc: 4.1.2 (Gentoo 4.1.2 p1.0.2) [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] Input #0, avi, from '/home/public_html/flash/modules/video/files/3_temp': [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] Duration: 00:01:25.92, start: 0.000000, bitrate: 890 kb/s [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] Stream #0.0: Video: mpeg4, yuv420p, 640x288 [PAR 1:1 DAR 20:9], 25 tbr, 25 tbn, 25 tbc [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] Output #0, image2, to '/home/public_html/flash/modules/video/files/3_temp_small.jpg': [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] Stream #0.0: Video: mjpeg, yuvj420p, 140x102 [PAR 34:21 DAR 20:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] Stream mapping: [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] Stream #0.0 -> #0.0 [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] Press [q] to stop encoding [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] frame= 1 fps= 0 q=0.0 Lsize= -0kB time=0.04 bitrate= -4.4kbits/s \r [Mon Dec 21 21:59:01 2009] [error] [client xx.xxx.xxx.xx] video:2kB audio:0kB global headers:0kB muxing overhead -100.956938%
Not sure what to do next....
Thank You
Mick
|
I just noticed that the video file exists at this location and i can play it after downloading to my computer from the server -
/flash/modules/video/files/18
So probably the original file(.avi) was copied but never got converted....totally confused.
|
Im starting to wonder if its a version conflict. On your dedicated server, is it Windows or Linux? Dolphin is packaged with the Linux version of ffmpeg.
Chris
Edited: Do you see all the files needed?
Example:
1.flv
1.jpg
1.mp4
1.mpg
Nothing to see here |
It's Cent OS Linux based server.
No, I do not see all the files, I only see this -
18.jpg
18_small.jpg
18
18 has no extension and has the same size as the .avi file I upload. I can also download 18 and play. So probably the thumbnails were created out of 18 but for some reasons the flv, mpg etc did not get created.
|
OK, try adding the path to your php.ini IN the cron job command. Like this:
* * * * * /usr/bin/php -c /home/sitedir/public_html/php.ini -q /home/sitedir/public_html/periodic/cron.php
Try manually running your cron job after that. You can read my topic below for instructions:
http://www.boonex.com/unity/forums/topic/Cron-Jobs-Migrations-Videos.htm
Make sure you change the .htaccess file back afterwards.
Chris
Nothing to see here |
OK, try adding the path to your php.ini IN the cron job command. Like this:
* * * * * /usr/bin/php -c /home/sitedir/public_html/php.ini -q /home/sitedir/public_html/periodic/cron.php
Try manually running your cron job after that. You can read my topic below for instructions:
http://www.boonex.com/unity/forums/topic/Cron-Jobs-Migrations-Videos.htm
Make sure you change the .htaccess file back afterwards.
Chris
IT Worked...awesome mate awesome...
So after reading that link of yours, I was sure that something's wrong with my cron setup and it's not kicking....so checked some google articles and did this -
crontab -e
It showed all the cron tasks from /tmp/crontabs...file but there was none related to my site. So I added one there and everything started working fine.
I am wondering why it's not reading /etc/crontab file and instead reading those crontab settings from some file in /tmp folder.
Other thing I am a bit worried about is the permissions of /tmp folder. To harden the server, i secured /tmp and /var/tmp but to make the video work I had to reverse /tmp back to 777 which i think is not secure for the dedicated server as scripts could be run from there...
What do you say???
Thanks Again Mate and everyone else !!!!
|
Your welcome mickscool, I wouldnt think it would hurt. The tmp directory is just acting as a temproary storage area while the processing happens. Should be much of an issue at 777.
Glad you got it working.
Chris
Nothing to see here |