Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file too big for single read #1

Open
pfrenkiel opened this issue Feb 21, 2015 · 3 comments
Open

file too big for single read #1

pfrenkiel opened this issue Feb 21, 2015 · 3 comments
Labels

Comments

@pfrenkiel
Copy link

I run the following command

autohb.rb --file myfile.iso -o myfile
I get:

autohb.rb:122 :in `read': file too big for single read (IOError)

@marxjohnson
Copy link
Owner

How big is myfile.iso? Can you give me some more details about your environment, particularly the OS and ruby versions you're running?

@pfrenkiel
Copy link
Author

On Tue, 24 Feb 2015, Mark Johnson wrote:

How big is myfile.iso? Can you give me some more details about your environment, particularly the OS and ruby
versions you're running?

hi Mark,
thank you for answering my post. Here are the requested informations:
OS: Debian Jessie
ruby 2.1.5p273 (2014-11-13) [i386-linux-gnu]
Can the problem come from the gems I downloaded?
I tried with several iso files of increasing sizes. Here are the results:

808M
autohb.rb:168:in split': invalid byte sequence in UTF-8 (ArgumentError) from /home/frenkiel/bin/autohb.rb:168:inblock in parse_output'
from /home/frenkiel/bin/autohb.rb:160:in each_line' from /home/frenkiel/bin/autohb.rb:160:inparse_output'
from /home/frenkiel/bin/autohb.rb:472:in main' from /home/frenkiel/bin/autohb.rb:658:in

'

1.7G
autohb.rb:122:in read': failed to allocate memory (NoMemoryError) from /home/frenkiel/bin/autohb.rb:122:inscan_disc'
from /home/frenkiel/bin/autohb.rb:471:in main' from /home/frenkiel/bin/autohb.rb:658:in

'

2.2G
autohb.rb:122:in read': file too big for single read (IOError) from /home/frenkiel/bin/autohb.rb:122:inscan_disc'
from /home/frenkiel/bin/autohb.rb:471:in main' from /home/frenkiel/bin/autohb.rb:658:in

'

As what I wanted seemed rather simple (get automatically french audio and sub-titles),
I also did some tests with a simple shell script like:
HandBrakeCLI -i $IN -o $OUT
--native-language fre --native-dub
--custom-anamorphic --keep-display-aspect
--subtitle-burned $SB
--subtitle $S
--subtitle-default $SD
--srt-default $SRT
-e x264 --x264-preset fast --x264-tune film
-scan
-m -t $T

but no parameter combination gave me the expected result.
for the sub-titles (no problem with audio)

best regards,

Pierre Frenkiel

@marxjohnson
Copy link
Owner

Thanks Pierre, that's some really useful info.
I've not got time to look into this right now, but I'll try and take a look at it over the next couple of weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants