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

query-handbrake-log "frame rate not found" on latest HandBrakeCLI logs #326

Open
carabino opened this issue Jan 27, 2021 · 5 comments
Open
Assignees
Labels

Comments

@carabino
Copy link

I set up a new WSL2 instance of Ubuntu 20.04.1 on my Windows 10 machine, and transcoding is successful but extracting the time via query-handbrake-log fails:

user@system:$ query-handbrake-log t .
/usr/local/bin/query-handbrake-log: frame rate not found: /path/to/log/video.mp4.log
user@system:
$

Looks to be a change in the output from HandBrakeCLI, as I do see a "frame rate:" line in the log on my old WSL1 Ubuntu 16.04.7 instance that I don't see in this log. This appears to be the key per line 142 of https://github.com/donmelton/video_transcoding/blob/master/bin/query-handbrake-log for rate_line variable.

Old:
[14:41:42] * video track
[14:41:42] + decoder: mpeg2video
[14:41:42] + bitrate 25000 kbps
[14:41:42] + filters
[14:41:42] + Framerate Shaper (mode=0)
[14:41:42] + frame rate: same as source (around 23.976 fps)
[14:41:42] + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[14:41:42] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[14:41:42] + Output geometry
[14:41:42] + storage dimensions: 1920 x 1080
[14:41:42] + pixel aspect ratio: 1 : 1
[14:41:42] + display dimensions: 1920 x 1080

New:
[22:16:23] * video track
[22:16:23] + decoder: mpeg2video
[22:16:23] + bitrate 200 kbps
[22:16:23] + Output geometry
[22:16:23] + storage dimensions: 1920 x 1080
[22:16:23] + pixel aspect ratio: 1 : 1
[22:16:23] + display dimensions: 1920 x 1080

Does not appear to impact speed, bitrate, or ratefactor information options, only time.

Old HandBrakeCLI is 1.1.2, new is 1.3.1.

I am benchmarking so the source file is same on both machines.

@lisamelton lisamelton self-assigned this Jan 27, 2021
@lisamelton lisamelton added the bug label Jan 27, 2021
@lisamelton
Copy link
Owner

@carabino I'm sorry you're having this problem.

Have you tried using the old version of HandBrakeCLI, meaning 1.1.2, on your new Ubuntu installation?

@carabino
Copy link
Author

Not yet, rookie mistake on my part

Although it looks like that is the only version installed. I believe I used an alternate PPA for the older Ubuntu so I will track that down to see if I can downgrade using it.

@lisamelton
Copy link
Owner

@carabino Thanks! I will await your update.

@carabino
Copy link
Author

Could not downgrade on Ubuntu 20.04. Added the alternate PPA to the 20.04 and upgraded to 1.3.3, same result.

However installed Ubuntu 18.04 from the Microsoft Store, added the PPA, and installed 1.2.1 there. Ran the transcode and the log was successfully able to be read by query-handbrake-log.

From stdout: "Elapsed time: 00:25:03"

user@system:~$ query-handbrake-log t .
00:22:56 video.mp4

Log file has the "frame rate:" line:
[19:45:24] * video track
[19:45:24] + decoder: mpeg2video
[19:45:24] + bitrate 200 kbps
[19:45:24] + filters
[19:45:24] + Framerate Shaper (mode=0)
[19:45:24] + frame rate: same as source (around 23.976 fps)
[19:45:24] + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[19:45:24] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[19:45:24] + Output geometry
[19:45:24] + storage dimensions: 1920 x 1080
[19:45:24] + pixel aspect ratio: 1 : 1
[19:45:24] + display dimensions: 1920 x 1080

Seems to be a change somewhere between 1.2.1 and 1.3.1 then.

@lisamelton
Copy link
Owner

@carabino Thanks for all the testing! Yeah, It appears the HandBrake team has, once again, changed their diagnostic/log format. This will be fun to figure out a fix. And by "fun," I mean not fun.

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