Search found 5218 matches

by JohnAStebbins
Sat Nov 08, 2008 6:02 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 6449

Re: m2ts parsing problems

Found another glitch in m2ts parsing. It's trying to interpret a DigiCypher PID as ac3 audio. deca52 eventually crashes badly on the digicypher data. In stream.c, we mark pretty much all PIDS that we don't handle an "unknown", even when the type is known such as digicypher. Then we expect the scan t...
by JohnAStebbins
Fri Nov 07, 2008 12:17 am
Forum: *nix
Topic: x264 CPU Capabilities
Replies: 5
Views: 2206

Re: x264 CPU Capabilities

What kind of cpu do you have? I just tried on 2 systems running Ubuntu 8.10. one is a core 2 duo and the other it a core 2 quad. One is running i686 and the other x86_64. Both get the following caps: x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 Perhaps you have an amd cpu or an o...
by JohnAStebbins
Thu Nov 06, 2008 9:27 pm
Forum: Bugs
Topic: [DUPLICATE] [SVN 1819] Errors in log (Blu-Ray)
Replies: 1
Views: 716

Re: [SVN 1819] Errors in log, but video encodes OK (Blu-Ray)

This looks to be the same problem as http://forum.handbrake.fr/viewtopic.php ... 2ts#p42026
Van has a pending solution.
by JohnAStebbins
Thu Nov 06, 2008 5:14 pm
Forum: Development
Topic: MacGui: Live Preview
Replies: 21
Views: 2100

Re: MacGui: Live Preview

For any interested parties, here's a patch for live preview for the linux gui. You also need the patch I posted previously for libhb. It uses gstreamer. So you need all the appropriate plugins (base, good, ugly, bad, ffmpeg). http://handbrake.fr/pastebin/pastebin.php?show=196 http://www.stebbins.biz...
by JohnAStebbins
Thu Nov 06, 2008 3:35 pm
Forum: Development
Topic: MacGui: Live Preview
Replies: 21
Views: 2100

Re: MacGui: Live Preview

Here's a tweak to van's patch to make hb_state.param.working.progress accurate during live preview encodes.
It takes pts_to_stop into account when calculating the number of frames to expect in sync.c
http://handbrake.fr/pastebin/pastebin.php?show=189
by JohnAStebbins
Thu Oct 30, 2008 2:58 pm
Forum: General Questions
Topic: new user question
Replies: 1
Views: 399

Re: new user question

If your going to do much video encoding, you really need to educate yourself first. See the big pink box at the top of the forum page. If you don't you'll probably end up re-encoding multiple time's as you learn new things. This particular problem is covered either here http://trac.handbrake.fr/wiki...
by JohnAStebbins
Thu Oct 30, 2008 12:12 am
Forum: General Questions
Topic: Specify 720 horizontal resolution?
Replies: 14
Views: 1192

Re: Specify 720 horizontal resolution?

And that brings us back around to my original suggestion. You'ld be better off just doing a few encodings to get a feel for quality vs. file size vs. resolution tradeoffs, then winging it from there. The "sweet" spot is going to depend on several things. One of the bigger factors is the complexity o...
by JohnAStebbins
Wed Oct 29, 2008 11:39 pm
Forum: General Questions
Topic: Specify 720 horizontal resolution?
Replies: 14
Views: 1192

Re: Specify 720 horizontal resolution?

Quality is not equivalent to resolution. Video compression is *lossy*. That means that the algorithm will throw away detail in order to achieve certain constraints (like bitrate). (And "detail" is not exactly equivalent to resolution either by the way). When you set a certain bitrate, those bits wil...
by JohnAStebbins
Wed Oct 29, 2008 10:45 pm
Forum: General Questions
Topic: Specify 720 horizontal resolution?
Replies: 14
Views: 1192

Re: Specify 720 horizontal resolution?

locking to 700Mb something has to give, which is the resolution Your assumption is wrong here. Resolution isn't the only thing that *has* to give. The other alternative is that the quality gets reduced, and that's what handbrake does. In order to keep a certain quality and reduce the resolution ins...
by JohnAStebbins
Wed Oct 29, 2008 9:44 pm
Forum: General Questions
Topic: Specify 720 horizontal resolution?
Replies: 14
Views: 1192

Re: Specify 720 horizontal resolution?

Basically, your asking for a "tool" that will analyse the overall quality of the encoded video for multiple output resolutions. Quality is a tricky metric to measure and you would have to include in that metric both the artifacts from encoding and quality loss due to the reduced resolution. To get a...
by JohnAStebbins
Wed Oct 29, 2008 4:13 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 6449

Re: lpcm in m2ts

The patch I posted has a lot of things mixed together, some of which probably need more thought. So I'm splitting things up so they can be review and worked on independently. Here are the 2 that I'm really most interested in. Interleaved truhd/ac3 parsing http://handbrake.fr/pastebin/pastebin.php?sh...
by JohnAStebbins
Tue Oct 28, 2008 9:39 pm
Forum: Bugs
Topic: [SVN 1797] Doesn't encode first 120 secs of h.264 TS files
Replies: 12
Views: 1630

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

