OSDN Git Service

handbrake-jp/handbrake-jp-git.git
16 years agoMacGui: Fix AC3 Passthru bitrate setting in audio tab when using a legacy preset...
dynaflash [Mon, 14 Apr 2008 15:55:56 +0000 (15:55 +0000)]
MacGui: Fix AC3 Passthru bitrate setting in audio tab when using a legacy preset from the old audio system.
- Now properly sets the source track input bitrate as the output bitrate in the NSPopUpButton so it displays correctly in the audio tab as well as the queue and allows you to make new presets from an older one.

git-svn-id: svn://localhost/HandBrake/trunk@1414 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoFix the automatic subtitle scan that I broke with r1412.
van [Mon, 14 Apr 2008 08:27:59 +0000 (08:27 +0000)]
Fix the automatic subtitle scan that I broke with r1412.

git-svn-id: svn://localhost/HandBrake/trunk@1413 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoFixes for different number of frames between pass 1 & 2, missing frames at end, and...
van [Sun, 13 Apr 2008 23:31:37 +0000 (23:31 +0000)]
Fixes for different number of frames between pass 1 & 2, missing frames at end, and an deadlock with pcm audio.
 - since the SCR clock recovery is done in reader.c we can't currently skip audio frames during pass 1 or we miss clock changes signaled by those frames & end up dropping more video frames in pass 1 than pass 2.
 - since many modules buffer frames we can't tell if we're done just by looking for empty fifos. Send an empty buffer to mark end-of-stream all the way along the processing pipeline & use it to flush internally buffered data.
 - in a processing pipeline you're done when the end of the pipe says your done. add a thread status variable so we can tell when individual threads are finished then make do_job wait until the encoder thread is done so that we're sure all the frames have been processed and sent to the muxer.
 - since the muxer alternates between reading video & audio packets we have to have enough buffer in the audio pipeline to handle a video-frame's worth of audio packets (33ms). Since pcm packets are <1ms we need >60 slots in the audio fifos or we'll deadlock.

git-svn-id: svn://localhost/HandBrake/trunk@1412 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoBumps x264 to the latest snapshot tarball, which version.sh translates from hashed...
jbrjake [Sun, 13 Apr 2008 18:22:49 +0000 (18:22 +0000)]
Bumps x264 to the latest snapshot tarball, which version.sh translates from hashed gobbledygook to 818 d4b7d2b.
Removes the VAQ patch since it's been committed since we last refreshed the lib.

git-svn-id: svn://localhost/HandBrake/trunk@1411 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWhen dropping frames from pullup for VFR, deallocate the associated subtitle buffers...
jbrjake [Sun, 13 Apr 2008 01:37:02 +0000 (01:37 +0000)]
When dropping frames from pullup for VFR, deallocate the associated subtitle buffers instead of just hb_fifo_get-ing them into nowhere.

This should plug the crash-inducing memory leak Cyander noticed.

git-svn-id: svn://localhost/HandBrake/trunk@1410 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Sat, 12 Apr 2008 21:52:20 +0000 (21:52 +0000)]
WinGui:
- Fixed issue where Audio encoder would be changed if chapter markers was enabled/disabled.
This was an issue with the function that populates the audio encoder drop downs based on the file extension

git-svn-id: svn://localhost/HandBrake/trunk@1409 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Sat, 12 Apr 2008 21:37:49 +0000 (21:37 +0000)]
WinGui:
- Bug fixes with the audio panel in relation to not loading the apple tv preset correctly.
- Small UI font size issue fixed with sample rate dropdowns.

git-svn-id: svn://localhost/HandBrake/trunk@1408 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Sat, 12 Apr 2008 15:38:01 +0000 (15:38 +0000)]
WinGui:
- (Scratch last checkin. Audio panel now has a sensible implementation.) Audio Tracks 3 now invisible until audio track 2 has a selected track and Track 4 is also invisible until track 3 has a selected track.

git-svn-id: svn://localhost/HandBrake/trunk@1407 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Sat, 12 Apr 2008 14:54:33 +0000 (14:54 +0000)]
WinGui:
- Expands the audio tab to 4 audio tracks. This will require through testing. Users should avoid track combinations such as 1 & 4, 1 & 3, and 2 & 4. Instead, 1 & 2 & 3 or 1 & 2 or 2 & 3 & 4 should be used.

git-svn-id: svn://localhost/HandBrake/trunk@1406 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Fri, 11 Apr 2008 21:45:18 +0000 (21:45 +0000)]
WinGui:
- Fixed bug in the RSS reader.

git-svn-id: svn://localhost/HandBrake/trunk@1405 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoLet's try out saner b-frame init delays again.
jbrjake [Fri, 11 Apr 2008 19:36:07 +0000 (19:36 +0000)]
Let's try out saner b-frame init delays again.

git-svn-id: svn://localhost/HandBrake/trunk@1404 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Get rid of some harmless warnings in Controller.mm during compiling.
dynaflash [Fri, 11 Apr 2008 16:39:14 +0000 (16:39 +0000)]
MacGui: Get rid of some harmless warnings in Controller.mm during compiling.

