AW: filesink cannot write output file more than 2048 MB, windows, gstreamer 1.16.1 mingw x64

Thornton, Keith keith.thornton at zeiss.com
Wed Sep 15 08:24:04 UTC 2021


Hi,
The last statement was not quite correct. The 2048MB limit is a feature of the target file system. FAT32 can't handle files larger than 2GB but NTFS can. I have just recorded a 3GB large file under windows 10 on an NTFS HD.
Gruesse

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> Im Auftrag von James via gstreamer-devel
Gesendet: Mittwoch, 15. September 2021 08:14
An: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Cc: James <jam at tigger.ws>
Betreff: Re: filesink cannot write output file more than 2048 MB, windows, gstreamer 1.16.1 mingw x64

That is a windows issue that cannot be fixed. (Well it can, but it is low down in windows) James

> On 15 Sep 2021, at 8:25 am, Артем Семенов via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:
> 
> Hello. 
> 
> Windows, gstreamer 1.16.1 mingw x64:
> 
> When the output file reaches a size greater than 2048 MB, filesink stops recording and generates an error:
> 
> GST_DEBUG=3
> 
> 0:19:09.838828958  5464 000002C708342300 WARN                filesink gstfilesink.c:606:gst_file_sink_event:<filesink> error: Error while seeking in file "{path_to_output_file}".
> 0:19:09.838856894  5464 000002C708342300 WARN                filesink gstfilesink.c:606:gst_file_sink_event:<filesink> error: system error: Invalid argument
> 
> GST_DEBUG=5
> 
> 1:00:17.891237294  6080 000001CC520A4940 DEBUG               filesink gstfilesink.c:504:gst_file_sink_do_seek:<filesink> Seeking to offset 2147862966 using fseeko
> 1:00:17.891284786  6080 000001CC520A4940 DEBUG               filesink gstfilesink.c:714:gst_file_sink_flush_buffer:<filesink> Flushing out buffer of size 24
> 1:00:17.891333954  6080 000001CC520A4940 DEBUG               filesink gstfilesink.c:658:gst_file_sink_render_buffers:<filesink> writing 1 buffers (1 memories, 24 bytes) at position 1074029354
> 
> 1:00:17.912922452  6080 000001CC520A4940 DEBUG               filesink gstfilesink.c:535:gst_file_sink_do_seek:<filesink> Seeking failed: Invalid argument
> 1:00:17.912970224  6080 000001CC520A4940 WARN                filesink gstfilesink.c:606:gst_file_sink_event:<filesink> error: Error while seeking in file "{path_to_output_file}".
> 
> Obviously, this is due to the fact that the 32-bit version of the fseek function is used instead of the 64-bit one.
> 
> Has this been fixed in subsequent releases?
> 
> --
> With best regards, 
>  Artem Semenov               mailto:artem.semenov at jarillolabs.com



More information about the gstreamer-devel mailing list