MPEG-2 problem

HandBrake for Windows support
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
siromega
Posts: 36
Joined: Mon Jul 02, 2007 5:06 am

MPEG-2 problem

Post by siromega »

Windows XP
Handbrake .91

I posted this in an existing thread in the dev forum but it didnt seem to get a response, and I suppose its because I posted it in the wrong forum.

So yea, I'm having problems converting a HD MPEG2 (1920x1088) file from a TiVo HD device down to play on my iPhone (and probably a HD res version too - I'm just more worried about putting it on the phone at this point). No video output file is produced.

TiVoToGo -> VideoReDo -> Handbrake
I've also tried TiVoToGo -> DirectShowDump -> VideoReDo -> Handbrake

[Edit: I exported the video as a program stream (.mpg) as well as transport stream (.ts) with VideoReDo, both did the same thing]

Here is what happens at the command line...

C:\Program Files\Handbrake>hbcli.exe -i "C:\Documents and Settings\Anthony\My Documents\My TiVo Recordings\The Big Bang Theory - ''The Big Bran Hypothesis'' (Recorded Oct 1, 2007, KLASDT) (02).mpg" -t 0 -c 1 -o "C:\Documents and Settings\Anthony\My Documents\My TiVo Recordings\Big Bang Theory - Big Bran Hypothesis.m4v" -e x264 -E faac -w 480 -l 272 --crop 0:0:0:0 -m -b 960 -2 -x cabac=0:ref=1:analyse=all:me=umh:subme=6:no-fast-pskip=1:trellis=1 -B 128 -R 48 -v
[21:55:47] hb_init: checking cpu count
[21:55:47] hb_init: starting libhb thread
[21:55:47] thread ed2398 started ("libhb")
HandBrake 0.9.1 (2007100800) - http://handbrake.m0k.org/
2 CPUs detected
Opening C:\Documents and Settings\Anthony\My Documents\My TiVo Recordings\The Big Bang Theory - ''The Big Bran Hypothesis'' (Recorded Oct 1, 2007, KLASDT) (02).mpg...
[21:55:47] hb_scan: path=C:\Documents and Settings\Anthony\My Documents\My TiVo Recordings\The Big Bang Theory - ''The Big Bran Hypothesis'' (Recorded Oct 1, 2007, KLASDT) (02).mp
[21:55:47] thread ed2580 started ("scan")
[21:55:47] scan: trying to open with libdvdread
ERROR: dvd: DVDOpen failed (C:\Documents and Settings\Anthony\My Documents\My TiVo Recordings\The Big Bang Theory - ''The Big Bran Hypothesis'' (Recorded Oct 1, 2007, KLASDT) (02).mpg)[21:55:47] scan: trying to open as MPEG-2 Stream
[21:55:47] scan: decoding previews for title 0
[21:55:47] scan: preview 1
[21:55:47] scan: AC3, rate=48000Hz, bitrate=384000
[21:55:47] scan: preview 2
[21:55:47] scan: preview 3
[21:55:47] scan: preview 4
Scanning title 0 of 1...
[21:55:47] scan: preview 5
[21:55:47] scan: preview 6
[21:55:47] scan: preview 7
[21:55:48] scan: preview 8
Scanning title 0 of 1...
[21:55:48] scan: preview 9
[21:55:48] scan: preview 10
[21:55:48] scan: 1920x1088, 29.970 fps, autocrop = 0/8/0/0
[21:55:48] hb_stream_update_audio: id=80bd, lang=Unknown (AC3) (2.0 ch), 3cc=und
, rate = 48000, bitrate = 384000, flags = 0x2 (2)
[21:55:48] scan: title (0) job->width:1920, job->height:1072
[21:55:48] thread ed2580 exited ("scan")
[21:55:48] thread ed2580 joined ("scan")
[21:55:48] libhb: scan thread found 1 valid title(s)
+ title 0:
+ vts 0, ttn 0, cells 0->0 (0 blocks)
+ duration: 00:20:40
+ size: 1920x1088, aspect: 1.78, 29.970 fps
+ autocrop: 0/8/0/0
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:20:40
+ audio tracks:
+ 1, Unknown (AC3) (2.0 ch), 48000Hz, 384000bps
+ subtitle tracks:
[21:55:48] thread ed2398 exited ("libhb")
[21:55:48] thread ed2398 joined ("libhb")
HandBrake has exited.
Cavalicious
Moderator
Posts: 1804
Joined: Mon Mar 26, 2007 12:07 am

