Results 1 to 9 of 9

Thread: Can't convert to flv

  1. #1
    Join Date
    Aug 2007
    Posts
    14

    Default Can't convert to flv

    I've got the script working for a bit. My server fullfill the requirements, my phpinfo.php displays the right things for ffmpeg, but I still keep struggeling with the problem the video's are not being converted to flv. I'm using 2.4 right now. In this version I can't find a debug mode, how can I see what's going on when the converting starts..?

    Edit: Besides that, I have a thumbnail problem. I uploaded a .3gp video, the thumbnail shows up (not converted to the flvideo map!) but when I upload a .mp4 video, the thumbnail won't be created.

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

    Default Re: Can't convert to flv

    Quote Originally Posted by svteg
    I've got the script working for a bit. My server fullfill the requirements, my phpinfo.php displays the right things for ffmpeg, but I still keep struggeling with the problem the video's are not being converted to flv. I'm using 2.4 right now. In this version I can't find a debug mode, how can I see what's going on when the converting starts..?
    Debug is enabled by default, after uploading a video, check templates_c/debug.txt file.

    Quote Originally Posted by svteg
    Edit: Besides that, I have a thumbnail problem. I uploaded a .3gp video, the thumbnail shows up (not converted to the flvideo map!) but when I upload a .mp4 video, the thumbnail won't be created.
    Run the convert command on command prompt of the server and see if video get converted.

  3. #3
    Join Date
    Aug 2007
    Posts
    14

    Default

    This is wat I get from the debug after uploading a .mp4 video. No thumbnail has been created. For .3gp I get almost the same debug list, only for that extension the thumbnail works.


    Code:
    2007-08-25 0:23:54 Upload Finished
    
    2007-08-25 0:23:54 Video (3) Conversion starting...
    
    2007-08-25 0:23:54 File: /home/admin/domains/degroenehel.tv/public_html/video/24082007127.mp4
    
    2007-08-25 0:23:54 -------------------------------------------------------------
    
    2007-08-25 0:23:54 INSERT INTO video SET
    				UID='2',
    				title='test test',
    				description='woei',
    				keyword='wooala',
    				channel='0|1|0',
    				space = '0',
    				addtime='1187994234',
    				adddate='2007-08-25',
    				vkey='7322042',
    				type='public',
    				active='0',
    				approve='0'
    
    2007-08-25 0:23:54 -------------------------------------------------------------
    
    2007-08-25 0:23:54 Video id: 2
    
    2007-08-25 0:23:54 Calling ffmpeg-php -> ffmpeg_movie()
    
    2007-08-25 0:23:54 Get video duration - START
    
    2007-08-25 0:23:54 Get video duration - END
    
    2007-08-25 0:23:54 DURATION: 5.12
    
    2007-08-25 0:23:54 Create Thumbnail - START
    
    2007-08-25 0:23:54 Create Thumbnail - END
    
    2007-08-25 0:23:54 CONVERT COMMAND:
    
    /usr/local/bin/mencoder '/home/admin/domains/degroenehel.tv/public_html/video/24082007127.mp4' -o /home/admin/domains/degroenehel.tv/public_html/flvideo/1187994234137797706.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
    
    
    
    2007-08-25 0:23:54 -------------------------------------------------------------
    
    2007-08-25 0:23:54 MEncoder dev-SVN-r24142-3.4.6 (C) 2000-2007 MPlayer Team
    
    CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 9)
    
    CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    
    
    
    
    
    Exiting... (error parsing command line)
    
    
    
    2007-08-25 0:23:54 -------------------------------------------------------------
    
    2007-08-25 0:23:54 Return value: Exiting... (error parsing command line)
    
    2007-08-25 0:23:54 Calling process_video[3,0]

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

    Default

    Problem is mencoder on your server not able to convert the video

    You can ask your server admin to run following command on server and see if that works (convert video into FLV).

    Code:
    /usr/local/bin/mencoder '/home/admin/domains/degroenehel.tv/public_html/video/24082007127.mp4' -o /home/admin/domains/degroenehel.tv/public_html/flvideo/1187994234137797706.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

  5. #5
    Join Date
    Aug 2007
    Posts
    14

    Default

    When I run that command, I get this as return:

    Code:
    MEncoder dev-SVN-r24142-3.4.6 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 9)
    CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    
    Option lavfopts: Unknown suboption i_certify_that_my_video_stream_does_not_use_b_frames
    Error parsing option on the command line: -lavfopts
    
    Exiting... (error parsing command line)

  6. #6
    Join Date
    Aug 2007
    Posts
    14

    Default

    I removed some word in the command line, I'm a bit further now.. it's saying that there is an error in mencoder libformat.

    Code:
    /usr/local/bin/mencoder '/home/admin/domains/degroenehel.tv/public_html/video/24082007127.mp4' -o /home/admin/domains/degroenehel.tv/public_html/flvideo/1187994234137797706.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 
    
    MEncoder dev-SVN-r24142-3.4.6 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 9)
    CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    
    success: format: 0  data: 0x0 - 0x50c47
    ISO: File Type Major Brand: ISO/IEC 14496-1 (MPEG-4 system) v2
    Quicktime/MOV file format detected.
    [mov] Video stream found, -vid 0
    [mov] Audio stream found, -aid 1
    VIDEO:  [mp4v]  320x240  24bpp  15.298 fps    0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:7  fourcc:0x7634706D  size:320x240  fps:15.30  ftime:=0.0654
    ==========================================================================
    Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
    AUDIO: 32000 Hz, 2 ch, s16le, 48.2 kbit/4.71% (ratio: 6025->128000)
    Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
    ==========================================================================
    ** MUXER_LAVF *****************************************************************
    REMEMBER: MEncoder's libavformat muxing is presently broken and can 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: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
    ==========================================================================
    MP3 audio selected.
    VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
    videocodec: libavcodec (320x240 fourcc=31564c46 [FLV1])
    [VE_LAVC] High quality encoding selected (non-realtime)!
    Compiler did not align stack variables. Libavcodec has been miscompiled
    and may be very slow or crash. This is not a bug in libavcodec,
    but in the compiler. You may try recompiling using gcc >= 4.2.
    Do not report crashes to FFmpeg developers.
    VIDEO CODEC ID: 22
    AUDIO CODEC ID: 15001, TAG: 0
    Writing header...
    [NULL @ 0x8669a10]flv does not support that sample rate, choose from (44100, 22050, 11025).
    Floating point exception

  7. #7
    Join Date
    Aug 2007
    Posts
    14

    Default

    Ok, I made a conversion via command prompt with this line:

    Code:
    /usr/local/bin/mencoder '/home/admin/domains/degroenehel.tv/public_html/video/24082007127.mp4' -o /home/admin/domains/degroenehel.tv/public_html/flvideo/1187994234137797706.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts  -srate 22050
    It's returning this
    Code:
    MEncoder dev-SVN-r24142-3.4.6 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 9)
    CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    
    success: format: 0  data: 0x0 - 0x50c47
    ISO: File Type Major Brand: ISO/IEC 14496-1 (MPEG-4 system) v2
    Quicktime/MOV file format detected.
    [mov] Video stream found, -vid 0
    [mov] Audio stream found, -aid 1
    VIDEO:  [mp4v]  320x240  24bpp  15.298 fps    0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:7  fourcc:0x7634706D  size:320x240  fps:15.30  ftime:=0.0654
    ==========================================================================
    Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
    AUDIO: 32000 Hz, 2 ch, s16le, 48.2 kbit/4.71% (ratio: 6025->128000)
    Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
    ==========================================================================
    ** MUXER_LAVF *****************************************************************
    REMEMBER: MEncoder's libavformat muxing is presently broken and can 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: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
    ==========================================================================
    MP3 audio selected.
    VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
    videocodec: libavcodec (320x240 fourcc=31564c46 [FLV1])
    [VE_LAVC] High quality encoding selected (non-realtime)!
    Compiler did not align stack variables. Libavcodec has been miscompiled
    and may be very slow or crash. This is not a bug in libavcodec,
    but in the compiler. You may try recompiling using gcc >= 4.2.
    Do not report crashes to FFmpeg developers.
    VIDEO CODEC ID: 22
    AUDIO CODEC ID: 15001, TAG: 0
    Writing header...
    Pos:   1.4s     21f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.133 [830:44]
    Skipping frame!
    Pos:   2.4s     37f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.131 [702:44]
    Skipping frame!
    Pos:   4.8s     75f ( 0%) 48.14fps Trem:   0min   0mb  A-V:0.008 [619:44]
    Flushing video frames.
    Writing index...
    
    Video stream:  619.495 kbit/s  (77436 B/s)  size: 369511 bytes  4.772 secs  75 frames
    
    Audio stream:   44.291 kbit/s  (5536 B/s)  size: 27768 bytes  5.016 secs
    It works only with command prompt.. when I'm using the site it's keep giving me a convert error. I think I have to repair my install of mplayer, isn't it?

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

    Default

    Edit

    include/settings/video_conversion.php

    FIND

    $cmd_mencoder = "$config[mencoder] '$video_src' -o $video_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";
    REPLACE WITH


    Code:
    $cmd_mencoder = "$config[mencoder] '$video_src' -o $video_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";

  9. #9
    Join Date
    Aug 2007
    Posts
    14

    Default

    It doesn't work. I contacted Hostonnet to help me out. :(

Similar Threads

  1. Convert error
    By pornodelen in forum Bug Reports
    Replies: 4
    Last Post: 09-13-2008, 11:35 PM
  2. Convert.php
    By infrenion.com in forum Installation Support
    Replies: 4
    Last Post: 12-12-2007, 08:54 AM
  3. Convert Failed
    By sysking in forum Installation Support
    Replies: 1
    Last Post: 11-17-2007, 12:37 AM
  4. Convert Error
    By grynmoors in forum Installation Support
    Replies: 2
    Last Post: 11-06-2007, 03:53 AM
  5. Since last upgrade can't convert !
    By cyse in forum Installation Support
    Replies: 3
    Last Post: 06-11-2007, 07:13 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
  •