Results 1 to 3 of 3

Thread: video no converting properly

  1. #1
    Join Date
    Oct 2008
    Posts
    3

    Default video no converting properly

    Hello,

    We have isolated the problem to be how the php script runs the mplayer convert command. When running the same command from command line as the user dubooth it executes correctly. We enabled suphp in the hopes this would fix the user issue but it seems this did not fix it as the same error pops up and the video conversion must still be run manually for the videos to be run properly. For example here is the output when we try to use convert.php on a test file we uploaded:

    CONVERT COMMAND: /usr/local/bin/mencoder
    '/home/dubooth/public_html/video/thirdchild1_0001.wmv' -o
    /home/dubooth/public_html/flvideo/1225131006944582718.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

    ################################################## ##

    Array
    (
    [0] => MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
    [1] => CPU: Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz (Family: 6,
    Model: 15, Stepping: 6)
    [2] => CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2:
    1
    [3] => Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    [4] =>
    [5] =>
    [6] => Exiting... (error parsing command line)
    )

    ################################################## ##

    Return value: Exiting... (error parsing command line)

    I then copied & pasted the same exact command and ran it from ssh just fine. Please provide us information into how we need to change the server setup to work with this or please fix the underlying issue with convert.php.

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

    Default Re: video no converting properly

    I don't see a reason a command that work on command prompt not working from php.

    check

    Video not getting converted to flv

  3. #3
    Join Date
    Oct 2008
    Posts
    3

    Default Re: video no converting properly

    After investigating the debug issue we saw the command the script executes. I tried logging in via ssh as the user dubooth to run the command the debug output and it ran fine as seen below. Please provide how this script executes the conversion command as we have enabled suphp. This should make the script run as the dubooth user but it appears to not be functioning properly.

    [email protected] [~/public_html]# /usr/local/bin/mencoder
    '/home/dubooth/public_html/video/tc001.wmv' -o
    /home/dubooth/public_html/flvideo/1225125627237515901.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
    MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
    CPU: Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz (Family: 6, Model: 15,
    Stepping: 6)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

    98 audio & 216 video codecs
    success: format: 0 data: 0x0 - 0x1511ed7
    ASF file format detected.
    VIDEO: [WMV3] 640x480 24bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:6 fourcc:0x33564D57 size:640x480 fps:30.00 ftime:=0.0333
    ================================================== ========================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
    Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
    ================================================== ========================
    ** MUXER_LAVF
    ************************************************** ***************
    You have certified that your video stream does not contain B frames.
    REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
    INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
    will play these INCORRECT files as if nothing were wrong!
    ************************************************** *****************************
    OK, exit
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    ================================================== ========================
    Opening video decoder: [dmo] DMO video codecs
    DMO dll supports VO Optimizations 0 1
    DMO dll might use previous sample when requested
    GetOutput r=0x0 size:921600 align:1
    StreamCount r=0x0 1 1
    Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565
    RGB24 RGB32
    Decoder is capable of YUV output (flags 0x1b)
    VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is undefined - no prescaling applied.
    videocodec: libavcodec (640x480 fourcc=766c66 [flv])
    [VE_LAVC] High quality encoding selected (non-realtime)!
    Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
    ================================================== ========================
    MP3 audio selected.
    New_Face failed. Maybe the font path is wrong.
    Please supply the text font file (~/.mplayer/subfont.ttf).
    subtitle font: load_sub_face failed.
    VIDEO CODEC ID: 0
    AUDIO CODEC ID: 15001, TAG: 0
    Writing header...
    Pos: 0.7s 22f ( 0%) 0.00fps Trem: 1min 8mb A-V:0.070 [0:7]
    Skipping frame!
    Pos: 1.0s 31f ( 0%) 0.00fps Trem: 1min 11mb A-V:0.067 [0:7]
    Skipping frame!
    Pos: 1.3s 42f ( 2%) 0.00fps Trem: 0min 2mb A-V:0.070 [332:7]
    Skipping frame!
    Pos: 1.6s 52f ( 2%) 0.00fps Trem: 0min 2mb A-V:0.070 [278:7]
    Skipping frame!
    Pos: 1.9s 61f ( 2%) 0.00fps Trem: 0min 2mb A-V:0.067 [245:7]
    Skipping frame!
    Pos: 2.2s 72f ( 2%) 0.00fps Trem: 0min 3mb A-V:0.070 [225:7]
    Skipping frame!
    Pos: 2.5s 82f ( 2%) 0.00fps Trem: 0min 3mb A-V:0.070 [244:7]
    Skipping frame!
    Pos: 4.9s 155f ( 9%) 44.66fps Trem: 0min 5mb A-V:-0.067 [888:23]
    1 duplicate frame(s)!
    Pos: 5.8s 180f (11%) 41.65fps Trem: 0min 5mb A-V:-0.069 [873:26]
    1 duplicate frame(s)!
    Pos: 7.1s 218f (15%) 39.54fps Trem: 0min 4mb A-V:-0.068 [841:29]
    1 duplicate frame(s)!
    Pos: 10.2s 311f (27%) 36.73fps Trem: 0min 3mb A-V:-0.070 [818:35]
    1 duplicate frame(s)!
    Pos: 28.9s 869f (84%) 36.19fps Trem: 0min 2mb A-V:-0.067 [622:42]
    1 duplicate frame(s)!
    Pos: 33.7s 1014f (100%) 36.11fps Trem: 0min 2mb A-V:-0.070 [607:43]
    1 duplicate frame(s)!
    Pos: 34.1s 1024f (100%) 36.11fps Trem: 0min 2mb A-V:-0.070 [607:43]
    1 duplicate frame(s)!
    Pos: 34.3s 1029f (100%) 36.11fps Trem: 0min 2mb A-V:-0.053 [606:43]
    Flushing video frames
    Writing index...
    SEEK 4
    SEEK 52
    SEEK 174
    SEEK 2821084

    Video stream: 606.526 kbit/s (75815 B/s) size: 2600482 bytes 34.300 secs
    1029 frames

    Audio stream: 43.357 kbit/s (5419 B/s) size: 183340 bytes 33.829 secs
    --

Similar Threads

  1. Video converting Failing
    By alex288288 in forum General Discussions
    Replies: 0
    Last Post: 10-01-2008, 02:43 AM
  2. Has anyone got a properly working vshare
    By GARKIM in forum Installation Support
    Replies: 7
    Last Post: 07-03-2008, 10:00 AM
  3. WMV video not converting. Help Please
    By sullenest in forum Installation Support
    Replies: 6
    Last Post: 04-02-2008, 01:53 AM
  4. [FIXED] age doesn't work properly
    By olrac in forum Fixed Bugs
    Replies: 2
    Last Post: 06-15-2007, 07:39 PM
  5. video not converting
    By bman in forum Installation Support
    Replies: 16
    Last Post: 06-14-2007, 11:07 PM

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
  •