[filescanner_ffmpeg] Add doc to scan_metadata_ffmpeg

This commit is contained in:
chme 2017-01-28 08:54:34 +01:00 committed by ejurgensen
parent e4f25f9418
commit 78975b1aa3
1 changed files with 10 additions and 0 deletions

View File

@ -350,6 +350,16 @@ extract_metadata(struct media_file_info *mfi, AVFormatContext *ctx, AVStream *au
return mdcount;
}
/*
* Fills metadata read with ffmpeg/libav from the given path into the given mfi
*
* Following attributes from the given mfi are read to control how to read metadata:
* - data_kind: if data_kind is http, icy metadata is used, if the path points to a playlist the first stream-uri in that playlist is used
* - media_kind: if media_kind is podcast or audiobook, video streams in the file are ignored
* - compilation: like podcast/audiobook video streams are ignored for compilations
* - file_size: if bitrate could not be read through ffmpeg/libav, file_size is used to estimate the bitrate
* - fname: (filename) used as fallback for artist
*/
int
scan_metadata_ffmpeg(const char *file, struct media_file_info *mfi)
{