encodes cannot be fast forwarded or skipped around in

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
gregconquest
Posts: 20
Joined: Fri Mar 28, 2008 2:01 am

encodes cannot be fast forwarded or skipped around in

Post by gregconquest »

I'm new to HandBrake, but I am quickly getting up to speed on the CLI. I am having one problem now. The video I make from a DVD will not allow for fast forwarding and reversing and skipping. Under both VLC and MPlayer, if I try to advance, etc., the video either goes back to the beginning, hangs, or has a long lag before playing at the chosen spot. I've seen this before on other people's encodes, and now I'm wondering what I'm doing to cause this.

The command I used for this one-minute demo (proportional to the full 90 minutes set at 1000MB) was:

Code: Select all

HandBrakeCLI -i /media/DSE_055/VIDEO_TS/  -o /mnt/DATA3/3_temp/TDZN2.11.XViD.ogg.mkv --chapters 11 --format mkv --width 640 --encoder xvid --deinterlace="slow" --aencoder --size 11 --two-pass --aencoder vorbis --verbose
Could some of you please help me out? The full output put is below. Also, are there any other parameters you would suggest I try? I want my DVD rips to be as cross-platform as possible and as non-proprietary as feasible.

I am running HandBrake 0.9.2 CLI on ubuntu 7.10 on a 2.8GHz pentium with 2GB of RAM.

Thank you.
Greg Conquest

Code: Select all

