Batch scan failing for many DVD ISO files that work individually

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
jg1212
Posts: 7
Joined: Fri Jul 21, 2017 3:04 pm

Batch scan failing for many DVD ISO files that work individually

Post by jg1212 »

Hi,
I'm getting errors when using Folder/ (Batch Scan) to scan a folder of DVD ISO files. If I open each file individually they work perfect, however if I batch scan 30 to 50 percent of ISO files fail.
with Handbrake 1.0.7 64bit on windows 10.
I get about 3,500 lines of this:
[mp3 @ 000001ecb074c220] Header missing
[mp3 @ 000001ecb074c220] Header missing
[mp3 @ 000001ecb074c220] Header missing
[mp3 @ 000001ecb074c220] Header missing
[mp3 @ 000001ecb074c220] Header missing
[mp3 @ 000001ecb074c220] Header missing

then it fails with this and goes on to the next ISO file.

Input #0, mp3, from 'F:\DVD_TO_DO_F\FRED_CLAUS.iso':
Duration: 202:37:39.37, start: 0.000000, bitrate: 47 kb/s
Stream #0:0: Audio: mp3
8000 Hz, stereo, s16p, 48 kb/s
[10:58:12] hb_stream_open: open F:\DVD_TO_DO_F\FRED_CLAUS.iso failed

I have attached both the single iso file open and also the batch scan with the same file.
Any help would be greatly appreciated.

Fred-Single - Works
https://pastebin.com/JNY92aWT

Fred-Batch - Fails
https://pastebin.com/ZaiKk9RX


Thank you
User avatar
Ritsuka
HandBrake Team
Posts: 1656
Joined: Fri Jan 12, 2007 11:29 am

Re: Batch scan failing for many DVD ISO files that work individually

Post by Ritsuka »

Batch scan doesn't work with DVDs.
jg1212
Posts: 7
Joined: Fri Jul 21, 2017 3:04 pm

Re: Batch scan failing for many DVD ISO files that work individually

Post by jg1212 »

Thanks Ritsuka,
Is there any workaround? Is there some way to convert them using the command line interface?
I'm trying to convert about 1000 DVD ISO files to MP4. Handbrake works perfectly, but it is a lot of work to add each file to the queue individually.

Thanks,
jg1212
Posts: 7
Joined: Fri Jul 21, 2017 3:04 pm

Re: Batch scan failing for many DVD ISO files that work individually

Post by jg1212 »

I am attempting to use the CLI version to do this. Here is what I have so far, and it appears to be working. However I can not figure out which pre-set it is using. Will the below command line provide something similar to the Fast 480p30 preset if the iso file is DVD?

----batch file: Convert.bat
@echo off
set mypath=F:\DVD_TO_DO_F\

echo Starting Conversions
echo mypath = %mypath%
for %%f in (%mypath%*.iso) do (
echo converting "%%~nf.iso" to "%%~nf.mp4"
HandBrakeCLI.exe -i "%mypath%%%~nf.iso" -o "%mypath%%%~nf.mp4"
)
echo All Conversions Complete
pause
------end batch file Convert.bat

Thanks,
rollin_eng
Veteran User
Posts: 4859
Joined: Wed May 04, 2011 11:06 pm

Re: Batch scan failing for many DVD ISO files that work individually

Post by rollin_eng »

Could you please post your logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html
jg1212
Posts: 7
Joined: Fri Jul 21, 2017 3:04 pm

Re: Batch scan failing for many DVD ISO files that work individually

Post by jg1212 »

Hi Rollin_eng. I posted them to the original post. The links appear to work fine. Is there an issue?

Thanks
rollin_eng
Veteran User
Posts: 4859
Joined: Wed May 04, 2011 11:06 pm

Re: Batch scan failing for many DVD ISO files that work individually

Post by rollin_eng »

Sorry, I meant for your CLI encode.
jg1212
Posts: 7
Joined: Fri Jul 21, 2017 3:04 pm

Re: Batch scan failing for many DVD ISO files that work individually

Post by jg1212 »

oh, I didn't think the CLI version made log files. Do you just want me to copy paste the screen buffer?
rollin_eng
Veteran User
Posts: 4859
Joined: Wed May 04, 2011 11:06 pm

Re: Batch scan failing for many DVD ISO files that work individually

Post by rollin_eng »

Activity Logs on the command line

HandBrake’s command line interface outputs to the standard streams stdout and stderr, with encode progress information routed to the former and log messages routed to the latter.

To capture HandBrake’s log messages to a file, simply redirect stderr:

HandBrakeCLI ... 2> my-activity-log.txt
jg1212
Posts: 7
Joined: Fri Jul 21, 2017 3:04 pm

Re: Batch scan failing for many DVD ISO files that work individually

Post by jg1212 »

Here you go.
https://pastebin.com/H24BY2fk

Thanks for helping me.
rollin_eng
Veteran User
Posts: 4859
Joined: Wed May 04, 2011 11:06 pm

Re: Batch scan failing for many DVD ISO files that work individually

Post by rollin_eng »

You should be able to call a preset from the command line, but you might need the nightly build.
jg1212
Posts: 7
Joined: Fri Jul 21, 2017 3:04 pm

Re: Batch scan failing for many DVD ISO files that work individually

Post by jg1212 »

Hi Rollin_eng,
I was able to get everything working. Thanks for the tip on calling presets from the command line.
Here is the batch script I made to convert a folder of DVD ISO files to MP4 files. Working perfectly.


@echo off
set mypath=F:\DVD_TO_DO\


echo Starting Conversions
echo mypath = %mypath%
for %%f in (%mypath%*.iso) do (
echo converting "%%~nf.iso" to "%%~nf.mp4"
HandBrakeCLI.exe -i "%mypath%%%~nf.iso" -o "%mypath%%%~nf.mp4" -Z "Fast 480p30" 2> nul
)
echo All Conversions Complete
pause
Post Reply