git-svn-id: svn://localhost/HandBrake/trunk@1403 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoProvide more feedback as to the types of the streams in an MPEG Transport stream
eddyg [Fri, 11 Apr 2008 07:47:44 +0000 (07:47 +0000)]
Provide more feedback as to the types of the streams in an MPEG Transport stream

git-svn-id: svn://localhost/HandBrake/trunk@1402 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoFix brain fade in comments (it's been a long day).
van [Thu, 10 Apr 2008 07:31:54 +0000 (07:31 +0000)]
Fix brain fade in comments (it's been a long day).

git-svn-id: svn://localhost/HandBrake/trunk@1401 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoFix avi containers which I unwittingly broke with r1341.
van [Thu, 10 Apr 2008 07:05:09 +0000 (07:05 +0000)]
Fix avi containers which I unwittingly broke with r1341.

git-svn-id: svn://localhost/HandBrake/trunk@1400 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Do not call customSettingsUsed until we have an intelligent way to determine...
dynaflash [Thu, 10 Apr 2008 04:44:53 +0000 (04:44 +0000)]
MacGui: Do not call customSettingsUsed until we have an intelligent way to determine selected audio variables compared to presets so that presets stay selected.

git-svn-id: svn://localhost/HandBrake/trunk@1399 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Adjust positioning of Frame Rate in Video Tab to make sure the framerate...
dynaflash [Thu, 10 Apr 2008 04:37:46 +0000 (04:37 +0000)]
MacGui: Adjust positioning of Frame Rate in Video Tab to make sure the framerate label doesn't get cutoff when VFR is selected.

git-svn-id: svn://localhost/HandBrake/trunk@1398 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Implement per audio track drc
dynaflash [Tue, 8 Apr 2008 18:34:25 +0000 (18:34 +0000)]
MacGui: Implement per audio track drc
- Uses a small circular slider for each track
- Stops on ticks for .25 granularity
- Presets regress from global drc to apply it to all tracks if used in past custom preset.

git-svn-id: svn://localhost/HandBrake/trunk@1397 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Fix broken Add Preset function for adding custom presets.
dynaflash [Tue, 8 Apr 2008 15:10:22 +0000 (15:10 +0000)]
MacGui: Fix broken Add Preset function for adding custom presets.
- Was broken in rev 1385

git-svn-id: svn://localhost/HandBrake/trunk@1396 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Sanity Check AC3 passthrough against any input audio that is not AC3.
dynaflash [Tue, 8 Apr 2008 13:19:51 +0000 (13:19 +0000)]
MacGui: Sanity Check AC3 passthrough against any input audio that is not AC3.
- Previously only sanity checked against DTS.

git-svn-id: svn://localhost/HandBrake/trunk@1395 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGUI: Forgot a file in my previous commit.
ritsuka [Tue, 8 Apr 2008 13:02:43 +0000 (13:02 +0000)]
MacGUI: Forgot a file in my previous commit.

git-svn-id: svn://localhost/HandBrake/trunk@1394 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGUI: Fixed some crashes in the queue on x86_64
ritsuka [Tue, 8 Apr 2008 11:54:55 +0000 (11:54 +0000)]
MacGUI: Fixed some crashes in the queue on x86_64

git-svn-id: svn://localhost/HandBrake/trunk@1393 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoCLI: Generate default chapter marker titles when a marker file is not specified,...
jbrjake [Tue, 8 Apr 2008 05:11:25 +0000 (05:11 +0000)]
CLI: Generate default chapter marker titles when a marker file is not specified, that match the format used by the MacGui.

git-svn-id: svn://localhost/HandBrake/trunk@1392 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoFor snapshots, don't use the normal HB_VERSION number at all, just "svn" and the...
jbrjake [Tue, 8 Apr 2008 04:52:46 +0000 (04:52 +0000)]
For snapshots, don't use the normal HB_VERSION number at all, just "svn" and the revision number.

git-svn-id: svn://localhost/HandBrake/trunk@1391 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Fix errant encode done growl alert and send to MetaX function when finishing...
dynaflash [Tue, 8 Apr 2008 03:04:46 +0000 (03:04 +0000)]
MacGui: Fix errant encode done growl alert and send to MetaX function when finishing the first pass of a two pass encode.
- We now only send the alerts after an encode finishes as opposed to when a job *within* an encode finishes.

git-svn-id: svn://localhost/HandBrake/trunk@1390 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoCLI: m4v is a valid output format.
jbrjake [Tue, 8 Apr 2008 02:53:22 +0000 (02:53 +0000)]
CLI: m4v is a valid output format.

git-svn-id: svn://localhost/HandBrake/trunk@1389 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Enhance Growl notifications and send to metaX so that each encode is handled...
dynaflash [Mon, 7 Apr 2008 20:11:46 +0000 (20:11 +0000)]
MacGui: Enhance Growl notifications and send to metaX so that each encode is handled as it comes off of the queue.
- Previously only the last encode of a queue gave the finished growl notification and was sent to metaX. Now if specified by the user they happen as the encodes progress through the queue.

git-svn-id: svn://localhost/HandBrake/trunk@1388 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Mon, 7 Apr 2008 17:57:14 +0000 (17:57 +0000)]
WinGui:
- Fixed bug in query parser and preset code. Deinterlace option with " wraped around the value caused issues.

git-svn-id: svn://localhost/HandBrake/trunk@1387 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Fix the DTS source audio mixdown for an attempted AC3 passthru audio track
dynaflash [Mon, 7 Apr 2008 14:35:35 +0000 (14:35 +0000)]
MacGui: Fix the DTS source audio mixdown for an attempted AC3 passthru audio track
- Since AC3 Passthru will not work with a DTS audio source track, we us mp3 dpl2 for avi and aac dpl2 for mkv and mp4.
- Revert HandBrake.plist to pre 1385 as it was errantly checked in with that commit.

git-svn-id: svn://localhost/HandBrake/trunk@1386 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Implement per track audio settings.
dynaflash [Mon, 7 Apr 2008 05:02:18 +0000 (05:02 +0000)]
MacGui: Implement per track audio settings.
- Expands the number of audio tracks the macgui can encode to 4.
- Everything except drc is now set on a per track basis
- Be Gone self limiting "Codecs" PopUp !
- Can now use any audio codecs that the container will support in the same encode
- The previous "AAC + AC3" bizarre hybrid is now deprecated and you simply set them up per track
- Implement full audio list readout in the queue, tracks are now show one per line in a list like fashion
- Queue is no longer hard coded for just two tracks.
- Preset code updated to regress to handle previous presets that utilized the codecs popup to determine audio scheme to use
- Preset code now handles everything except language selection.
- The Format, Video Encoder and Audio codes are all now stored in the appropriate NSPopUp tags for very easy retrieval.
- Crazy format, codecs struct is now gone as we get that from the tags.
- AC3 Passthru properly shows the input bitrate and 48 khz samplerate in the appropriate popups
- Added Theora video encoder to OGM container
- Added libtheora to the libhb dylib
- NOTE: The check against trying to use AC3 Passthru on a DTS track is broken on the encoder popup.

git-svn-id: svn://localhost/HandBrake/trunk@1385 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Sun, 6 Apr 2008 23:33:28 +0000 (23:33 +0000)]
WinGui:
- Activity window now updates every 3 seconds during an encode, so the user can now watch the encode log as it is generated by the CLI.

git-svn-id: svn://localhost/HandBrake/trunk@1384 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoDuring conversion only log when there's an error or anomaly.
van [Sun, 6 Apr 2008 22:58:04 +0000 (22:58 +0000)]
During conversion only log when there's an error or anomaly.

git-svn-id: svn://localhost/HandBrake/trunk@1383 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Sun, 6 Apr 2008 22:56:40 +0000 (22:56 +0000)]
WinGui:
- Instead of highlighting checkboxes red if their selection is invalid. Display a MessageBox explaining the error.

git-svn-id: svn://localhost/HandBrake/trunk@1382 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years ago - Fix sync problems associated with sample rate conversion - the truncation error...
van [Sun, 6 Apr 2008 22:28:22 +0000 (22:28 +0000)]
 - Fix sync problems associated with sample rate conversion - the truncation error of the sample rate ratio would build up over time until the audio substantially lagged the video.
 - Don't feed audio through the sample rate converter if we don't have to - it's faster not to & it can introduce a delay that perturbs a/v sync.

git-svn-id: svn://localhost/HandBrake/trunk@1381 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Fri, 4 Apr 2008 21:13:59 +0000 (21:13 +0000)]
WinGui:
- Automatically select the longest title after a scan has completed.

git-svn-id: svn://localhost/HandBrake/trunk@1380 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Fri, 4 Apr 2008 18:31:07 +0000 (18:31 +0000)]
WinGui:
- UI consistency issues caused by last UI update, now sorted. All windows follow the same style aspects.

git-svn-id: svn://localhost/HandBrake/trunk@1379 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Fri, 4 Apr 2008 18:11:39 +0000 (18:11 +0000)]
WinGui:
- Just a very quick cleanup of frmMain.cs

git-svn-id: svn://localhost/HandBrake/trunk@1378 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMinor chapter cleanups.
van [Fri, 4 Apr 2008 16:49:33 +0000 (16:49 +0000)]
Minor chapter cleanups.
 - put chapter number in buf rather than a 'new chapter' flag.
 - use that chapter number to index chapter text in muxers so a dropped chapter doesn't make all subsequent chapter labeling wrong.
 - get rid of most of the chapter logging & just output one line giving the chapter text, number, frame & time.
 - fix a bug in sync that could cause chapter marks to be lost.

git-svn-id: svn://localhost/HandBrake/trunk@1377 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Fri, 4 Apr 2008 16:10:53 +0000 (16:10 +0000)]
WinGui:
- Small Fix to the cropping dropdown code.

git-svn-id: svn://localhost/HandBrake/trunk@1376 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years ago- New Audio Panel (Query Parser, Query Generator, Preset Loader Functions all updated)
sr55 [Fri, 4 Apr 2008 16:09:04 +0000 (16:09 +0000)]
- New Audio Panel (Query Parser, Query Generator, Preset Loader Functions all updated)
  This includes minor changes to the UI (e.g in the 'Output Settings' box)
- UI Improvments for Windows Vista and XP where non Classic theme is used.
- Activity Window can now view the log whilst an encode is going. (Doesn't live update... yet TODO!)
- Changed Radio File/Folder option for Source Browse to a single checkbox. Folder view by default.
  Check "File mode" for file selection dialog.
- Misc other UI changes
- Update checker won't display an error message during statup if one occurs whilst checking the update.
  The message was hidden behind the splash screen. This is now not a problem.

git-svn-id: svn://localhost/HandBrake/trunk@1375 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoCli: If the user specifies more audio codecs than audio tracks, make a copy of the...
jbrjake [Fri, 4 Apr 2008 14:58:10 +0000 (14:58 +0000)]
Cli: If the user specifies more audio codecs than audio tracks, make a copy of the last track specified for each additional output codec.

git-svn-id: svn://localhost/HandBrake/trunk@1374 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWindows line endings are bad.
jbrjake [Thu, 3 Apr 2008 23:13:35 +0000 (23:13 +0000)]
Windows line endings are bad.

git-svn-id: svn://localhost/HandBrake/trunk@1373 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years ago - hardware players don't tolerate video or audio frames that overlap in time & some...
van [Thu, 3 Apr 2008 04:40:30 +0000 (04:40 +0000)]
 - hardware players don't tolerate video or audio frames that overlap in time & some dvd mastering techniques take advantage of this. Get rid of fudge factors so we drop all such frames otherwise they screw up our a/v sync.
 - fix video timing 'off by one': since we look one frame ahead time has to actually advance on the next video frame. time that stays the same guarantees a one frame overlap which really messes up mp4 durations.

git-svn-id: svn://localhost/HandBrake/trunk@1372 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoCLI: Update fix AppleTV preset audio.
saintdev [Thu, 3 Apr 2008 01:30:31 +0000 (01:30 +0000)]
CLI: Update fix AppleTV preset audio.
Accidently hard-coded it to first audio track. Also, you had to specify both audio tracks.
Now it only needs one specified and will use that for both.
Also, update the --preset-list

git-svn-id: svn://localhost/HandBrake/trunk@1371 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoscan and pcm audio fixes.
van [Wed, 2 Apr 2008 17:55:48 +0000 (17:55 +0000)]
scan and pcm audio fixes.
 - lpcm audio fixed to handle 24 bit & interpret header correctly.
 - get aspect ratio from libmpeg2 rather than doing it ourselves.
 - announce when aspect ratio changes during preview scan.
 - if aspect ratio isn't either 4:3 or 16:9 complain & map to either 4:3 or 16:9 (whichever is closest).
 - start stream previews from file position 0 rather than 1/11 in case there's only on mpeg sequence header in the file.
 - don't give up on a file just because we can't get a preview due to a missing sequence header - only give up if we can't get any previews.
 - get audio bitstream characteristics during preview in a uniform way (we were treating PCM & MPEG audio specially which resulted in not getting their sample rate which caused a divide by zero in sync).

git-svn-id: svn://localhost/HandBrake/trunk@1370 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Fix issue where a new encode would retain one audio track from the previous...
dynaflash [Wed, 2 Apr 2008 17:21:57 +0000 (17:21 +0000)]
MacGui: Fix issue where a new encode would retain one audio track from the previous encode if there was one. Bug introduced in rev 1367.

git-svn-id: svn://localhost/HandBrake/trunk@1369 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Fix audio issue where both tracks would use the first source audio track...
dynaflash [Wed, 2 Apr 2008 04:42:08 +0000 (04:42 +0000)]
MacGui: Fix audio issue where both tracks would use the first source audio track regardless of what source track was chosen. Bug introduced in rev 1367

git-svn-id: svn://localhost/HandBrake/trunk@1368 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGUI: Update to use the new audio layout.
saintdev [Tue, 1 Apr 2008 21:29:38 +0000 (21:29 +0000)]
MacGUI: Update to use the new audio layout.
This only updates the current interface, nothing new added.

git-svn-id: svn://localhost/HandBrake/trunk@1367 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoCLI: "Fun with string theory." Updates needed for new audio layout.
saintdev [Tue, 1 Apr 2008 21:26:00 +0000 (21:26 +0000)]
CLI: "Fun with string theory." Updates needed for new audio layout.
--audios takes a comma seperated list (or range) of the requested output tracks.
The other audio settings take either one argument, in which case it applies across
all tracks, or a comma seperated list that applies to each track.

git-svn-id: svn://localhost/HandBrake/trunk@1366 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoNew internal audio handling.
saintdev [Tue, 1 Apr 2008 21:25:54 +0000 (21:25 +0000)]
New internal audio handling.
Each audio track contains it's own settings for codec, bitrate, samplerate, etc.
This allows for very complex combinations of audio tracks if desired.

git-svn-id: svn://localhost/HandBrake/trunk@1365 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoFix up libs for building qt4 gui.
saintdev [Sun, 23 Mar 2008 23:54:40 +0000 (23:54 +0000)]
Fix up libs for building qt4 gui.

git-svn-id: svn://localhost/HandBrake/trunk@1364 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoFix theora linking when using make.
saintdev [Sun, 23 Mar 2008 23:54:37 +0000 (23:54 +0000)]
Fix theora linking when using make.

git-svn-id: svn://localhost/HandBrake/trunk@1363 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoFix Makefiles for dynamically linked dvdcss.
saintdev [Sun, 23 Mar 2008 23:54:33 +0000 (23:54 +0000)]
Fix Makefiles for dynamically linked dvdcss.
You can only build dynamically linked dvdcss with make.
If you want static dvdcss use jam.

git-svn-id: svn://localhost/HandBrake/trunk@1362 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoUpdate configure to allow dynamic linking on linux.
saintdev [Sun, 23 Mar 2008 23:54:21 +0000 (23:54 +0000)]
Update configure to allow dynamic linking on linux.

git-svn-id: svn://localhost/HandBrake/trunk@1361 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoCLI:
jbrjake [Sun, 23 Mar 2008 20:18:08 +0000 (20:18 +0000)]
CLI:
- If title->detected_interlacing is true, mention it in the non-verbose scan output
- Fixes a minor VFR bug that got the filter chain order wrong if other filters than detelecine were applied.

git-svn-id: svn://localhost/HandBrake/trunk@1360 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years ago= Adds an hb_detect_comb() function that indicates whether or not a frame shows inter...
jbrjake [Sun, 23 Mar 2008 19:53:39 +0000 (19:53 +0000)]
= Adds an hb_detect_comb() function that indicates whether or not a frame shows interlacing artifacts.
- Utilitizes that function in scan.c to analyze the preview frames
- Sets a new title->detected_interlacing variable to true if half or more previews show combing, and warns the user in the log.

git-svn-id: svn://localhost/HandBrake/trunk@1359 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMake the configure script argument tests work everywhere
superdump [Sat, 22 Mar 2008 19:22:24 +0000 (19:22 +0000)]
Make the configure script argument tests work everywhere

git-svn-id: svn://localhost/HandBrake/trunk@1358 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoRemoves deprecated x264 modes (b13 and b30) from the CLI's help output.
jbrjake [Sat, 22 Mar 2008 14:36:29 +0000 (14:36 +0000)]
Removes deprecated x264 modes (b13 and b30) from the CLI's help output.

git-svn-id: svn://localhost/HandBrake/trunk@1357 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMakes snapshots the default build method for both make and jam. To build a regular...
jbrjake [Sat, 22 Mar 2008 14:33:09 +0000 (14:33 +0000)]
Makes snapshots the default build method for both make and jam. To build a regular release with jam, use "./configure --release". To build a regular release with make, use "make all".

git-svn-id: svn://localhost/HandBrake/trunk@1356 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoxvid:
sr55 [Sat, 22 Mar 2008 00:39:29 +0000 (00:39 +0000)]
xvid:
- Updates the xvid nasm patch so that xvid correctly uses CPU optimizations under cygwin.

git-svn-id: svn://localhost/HandBrake/trunk@1355 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years ago"If one would give me six lines written by the hand of the most honest man, I would...
jbrjake [Sat, 22 Mar 2008 00:16:22 +0000 (00:16 +0000)]
"If one would give me six lines written by the hand of the most honest man, I would find something in them to have him hanged."

- Banishes libdvdcss, removing DVD decryption from HandBrake's binaries.
- For decrypttion, the MacGui and Mac CLI now will load at runtime VLC's dynamic library of dvdcss if the media player's available on the user's system.
- Linux users can build with a statically linked lib of dvdcss by using ./configure --libdvdcss, which will download it from a remote third party (videolan.org).

git-svn-id: svn://localhost/HandBrake/trunk@1354 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agolibswscale accurate rounding is now re-enabled for all arches except x86_64.
saintdev [Fri, 21 Mar 2008 03:06:02 +0000 (03:06 +0000)]
libswscale accurate rounding is now re-enabled for all arches except x86_64.

git-svn-id: svn://localhost/HandBrake/trunk@1353 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoReverts r1254, so ffmpeg-in-avi again reports as DivX 5. Giving it the "correct"...
jbrjake [Thu, 20 Mar 2008 16:27:20 +0000 (16:27 +0000)]
Reverts r1254, so ffmpeg-in-avi again reports as DivX 5. Giving it the "correct" codes was a problem for lame Windows media players and didn't help the CrackBerry user who requested it. Moral of the story? Greet user requests with skepticism.

git-svn-id: svn://localhost/HandBrake/trunk@1352 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoFix two of my stupid bugs that prevented using the queue with transport streams:
van [Thu, 20 Mar 2008 05:28:36 +0000 (05:28 +0000)]
Fix two of my stupid bugs that prevented using the queue with transport streams:
 - keep a cache of the pid/substream id mappings from each scan rather than assuming an encode will immediately follow a scan (there will be lots of scans followed by lots of encodes when the queue is used).
 - rewrite a few things to get rid of static variables. hb_ts_stream_decode is called by both scan & reader and they're in different threads. All the working storage & state has to either be in the stream struct or on the stack so it's private to the calling thread or it gets corrupted when doing a scan in the middle of an encode.

git-svn-id: svn://localhost/HandBrake/trunk@1351 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoTheora.
saintdev [Thu, 20 Mar 2008 02:40:02 +0000 (02:40 +0000)]
Theora.
This adds the theora encoder to the Xcode project as well. It does not enable
anything in the Mac GUI, just allows it to build.

git-svn-id: svn://localhost/HandBrake/trunk@1350 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Wed, 19 Mar 2008 22:06:07 +0000 (22:06 +0000)]
WinGui:
- Fixed a bug in the startup init sequence. H264 window needed to be generated before the presets were init'd.
- Setup the tab markers for the h264 tab

git-svn-id: svn://localhost/HandBrake/trunk@1349 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Wed, 19 Mar 2008 21:30:15 +0000 (21:30 +0000)]
WinGui:
- Fixed some text label alignment issues around the cropping boxes

git-svn-id: svn://localhost/HandBrake/trunk@1348 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Wed, 19 Mar 2008 21:29:22 +0000 (21:29 +0000)]
WinGui:
- The x264 tab has been replaced by a completely new panel with widgets for many of the available x264 options. It operates in a similar way to the macgui's panel. (It however will not disable widgets based on selections on other widgets yet(like the macgui does) this will come later when the bugs have been worked out.

git-svn-id: svn://localhost/HandBrake/trunk@1347 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years ago- Method for generating snapshot builds marked with the svn revision by using ./confi...
jbrjake [Wed, 19 Mar 2008 18:34:36 +0000 (18:34 +0000)]
- Method for generating snapshot builds marked with the svn revision by using ./configure --snapshot; ./jam
- Targets for generating snapshot Mac universal binaries by using make snapshot and packaging Mac snapshot releases
- Sets the current date for HB_BUILD in jam
- Sets the Mac .plist version and build based on the jam/make config
- Bumps the version number to 0.9.3

git-svn-id: svn://localhost/HandBrake/trunk@1346 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Tue, 18 Mar 2008 16:35:28 +0000 (16:35 +0000)]
WinGui:
- Few bug fixes in the preset system
- File > open is now Import preset. Loads in old presets into the preset bar.

git-svn-id: svn://localhost/HandBrake/trunk@1345 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Write version info the the activity log and activity window
dynaflash [Mon, 17 Mar 2008 15:09:39 +0000 (15:09 +0000)]
MacGui: Write version info the the activity log and activity window
- writes the Handbrake version number and build number to the activity window and log text file upon startup (this no longer occured out of libhb once we updated the update system to Sparkle)
- Add writing the version info upon clearing of either the log file or the window, this way we have version info from users even if they have cleared the top of the logs.

git-svn-id: svn://localhost/HandBrake/trunk@1344 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Sun, 16 Mar 2008 16:50:29 +0000 (16:50 +0000)]
WinGui:
- When selecting a destination, The audio encoder selection dropdown now repopulates with only compatible encoders (based on file container)
- Misc other changes

git-svn-id: svn://localhost/HandBrake/trunk@1343 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoShould have removed this as part of the r1341 checkin - we now add silence based...
van [Sun, 16 Mar 2008 06:13:33 +0000 (06:13 +0000)]
Should have removed this as part of the r1341 checkin - we now add silence based only on gaps in the timestamp sequence. The heuristic of looking at what fifos are full or empty can misbehave based on random variation in the thread scheduling.

git-svn-id: svn://localhost/HandBrake/trunk@1342 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years ago- Add mpeg2 "Standard Target Decoder" clock recovery to the low level mpeg stream...
van [Sat, 15 Mar 2008 08:02:08 +0000 (08:02 +0000)]
- Add mpeg2 "Standard Target Decoder" clock recovery to the low level mpeg stream reader so we don't have to guess about the clock in sync.
- Since sync now has a fairly reliable clock, make it just trim excess audio or video and fill holes so that we maintain cross media sync.
- Redo the TS-to-PS transmuxing code to work on smaller units so that we can reliably convert the TS clock (PCR) to a PS clock (SCR).

git-svn-id: svn://localhost/HandBrake/trunk@1341 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agominor bug fix: AC3 passthru audio frames with no pts were getting a bogus start and...
van [Sat, 15 Mar 2008 07:54:22 +0000 (07:54 +0000)]
minor bug fix: AC3 passthru audio frames with no pts were getting a bogus start and stop time which caused bad things to happen later on in sync.c. Move up the code that generates a pts for non-passthru frames so that it applies to both.

git-svn-id: svn://localhost/HandBrake/trunk@1340 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoUse unix-style line endings (LF) for libhb/Makefile instead of Windows style (CRLF).
saintdev [Sat, 15 Mar 2008 02:04:55 +0000 (02:04 +0000)]
Use unix-style line endings (LF) for libhb/Makefile instead of Windows style (CRLF).

git-svn-id: svn://localhost/HandBrake/trunk@1339 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Fri, 14 Mar 2008 19:47:17 +0000 (19:47 +0000)]
WinGui:
- Users can now have their own presets appear in the presets bar. They can both add and remove their own presets.
- Anamorphic option is now a dropdown menu like the macgui.
- Video tab re-arrange  to be consistant with the macgui.
- Video Framerate dropdown: Changed Automatic to Same as soure (same as the macgui)

git-svn-id: svn://localhost/HandBrake/trunk@1338 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Fri, 14 Mar 2008 15:52:04 +0000 (15:52 +0000)]
WinGui:
- Added warning about UNC file paths
- Removed the generate presets.dat function on start-up. (It wasn't really needed)
- Changed a few tooltips
- Switched back to .Net version 2

git-svn-id: svn://localhost/HandBrake/trunk@1337 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: When selecting one x264 option disables another (like turning off CABAC disab...
jbrjake [Wed, 12 Mar 2008 17:31:39 +0000 (17:31 +0000)]
MacGui: When selecting one x264 option disables another (like turning off CABAC disables trellis), remove the disabled option from the string and fade the widget out of view with an animation proxy.

git-svn-id: svn://localhost/HandBrake/trunk@1336 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Clean up some formatting and errant comments left over from some of the snipp...
dynaflash [Fri, 7 Mar 2008 20:05:46 +0000 (20:05 +0000)]
MacGui: Clean up some formatting and errant comments left over from some of the snippets I robbed out of HBQueueController on the drag and drop preset commit. :)

git-svn-id: svn://localhost/HandBrake/trunk@1335 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Initial implementation of drag and drop in the presets drawer.
dynaflash [Fri, 7 Mar 2008 19:43:17 +0000 (19:43 +0000)]
MacGui: Initial implementation of drag and drop in the presets drawer.
- Allows drag and drop arrangement of custom user presets
- Does not allow reordering of built in presets.
- Sorting of presets now done only by type ie. built in and custom user.
- Provides functionality for future nested presets and drag and drop arranging.
- Subclasses the presets outline view for better control over drag and drop behavior

git-svn-id: svn://localhost/HandBrake/trunk@1334 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoApplies Dark_Shikari's Variable Adaptive Quantization patch v0.48 to libhb's copy...
jbrjake [Fri, 7 Mar 2008 15:28:52 +0000 (15:28 +0000)]
Applies Dark_Shikari's Variable Adaptive Quantization patch v0.48 to libhb's copy of libx264. This major change to x264 drastically reduces blockiness on flat parts of the picture as well as blurring. It is on by default; to disable it, add "aq-strength=0" to your x264 options string. For now, it's only applied to jam builds. Make will come later.

git-svn-id: svn://localhost/HandBrake/trunk@1333 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWinGui:
sr55 [Fri, 7 Mar 2008 00:07:31 +0000 (00:07 +0000)]
WinGui:
- Fixed small localization issue in the query parser in regard to -q option.
- Changed update checker so if it fails on the startup update scan, it'll fail silently instead of displaying an error message behind the startup screen.

git-svn-id: svn://localhost/HandBrake/trunk@1332 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Presets - change the cursor highlighted color of the preset name to black...
dynaflash [Thu, 6 Mar 2008 15:04:31 +0000 (15:04 +0000)]
MacGui: Presets - change the cursor highlighted color of the preset name to black, so when changing the name, you can see the letters. The old white made it almost impossible.... duh!

git-svn-id: svn://localhost/HandBrake/trunk@1331 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Fix issue where renaming a preset does not reflect the new name immediately...
dynaflash [Thu, 6 Mar 2008 14:56:32 +0000 (14:56 +0000)]
MacGui: Fix issue where renaming a preset does not reflect the new name immediately in the preset drawer
- call [fPresetsOutlineView reloadData];
- use "-sortPresets" method instead of sorting it in its own method

git-svn-id: svn://localhost/HandBrake/trunk@1330 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: move the presets sorting into a new method "-sortPresets" so it can be done...
dynaflash [Thu, 6 Mar 2008 13:57:37 +0000 (13:57 +0000)]
MacGui: move the presets sorting into a new method "-sortPresets" so it can be done independently of adding a preset in preparation for drag and drop preset arranging capability.

git-svn-id: svn://localhost/HandBrake/trunk@1329 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Increase the preset drawer max width and content view width by 60 px. This...
dynaflash [Thu, 6 Mar 2008 13:53:15 +0000 (13:53 +0000)]
MacGui: Increase the preset drawer max width and content view width by 60 px. This still leaves us 1024 width compatible and allows more room for longer preset names, vertical scroller as well as the disclosure triangles for nested presets.

git-svn-id: svn://localhost/HandBrake/trunk@1328 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoMacGui: Fix issue where prepareJob was not sensing MKV in the Format popup correctly.
dynaflash [Wed, 5 Mar 2008 14:29:45 +0000 (14:29 +0000)]
MacGui: Fix issue where prepareJob was not sensing MKV in the Format popup correctly.
- Takes care of the no mkv chapter issues reported here: http://forum.handbrake.fr/viewtopic.php?f=12&t=5120
- Thanks for the diagnostic testing and bringing it to our attention simoncoul !

git-svn-id: svn://localhost/HandBrake/trunk@1327 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoencx264: Fix timecodes when using x264 with avi.
saintdev [Wed, 5 Mar 2008 00:29:09 +0000 (00:29 +0000)]
encx264: Fix timecodes when using x264 with avi.

git-svn-id: svn://localhost/HandBrake/trunk@1326 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoDVB teletext streams and ATSC AC3 audio streams use the same code points. If we miscl...
van [Sun, 2 Mar 2008 09:18:19 +0000 (09:18 +0000)]
DVB teletext streams and ATSC AC3 audio streams use the same code points. If we misclassify teletext as audio we'll die early in the encode while trying to find an AC3 sync frame. So, if we don't find a sync frame after searching a megabyte of the stream decide it's not AC3, delete the audio entry & keep going.
Problem & test case from ncbp http://forum.handbrake.fr/viewtopic.php?p=29137#p29137.

git-svn-id: svn://localhost/HandBrake/trunk@1325 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoDon't crash just because some dvd title uses an illegal pgn number.
van [Sun, 2 Mar 2008 05:15:56 +0000 (05:15 +0000)]
Don't crash just because some dvd title uses an illegal pgn number.
(Fixes bug reported in http://forum.handbrake.fr/viewtopic.php?p=28767&sid=23308d0c02b70fceb54db71b0d0f2660#p28767).

git-svn-id: svn://localhost/HandBrake/trunk@1324 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoOops - left in a mistake from an intermediate version. We want aspect ratio from...
van [Sat, 1 Mar 2008 20:19:20 +0000 (20:19 +0000)]
Oops - left in a mistake from an intermediate version. We want aspect ratio from all previews but crop from only frame two (otherwise we'll crop down to nothing if there's a preview with a lot of black).

git-svn-id: svn://localhost/HandBrake/trunk@1323 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoDon't crash while scanning when we can't get previews for some title.
van [Fri, 29 Feb 2008 18:33:45 +0000 (18:33 +0000)]
Don't crash while scanning when we can't get previews for some title.
 - if we get no previews for some title, ignore the title
 - use the most common aspect ratio found from our 10 previews rather than just the aspect of preview 2 (otherwise we'll crash in hb_fix_aspect if we don't get preview 2).
 - check parameters in hb_fix_aspect so we don't divide by zero.

git-svn-id: svn://localhost/HandBrake/trunk@1322 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoIt's a good idea to have a buffer for every pid you decide to decode.
van [Fri, 29 Feb 2008 18:24:46 +0000 (18:24 +0000)]
It's a good idea to have a buffer for every pid you decide to decode.
Max buffers was 1/4 max streams. This makes it same as max streams.
(Fixes crash reported by ncbp at http://forum.handbrake.fr/viewtopic.php?p=28899&sid=0c89bb9c9aed7eee51c294f25ac61e99#p28899)

git-svn-id: svn://localhost/HandBrake/trunk@1321 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoUpdate Gabriel B's x264 vbv 2 pass patch to latest (Feb 26) found here http://article...
dynaflash [Wed, 27 Feb 2008 16:57:30 +0000 (16:57 +0000)]
Update Gabriel B's x264 vbv 2 pass patch to latest (Feb 26) found here article.gmane.org/gmane.comp.video.x264.devel/3550

git-svn-id: svn://localhost/HandBrake/trunk@1320 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoAdds Dark_Shikari's vbv 1 pass patch for x264
dynaflash [Wed, 27 Feb 2008 16:32:15 +0000 (16:32 +0000)]
Adds Dark_Shikari's vbv 1 pass patch for x264
- While not optimal by any means according to Dark_Shikari over at x264, it definitely seems to help with the borked I frames we have been seeing using vbv 1 pass over x264 standard vbv.
- Rumors are that a more comprehensive fix is in the works for x264. But who wants to hold their breath. HB presets rely on vbv too much to have squashed I frames in the meantime.

git-svn-id: svn://localhost/HandBrake/trunk@1319 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agolibvorbis expects kbps, not bps.
saintdev [Wed, 27 Feb 2008 04:24:51 +0000 (04:24 +0000)]
libvorbis expects kbps, not bps.

git-svn-id: svn://localhost/HandBrake/trunk@1318 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoSet an minimum subtitle display time of three seconds *or* until the next subtitle...
eddyg [Tue, 26 Feb 2008 00:51:49 +0000 (00:51 +0000)]
Set an minimum subtitle display time of three seconds *or* until the next subtitle is displayed. This makes subtitles easier to read for the slow readers or for the DVD authors why display the subtitles for too short a period (e.g. only display the subtitles during the talking in a fast speaking tongue).

git-svn-id: svn://localhost/HandBrake/trunk@1317 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoDon't allow negative durations. These shouldn't happen but occasionally do due to...
van [Mon, 25 Feb 2008 06:39:42 +0000 (06:39 +0000)]
Don't allow negative durations. These shouldn't happen but occasionally do due to upstream bugs. Replace them with a small positive duration so the mp4 file will be playable.

git-svn-id: svn://localhost/HandBrake/trunk@1316 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 years agoWork-around for xvid crash - dct coeff tables are being loaded with SSE 'load aligned...
van [Mon, 25 Feb 2008 06:35:41 +0000 (06:35 +0000)]
Work-around for xvid crash - dct coeff tables are being loaded with SSE 'load aligned' instructions which require 16-byte alignment but either nasm or the loader is ignoring the .rodata section alignment request. Since .rodata is in the text section which is correctly aligned, pad the text section so it's 16-byte aligned which will cause the following data to be correctly aligned.

git-svn-id: svn://localhost/HandBrake/trunk@1315 b64f7644-9d1e-0410-96f1-a4d463321fa5