tiny bug in output

Discussion of the HandBrake command line interface (CLI)
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
AlBundy
Bright Spark User
Posts: 377
Joined: Mon Dec 31, 2012 4:47 am

tiny bug in output

Post by AlBundy »

It i really just a tiny "bug".
During encoding HandbrakeCLI shows the progress which works fine - but there is a problem with line-breaks.

The current output is

Code: Select all

Encoding: task 1 of 1, 0.00 %[17:53:47] sync: first pts is 3600
Encoding: task 1 of 1, 4.24 % (31.76 fps, avg 34.00 fps, ETA 01h24m18s)[17:57:31] mpeg2: "Chapter 2" (2) at frame 7635 time 27489600
Encoding: task 1 of 1, 9.10 % (35.87 fps, avg 32.11 fps, ETA 01h24m45s)[18:02:16] mpeg2: "Chapter 3" (3) at frame 16355 time 58881600
Encoding: task 1 of 1, 14.59 % (38.09 fps, avg 32.99 fps, ETA 01h17m29s)[18:07:02] mpeg2: "Chapter 4" (4) at frame 26228 time 94424400
Encoding: task 1 of 1, 20.91 % (35.71 fps, avg 33.22 fps, ETA 01h11m16s)[18:12:38] mpeg2: "Chapter 5" (5) at frame 37569 time 135252000
Encoding: task 1 of 1, 24.57 % (29.11 fps, avg 32.82 fps, ETA 01h08m49s)[18:16:12] mpeg2: "Chapter 6" (6) at frame 44134 time 158886000
Encoding: task 1 of 1, 25.26 % (26.18 fps, avg 32.67 fps, ETA 01h08m28s)
but should be something like

Code: Select all

Encoding: task 1 of 1, 0.00 %[17:53:47] sync: first pts is 3600
Encoding: task 1 of 1, 4.24 % (31.76 fps, avg 34.00 fps, ETA 01h24m18s)
[17:57:31] mpeg2: "Chapter 2" (2) at frame 7635 time 27489600
Encoding: task 1 of 1, 9.10 % (35.87 fps, avg 32.11 fps, ETA 01h24m45s)
[18:02:16] mpeg2: "Chapter 3" (3) at frame 16355 time 58881600
Encoding: task 1 of 1, 14.59 % (38.09 fps, avg 32.99 fps, ETA 01h17m29s)
[18:07:02] mpeg2: "Chapter 4" (4) at frame 26228 time 94424400
Encoding: task 1 of 1, 20.91 % (35.71 fps, avg 33.22 fps, ETA 01h11m16s)
[18:12:38] mpeg2: "Chapter 5" (5) at frame 37569 time 135252000
Encoding: task 1 of 1, 24.57 % (29.11 fps, avg 32.82 fps, ETA 01h08m49s)
[18:16:12] mpeg2: "Chapter 6" (6) at frame 44134 time 158886000
Encoding: task 1 of 1, 25.26 % (26.18 fps, avg 32.67 fps, ETA 01h08m28s)
As mentioned it's not a big deal but the last output would be more readable. ;-)

Al

Btw: How fast can Handbrake encode Movies?
The encoding to mp4 directly from DVD of a 2hour movie takes on my MacBook Pro with Intel Core i5 (2,4GHz) and 8GB RAM 1,5 hours.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5726
Joined: Sat Feb 09, 2008 7:21 pm

Re: tiny bug in output

Post by JohnAStebbins »

No problem with line breaks. What you are seeing is stderr and stdout getting intermixed.
AlBundy
Bright Spark User
Posts: 377
Joined: Mon Dec 31, 2012 4:47 am

Re: tiny bug in output

Post by AlBundy »

Ok then it's no problem with line-breaks but it is still a "problem" ;-)
User avatar
JohnAStebbins
HandBrake Team
Posts: 5726
Joined: Sat Feb 09, 2008 7:21 pm

Re: tiny bug in output

Post by JohnAStebbins »

It is an intentional "problem" and won't be "fixed". stderr is log output and stdout is progress output. If you want them separate, redirect one or both to a file.
AlBundy
Bright Spark User
Posts: 377
Joined: Mon Dec 31, 2012 4:47 am

Re: tiny bug in output

Post by AlBundy »

hmm - not nice but ok. ;-)
Post Reply