src/pyams_media/ffdocument.py
changeset 15 d1477fa29943
parent 8 e42e04460e14
child 21 1784464dfe62
equal deleted inserted replaced
14:61775c0158f3 15:d1477fa29943
    38             else:
    38             else:
    39                 info = FFmpeg('ffprobe').info(file)
    39                 info = FFmpeg('ffprobe').info(file)
    40                 if info:
    40                 if info:
    41                     self.__metadata__ = info
    41                     self.__metadata__ = info
    42                 else:
    42                 else:
    43                     self.__metadata__ = []
    43                     self.__metadata__ = {}
    44         else:
    44         else:
    45             self.__metadata__ = metadata
    45             self.__metadata__ = metadata
    46 
    46 
    47     def get_stream_info(self, codec_type=None):
    47     def get_stream_info(self, codec_type=None):
    48         """Get metadata info for given stream"""
    48         """Get metadata info for given stream"""