DVD to mp4 batch conversion
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.
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.
-
- Posts: 6
- Joined: Mon Feb 01, 2021 1:34 pm
DVD to mp4 batch conversion
Description of problem or question:
Iam calling the CLI via a "foreach loop" in my C# program. But unfortunately it doesnt work. I always get the error "libhb result = 3".
It would be great if anybody with Handbrake knowledge can give me a hint. ( iam new in this topic so i cannot read the logfiles in a useful manner )
Best regards,
Mathias
HandBrake version (e.g., 1.0.0):
Version is now 1.3.3 (in the pastebin it was an older one i think)
Operating system:
Win10 Pro , Version 20H2
HandBrake Activity Log
https://pastebin.com/ViP4UA0i
Iam calling the CLI via a "foreach loop" in my C# program. But unfortunately it doesnt work. I always get the error "libhb result = 3".
It would be great if anybody with Handbrake knowledge can give me a hint. ( iam new in this topic so i cannot read the logfiles in a useful manner )
Best regards,
Mathias
HandBrake version (e.g., 1.0.0):
Version is now 1.3.3 (in the pastebin it was an older one i think)
Operating system:
Win10 Pro , Version 20H2
HandBrake Activity Log
https://pastebin.com/ViP4UA0i
-
- Veteran User
- Posts: 4859
- Joined: Wed May 04, 2011 11:06 pm
Re: DVD to mp4 batch conversion
Can you try outputting to a different directory?
-
- Posts: 6
- Joined: Mon Feb 01, 2021 1:34 pm
Re: DVD to mp4 batch conversion
I tried another directory on drive D:. Same result
Re: DVD to mp4 batch conversion
Make sure the directory exists first. And maybe avoid special characters like '#'…
-
- Veteran User
- Posts: 4859
- Joined: Wed May 04, 2011 11:06 pm
Re: DVD to mp4 batch conversion
Maybe even try a different drive.
-
- Posts: 6
- Joined: Mon Feb 01, 2021 1:34 pm
Re: DVD to mp4 batch conversion
I checked both.
- Directory exists : YES
- Changed foldernames to avoid special signs: YES
Maybe there is some implementation problem in the call of the CLI.exe from the C# tool. I will check this tomorow...
If anybody is interested here a small code snippet
Code: Select all
System.Diagnostics.Process process = new System.Diagnostics.Process();
ProcessStartInfo info = new ProcessStartInfo(textBoxHandbrakeCLI.Text);
process.StartInfo = info;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = false;
//process.StartInfo.RedirectStandardInput = true;
process.StartInfo.RedirectStandardOutput = true;
//process.StartInfo.RedirectStandardError = true;
foreach (var clip in validMediaFiles)
{
List<string> args = new List<string>() { clip.Key, clip.Value , textBoxJsonSetting.Text };
process.StartInfo.Arguments = "";
process.StartInfo.Arguments += " -i";
process.StartInfo.Arguments += " \"" + clip.Key + "\"";
process.StartInfo.Arguments += " -o";
process.StartInfo.Arguments += " \"" + clip.Value + "\"";
process.StartInfo.Arguments += " \"" + textBoxJsonSetting.Text + "\"";
//Start process
process.Start();
//Print Filepath and Arguments
Console.WriteLine(process.StartInfo.FileName + process.StartInfo.Arguments);
process.WaitForExit();
process.Close();
}
-
- Posts: 6
- Joined: Mon Feb 01, 2021 1:34 pm
Re: DVD to mp4 batch conversion
Already tried another drive. Folders are not write protected and no special signs ...
-
- Veteran User
- Posts: 4859
- Joined: Wed May 04, 2011 11:06 pm
Re: DVD to mp4 batch conversion
Can you post your new log.
Also try making sure your source directory has no special characters.
Also try making sure your source directory has no special characters.
-
- Posts: 6
- Joined: Mon Feb 01, 2021 1:34 pm
Re: DVD to mp4 batch conversion
https://pastebin.com/WnEEXs0Hrollin_eng wrote: ↑Mon Feb 01, 2021 6:10 pm Can you post your new log.
Also try making sure your source directory has no special characters.
-
- Veteran User
- Posts: 4859
- Joined: Wed May 04, 2011 11:06 pm
Re: DVD to mp4 batch conversion
I still think it’s a write/permission problem, can you output to the desktop?
-
- Posts: 6
- Joined: Mon Feb 01, 2021 1:34 pm
Re: DVD to mp4 batch conversion
You are right. I just printed everything step by step again and i saw that the destination folder is available but the sub-destination folder was missing.rollin_eng wrote: ↑Mon Feb 01, 2021 7:43 pm I still think it’s a write/permission problem, can you output to the desktop?
Thanks to your input it is converting now. Thank you very much. If its more stable i can post the repo here if anybody is interested..