FFMPEG video conversion with file size zero

Links for php scripts

Moderators: macek, egami, gesf

sanv
New php-forum User
New php-forum User
Posts: 3
Joined: Thu Jan 05, 2012 3:25 am

FFMPEG video conversion with file size zero

Postby sanv » Thu Jan 05, 2012 3:32 am

Dear all,
I am using this code to conver mp4 file to flv on server.
/usr/bin/ffmpeg -i upload_v/El-Bahia-Video.mp4 -ar 44100 -ab 64 -f flv -s 1280x720 upload_v/El-Bahia-Video.flv | /usr/bin/flvtool2 -U stdin upload_v/El-Bahia-Video.flv
FFMPEG setting on server is like this

ffmpeg-php version 0.6.3
ffmpeg-php built on Dec 28 2011 21:00:16
ffmpeg-php gd support enabled
ffmpeg libavcodec version Lavc52.123.0
ffmpeg libavformat version Lavf52.111.0
ffmpeg swscaler version SwS0.14.1
When i run this command file is get converted in to flv formate but its size is zero.

also have this kind of error :

ERROR: undefined method `timestamp' for nil:NilClass
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flv/stream.rb:285:in `lasttimestamp'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flv/stream.rb:274:in `duration'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:181:in `add_meta_data_tag'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:137:in `update'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:47:in `send'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:47:in `execute!'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:46:in `each'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:46:in `execute!'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:206:in `process_files'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:44:in `execute!'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2.rb:168:in `execute!'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2.rb:228
ERROR: /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
ERROR: /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/bin/flvtool2:2
ERROR: /usr/bin/flvtool2:19:in `load' ERROR: /usr/bin/flvtool2:19

Please some one help me urgent

Thanks in advance.

Regards,
sanv

Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 2 guests