Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Videos not playing need help!!

  1. #1
    Join Date
    Jul 2007
    Posts
    17

    Default Videos not playing need help!!

    Hello, i have uploaded the script without any problems, but the videos will not load. I've had the exact same problem with c.l.ip.s.h.ar.e and had the host reinstall all modules 3 times already. I am getting really frustrated with this. Is there any admin here i can pay like $10 and can resolve this problem for me? I don't know what to do, my host claims everything is installed, but the damn videos will not load.

  2. #2
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    If you need installation, contact [email protected]

    Which host you use ? You will be able to see ffmpeg-php in your phpinfo.

    For conversion command, you need to run it from a PHP script. Details available at Video not getting converted to flv

  3. #3
    Join Date
    Jul 2007
    Posts
    17

    Default

    I have a dedicated server at galaxysolutions. I dont know whats at fault the modules or my installation? Im checking php info

    EDIT: Yes its installed.

    Also when i run that script i get this :

    Last line of the output: Return value: 127

  4. #4
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    There is problem with your mencoder/ffmpeg.

    Ask your server provider to run the convert command on command line, so they can see the error and fix it.

  5. #5
    Join Date
    Aug 2007
    Posts
    7

    Default

    Do you want us to run the plain convert command?
    Output:
    Code:
    convert
    Version: ImageMagick 6.0.7 05/03/07 Q16 http://www.imagemagick.org
    Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
    
    Usage: convert [options ...] file [ [options ...] file ...] [options ...] file
    
    Where options include:
      -adjoin              join images into a single multi-image file
      -affine matrix       affine transform matrix
      -annotate geometry text
                           annotate the image with text
      -antialias           remove pixel-aliasing
      -append              append an image sequence
      -authenticate value  decrypt image with this password
      -average             average an image sequence
      -background color    background color
      -black-threshold value
                           forces all pixels below the threshold into black
      -blue-primary point  chromaticity blue primary point
      -blur geometry       blur the image
      -border geometry     surround image with a border of color
      -bordercolor color   border color
      -channel type        Red, Green, Blue, Opacity, Index, Cyan, Yellow,
                           Magenta, Black, or All
      -charcoal radius     simulate a charcoal drawing
      -chop geometry       remove pixels from the image interior
      -clip                clip along the first path from the 8BIM profile
      -clip-path id        clip along a named path from the 8BIM profile
      -clone index         clone an image
      -coalesce            merge a sequence of images
      -colorize value      colorize the image with the fill color
      -colors value        preferred number of colors in the image
      -colorspace type     alternate image colorspace
      -combine             combine a sequence of images
      -comment string      annotate image with comment
      -compose operator    composite image
      -compress type       image compression type
      -contrast            enhance or reduce the image contrast
      -convolve coefficients
                           apply a convolution kernel to the image
      -crop geometry       preferred size and location of the cropped image
      -cycle amount        cycle the image colormap
      -debug events        display copious debugging information
      -define format:option
                           define one or more image format options
      -deconstruct         break down an image sequence into constituent parts
      -delay value         display the next image after pausing
      -delete index        delete the image from the image sequence
      -density geometry    horizontal and vertical density of the image
      -depth value         image depth
      -despeckle           reduce the speckles within an image
      -display server      get image or font from this X server
      -dispose method      Undefined, None, Background, Previous
      -dither              apply Floyd/Steinberg error diffusion to image
      -draw string         annotate the image with a graphic primitive
      -edge radius         apply a filter to detect edges in the image
      -emboss radius       emboss an image
      -encoding type       text encoding type
      -endian type         LSB or MSB
      -enhance             apply a digital filter to enhance a noisy image
      -equalize            perform histogram equalization to an image
      -evaluate operator value
                           evaluate an arithmetic, relational, or logical expression
      -extract geometry    extract area from image
      -fill color          color to use when filling a graphic primitive
      -filter type         use this filter when resizing an image
      -flatten             flatten a sequence of images
      -flip                flip image in the vertical direction
      -flop                flop image in the horizontal direction
      -family name         render text with this font family
      -font name           render text with this font
      -frame geometry      surround image with an ornamental border
      -fuzz distance       colors within this distance are considered equal
      -fx expression       apply mathematical expression to an image channel(s)
      -gamma value         level of gamma correction
      -gaussian geometry   gaussian blur an image
      -geometry geometry   perferred size or location of the image
      -green-primary point chromaticity green primary point
      -gravity type        horizontal and vertical text placement
      -help                print program options
      -implode amount      implode image pixels about the center
      -insert index        insert last image into the image sequence
      -intent type         Absolute, Perceptual, Relative, or Saturation
      -interlace type      None, Line, Plane, or Partition
      -label name          assign a label to an image
      -lat geometry        local adaptive thresholding
      -level value         adjust the level of image contrast
      -limit type value    Area, Disk, Map, or Memory resource limit
      -log format          format of debugging information
      -loop iterations     add Netscape loop extension to your GIF animation
      -map filename        transform image colors to match this set of colors
      -mask filename       set the image clip mask
      -matte               store matte channel if the image has one
      -mattecolor color    frame color
      -median radius       apply a median filter to the image
      -modulate value      vary the brightness, saturation, and hue
      -monochrome          transform image to black and white
      -morph value         morph an image sequence
      -mosaic              create a mosaic from an image sequence
      -negate              replace every pixel with its complementary color
      -noise radius        add or reduce noise in an image
      -normalize           transform image to span the full range of colors
      -opaque color        change this color to the fill color
      -ordered-dither NxN
                           ordered dither the image
      -orient type         image orientation
      -page geometry       size and location of an image canvas (setting)
      -paint radius        simulate an oil painting
      -ping                efficiently determine image attributes
      -pointsize value     font point size
      -posterize levels    reduce the image to a limited number of color levels
      -preview type        image preview type
      -profile filename    add, delete, or apply an image profile
      -quality value       JPEG/MIFF/PNG compression level
      -radial-blur angle   radial blur the image
      -raise value         lighten/darken image edges to create a 3-D effect
      -random-threshold low,high
                           random threshold the image
      -region geometry     apply options to a portion of the image
      -raise value         lighten/darken image edges to create a 3-D effect
      -red-primary point   chromaticity red primary point
      -render              render vector graphics
      -repage geometry     size and location of an image canvas (operator)
      -resample geometry   change the resolution of an image
      -resize geometry     resize the image
      -roll geometry       roll an image vertically or horizontally
      -rotate degrees      apply Paeth rotation to the image
      -sample geometry     scale image with pixel sampling
      -sampling-factor geometry
                           horizontal and vertical sampling factor
      -scale geometry      scale the image
      -scene value         image scene number
      -seed value          pseudo-random number generator seed value
      -segment values      segment an image
      -separate            separate an image channel into a grayscale image
      -shade degrees       shade the image using a distant light source
      -sharpen geometry    sharpen the image
      -shave geometry      shave pixels from the image edges
      -shear geometry      slide one edge of the image along the X or Y axis
      -size geometry       width and height of image
      -solarize threshold  negate all pixels above the threshold level
      -splice geometry     splice the background color into the image
      -spread amount       displace image pixels by a random amount
      -strip               strip image of all profiles and comments
      -stroke color        graphic primitive stroke color
      -strokewidth value   graphic primitive stroke width
      -stretch type        render text with this font stretch
      -style type          render text with this font style
      -support factor      resize support: > 1.0 is blurry, < 1.0 is sharp
      -swap indexes        swap two images in the image sequence
      -swirl degrees       swirl image pixels about the center
      -texture filename    name of texture to tile onto the image background
      -threshold value     threshold the image
      -thumbnail geometry  create a thumbnail of the image
      -tile filename       tile image when filling a graphic primitive
      -tint value          tint the image with the fill color
      -transform           affine transform image
      -transparent color   make this color transparent within the image
      -treedepth value     color tree depth
      -trim                trim image edges
      -type type           image type
      -undercolor color    annotation bounding box color
      -units type          PixelsPerInch, PixelsPerCentimeter, or Undefined
      -unsharp geometry    sharpen the image
      -verbose             print detailed information about the image
      -version             print version information
      -view                FlashPix viewing transforms
      -virtual-pixel method
                           Constant, Edge, Mirror, or Tile
      -wave geometry       alter an image along a sine wave
      -weight type         render text with this font weight
      -white-point point   chromaticity white point
      -white-threshold value
                           forces all pixels above the threshold into white
      -write filename      write images to this file
    
    By default, the image format of `file' is determined by its magic
    number.  To specify a particular image format, precede the filename
    with an image format name and a colon (i.e. ps:image) or specify the
    image type as the filename suffix (i.e. image.ps).  Specify 'file' as
    '-' for standard input or output.
    [root@server /]# convert -view /home/userdir/public_html/video/dream_kelly_on_bed.wmv
    convert: option requires an argument `-view'.
    If you want us to run the convert command with arguments, what arguments do you want us to use?

    A video file is located at /home/userdir/public_html/video/dream_kelly_on_bed.wmv if you would like us to convert this file give us the exact command you would like run.

  6. #6
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    convert is ImageMagic, can only work on Images.

    To convert video, you need program called mencoder/ffmpeg.

    If you have mencoder installed, you will able to convert video into flv with following command on SSH

    Code:
    /usr/bin/mencoder 1.wmv -o 1.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 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
    Here 1.wmv is source video

    1.flv is output, that is converted video.

    In your case, you can run


    Code:
    /usr/bin/mencoder /home/bolek/public_html/video/dream_kelly_on_bed.wmv -o /home/bolek/public_html/video/1.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 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
    If mencoder (mplayer) is installed, on running the command, it will produce

    /home/bolek/public_html/video/1.flv

    You can see requirements to run vshare youtube clone script at

    http://www.vshare.in/requirements.html

  7. #7
    Join Date
    Aug 2007
    Posts
    7

    Default

    Ok, I think I have figured this out. When the script convers a video, it executes the following command.

    /usr/bin/mencoder /home/userdir/public_html/video/dream_kelly_on_bed.wmv -o /home/bolek/public_html/video/1.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es

    and when I type which ffmpeg I get the following out put.

    [root@server ~]# which ffmpeg
    /usr/local/bin/ffmpeg

    It appears this is installed in a directory not compatible with the script. If I run the ollowing I actually get a reply.

    /usr/local/bin/mencoder /home/userdir/public_html/video/dream_kelly_on_bed.wmv -o /home/bolek/public_html/video/1.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es

    It appears this needs to be installed in the /usr/bin/ directory. Is this correct?

  8. #8
    Join Date
    May 2007
    Posts
    588

    Default

    you can change the paths in /include/config.php

  9. #9
    Join Date
    Aug 2007
    Posts
    7

    Default

    Thanks for the quick reply.

    Ok, it is set correctly. This is the output of the command.

    Code:
     [root@server ~]# /usr/local/bin/mencoder /home/userdir/public_html/video/dream_kelly_on_bed.wmv -o /home/bolek/public_html/video/1.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 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
    MEncoder 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
    CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (Family: 15, Model: 75, Stepping: 2)
    CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
    
    MPlayer was compiled without libmp3lame support.
    -lameopts is not an MEncoder option
    
    Exiting... (error parsing command line)
    It appears the problem is that "-lameopts is not an MEncoder option"

    Just to eliminate the question, lame is installed.
    Code:
    [root@server ~]# which lame
    /usr/local/bin/lame

  10. #10
    Join Date
    May 2007
    Posts
    588

    Default

    i think you may have to reinstall MEncoder with lame support, may be wrong though since have not had to install the requirments on my server, but i have read lots on doing it in the past.

Page 1 of 2 12 LastLast

Similar Threads

  1. Videos playing in Firefox, but NOT playing in IE, Opera
    By piscean in forum Installation Support
    Replies: 4
    Last Post: 11-04-2008, 10:30 PM
  2. Videos not playing
    By grynmoors in forum Installation Support
    Replies: 5
    Last Post: 05-04-2008, 10:38 AM
  3. Some videos not playing
    By shopgood in forum General Discussions
    Replies: 5
    Last Post: 09-21-2007, 01:02 AM
  4. Videos not playing? Is my video queue converter working?
    By GreenGambler in forum General Discussions
    Replies: 7
    Last Post: 09-03-2007, 06:00 AM
  5. Long videos not playing correctly.
    By GhostFreak in forum Installation Support
    Replies: 19
    Last Post: 08-29-2007, 04:51 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
  •