gc@DIYubuntu:~$ HandBrakeCLI -i /media/DSE_055/VIDEO_TS/  -o /mnt/DATA3/3_temp/TDZN2.11.XViD.ogg.mkv --chapters 11 --format mkv --width 640 --encoder xvid --deinterlace="slow" --aencoder --size 11 --two-pass --aencoder vorbis --verbose
[11:36:40] hb_init: checking cpu count
[11:36:40] hb_init: starting libhb thread
[11:36:40] thread b7d38b90 started ("libhb")
HandBrake 0.9.2 (2008021900) - http://handbrake.m0k.org/
2 CPUs detected
Opening /media/DSE_055/VIDEO_TS/...
[11:36:40] hb_scan: path=/media/DSE_055/VIDEO_TS/, title_index=1
[11:36:40] thread b7537b90 started ("scan")
[11:36:40] scan: trying to open with libdvdread
[11:36:40] scan: DVD has 5 title(s)
[11:36:40] scan: scanning title 1
[11:36:40] scan: opening IFO for VTS 1
[11:36:40] pgc_id: 1, pgn: 1: pgc: 0x878dcc0
[11:36:40] scan: vts=1, ttn=1, cells=0->21, blocks=0->2035977, 2035978 blocks
[11:36:40] scan: duration is 01:28:15 (5295043 ms)
[11:36:40] scan: checking audio 1
[11:36:40] scan: id=80bd, lang=Unknown (AC3), 3cc=und
[11:36:40] scan: title 1 has 22 chapters
[11:36:40] scan: chap 1 c=0->0, b=0->1212 (1213), 11010 ms
[11:36:40] scan: chap 2 c=1->1, b=1213->110597 (109385), 299578 ms
[11:36:40] scan: chap 3 c=2->2, b=110598->219543 (108946), 300293 ms
[11:36:40] scan: chap 4 c=3->3, b=219544->337478 (117935), 299478 ms
[11:36:40] scan: chap 5 c=4->4, b=337479->461018 (123540), 300526 ms
[11:36:40] scan: chap 6 c=5->5, b=461019->549084 (88066), 219257 ms
[11:36:40] scan: chap 7 c=6->6, b=549085->681224 (132140), 299545 ms
[11:36:40] scan: chap 8 c=7->7, b=681225->796405 (115181), 299512 ms
[11:36:40] scan: chap 9 c=8->8, b=796406->906265 (109860), 300326 ms
[11:36:40] scan: chap 10 c=9->9, b=906266->1015144 (108879), 300393 ms
[11:36:40] scan: chap 11 c=10->10, b=1015145->1035914 (20770), 61335 ms
[11:36:40] scan: chap 12 c=11->11, b=1035915->1144595 (108681), 299612 ms
[11:36:40] scan: chap 13 c=12->12, b=1144596->1257290 (112695), 300526 ms
[11:36:40] scan: chap 14 c=13->13, b=1257291->1375597 (118307), 299312 ms
[11:36:40] scan: chap 15 c=14->14, b=1375598->1499805 (124208), 300293 ms
[11:36:40] scan: chap 16 c=15->15, b=1499806->1514295 (14490), 40349 ms
[11:36:40] scan: chap 17 c=16->16, b=1514296->1630365 (116070), 300293 ms
[11:36:40] scan: chap 18 c=17->17, b=1630366->1743401 (113036), 300293 ms
[11:36:40] scan: chap 19 c=18->18, b=1743402->1851782 (108381), 300426 ms
[11:36:40] scan: chap 20 c=19->19, b=1851783->1976828 (125046), 300393 ms
[11:36:40] scan: chap 21 c=20->20, b=1976829->2035597 (58769), 151267 ms
[11:36:40] scan: chap 22 c=21->21, b=2035598->2035977 (380), 11010 ms
[11:36:40] scan: aspect = 12
[11:36:40] scan: decoding previews for title 1
[11:36:40] scan: preview 1
Scanning title 1...
[11:36:41] scan: AC3, rate=48000Hz, bitrate=192000
[11:36:41] scan: preview 2
[11:36:41] scan: preview 3
Scanning title 1...
[11:36:41] scan: preview 4
[11:36:41] scan: preview 5
[11:36:41] scan: preview 6
Scanning title 1...
[11:36:41] scan: preview 7
[11:36:41] scan: preview 8
Scanning title 1...
[11:36:42] scan: preview 9
[11:36:42] scan: preview 10
Scanning title 1...
[11:36:42] scan: 720x480, 29.970 fps, autocrop = 0/0/0/0
[11:36:42] scan: title (0) job->width:640, job->height:480
[11:36:42] thread b7537b90 exited ("scan")
[11:36:42] thread b7537b90 joined ("scan")
[11:36:42] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 1, ttn 1, cells 0->21 (2035978 blocks)
  + duration: 01:28:15
  + size: 720x480, aspect: 1.33, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 1213 blocks, duration 00:00:11
    + 2: cells 1->1, 109385 blocks, duration 00:05:00
    + 3: cells 2->2, 108946 blocks, duration 00:05:00
    + 4: cells 3->3, 117935 blocks, duration 00:04:59
    + 5: cells 4->4, 123540 blocks, duration 00:05:01
    + 6: cells 5->5, 88066 blocks, duration 00:03:39
    + 7: cells 6->6, 132140 blocks, duration 00:05:00
    + 8: cells 7->7, 115181 blocks, duration 00:05:00
    + 9: cells 8->8, 109860 blocks, duration 00:05:00
    + 10: cells 9->9, 108879 blocks, duration 00:05:00
    + 11: cells 10->10, 20770 blocks, duration 00:01:01
    + 12: cells 11->11, 108681 blocks, duration 00:05:00
    + 13: cells 12->12, 112695 blocks, duration 00:05:01
    + 14: cells 13->13, 118307 blocks, duration 00:04:59
    + 15: cells 14->14, 124208 blocks, duration 00:05:00
    + 16: cells 15->15, 14490 blocks, duration 00:00:40
    + 17: cells 16->16, 116070 blocks, duration 00:05:00
    + 18: cells 17->17, 113036 blocks, duration 00:05:00
    + 19: cells 18->18, 108381 blocks, duration 00:05:00
    + 20: cells 19->19, 125046 blocks, duration 00:05:00
    + 21: cells 20->20, 58769 blocks, duration 00:02:31
    + 22: cells 21->21, 380 blocks, duration 00:00:11
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch), 48000Hz, 192000bps
  + subtitle tracks:
[11:36:42] thread b7537b90 started ("work")
[11:36:42] 2 job(s) to process
[11:36:42] starting job
[11:36:42]  + device /media/DSE_055/VIDEO_TS/
[11:36:42]  + title 1, chapter(s) 11 to 11
[11:36:42]  + 720x480 -> 640x480, crop 0/0/0/0
[11:36:42]  + filters
[11:36:42]    + Deinterlace (ffmpeg or yadif/mcdeint) (2)
[11:36:42]  + video frame rate: 29.970 fps
[11:36:42]  + video bitrate 1000 kbps, pass 1
[11:36:42]  + PixelRatio: 0, width:640, height: 480
[11:36:42]  + encoder XviD
[11:36:42]  + audio 128 kbps, 44100 Hz
[11:36:42]  + encoder vorbis
[11:36:42] thread b6a52b90 started ("reader")
[11:36:42]  + output: /mnt/DATA3/3_temp/TDZN2.11.XViD.ogg.mkv
[11:36:42] thread b6251b90 started ("muxer")
[11:36:42] thread b5a50b90 started ("MPEG-2 decoder (libmpeg2)")
[11:36:42] thread b5045b90 started ("Renderer")
[11:36:42] dvd: Beginning of Cell (10) at block 1015145
[11:36:42] thread b3cffb90 started ("MPEG-4 encoder (libxvidcore)")
[11:36:42] sync: expecting 1868 video frames
[11:36:42] sync: first pts is 108135525
[11:36:42] encxvid: VOL size is 28 bytes
Encoding: task 1 of 2, 86.56 % (24.71 fps, avg 26.13 fps, ETA 00h00m09s)[11:37:44] dvd: End of Cell (10) at block 1035799
Encoding: task 1 of 2, 86.94 % (24.71 fps, avg 26.13 fps, ETA 00h00m09s)[11:37:45] dvd: Beginning of Cell (11) at block 1035915
[11:37:45] dvd: Chapter Break Cell Found
[11:37:45] reader: end of chapter 11 (media 11) reached at media chapter 12
[11:37:45] reader: done
[11:37:45] thread b6a52b90 exited ("reader")
Encoding: task 1 of 2, 98.61 % (26.81 fps, avg 25.81 fps, ETA 00h00m01s)[11:37:54] sync: got 1843 frames, 1868 expected
Encoding: task 1 of 2, 98.66 % (26.81 fps, avg 25.81 fps, ETA 00h00m01s)[11:37:54] thread b5045b90 exited ("Renderer")
[11:37:54] thread b3cffb90 exited ("MPEG-4 encoder (libxvidcore)")
[11:37:54] thread b5a50b90 exited ("MPEG-2 decoder (libmpeg2)")
[11:37:54] thread b5a50b90 joined ("MPEG-2 decoder (libmpeg2)")
[11:37:54] thread b5045b90 joined ("Renderer")
[11:37:54] render: lost time: 0 (0 frames)
[11:37:54] render: gained time: 0 (0 frames) (0 not accounted for)
[11:37:54] fifo_close: trashing 1 buffer(s)
[11:37:54] fifo_close: trashing 0 buffer(s)
[11:37:54] thread b3cffb90 joined ("MPEG-4 encoder (libxvidcore)")
[11:37:54] encxvid: closing libxvidcore
[11:37:54] thread b6a52b90 joined ("reader")
Encoding: task 1 of 2, 98.66 % (26.81 fps, avg 25.81 fps, ETA 00h00m01s)[11:37:54] thread b6251b90 exited ("muxer")
[11:37:54] thread b6251b90 joined ("muxer")
[11:37:54] fifo_close: trashing 0 buffer(s)
[11:37:54] fifo_close: trashing 0 buffer(s)
[11:37:54] fifo_close: trashing 0 buffer(s)
[11:37:54] fifo_close: trashing 0 buffer(s)
[11:37:54] fifo_close: trashing 0 buffer(s)
[11:37:54] Freed 5 buffers of size 512
[11:37:54] Freed 4 buffers of size 1024
[11:37:54] Freed 2048 buffers of size 2048
[11:37:54] Freed 0 buffers of size 4096
[11:37:54] Freed 0 buffers of size 8192
[11:37:54] Freed 0 buffers of size 16384
[11:37:54] Freed 0 buffers of size 32768
[11:37:54] Freed 42 buffers of size 518400
[11:37:54] Allocated 25973760 bytes of buffers on this pass and Freed 25973760 bytes, 0 bytes leaked
[11:37:54] starting job
[11:37:54]  + device /media/DSE_055/VIDEO_TS/
[11:37:54]  + title 1, chapter(s) 11 to 11
[11:37:54]  + 720x480 -> 640x480, crop 0/0/0/0
[11:37:54]  + filters
[11:37:54]    + Deinterlace (ffmpeg or yadif/mcdeint) (2)
[11:37:54]  + video frame rate: 29.970 fps
[11:37:54]  + video bitrate 1000 kbps, pass 2
[11:37:54]  + PixelRatio: 0, width:640, height: 480
[11:37:54]  + encoder XviD
[11:37:54]  + audio 128 kbps, 44100 Hz
[11:37:54]  + encoder vorbis
[11:37:54]    + 80bd, Unknown (AC3) (2.0 ch)
[11:37:54]      + Requested mixdown: Dolby Pro Logic II (HB_AMIXDOWN_DOLBYPLII)
[11:37:54]      + Actual mixdown: Stereo (HB_AMIXDOWN_STEREO)
[11:37:54] thread b6251b90 started ("reader")
[11:37:54]  + output: /mnt/DATA3/3_temp/TDZN2.11.XViD.ogg.mkv
[11:37:54] thread b6a52b90 started ("muxer")
[11:37:54] thread b3cffb90 started ("MPEG-2 decoder (libmpeg2)")
[11:37:54] thread b5045b90 started ("Renderer")
[11:37:54] dvd: Beginning of Cell (10) at block 1015145
[11:37:54] thread b34feb90 started ("MPEG-4 encoder (libxvidcore)")
No accelerated IMDCT transform found
[11:37:54] thread b2cfdb90 started ("AC3 decoder")
[11:37:54] encvorbis: opening libvorbis
[11:37:54] thread b20ffb90 started ("Vorbis encoder (libvorbis)")
[11:37:54] sync: expecting 1868 video frames
[11:37:54] sync: first pts is 108135525
[11:37:54] encxvid: VOL size is 28 bytes
Encoding: task 2 of 2, 0.32 %[11:37:55] Sync: Audio PTS (108117915) < Video PTS (108135525) by greater than 100ms, trashing audio to reconverge
[11:37:55] Sync: Audio back in Sync at PTS 108126555
Encoding: task 2 of 2, 86.46 % (19.14 fps, avg 18.53 fps, ETA 00h00m14s)[11:39:22] dvd: End of Cell (10) at block 1035799
Encoding: task 2 of 2, 87.10 % (18.83 fps, avg 18.52 fps, ETA 00h00m13s)[11:39:22] dvd: Beginning of Cell (11) at block 1035915
[11:39:22] dvd: Chapter Break Cell Found
[11:39:22] reader: end of chapter 11 (media 11) reached at media chapter 12
[11:39:22] reader: done
[11:39:22] thread b6251b90 exited ("reader")
Encoding: task 2 of 2, 98.45 % (18.57 fps, avg 18.50 fps, ETA 00h00m02s)[11:39:34] sync: got 1843 frames, 1868 expected
Encoding: task 2 of 2, 98.66 % (18.57 fps, avg 18.50 fps, ETA 00h00m02s)[11:39:35] Reader has exited early, inserting silence.
[11:39:35] Reader has exited early, inserting silence.
[11:39:35] thread b2cfdb90 exited ("AC3 decoder")
[11:39:35] thread b3cffb90 exited ("MPEG-2 decoder (libmpeg2)")
[11:39:35] thread b3cffb90 joined ("MPEG-2 decoder (libmpeg2)")
[11:39:35] thread b34feb90 exited ("MPEG-4 encoder (libxvidcore)")
[11:39:35] thread b5045b90 exited ("Renderer")
[11:39:35] thread b5045b90 joined ("Renderer")
[11:39:35] render: lost time: 0 (0 frames)
[11:39:35] render: gained time: 0 (0 frames) (0 not accounted for)
[11:39:35] fifo_close: trashing 1 buffer(s)
[11:39:35] fifo_close: trashing 0 buffer(s)
[11:39:35] thread b34feb90 joined ("MPEG-4 encoder (libxvidcore)")
[11:39:35] encxvid: closing libxvidcore
[11:39:35] thread b2cfdb90 joined ("AC3 decoder")
[11:39:35] thread b20ffb90 exited ("Vorbis encoder (libvorbis)")
[11:39:35] thread b20ffb90 joined ("Vorbis encoder (libvorbis)")
[11:39:35] thread b6251b90 joined ("reader")
[11:39:35] mux: file size, 9331304 bytes
[11:39:35] mux: track 0, 7534375 bytes, 980.70 kbps
[11:39:35] mux: video bitrate error, -148300 bytes
[11:39:35] mux: track 1, 1839664 bytes, 239.46 kbps
[11:39:35] mux: overhead, 3575643356020459.50 bytes per frame
[11:39:35] thread b6a52b90 exited ("muxer")
[11:39:35] thread b6a52b90 joined ("muxer")
[11:39:35] fifo_close: trashing 0 buffer(s)
[11:39:35] fifo_close: trashing 0 buffer(s)
[11:39:35] fifo_close: trashing 0 buffer(s)
[11:39:35] fifo_close: trashing 0 buffer(s)
[11:39:35] fifo_close: trashing 0 buffer(s)
[11:39:35] fifo_close: trashing 0 buffer(s)
[11:39:35] fifo_close: trashing 0 buffer(s)
[11:39:35] fifo_close: trashing 0 buffer(s)
[11:39:35] fifo_close: trashing 2 buffer(s)
[11:39:35] Freed 8 buffers of size 512
[11:39:35] Freed 8 buffers of size 1024
[11:39:35] Freed 2048 buffers of size 2048
[11:39:35] Freed 0 buffers of size 4096
[11:39:35] Freed 0 buffers of size 8192
[11:39:35] Freed 35 buffers of size 16384
[11:39:35] Freed 0 buffers of size 32768
[11:39:35] Freed 51 buffers of size 518400
[11:39:35] Allocated 31218432 bytes of buffers on this pass and Freed 31218432 bytes, 0 bytes leaked
[11:39:35] thread b7537b90 exited ("work")
[11:39:35] thread b7537b90 joined ("work")
[11:39:35] libhb: work result = 0

Rip done!
[11:39:35] thread b7d38b90 exited ("libhb")
[11:39:35] thread b7d38b90 joined ("libhb")
HandBrake has exited.
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Re: encodes cannot be fast forwarded or skipped around in

Post by rhester »

Search the forum for "mkvmerge".

Rodney
gregconquest
Posts: 20
Joined: Fri Mar 28, 2008 2:01 am

Re: encodes cannot be fast forwarded or skipped around in

Post by gregconquest »

rhester wrote:Search the forum for "mkvmerge".
OK. Thanks, Rodney. I had mkvmerge already on my system. I just put the mkv file in there, choose a new output file name, click the "start muxing" button, and voila! It's done. It only takes a minute or so to do a full movie.

Thanks again :D
Greg

Keywords: skip, ff, cue, tracking, slider, hang, reset
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: encodes cannot be fast forwarded or skipped around in

Post by jbrjake »

Code: Select all

-o /mnt/DATA3/3_temp/TDZN2.11.XViD.ogg.mkv
Seriously?
gregconquest
Posts: 20
Joined: Fri Mar 28, 2008 2:01 am

Re: encodes cannot be fast forwarded or skipped around in

Post by gregconquest »

jbrjake wrote:

Code: Select all

-o /mnt/DATA3/3_temp/TDZN2.11.XViD.ogg.mkv
Seriously?
Why :?: I've since changed my preferences to:

Code: Select all

640px.x264.vorbis.mkv
if you are wondering about the codec and container choices.

Greg
cvk_b
Veteran User
Posts: 527
Joined: Sun Mar 18, 2007 2:11 am

Re: encodes cannot be fast forwarded or skipped around in

Post by cvk_b »

Looks like a pretty decent way tell what was used to create the file to me, 'cept I might add a ".hb" in there somewhere, heh.
gregconquest
Posts: 20
Joined: Fri Mar 28, 2008 2:01 am

Re: encodes cannot be fast forwarded or skipped around in

Post by gregconquest »

cvk_b wrote:Looks like a pretty decent way tell what was used to create the file to me, 'cept I might add a ".hb" in there somewhere, heh.
Good idea -- maybe something like this:

Code: Select all

movie_title.hb.640px.x264.vorbis.mkv
or
movie_title.640px.hb.x264.vorbis.mkv
Polygon
Novice
Posts: 72
Joined: Wed Oct 24, 2007 1:36 pm

Re: encodes cannot be fast forwarded or skipped around in

Post by Polygon »

thanks so much for that, i was very frustrated that i coulden't fast foward with my DSQ encoded files even in the mighty VLC.

What does running it through mkvmerge (even without any options) do?
Blairboy
Posts: 17
Joined: Thu Feb 28, 2008 5:08 pm

