From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <41623F5A.9000608@13.net.ru> Date: Tue, 05 Oct 2004 10:29:46 +0400 From: Alexander Markelov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.6) Gecko/20040407 X-Accept-Language: ru, en-us, ru-ru MIME-Version: 1.0 To: sisyphus@altlinux.ru Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at telephone.ru Subject: [sisyphus] motion + FFmpeg X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 06:29:41 -0000 Archived-At: List-Archive: Доброго времени суток! У кого нибудь получилось заставить motion писать mpeg1 или mpeg4 ? Использую последний motion из сизифа. Вот кусок из motion.conf относящийся к ffmpeg: #Use ffmpeg to encode mpeg movies in realtime (default: off) ffmpeg_cap_new on #Use ffmpeg to make movies with only the pixels moving #object (green ghost images) (default: off) ffmpeg_cap_motion off #Use ffmpeg to encode a timelapse movie #Default value 0 = off - else save frame every Nth second ffmpeg_timelapse 0 #The file rollover mode of the timelapse video #Valid values: hourly, daily (default), weekly-sunday, weekly-monday, monthly, manual ffmpeg_timelapse_mode daily #Bitrate to be used by the ffmpeg encoder (default: 400000) #This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled) ffmpeg_bps 500000 #Enables and defines variable bitrate for the ffmpeg encoder. #ffmpeg_bps is ignored if variable bitrate is enabled. #Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps, #or the range 2 - 31 where 2 means best quality and 31 is worst. ffmpeg_variable_bitrate 0 #Codec to used by ffmpeg for the video compression. #Timelapse mpegs are always made in mpeg1 format independent from this option. #Supported formats are: mpeg1 (default), mpeg4, and msmpeg4. #mpeg1 gives you files with extension .mpg #mpeg4 or msmpeg4 give you files with extension .avi #msmpeg4 is recommended for use with Windows Media Player because #it requires no installation of codec on the Windows client. ffmpeg_video_codec msmpeg4 Файл avi создается, но его не прочитать :( Запускаю ffplay -stats /var/tmp/cam0/01-20041004102112.avi В ответ вот что: Input #0, avi, from '/var/tmp/cam0/01-20041004102112.avi': Duration: 00:00:00.0, bitrate: -2147483 kb/s Stream #0.0: Video: msmpeg4v2, 768x576, 2.00 fps 10.94 A-V: 0.000 aq= 0KB vq= 0KB какой то не понятный битрейт, да и fps. Может есть идеи как побороть ?