diff --git a/src/main/kotlin/se/svt/oss/mediaanalyzer/MediaAnalyzer.kt b/src/main/kotlin/se/svt/oss/mediaanalyzer/MediaAnalyzer.kt index 3464217..4cb25f1 100644 --- a/src/main/kotlin/se/svt/oss/mediaanalyzer/MediaAnalyzer.kt +++ b/src/main/kotlin/se/svt/oss/mediaanalyzer/MediaAnalyzer.kt @@ -137,7 +137,8 @@ class MediaAnalyzer bitDepth = ffVideoStream.bits_per_raw_sample ?: videoTrack?.bitDepth, numFrames = numFrames, isInterlaced = interlaced, - transferCharacteristics = videoTrack?.transferCharacteristics + transferCharacteristics = videoTrack?.transferCharacteristics, + codecTagString = ffVideoStream.codec_tag_string ) } } diff --git a/src/main/kotlin/se/svt/oss/mediaanalyzer/file/VideoStream.kt b/src/main/kotlin/se/svt/oss/mediaanalyzer/file/VideoStream.kt index 64e5306..5375f12 100644 --- a/src/main/kotlin/se/svt/oss/mediaanalyzer/file/VideoStream.kt +++ b/src/main/kotlin/se/svt/oss/mediaanalyzer/file/VideoStream.kt @@ -20,5 +20,6 @@ data class VideoStream( val bitDepth: Int?, val numFrames: Int, val isInterlaced: Boolean, - val transferCharacteristics: String? + val transferCharacteristics: String?, + val codecTagString: String? ) diff --git a/src/test/kotlin/se/svt/oss/mediaanalyzer/MediaAnalyzerIntegrationTest.kt b/src/test/kotlin/se/svt/oss/mediaanalyzer/MediaAnalyzerIntegrationTest.kt index 6b4453e..88aea26 100644 --- a/src/test/kotlin/se/svt/oss/mediaanalyzer/MediaAnalyzerIntegrationTest.kt +++ b/src/test/kotlin/se/svt/oss/mediaanalyzer/MediaAnalyzerIntegrationTest.kt @@ -52,6 +52,7 @@ class MediaAnalyzerIntegrationTest { .hasBitDepth(10) .hasNumFrames(250) .hasTransferCharacteristics(null) + .hasCodecTagString("avc1") assertThat(videoFile.audioStreams).hasSize(1) assertThat(videoFile.audioStreams)