mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
Bug: Can't open huge .mp4 files #469
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Pennyliu999 on GitHub (Dec 10, 2018).
Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION].
CCExtractor version (using the --version parameter preferably) : X.X
In raising this issue, I confirm the following (please check boxes, eg [X] - and delete unchecked ones):
My familiarity with the project is as follows (check one, eg [X] - and delete unchecked ones):
Necessary information
I tried to use 0.87 to extract the subtitles from many MP4 files which are over 4GB, and I failed in all of them, sometimes the file is failed to open, like,
Analyzing data with GPAC (MP4 library)
Opening 'Z:\1965.mp4': Failed to open input file (gf_isom_open() returned error)
Sometimes it just stopped, I copied the warning message from the pop-up window here,
AppName: ccextractorwin.exe AppVer: 0.0.0.0
ModName: ccextractorwin.exe
ModVer: 0.0.0.0 Offset: 001067e3
I also tried the command line and it doesn't work either.
I confirm in 0.85 I can open the files and extract the subtitles.
@thealphadollar commented on GitHub (Dec 10, 2018):
@Pennyliu999 Can you please attach the mentioned file? Maybe upload it to GDrive and give us a link so that we can analyze the issue better :)
@Pennyliu999 commented on GitHub (Dec 10, 2018):
@thealphadollar Thanks for the reply, but the file is literarily too huge to upload (over 4GB), I will try but I'll be appreciated if you may test 0.87 with some huge .mp4 files in your hand.
I've tried some small files which is less than 100 MB and 0.87 works perfectly.
I will keep you updated if I can successfully upload a huge file, thanks.
@thealphadollar commented on GitHub (Dec 10, 2018):
Sure. I've tested it with huge files (around 2GBs) and it works fine for me. It could be an issue with the specific file.
@Pennyliu999 commented on GitHub (Dec 10, 2018):
@thealphadollar Yes, I think it's not about the size but some kind of coding problem. I tested with a .mp4 which is less than 2 GB and 0.87 still doesn't work (while 0.85 works)
For your information, I downloaded the video files from Apple and removed the drm, 0.87 works with none of them. I will try to upload the file which is smaller than 2 GB for you to test and keep you informed.
@thealphadollar commented on GitHub (Dec 10, 2018):
Thank you, I'll test them out once you've provided them.
Shivam Kumar Jha
Department Of Computer Science And Engineering
Indian Institute of Technology Kharagpur
Web https://thealphadollar.github.io || Github
https://github.com/thealphadollar/ || LinkedIn
https://www.linkedin.com/in/thealphadollar/
https://thealphadollar.github.io/
On Mon, Dec 10, 2018 at 9:44 PM Pennyliu999 notifications@github.com
wrote:
@Pennyliu999 commented on GitHub (Dec 10, 2018):
@thealphadollar Please check this file, thanks for your time.
https://s3-ap-southeast-1.amazonaws.com/tortoise/test2.mp4
@thealphadollar commented on GitHub (Dec 11, 2018):
@Pennyliu999 I'm unable to download the video file from Amazon AWS with the link provided.
@Pennyliu999 commented on GitHub (Dec 11, 2018):
@thealphadollar Sorry I forgot to make the file "public", now it should be OK, please try again.
@thealphadollar commented on GitHub (Dec 11, 2018):
@cfsmp3 I can confirm this is one of the issues for which I updated GPAC before GSoC 2018 but wasn't fixed. This is some issue on the end of GPAC in handling these type of MP4 files. I don't think we can do much in this regard. I'm attaching the error log of the file by running on latest version of CCExtractor (0.87).
Error Log
At the same time, CCextractor is able to generate subtitle files for all the languages for which they are available inside the video. I cannot confirm if they are correct but I can say that they match what is being shown by VLC to me.
How did you build? @Pennyliu999
I built with OCR support using cmake method.
@Pennyliu999 commented on GitHub (Dec 11, 2018):
@thealphadollar Yes I think 0.87 can extract subtitle files for all the languages and they look correct to me. I successfully extracted multi-language subtitles from a small MP4 file which made by my own.
I'm not sure what you mean by the word "build", if it's means the option or settings, I used 0.87 without OCR but I don't know about the cmake method, basically I just used the default settings.
Do you think this problem can be fixed in the future?
@thealphadollar commented on GitHub (Dec 11, 2018):
I meant "the video"; CCExtractor latest version is able to extract from the video you've provided over AWS.
@Pennyliu999 commented on GitHub (Dec 11, 2018):
@thealphadollar I didn't build the video, I downloaded it from Apple, so I guess it's encoded by some software based on Mac OS, I've no idea how they did that though.
Glad to know the problem will be fixed, and I think I can only wait for the latest version of CCExtractor?
@thealphadollar commented on GitHub (Dec 11, 2018):
What is the problem? I'm unable to get you; subtitles from the video file
you provided me are extracted perfectly.
On Tue 11 Dec, 2018, 23:10 Pennyliu999 <notifications@github.com wrote:
@Pennyliu999 commented on GitHub (Dec 11, 2018):
@thealphadollar Sorry, I can't extract subtitles from the .mp4 I uploaded to aws, the .exe stopped and I got a pop-up window with error message and that's all. If it works for you, maybe it's some problem with my windows system.
Could you please upload the subtitles and share them with me? That's the main purpose I used CCExtractor, anyway.
@thealphadollar commented on GitHub (Dec 11, 2018):
Here are the files: https://drive.google.com/open?id=14KQozOPN-V1NcTyU5Y-eV-hO_4WEElTB
I used CCExtractor on Linux; the windows version is not that stable (or up to date).
@Pennyliu999 commented on GitHub (Dec 11, 2018):
@thealphadollar Thank you very much! Maybe I will try the linux version someday.
@navimakarov commented on GitHub (Dec 11, 2018):
The error comes from this line of code:
https://github.com/CCExtractor/ccextractor/blob/master/src/gpacmp4/box_code_3gpp.c#L339
We get an exception

If we just comment this line ccextractor works well and detects those subtitles but doesn't extract them to file. By the way I'm working on this issue
@navimakarov commented on GitHub (Dec 11, 2018):
log_with_error.txt
log_without_error.txt
@cfsmp3 commented on GitHub (Dec 11, 2018):
Take a look at that file in the current GPAC source code. Maybe it's a bug they fixed already. Or maybe we introduced a bug when we last backported GPAC.
@Pennyliu999 commented on GitHub (Dec 12, 2018):
Thanks for all your efforts, and I confirm this bug only happens or exists in windows version, I tried to run 0.87 in Mac OS via homebrew and it works perfectly just like in Linux.
@NilsIrl commented on GitHub (Jan 22, 2020):
Has someone got the file?
@Pennyliu999 commented on GitHub (Jan 22, 2020):
The problem is fixed so I delete the file