Re: encodes cannot be fast forwarded or skipped around in

Post by Blairboy »

I just tried this by running

Code: Select all

mkvmerge input.mkv -o output.mkv
with an episode of 24. The outputted file works just fine, but it is about a half a meg smaller than the original. I wondered if anyone knew why this is, and also, if mkvmerge maintains PAR.
TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: encodes cannot be fast forwarded or skipped around in

Post by TedJ »

Half a meg isn't much of a problem... you could atribute that to a streamlined MKV container. PAR should be fine, since it's flagged in the video stream which mkvmerge won't have touched.
Blairboy
Posts: 17
Joined: Thu Feb 28, 2008 5:08 pm

Re: encodes cannot be fast forwarded or skipped around in

Post by Blairboy »

Bad assed. That's what I figured, but just wanted to make sure. So what did mkvmerge do to allow skipping? I couldn't really find that in the documentation.
TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: encodes cannot be fast forwarded or skipped around in

Post by TedJ »

There's something about the MKV container generated by Handbrake that some apps don't like; mkvmerge simply copies the audio and video streams into a new container. I have a similar problem with playing Handbrake encoded AVIs on my Cowon D2... the file plays OK, but the listed running time is either too short or WAY (like 92 hours) too long. I simply remux the files post encode to fix them.
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: encodes cannot be fast forwarded or skipped around in

Post by s55 »

@TedJ - For reference, HandBrake does not add cue markers to mkv files. The mkv specification does not require them.
saintdev
Enlightened
Posts: 146
Joined: Wed Dec 20, 2006 4:17 am

Re: encodes cannot be fast forwarded or skipped around in

Post by saintdev »

sr55 wrote:@TedJ - For reference, HandBrake does not add cue markers to mkv files. The mkv specification does not require them.
Yes, yes, it does.
You are correct that they are not required, but they are there.
saintdev
Enlightened
Posts: 146
Joined: Wed Dec 20, 2006 4:17 am

Re: encodes cannot be fast forwarded or skipped around in

Post by saintdev »

Blairboy wrote:I just tried this by running

Code: Select all

mkvmerge input.mkv -o output.mkv
with an episode of 24. The outputted file works just fine, but it is about a half a meg smaller than the original. I wondered if anyone knew why this is...
This is because mvkmerge does things like lacing audio frames together, so you only have one frame's worth of overhead for about every 8 audio frames. I've got an implementation for this in handbrake, but it causes really bad stuttering when played back in VLC. Which I think is related to fast forwarding problem.
Post Reply