Van, where did you read that PPS and SPS mark random access points. When I add these nal unit types to isIframe(), I get previews that are messy. Note I get the same messy previews when the "i-frame" match is on nal unit type 1 with a slice type of 2 4 or 7. I addressed this issue in my other thread...
by JohnAStebbins
Tue Oct 28, 2008 4:18 pm
Forum: Bugs
Topic: [SVN 1797] Doesn't encode first 120 secs of h.264 TS files
Replies: 12
Views: 1630

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

I've got an idea about this. ffmpeg's decoder is complaining that the stream is referencing a picture parameter set that doesn't exist. These are delivered in the stream before the slice. The slice references them. Our transport decoder always skips data in the stream until it sees the first i-frame...
by JohnAStebbins
Tue Oct 28, 2008 3:59 pm
Forum: Mac
Topic: Blu-Ray support
Replies: 6
Views: 895

Re: Blu-Ray support

What Rodney is saying is that handbrake does not produce files that are suitable for input into iMovie. This is talked about in the faq and there are some suggestions there.
by JohnAStebbins
Mon Oct 27, 2008 4:44 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 6449

Re: lpcm in m2ts

Van, thanks for having a look. I can stand in line and wait my turn for you to catch up. That extra complexity I added to demuxmpeg doesn't have to be there. I added it to reduce code duplication. The stream code needs to access the stream id extension to distinguish ac3 from truehd. There's no exis...
by JohnAStebbins
Sun Oct 26, 2008 6:24 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 6449

Re: lpcm in m2ts

While working on getting blu-ray encoding working, I've run across a few more glitches with transport stream processing. 1. when the program list in the pat contains a network PID, the pmt parsing code doesn't properly skip this entry. this causes attempts to interpret a pat as a pmt since the pid e...
by JohnAStebbins
Fri Oct 24, 2008 9:19 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 6449

Re: lpcm in m2ts

Given the information in my last post, I've come up with a better way of handling the ac-3/TrueHD interleaved stream. If the stream id is 0x83, I check the format_identifier from the registration descriptor for the stream. If it is "AC-3", then it's ac-3/truehd, and the id assigned is the compositio...
by JohnAStebbins
Fri Oct 24, 2008 12:17 am
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 6449

Re: lpcm in m2ts

Score! This is what I've been looking for: To my best knowledge this is the right way to demux TS and m2ts files: 0x01: MPEG2 video 0x02: MPEG2 video 0x03: MP2 audio (MPEG-1 Audio Layer II) 0x04: MP2 audio (MPEG-2 Audio Layer II) 0x06: private data (can be AC3, DTS or something else) 0x0F: AAC audio...
by JohnAStebbins
Thu Oct 23, 2008 9:15 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 6449

Re: lpcm in m2ts

I've had some success at encoding this source now. That's not saying I'm doing everything correctly. There's still a lot about the stream that I don't have enough knowledge about. It seems the audio track that is tagged in the PMT with stream type 0x83 is not lpcm. It's some sort of multiplex with a...
by JohnAStebbins
Wed Oct 22, 2008 4:40 pm
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 6449

Re: lpcm in m2ts

Well, this is interesting. The data I captured for the lpcm pid is correct, but incomplete. There are pes packets on that pid with a different extended_stream_id. They look like this: start code prefix - 00 00 01 stream id - fd extension - 00 95 84 81 08 pts - 21 00 3f ff e1 pes extension - 01 pes e...
by JohnAStebbins
Wed Oct 22, 2008 1:13 am
Forum: Development
Topic: lpcm in m2ts
Replies: 36
Views: 6449

lpcm in m2ts

This is pretty much an fyi. Hoping someone can add to this. Is anyone familiar with lpcm audio in transport streams? From my browsing of the code and inspecting the contents of an m2ts file. It looks like our current ts parsing will not handle what is done in m2ts files. We currently seem to be expe...
by JohnAStebbins
Sun Oct 19, 2008 6:03 am
Forum: *nix
Topic: Linux x64 build from source fails
Replies: 3
Views: 920

Re: Linux x64 build from source fails

The important error would have happened prior to the messages you provided. Try capturing all the build output. And the preferred build method is to use make. So try:

make &> build.log

and post to http://handbrake.fr/pastebin

As for a binary, I prefer to teach how to fish.
by JohnAStebbins
Sat Oct 18, 2008 8:12 pm
Forum: *nix
Topic: 3 seconds of silence at beginning of DVD -- video delay
Replies: 9
Views: 1417

Re: 3 seconds of silence at beginning of DVD -- video delay

Nothing jumps out at me in the log. Note, I also suggested you give the snapshot a try. Many sync issues have been fixed since the 0.9.2 release.
by JohnAStebbins
Fri Oct 17, 2008 3:48 pm
Forum: *nix
Topic: 3 seconds of silence at beginning of DVD -- video delay
Replies: 9
Views: 1417

Re: 3 seconds of silence at beginning of DVD -- video delay

Without a *full* activity log, can't tell you much. Try the -v option.

You might also try the latest dev snapshot:
http://forum.handbrake.fr/viewtopic.php?f=13&t=7230
by JohnAStebbins
Fri Oct 17, 2008 12:46 am
Forum: Development
Topic: Sweeping changes to LinGui presets
Replies: 3
Views: 540

Sweeping changes to LinGui presets

I can almost read the macui presets plist directly. It works as long as you don't mind loosing the audio settings. When I told Joe how I did audio's, he thought he might be interested in doing the same. So I'm holding off on those for a bit to see if he's really interested. Every key and many values...