Results 1 to 6 of 6

Thread: making a test server

  1. #1
    Join Date
    Jul 2008
    Posts
    22

    Default making a test server

    hi iam making a test server so i can test b4 i put my site together but iam having some probs with the video conversion

    this my php info
    ffmpeg
    ffmpeg support (ffmpeg-php) enabled
    ffmpeg-php version 0.5.2.1
    libavcodec version Lavc51.43.0
    libavformat version Lavf51.12.2
    ffmpeg-php gd support enabled

    Directive Local Value Master Value
    ffmpeg.allow_persistent 0 0

    Code:
    STARTING VIDEO CONVERSION (process_queue.id = 122)
    
    File: C:/wamp/www/video/blair-1.MPG.mpg
    
    ####################################################
    
    SELECT * FROM `video` WHERE `VID`=219
    
    ####################################################
    
    Video id: 219
    
    Find video duration - START
    
    C:/wamp/bin1/ffmpeg -i C:/wamp/www/video/blair-1.MPG.mpg
    
    FFmpeg version Sherpya-r13778, Copyright (c) 2000-2008 Fabrice Bellard, et al.
      libavutil version: 49.7.0
      libavcodec version: 51.57.2
      libavformat version: 52.16.0
      libavdevice version: 52.0.0
      libavfilter version: 0.0.0
      built on Jun 16 2008 13:00:49, gcc: 4.2.3
    Input #0, mpeg, from 'C:/wamp/www/video/blair-1.MPG.mpg':
      Duration: 00:00:17.91, start: 0.083333, bitrate: 2293 kb/s
        Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 104857 kb/s, 24.00 tb(r)
        Stream #0.1[0x1c0]: Audio: mp2, 32000 Hz, mono, 96 kb/s
    Must supply at least one output file
    
    Duration (ffmpeg): 17
    
    DURATION: 00:17
    
    Create Thumbnail - START
    Creating Thumbnail with ffmpeg
    
    C:/wamp/www/thumb/219.jpg
    
    C:/wamp/bin1/ffmpeg -i C:/wamp/www/video/blair-1.MPG.mpg -ss 00:00:01 -t 00:00:01 -s 320x240 -r 1 -f mjpeg C:/wamp/www/thumb/219.jpg
    
    C:/wamp/www/thumb/1_219.jpg
    
    C:/wamp/bin1/ffmpeg -i C:/wamp/www/video/blair-1.MPG.mpg -ss 00:00:01 -t 00:00:01 -s 120x90 -r 1 -f mjpeg C:/wamp/www/thumb/1_219.jpg
    
    C:/wamp/www/thumb/2_219.jpg
    
    C:/wamp/bin1/ffmpeg -i C:/wamp/www/video/blair-1.MPG.mpg -ss 00:00:07 -t 00:00:01 -s 120x90 -r 1 -f mjpeg C:/wamp/www/thumb/2_219.jpg
    
    C:/wamp/www/thumb/3_219.jpg
    
    C:/wamp/bin1/ffmpeg -i C:/wamp/www/video/blair-1.MPG.mpg -ss 00:00:10 -t 00:00:01 -s 120x90 -r 1 -f mjpeg C:/wamp/www/thumb/3_219.jpg
    
    Create Thumbnail with ffmpeg - END
    
    CONVERT COMMAND: C:/wamp/bin1/mencoder 'C:/wamp/www/video/blair-1.MPG.mpg' -o C:/wamp/www/flvideo/1220987201842051896.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf harddup
    
    ####################################################
    
    Array
    (
        [0] => MEncoder dev-SVN-r27531-4.2.4 (C) 2000-2008 MPlayer Team
        [1] => CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 9)
        [2] => CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
        [3] => Compiled with runtime CPU detection.
        [4] => 129 audio & 257 video codecs
        [5] => 
        [6] => Exiting...
    )
    
    ####################################################
    
    Return value: Exiting...
    
    Running flvtool2: C:/wamp/bin1/flvtool2 -U C:/wamp/www/flvideo/1220987201842051896.flv
    
    Back
    the thumbnails are all good just no video no flv file vid made
    any hel plz

  2. #2
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: making a test server

    Two things:

    1. You are running this on Windows, which is probably not supported as the server requirements specifically state that you have to be running on a linux server. However, this fact is more than likely not your problem.

    2. Mencoder is exiting out. This is most likely due to an error. I don't have a an installation on Windows so I can't test this out for you, but I suspect that the problem is going to be in the conversion code that is used. If you notice here:

    Code:
    CONVERT COMMAND: C:/wamp/bin1/mencoder 'C:/wamp/www/video/blair-1.MPG.mpg' -o C:/wamp/www/flvideo/1220987201842051896.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf harddup
    This command is what is converting your video from MPEG to FLV. What I would do is from that machine, open a command prompt (Start--RUN--CMD) and type in the above command (or just copy and paste it) and see what happens. If it gives you an error, then you have some place to start troubleshooting. I'm not 100% certain, but I'm suspecting that the problem is going to be in the fact that there are single quotes being used above ('C:/wamp/www/video/blair-1.MPG.mpg'). Single quotes work fine on UNIX-based systems (such as Linux). On Windows, however, single quotes are not used. Rather, Windows uses double quotes.

    Here's something to try:

    Open up your video_conversion.php file (it's located in the includes/settings directory). Under the mplayer sections, find the part that says

    Code:
    '$video_src'
    Replace that with:

    Code:
    \"$video_src\"
    And give it a try.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  3. #3
    Join Date
    Jul 2008
    Posts
    22

    Default Re: making a test server

    bplex thanks that has got the test server now converting videos correctly
    iam running more tests trying all different video's so far the conversion is good a little slow but thats ok
    at least the ffmpeg works iam running on xp pro server with sp3
    this is my site holder http://jammin.isa-geek.com/index.php.old
    here is link to it http://jammin.isa-geek.com

    now that i got it going on my server i think i should put a little tutorial up

    thanks bro

  4. #4
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: making a test server

    Not a problem at all
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  5. #5
    Join Date
    Jul 2008
    Posts
    22

    Default Re: making a test server

    just a quick ? i can't get my upload progress bar working in my windows machine

    was wondering now that the script was built for linux what i would need to change

    # Makes %ENV safer
    $ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
    delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
    i have changed my path to my cgi-bin #!"E:\xampp\perl\bin\perl.exe" -w

    this is no biggy but i strive to make things work


    error iam getting
    Server error!

    The server encountered an internal error and was unable to complete your request.

    Error message:
    Premature end of script headers: uu_upload.pl

    If you think this is a server error, please contact the webmaster.
    Error 500
    jammin.isa-geek.com

  6. #6
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: making a test server

    Unfortunately, you would have to rewrite the entire progress bar script to get it to work in a Windows environment as the script itself is written for Unix-based systems. Most of the functions that the script calls do not exist in Windows.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

Similar Threads

  1. Will Pay For Install and Test
    By LindaN in forum Installation Support
    Replies: 2
    Last Post: 10-17-2008, 04:05 AM
  2. How to install Vshare to test on local machine?
    By megavideos.in in forum Installation Support
    Replies: 2
    Last Post: 12-28-2007, 06:32 AM
  3. vShare 2.5 Test Site
    By admin in forum Fixed Bugs
    Replies: 37
    Last Post: 09-26-2007, 12:41 AM
  4. How do i test the server supports vshare?
    By vndesire in forum Sales Questions
    Replies: 3
    Last Post: 07-05-2007, 03:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •