Problem using HandBrakeCLI in Ubuntu 7.10

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
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
rizlaw
Posts: 5
Joined: Sun Mar 02, 2008 4:07 pm

Problem using HandBrakeCLI in Ubuntu 7.10

Post by rizlaw »

I had been successfully using HandBrakeGTK in Ubuntu 7.10, but after reading the posts on this forum I uninstalled it and downloaded version 0.9.2 of HandBrakeCLI. I extracted the the binary from the downloaded tar and saw that there were no further instructions on how to use the binary. I then read the Wiki and found a section called "Using HandBrakeCLI". Based on that section, as a test run, I did the following:

1. I used "Gmount-iso" to mount my movie (Movie.iso) as an image to mount point: /media/iso. It was my understanding that HB reads "iso" files.

2. I opened a terminal window in the folder where I had extracted the HandBrakeCLI binary and entered the command:

Code: Select all

./HandBrakeCLI -i /media/iso -o /home/user/Desktop/Movie.mp4 -e x264 -b 1500 -B 192
The above command was copied from the Wiki and only modified for file paths and bit rate.

3. The program starts and fails with the following output:

user@Zeus:~/Linux-Software/Handbrake CLI$ ./HandBrakeCLI -i /media/iso -o /home/user/Desktop/Movie.mp4 -e x264 -b 1500 -B 192
Output format couldn't be guessed from file name, using default.
HandBrake 0.9.2 (2008021900) - http://handbrake.m0k.org/
2 CPUs detected
Opening /media/iso...
+ title 1:
+ vts 1, ttn 1, cells 0->21 (2639596 blocks)
+ duration: 01:50:15
+ size: 720x480, aspect: 1.78, 23.976 fps
+ autocrop: 58/60/0/0
+ chapters:
+ 1: cells 0->0, 95052 blocks, duration 00:03:52
+ 2: cells 1->1, 143560 blocks, duration 00:05:42
+ 3: cells 2->2, 123878 blocks, duration 00:05:03
+ 4: cells 3->3, 145324 blocks, duration 00:05:57
+ 5: cells 4->4, 82877 blocks, duration 00:03:25
+ 6: cells 5->5, 135272 blocks, duration 00:05:36
+ 7: cells 6->6, 171525 blocks, duration 00:07:05
+ 8: cells 7->7, 89512 blocks, duration 00:03:40
+ 9: cells 8->8, 118596 blocks, duration 00:04:53
+ 10: cells 9->9, 146083 blocks, duration 00:06:10
+ 11: cells 10->10, 109517 blocks, duration 00:04:30
+ 12: cells 11->11, 90629 blocks, duration 00:03:49
+ 13: cells 12->12, 177610 blocks, duration 00:07:19
+ 14: cells 13->13, 138611 blocks, duration 00:05:52
+ 15: cells 14->14, 134679 blocks, duration 00:05:35
+ 16: cells 15->16, 267156 blocks, duration 00:10:26
+ 17: cells 17->17, 129181 blocks, duration 00:05:06
+ 18: cells 18->18, 109723 blocks, duration 00:04:32
+ 19: cells 19->19, 126434 blocks, duration 00:05:36
+ 20: cells 20->20, 104372 blocks, duration 00:06:02
+ 21: cells 21->21, 5 blocks, duration 00:00:01
+ audio tracks:
+ 1, English (AC3) (5.1 ch), 48000Hz, 448000bps
+ 2, Espanol (AC3) (5.1 ch), 48000Hz, 384000bps
+ 3, Francais (AC3) (5.1 ch), 48000Hz, 384000bps
+ 4, English (AC3) (Dolby Surround), 48000Hz, 192000bps
+ subtitle tracks:
+ 1, English (iso639-2: eng)
+ 2, Espanol (iso639-2: spa)
+ 3, Francais (iso639-2: fra)
+ 4, Espanol (iso639-2: spa)
+ 5, Francais (iso639-2: fra)
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow!
No accelerated IMDCT transform found
Segmentation fault (core dumped)
user@Zeus:~/Linux-Software/Handbrake CLI$

So my questions are:

1. What have I done wrong and what do I need to do to fix it?
2. Why doesn't the Linux binary download of HandBrakeCLI 0.9.2 contain some basic installation and usage instructions?
3. Where is the best [proper] place to move the HandBrakeCLI binary for execution?
3. Is there any hope of a Linux gui for the program in .deb format?

Thanks for any help. :cry:
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Problem using HandBrakeCLI in Ubuntu 7.10

Post by jbrjake »

As always, a *verbose* activity log is required for answering questions.
rizlaw
Posts: 5
Joined: Sun Mar 02, 2008 4:07 pm

Re: Problem using HandBrakeCLI in Ubuntu 7.10

Post by rizlaw »

Administrator:
I would be glad to provide a verbose activity log if I knew where it was (again no Linux instructions doesn't help). From reading the forum pre-post instructions, it looks like an activity log is only generated for Mac machines; and, I'm running Linux. The Mac GUI log also seems to delete itself when you exit the program. I'm not clear if this is true for Linux as well. Anyway, if there is a log file for Linux, please be kind enough to point out where I might find it.

I would assume that from the info already provided, at least, some of my questions could be answered.
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Re: Problem using HandBrakeCLI in Ubuntu 7.10

Post by rhester »

rizlaw wrote:1. What have I done wrong and what do I need to do to fix it?
I can't speak to this, though I can tell you that Debian runs it fine. Output from 'uname -a' might help here.
rizlaw wrote:2. Why doesn't the Linux binary download of HandBrakeCLI 0.9.2 contain some basic installation and usage instructions?
Because no installation required and usage is documented on the Wiki.
rizlaw wrote:3. Where is the best [proper] place to move the HandBrakeCLI binary for execution?
Wherever you like. Ubuntu probably recommends /usr/local/bin, but that's really a style question more than anything.
rizlaw wrote:3. Is there any hope of a Linux gui for the program in .deb format?
Well, we have yet to have anyone create and support a Linux GUI or a Debian package, so odds aren't looking good. It's all a matter of developer interest, which has been light-to-nonexistent at best in the Linux world.

Rodney
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Problem using HandBrakeCLI in Ubuntu 7.10

Post by jbrjake »

rizlaw wrote:I would be glad to provide a verbose activity log if I knew where it was (again no Linux instructions doesn't help).
Oh come on. There are plenty of Linux directions. I've spent countless hours of my life writing directions for using the CLI, and "verbose" is definitely covered in them, as well as in the help. You add --verbose to the command line.
I would assume that from the info already provided, at least, some of my questions could be answered.
Um, your main question, the one your thread is titled with, the one you list first:
1. What have I done wrong and what do I need to do to fix it?
...absolutely requires a verbose activity log.

And the reason we ask for that *up front* is to avoid this pointless back and forth that doesn't help you get an answer at all and just wastes developer time.
saintdev
Enlightened
Posts: 146
Joined: Wed Dec 20, 2006 4:17 am

Re: Problem using HandBrakeCLI in Ubuntu 7.10

Post by saintdev »

rizlaw wrote:
user@Zeus:~/Linux-Software/Handbrake CLI$ ./HandBrakeCLI -i /media/iso -o /home/user/Desktop/Movie.mp4 -e x264 -b 1500 -B 192
Output format couldn't be guessed from file name, using default.
That's mighty odd.
rizlaw
Posts: 5
Joined: Sun Mar 02, 2008 4:07 pm

Re: Problem using HandBrakeCLI in Ubuntu 7.10

Post by rizlaw »

saintdev wrote:
rizlaw wrote:
user@Zeus:~/Linux-Software/Handbrake CLI$ ./HandBrakeCLI -i /media/iso -o /home/user/Desktop/Movie.mp4 -e x264 -b 1500 -B 192
Output format couldn't be guessed from file name, using default.
That's mighty odd.
saintdev:
I thought so, too. However, after a little more investigation on my part, it seems that the problem was in the input [-i /media/iso] part of the command; when I altered the command to read the input directly from the "Movie/VIDEO_TS" folder which contained all of the movie files, it worked fine. The reason I had originally used the mounted iso image file instead of the folder path, was because HandBrakeGTK (which this forum does not support or recommend) was what I had originally downloaded and installed. It would not read the movie files directly from the VIDEO_TS folder, but only from the DVD itself or a mounted iso image file of the DVD.

I am not a command line devotee, nor, unfortunately, do I have any programming skills. So, I truly hope that someone is going to write a Linux gui frontend for HandBrakeCLI that will be properly supported.

Thank you for your most excellent program. :D
kirby
Posts: 10
Joined: Fri Feb 01, 2008 3:20 pm

Re: Problem using HandBrakeCLI in Ubuntu 7.10

Post by kirby »

Well, I think that you have been appropriately chastised enough by the other posters, so I won't pile on.....

Just so you know, you don't have to mount the ISO. You are mounting the ISO then telling handbrake to to operate against a directory.... That's why adding the VIDEO_TS worked. Don't mount the ISO at all and tell handbrake to read from the ISO file (-i /some_dir/my_movie.iso). That will work fine.
rizlaw
Posts: 5
Joined: Sun Mar 02, 2008 4:07 pm

Re: Problem using HandBrakeCLI in Ubuntu 7.10

Post by rizlaw »

kirby wrote:Well, I think that you have been appropriately chastised enough by the other posters, so I won't pile on.....

Just so you know, you don't have to mount the ISO. You are mounting the ISO then telling handbrake to to operate against a directory.... That's why adding the VIDEO_TS worked. Don't mount the ISO at all and tell handbrake to read from the ISO file (-i /some_dir/my_movie.iso). That will work fine.
Kirby,
Your info is much appreciated and will be kept in mind next time I used HandBrakeCLI.
Post Reply