Hi.

Some codecs are not detected anymore with current FFmpeg git. The problem was 
recently fixed for video codecs, but the same issue appears with audio codecs.

Patch below fixes the problem reported as Kdenlive issue 2526
( http://kdenlive.org/mantis/view.php?id=2526 )

regards
jb


--- a/src/modules/avformat/consumer_avformat.c
+++ b/src/modules/avformat/consumer_avformat.c
@@ -237,7 +237,11 @@ static int consumer_start( mlt_consumer consumer )
                mlt_properties_set_data( properties, "acodec", codecs, 0, 
(mlt_destructor) mlt_prop
                mlt_properties_set_data( doc, "audio_codecs", codecs, 0, NULL, 
NULL );
                while ( ( codec = av_codec_next( codec ) ) )
+#if LIBAVCODEC_VERSION_INT >= ((53<<16)+(34<<8)+0)
+                       if ( ( codec->encode || codec->encode2 ) && codec-
>type == CODEC_TYPE_AUDIO
+#else
                        if ( codec->encode && codec->type == CODEC_TYPE_AUDIO 
)
+#endif
                        {
                                snprintf( key, sizeof(key), "%d", 
mlt_properties_count( codecs ) );
                                mlt_properties_set( codecs, key, codec->name 
);


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to