Errors from PHP Exec But Zero Return Code

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors from PHP Exec But Zero Return Code

libav-user
I get the following errors when trying to convert an AVI video or a WMF video
to FLV via a PHP exec() and the return code is 0:

Array
(
    [0] => ERROR: undefined method `timestamp' for nil:NilClass
    [1] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flv/stream.rb:285:in
`lasttimestamp'
    [2] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flv/stream.rb:274:in `duration'
    [3] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:181:in
`add_meta_data_tag'
    [4] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:137:in `update'
    [5] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:47:in `send'
    [6] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:47:in `execute!'
    [7] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:46:in `each'
    [8] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:46:in `execute!'
    [9] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:206:in
`process_files'
    [10] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2/base.rb:44:in `execute!'
    [11] => ERROR:
/usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2.rb:168:in `execute!'
    [12] => ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/lib/flvtool2.rb:228
    [13] => ERROR:
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
    [14] => ERROR:
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
    [15] => ERROR: /usr/lib/ruby/gems/1.8/gems/flvtool2-1.0.6/bin/flvtool2:2
    [16] => ERROR: /usr/bin/flvtool2:18:in `load'
    [17] => ERROR: /usr/bin/flvtool2:18
)

Here is the command that produced the results above:

ffmpeg -y -i /path/to/my.avi -ar 48000 -ab 128 -f flv -s 640x480
/path/to/my.flv | flvtool2 -U stdin /path/to/my.flv

The resulting flv file size is 0.

Any insight anyone on the list has that would help me figure out what is
causing the errors and why the resulting flv file is empty would be very much
appreciated!

Karl Barger
Weboniks.com
_______________________________________________
libav-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user
Reply | Threaded
Open this post in threaded view
|

Error resilience

Locutus
Is there a way to make the libav decoder more error resilient and tolerant
to errors in the video?

_______________________________________________
libav-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user