Modify ffmpeg probesize for mpegts 70/319270/5 accepted/tizen/unified/20250212.101009 accepted/tizen/unified/x/20250218.043749
authorJiyong <jiyong.min@samsung.com>
Thu, 6 Feb 2025 23:34:32 +0000 (08:34 +0900)
committerJiyong <jiyong.min@samsung.com>
Thu, 6 Feb 2025 23:54:35 +0000 (08:54 +0900)
[Cause]
  The probesize limits the bytes of reading mpegts header.
  The default value of probesize is 5,000,000 and it is too big.
  So it took too long time to parse mpegts header.

[Solution]
  We modified mpegts probesize to 50,000(ini config).
  So reading mpegts header faster than before.

Change-Id: If09af32bfd3846ca71826cb364a5f1a1f4bcc8b6

formats/ffmpeg/mm_file_format_ffmpeg.c
packaging/libmm-fileinfo.spec

index 9387eddfe8ab0cbf84028b8b36defe50d8a33004..c3e01e94624cac0abf4e6466cd16b71f78589a51 100644 (file)
@@ -477,8 +477,7 @@ int mmfile_format_read_stream_ffmpg(MMFileFormatContext *formatContext)
 
        if (formatContext->formatType == MM_FILE_FORMAT_M2TS)
                pFormatCtx->max_analyze_duration = g_max_analyze_duration;      // MPEGTS file timeout set
-       else
-               pFormatCtx->probesize = g_probesize;    // the size of the data(packet) to probe stream information
+       pFormatCtx->probesize = g_probesize;    // the size of the data(packet) to probe stream information
 
        debug_msg(RELEASE, "max_analyze_duration: %"PRId64", probesize: %"PRId64"", pFormatCtx->max_analyze_duration, pFormatCtx->probesize);
 
index fa2edb9e6b6cd250f40b6df0e42ca5980e1bb6c4..0e3143099bb260cc27655945d04901f589d7cf53 100644 (file)
@@ -1,6 +1,6 @@
 Name:      libmm-fileinfo
 Summary:    Media Fileinfo
-Version:    1.1.1
+Version:    1.1.2
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0