diff options
author | jstebbins <[email protected]> | 2013-06-30 20:44:21 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2013-06-30 20:44:21 +0000 |
commit | ba3674603258b9bd9662af2b8f2225f9e9395ca1 (patch) | |
tree | 69cf3e5d77d21f07a57554ae5d1dd2bfa78e7f8b /macosx | |
parent | d6fcba15d04322d3b6495cae70b813be5c3243b4 (diff) |
libhb: add experimental avformat muxer for mkv and mp4
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5620 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/Controller.m | 7 | ||||
-rw-r--r-- | macosx/HandBrake.xcodeproj/project.pbxproj | 12 | ||||
-rw-r--r-- | macosx/module.defs | 8 |
3 files changed, 12 insertions, 15 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index d5dd32bff..f5b9d7741 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -4894,8 +4894,8 @@ bool one_burned = FALSE; //[self calculateBitrate: sender]; /* We're changing the chapter range - we may need to flip the m4v/mp4 extension */ - if ([fDstFormatPopUp indexOfSelectedItem] == 0) - [self autoSetM4vExtension: sender]; + if ([[fDstFormatPopUp selectedItem] tag] & HB_MUX_MASK_MP4) + [self autoSetM4vExtension:sender]; } - (IBAction) startEndSecValueChanged: (id) sender @@ -5008,6 +5008,7 @@ bool one_burned = FALSE; { case HB_MUX_MP4V2: [fDstMp4LargeFileCheck setHidden:NO]; + case HB_MUX_AV_MP4: [fDstMp4HttpOptFileCheck setHidden:NO]; [fDstMp4iPodFileCheck setHidden:NO]; break; @@ -5051,7 +5052,7 @@ bool one_burned = FALSE; - (IBAction) autoSetM4vExtension: (id) sender { - if ( [fDstFormatPopUp indexOfSelectedItem] ) + if (!([[fDstFormatPopUp selectedItem] tag] & HB_MUX_MASK_MP4)) return; NSString * extension = @"mp4"; diff --git a/macosx/HandBrake.xcodeproj/project.pbxproj b/macosx/HandBrake.xcodeproj/project.pbxproj index 6762c87e8..9cdb5465f 100644 --- a/macosx/HandBrake.xcodeproj/project.pbxproj +++ b/macosx/HandBrake.xcodeproj/project.pbxproj @@ -98,12 +98,8 @@ 27D6C75814B102DA00B785E4 /* libfreetype.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73214B102DA00B785E4 /* libfreetype.a */; }; 27D6C75914B102DA00B785E4 /* libfribidi.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73314B102DA00B785E4 /* libfribidi.a */; }; 27D6C75A14B102DA00B785E4 /* libfribidi.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73314B102DA00B785E4 /* libfribidi.a */; }; - 27D6C75B14B102DA00B785E4 /* libmkv.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73414B102DA00B785E4 /* libmkv.a */; }; - 27D6C75C14B102DA00B785E4 /* libmkv.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73414B102DA00B785E4 /* libmkv.a */; }; 27D6C75E14B102DA00B785E4 /* libmp3lame.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73614B102DA00B785E4 /* libmp3lame.a */; }; 27D6C75F14B102DA00B785E4 /* libmp3lame.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73614B102DA00B785E4 /* libmp3lame.a */; }; - 27D6C76014B102DA00B785E4 /* libmp4v2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73714B102DA00B785E4 /* libmp4v2.a */; }; - 27D6C76114B102DA00B785E4 /* libmp4v2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73714B102DA00B785E4 /* libmp4v2.a */; }; 27D6C76214B102DA00B785E4 /* libmpeg2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73814B102DA00B785E4 /* libmpeg2.a */; }; 27D6C76314B102DA00B785E4 /* libmpeg2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73814B102DA00B785E4 /* libmpeg2.a */; }; 27D6C76414B102DA00B785E4 /* libogg.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D6C73914B102DA00B785E4 /* libogg.a */; }; @@ -295,9 +291,7 @@ 27D6C73114B102DA00B785E4 /* libfontconfig.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libfontconfig.a; path = external/contrib/lib/libfontconfig.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27D6C73214B102DA00B785E4 /* libfreetype.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libfreetype.a; path = external/contrib/lib/libfreetype.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27D6C73314B102DA00B785E4 /* libfribidi.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libfribidi.a; path = external/contrib/lib/libfribidi.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 27D6C73414B102DA00B785E4 /* libmkv.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libmkv.a; path = external/contrib/lib/libmkv.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27D6C73614B102DA00B785E4 /* libmp3lame.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libmp3lame.a; path = external/contrib/lib/libmp3lame.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 27D6C73714B102DA00B785E4 /* libmp4v2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libmp4v2.a; path = external/contrib/lib/libmp4v2.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27D6C73814B102DA00B785E4 /* libmpeg2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libmpeg2.a; path = external/contrib/lib/libmpeg2.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27D6C73914B102DA00B785E4 /* libogg.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libogg.a; path = external/contrib/lib/libogg.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27D6C73A14B102DA00B785E4 /* libsamplerate.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libsamplerate.a; path = external/contrib/lib/libsamplerate.a; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -368,9 +362,7 @@ 27D6C75614B102DA00B785E4 /* libfontconfig.a in Frameworks */, 27D6C75814B102DA00B785E4 /* libfreetype.a in Frameworks */, 27D6C75A14B102DA00B785E4 /* libfribidi.a in Frameworks */, - 27D6C75C14B102DA00B785E4 /* libmkv.a in Frameworks */, 27D6C75F14B102DA00B785E4 /* libmp3lame.a in Frameworks */, - 27D6C76114B102DA00B785E4 /* libmp4v2.a in Frameworks */, 27D6C76314B102DA00B785E4 /* libmpeg2.a in Frameworks */, 27D6C76514B102DA00B785E4 /* libogg.a in Frameworks */, 27D6C76714B102DA00B785E4 /* libsamplerate.a in Frameworks */, @@ -410,9 +402,7 @@ 27D6C75514B102DA00B785E4 /* libfontconfig.a in Frameworks */, 27D6C75714B102DA00B785E4 /* libfreetype.a in Frameworks */, 27D6C75914B102DA00B785E4 /* libfribidi.a in Frameworks */, - 27D6C75B14B102DA00B785E4 /* libmkv.a in Frameworks */, 27D6C75E14B102DA00B785E4 /* libmp3lame.a in Frameworks */, - 27D6C76014B102DA00B785E4 /* libmp4v2.a in Frameworks */, 27D6C76214B102DA00B785E4 /* libmpeg2.a in Frameworks */, 27D6C76414B102DA00B785E4 /* libogg.a in Frameworks */, 27D6C76614B102DA00B785E4 /* libsamplerate.a in Frameworks */, @@ -444,9 +434,7 @@ 27D6C73114B102DA00B785E4 /* libfontconfig.a */, 27D6C73214B102DA00B785E4 /* libfreetype.a */, 27D6C73314B102DA00B785E4 /* libfribidi.a */, - 27D6C73414B102DA00B785E4 /* libmkv.a */, 27D6C73614B102DA00B785E4 /* libmp3lame.a */, - 27D6C73714B102DA00B785E4 /* libmp4v2.a */, 27D6C73814B102DA00B785E4 /* libmpeg2.a */, 27D6C73914B102DA00B785E4 /* libogg.a */, 27D6C73A14B102DA00B785E4 /* libsamplerate.a */, diff --git a/macosx/module.defs b/macosx/module.defs index 1a2b6f81d..5d22164f6 100644 --- a/macosx/module.defs +++ b/macosx/module.defs @@ -32,6 +32,14 @@ endif ifeq (1,$(FEATURE.faac)) extra_libs += $(abspath $(BUILD))/contrib/lib/libfaac.a endif + +ifeq (1,$(FEATURE.mp4v2)) + extra_libs += $(abspath $(BUILD))/contrib/lib/libmp4v2.a +endif + +ifeq (1,$(FEATURE.libmkv)) + extra_libs += $(abspath $(BUILD))/contrib/lib/libmkv.a +endif MACOSX.extra_ldflags = OTHER_LDFLAGS='$(extra_libs)' ## xcconfig: must be one of macosx/xcconfig/*.xcconfig |