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
Issue reading log when processing files #10
Comments
I'm seeing the same thing. I've done some tests with a few small MKV files set up in a test input directory, for transcoding to MP4 format in a separate output directory. If I watch the output directory as the batch process runs, all MP4's are created correctly but as the batch finishes, they are all deleted leaving only the logs. It's as if there's some kind of final file cleanup going on, which is catching the output files by mistake. |
It sounds like the output of the underlying tools has changed in 1.2. Could you show me the output of the test you performed, but make sure you include the |
I did a quick test using --debug and here is the end section with the debug output (let me know if you want all the encoding output also) Encode done! stderr: /usr/local/rvm/gems/ruby-2.5.3/bin/query-handbrake-log: not a HandBrake-generated Finished processing.
Summary: 1 file => Finished with errors. |
I'm getting the same as BDaddyG has reported from --debug. I've listed final part of output below, from completion of the last of a set of 5 small test MKV files. As you can see, system thinks .log file is not right, then after all processing finished ERRORs them all. Full debug file here: MP4 output folder screenshots during processing, and after processing finished here: Log file from the last of 5 MKV's processed here: Also, should have said in my first post this wrapper is a marvellous bit of work and potentially a really useful tool for me - can't thank you enough!Encode done! stderr: /usr/local/bin/query-handbrake-log: not a HandBrake-generated Finished processing.
Summary: 5 files => Finished with errors. |
What do you get if you run the
The important bit from the debug output is this part, which is coming from the
If |
Until we can figure out the root issue, I have added a |
Here is the output you requested: redacted@avconvert2:~/Shared/Work/Done$ query-handbrake-log bitrate Test.mkv.log The same only with the verbose flag: redacted@avconvert2:~/Shared/Work/Done$ query-handbrake-log -v bitrate Test.mkv.log So the issue seems to be with query-handbrake-log. I've opened a ticket with Don's video_transcoding (lisamelton/video_transcoding#257) asking him to take a look at a failing log. Thanks! Edit: fixed URL link |
Don has confirmed that there is an apparent bug with Handbrake v1.20 on certain Linux platforms where extra lines are produced at the beginning of the HandBrake log which triggers a check he has in query-handbrake-log. These extra lines make query-handbrake-log think the log isn't valid. Don will be releasing a patch for this soon (and a new version of video_transcoding this week). Don did ask that I let you know the following:
Thanks for your scripts and your work on this issue! |
@nwronski @BDaddyG The patch is done but you really shouldn't be using So, I strongly recommend that you check whether the string "Encode done!" exists as a single line in the ".log" file to verify that HandBrake succeeded. Here's a fragment from one of my many scripts which does this very thing:
Happy transcoding! |
any news on this? Has this change been incorporated? |
the issue you were experiencing should be resolved in the latest release (v2.0.0), but please reopen this issue if the problem persists, thanks! the program is now more forgiving when determining if the transcode job finished successfully. taking the advice of @donmelton, it only checks the output for the text
|
Started receiving the following error when processing files:
Finished processing.Error: [TranscodeError: Could not confirm from log file that transcode succeeded.]
File: Abigail Duhon - Rebound_t01.mkv
Summary: 1 file
Status: ER: 1
Processed: 108.00 MB of 108.00 total MB 2.81 MB/s
Time: Total 00h 00m 39s (Avg: 00h 00m 39s)
=> Finished with errors.
The only change I can think of is updating to the version of HandBrakeCLI to v1.2.0
I'm using the current version of batch-transcode-video
Command Line: batch-transcode-video --input "Source/" --output "Done/" --force 1 --diff
I looked at a successful transcode log file using HandBrakeCLI v1.1.2 and compared it to the failed v1.20 logs, but I didn't see anything.
Let me know if there is any further information I can provide.
Thanks
The text was updated successfully, but these errors were encountered: