Modify ffmpeg probesize for mpegts 71/319271/1 accepted/tizen/9.0/unified/20250212.171240
authorJiyong <jiyong.min@samsung.com>
Thu, 6 Feb 2025 23:34:32 +0000 (08:34 +0900)
committerJiyong <jiyong.min@samsung.com>
Fri, 7 Feb 2025 00:43:29 +0000 (09:43 +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 aff6a6af07aeb085f7232a605d27964ae7ce3067..3351441c3c3f3721bb62549ee06b12eecdbce947 100644 (file)
@@ -1,6 +1,6 @@
 Name:      libmm-fileinfo
 Summary:    Media Fileinfo
-Version:    1.1.0
+Version:    1.1.1
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0