Search found 417 matches

by van
Tue Nov 18, 2008 7:30 am
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 9566

Re: lpcm in m2ts

I just bought WALL-E and was forced to figure out another piece of the puzzle. Type 0x86 is DTS-HD which is another multiplexed form with substream id 0x71 as the DTS component. It also looks like this disk doesn't have any random access points in the TS so rather than wait 15 minutes while scan sea...
by van
Tue Nov 18, 2008 4:27 am
Forum: Bugs
Topic: Consistent VC1 movie crash on Snapshot Build 5
Replies: 6
Views: 1729

Re: Consistent VC1 movie crash on Snapshot Build 5

This is due to a bug in the ffmpeg vc1 decoder - it occasionally returns a bogus packet size (> 50MB) that messes up HB's memory allocator. I've committed a work-around as r1925.
by van
Sat Nov 15, 2008 9:34 pm
Forum: Development
Topic: HandBrake 0.9.3 State of Development and Feature Freeze
Replies: 13
Views: 3700

Re: HandBrake 0.9.3 State of Development and Feature Freeze

For "Initial frames missing from FLV source", I think the problem is a bug in the ffmpeg vp6f codec. Almost the the flv's I have drop the first second or so of video because the codec thinks it's missing the initial keyframe. I don't have the vp6 spec but I think the initial state of the c...
by van
Sat Nov 15, 2008 9:19 pm
Forum: Development
Topic: HandBrake 0.9.3 State of Development and Feature Freeze
Replies: 13
Views: 3700

Re: HandBrake 0.9.3 State of Development and Feature Freeze

Van and John: Should the keyframe issue decoding the beginning of h.264 streams be postponed until 0.9.4? Seems like you're still hashing out the details... If John's theory SPS/PPS theory is right, and I strongly suspect it is, a fix is in the patch mentioned here . There's one small piece to fini...
by van
Thu Nov 13, 2008 9:16 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 9566

Re: lpcm in m2ts

750ms is about how much audio lags video in typical HD content. What's probably happening is that since we zap the first video timestamp to re-sync on the audio, we lose information on the relative offset between audio & video at the splice then end up correcting the next time we see a video tim...
by van
Thu Nov 13, 2008 5:30 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 9566

Re: lpcm in m2ts

Hmm. I made two changes to help the problem. One was to send up PES packets as soon as we hit the end rather than waiting to the start of the next packet of that media stream. This reduces the window of vulnerability. The other was to explicitly detect the reordering & smash the timestamps so it...
by van
Thu Nov 13, 2008 8:21 am
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 9566

Re: lpcm in m2ts

I have a question about discontinuities. On some blu-rays (e.g. Ratatouille), the title is divided into several segments (an m2ts file per segment). Each m2ts has its own time base. If I try to concatenate the segments together, hb gets "video time went backwards" errors at the segment bo...
by van
Wed Nov 12, 2008 8:00 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 9566

Re: lpcm in m2ts