Post by Cavalicious »

Um...its doing exactly what you told it to do. :lol:

Look up what "-t 0" does...

sr55, I take it that it does the same as the Mac CLI?
Cavalicious
Moderator
Posts: 1804
Joined: Mon Mar 26, 2007 12:07 am

Post by Cavalicious »

Also, kill -c and -m.

Why would you want chapter markers for a title with only 1 chapter?

Your close, just a little more reading/understanding of the CLI doc...hence the effort to not spoon feed you.
siromega
Posts: 36
Joined: Mon Jul 02, 2007 5:06 am

Post by siromega »

I just copied out the query from the Windows CLI. I didn't write the command.

Alright so I think this might qualify as a bug with the windows GUI or possibly the underlying detection CLI...

Select MPG/TS as file and wait for HB to scan it
Select title 0 from drop down list (the one and only item in the stream)
Set output, settings as needed...
"Generate Query" will then include a -t 0, indicating to the CLI to scan only, when in fact I wanted the first and only title out of the MPEG. So for MPEG/TS files, its starting with 0 instead of 1.

Note that if I load a DVD iso, the titles are numbers starting with 1, 2.... the 0 item doesn't appear on the list.

Also, leaving it on "Automatic" will fix this by not including any -t n in the query.

Edit: Yup, its the detection end of things, the dvdinfo.dat is as follows...
HandBrake 0.9.1 (2007100800) - http://handbrake.m0k.org/
2 CPUs detected
Opening C:\Documents and Settings\Anthony\My Documents\My TiVo Recordings\The Big Bang Theory - The Big Bran Hypothesis (Recorded Oct 1, 2007, KLASDT).ts...
ERROR: dvd: DVDOpen failed (C:\Documents and Settings\Anthony\My Documents\My TiVo Recordings\The Big Bang Theory - The Big Bran Hypothesis (Recorded Oct 1, 2007, KLASDT).ts)Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
Scanning title 0 of 1...
+ title 0:
+ vts 0, ttn 0, cells 0->0 (0 blocks)
+ duration: 00:20:40
+ size: 1920x1088, aspect: 1.78, 29.970 fps
+ autocrop: 0/8/0/0
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:20:40
+ audio tracks:
+ 1, English (AC3) (2.0 ch), 48000Hz, 384000bps
+ subtitle tracks:
HandBrake has exited.
Cavalicious
Moderator
Posts: 1804
Joined: Mon Mar 26, 2007 12:07 am

Post by Cavalicious »

I knew the "0" title thing was going to confuse people...

When encoding a MPEG Program Stream, there is no need to use a -t, -c or a -m. As there is only one title available to encode (title 0) with no chapters. So no need to try and call it out, because the CLI sees -t 0 as a scan only and not a title #.

Now, that said, you may have to call out a title when encoding a Transport Stream that contains more than one MPEG Program Stream.

Hence the reason I mentioned this in awk's original thread, saying that this "could" become an issue latter.

Mind you, this is only an issue with MPEG2 encoding and not DVD encoding ( as the titles are properly called out).

Here is an example of what I use:

Code: Select all

./HandBrakeCLI -i /Volumes/Encode/heroes.mpg  -o /Volumes/New\ Downloads/HD_Video2.m4v  -w 960 -l 540 -F -q 0.65 -Q -e x264 -r 29.97   --deinterlace="0" -E facc  -B 384 -R 44.1 -6 stereo -v -x keyint=300:keyint-min=30:bframes=6:ref=3:mixed-refs=1:subq=5:me=umh:no-fast-pskip=1:trellis=0:no-dct-decimate=1:vbv-maxrate=4500:vbv-bufsize=3000
Post Reply