使用ffmpeg格式化未知错误

时间:2016-02-06 18:54:22

标签: ffmpeg mp4 webm

我尝试使用以下方法将.webm转换为.mp4。

ffmpeg -fflags +genpts -i 1.webm -r 24 1.mp4

它没有用,这就是我得到的:

C:\Users\mahmoud\Desktop\ffmpeg>ffmpeg -fflags +genpts -i v.webm -r 24 1.mp4
FFmpeg version SVN-r18639, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-memalign-hack --enable-postproc --enable-gpl --enable-
libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libvorbis
--enable-libtheora --enable-libx264 --enable-libxvid --disable-ffserver --enable
-avisynth --enable-pthreads
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.27. 0 / 52.27. 0
  libavformat   52.32. 0 / 52.32. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Apr 21 2009 13:44:38, gcc: 4.2.4 (TDM-1 for MinGW)
v.webm: Unknown format

任何人都可以提供帮助吗?

1 个答案:

答案 0 :(得分:2)

您的ffmpeg很古老,我相信WebM支持在2010年后期包含在内。从here获取当前版本。

你也可以试试运气

class Memberloginmodel extends CI_Model{

public function __construct()
{
    parent::__construct();
    $this->load->helper(array('url','html','form'));
}
function login()
{
    $this->db->where('email',$this->input->post('email'));
    $this->db->where('password', md5($this->input->post('password')));


$query = $this->db->get('member');  /*i added 'member' table on db new members*/

       if($query->num_rows()>0)
    {
        foreach($query->result() as $rows)
        {
            //add all data to session
            $newdata = array(
                    'id'            => $rows->id,
                    'memberfname'   => $rows->memberfname,
                    'memberlname'   => $rows->memberlname,
                    'email'         => $rows->email,

                    'logged_in'     => TRUE
               );
        }
            $this->session->set_userdata($newdata);
            return true;            
        }else{
            return false;
        }
 }

   public function add_user()
{
    $data = array(
        'memberfname'=>$this->input->post('memberfname'),
        'memberlname'=>$this->input->post('memberlname'),
        'email'=>$this->input->post('email'),
        'password'=>md5($this->input->post('password')),

        );
    $this->db->insert('member',$data);
}

public function getMember($id)
{
$this->db->where('id', $id);
$query = $this->db->get('member');

if ($query->num_rows() !== 1)
{
    return FALSE;
}
return $query->row();
}