Opened 7 months ago
#10626 new defect
ffmpeg throws 'non-zero exit status 3221225725' for video files greater than 5GB, for less than 5GB files there is no issue
Reported by: | vikkum | Owned by: | |
---|---|---|---|
Priority: | important | Component: | ffmpeg |
Version: | git-master | Keywords: | ffmpeg exit status 3221225725 |
Cc: | vikkum | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug: ffmpeg throws 'non-zero exit status 3221225725' for video files greater than 5GB, for less than 5GB files there is no issue
How to reproduce: I am trying to extract frames along with GPS telemetry from a 'video recorded on GoPro camera' that has GPS track as well, the idea here is to first extract the GPS track from the video's telemetry structure, and then locates video frames along the GPS track. When all the video frames are located, it then extracts one frame (image) every 3 meters by default.
Then I process the GPS data stored in the video file's telemetry stream and attach it to the extracted images.
All of this is done by using a python library 'Mapillary_tools' (https://github.com/mapillary/mapillary_tools/blob/main/README.md#local-video-processing)
mapillary command I used (mapillary_tools video_process 'path_to_my_video_file')
mapillary command I used: mapillary_tools video_process 'path_to_my_video_file' The mapillary command internally generates the following ffmpeg command:(['ffmpeg', '-hide_banner', '-nostdin', '-i', '.\\GoPro_Videos\\GX010115.MP4', '-map', '0:2', '-filter_script:v', 'C:\\Users\\VIKKUM\\AppData\\Local\\Temp\\tmpqkmxkfrp', '-vsync', '0', '-frames:0', '17011', '-frame_pts', '1', '-qscale:0', '2', 'C:\\Users\\VIKKUM\\Downloads\\GoPro_Videos\\mapillary_sampled_video_frames\\.mly_ffmpeg_GX010115.MP4_28132_1696386216\\GX010115_0_%06d.jpg']) the above mapillary generated command is: ffmpeg -hide_banner -nostdin -i GX010115.MP4 -map 0:0 -filter_script:v C:\\Users\\VIKKUM\\AppData\\Local\\Temp\\tmpeiubgyko -vsync 0 -frames:0 17011 -frame_pts 1 -qscale:0 2 C:\\Users\\VIKKUM\\Desktop\\mapillary_upload\\mapillary_sampled_video_frames\\.mly_ffmpeg_GX010115.MP4_18288_1697429029\\GX010115_0_%06d.jpg output: returned non-zero exit status 3221225725 ffmpeg version: ffmpeg version 2023-09-07-git-9c9f48e7f2-full_build-www.gyan.dev built on: built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
The file used in this case is attached in google drive (since its ~7GB file google drive seems a viable options to share the file), link:
https://drive.google.com/file/d/1eK-LNRlYQuM-_Hp0iW-iWCxtj5WPgLC_/view?usp=drivesdk
Output of the command: ffmpeg -v 9 -loglevel 99 -i ./GX010115.MP4 *>> ffmpeg_leve9.log
can be found on attachment.
Possibility of error:
This is possibly because of stack overflow as the same command works for files less than 5GB files.
ffmpeg_leve9.log: this zip contains the complete output of the command (ffmpeg -v 9 -loglevel 99 -i ./GX010115.MP4 *>> ffmpeg_leve9.log)