After looking over your patch, I've got a couple comments. When you lookup the stream extension id, your assuming it's at pes[[es[8]+8]. This works only if the pes extension doesn't have any extra bytes. The extension has a length field and could have additional bytes after the stream extension id....
by van
Wed Nov 12, 2008 8:53 am
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 9566

Re: lpcm in m2ts

Looks like we were working in parallel John. I tried to fold your older code into my new ts stream architecture. Thanks to your great detective work it seems to handle type 0x83 just fine and so far has converted Iron Man & Crystal Skull with no problem. I haven't finished the performance work b...
by van
Tue Nov 11, 2008 6:22 pm
Forum: Bugs
Topic: [SVN 1915] Lack of VC1 picture preview
Replies: 2
Views: 722

Re: [SVN 1915] Lack of VC1 picture preview

It's a known problem. Both VC1 and H.264 have issues finding good restart points when you jump to a random point (which is what happens when constructing previews). This is what results in the missing or corrupt preview images. We're working on this but it's hard to fix.
by van
Sun Nov 09, 2008 9:15 am
Forum: Development
Topic: [patch] crashes in picture preview + right edge preview.
Replies: 14
Views: 3804

Re: [patch] crashes in picture preview + right edge preview.

The fix looks good to me. Sorry about the bug. While cut & pasting my test script I forgot to change an extension so I tested avi twice & theora zero times -- naturally I screwed up the testing of the code I'd broken :oops:
by van
Sun Nov 09, 2008 9:00 am
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 9566

Re: lpcm in m2ts

John, Sorry for the long delay in replying. The reason I'm uncomfortable with the scope of this change has to do with a future direction possibility that you couldn't know about (because it's not done & I haven't talked about it). Let me give that background: When awk wrote the original stream c...
by van
Sat Nov 08, 2008 7:05 am
Forum: Development
Topic: HandBrake 0.9.3 State of Development and Feature Freeze
Replies: 13
Views: 3700

Re: HandBrake 0.9.3 State of Development and Feature Freeze

Committed. Also committed a DTS patch that I hope will fix the problems in topics 7092, 7329 & part of 7506/7497. Turned out there were two more bugs in our DCA decoder that appeared after doing the one line fix in stream.c. I'll try to get the AAC auto rate stuff in tomorrow. I've also got a th...
by van
Sat Nov 08, 2008 6:41 am
Forum: Bugs
Topic: [SVN1797]Crashes on MKV
Replies: 123
Views: 22081

Re: [SVN1797]Crashes on MKV

atticus1214 - try r1904 or later. It may the fix the aborts you're seeing which I believe are due to DTS/DCA decoding problems.

Note that this won't have any effect on the issues northy is seeing - those are not DTS related and so far I haven't had any luck reproducing them.
by van
Sat Nov 08, 2008 6:30 am
Forum: Bugs
Topic: [Resolved] [SVN1692] DTS audio problems
Replies: 14
Views: 2831

Re: [SVN1692] DTS audio problems

refulgentis - try r1904. I fixed three different DTS bugs. With luck this one will work for you.
by van
Fri Nov 07, 2008 7:00 am
Forum: Development
Topic: [patch] crashes in picture preview + right edge preview.
Replies: 14
Views: 3804

Re: [patch] crashes in picture preview + right edge preview.

A patch to make HB use the correct size for the U & V components of a raw video frame is at http://handbrake.fr/pastebin/pastebin.php?show=200 . Basically, all calls to hb_buffer_init to allocate a raw video frame have been replaced by a call to hb_video_buffer_init( width, height ) which correc...
by van
Thu Nov 06, 2008 10:49 pm
Forum: Development
Topic: HandBrake 0.9.3 State of Development and Feature Freeze
Replies: 13
Views: 3700

Re: HandBrake 0.9.3 State of Development and Feature Freeze

For "odd dimensions and chroma rounding", I've got a patch that allocates the video buffer correctly (round up to even, same as ffmpeg does) so HB will work for odd dimensions. But x264 aborts because the standard *requires* even dimensions for YUV420 video (there's no way even to specify ...
by van
Fri Oct 31, 2008 9:37 pm
Forum: Development
Topic: MacGui: Live Preview
Replies: 21
Views: 3685

Re: MacGui: Live Preview

Serious Concern: I do not want this implementation to replace true frame accurate point to point, now with our fantastic universal file input, it is more important than ever to allow HB to really have the ability to encode what the user really wants to encode. I don't think there's any incompatibil...
by van
Fri Oct 31, 2008 9:14 pm
Forum: Development
Topic: MacGui: Live Preview
Replies: 21
Views: 3685

Re: MacGui: Live Preview

Possibly the problem with the wrong stopping time is the stupid way I'm using output frame counts as the stopping condition & feeding it back from sync to reader. Since there can be a lot of audio in the pipeline between them you can get funny output that's much longer than you've requested. Aft...
by van
Fri Oct 31, 2008 5:51 am
Forum: Development
Topic: Encoding from point A to point B
Replies: 42
Views: 9335

Re: Encoding from point A to point B

Sorry dynaflash. I know you've been waiting patiently for this forever. The hard part of A-to-B is constructing an index for frame accurate positioning of the start point. For live preview I suspect you don't really need that & only want the encoding to start at exactly the same frame as the pre...
by van
Thu Oct 30, 2008 5:52 am
Forum: Bugs
Topic: [SVN1797]Crashes on MKV
Replies: 123
Views: 22081

Re: [SVN1797]Crashes on MKV

The crash you show has DTS audio, not AC-3, and the symptoms you report sound like the bug that was fixed by r1827 . So this might be fixed in the next snapshot. EDIT- Sorry, I wasn't reading carefully. 1827 was DTS in m2ts, not mkv. The DTS in mkv problem is happening because HB uses the ffmpeg DTS...
by van
Wed Oct 29, 2008 1:01 am
Forum: Development
Topic: [request for comments] cropping changes
Replies: 16
Views: 3975

Re: [request for comments] cropping changes

Got it. Here's what a blow up of the right side looks like: http://img296.imageshack.us/img296/8459/preview1bj9.jpg They've added a taper to the luma, probably to minimize DCT ringing at the edge. The rightmost 4 columns are black, the 5th has been attenuated 60% and the 6th 20%. When the dark thres...
by van
Tue Oct 28, 2008 7:44 pm
Forum: Bugs
Topic: [SVN 1797] Doesn't encode first 120 secs of h.264 TS files
Replies: 12
Views: 2985

Re: [SVN 1797] Doesn't encode first 120 secs of h.264 TS files

Brilliant!!! That's almost certainly the problem. The spec says a PPS or SPS marks a random access point so I'll change the h.264 isIframe test to include them.
by van
Mon Oct 27, 2008 2:22 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 9566

Re: lpcm in m2ts

Nice detective work John & it's good to see others digging into the stream stuff. But I'm a little concerned about the scope of the changes. Titer provided an elegant & very fast PS demuxer in libhb/demuxmpeg. I'd like to convince myself that it's absolutely necessary to push the complexity ...
by van
Sun Oct 26, 2008 5:44 am
Forum: Development
Topic: [request for comments] cropping changes
Replies: 16
Views: 3975

Re: [request for comments] cropping changes

I don't know whether I screwed up the bounding box logic or the thresholds. I suspect that a short clip won't manifest the problem since the decision is made on the statistics of a bunch of frames. But if you could tar up the /tmp/hb.NNN/* directory that contains the preview images from this title I...