summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-01-25 19:13:54 +0000
committersr55 <[email protected]>2015-01-25 19:13:54 +0000
commitcaed9f1d774a7f64ff0e71f247cd19ce7e3f6b89 (patch)
tree1e687c7993c0367d79ef8d3d8ed94e99ac104802 /win/CS/HandBrakeWPF
parent7e55e64f9478bf0cc5b4f05516936e019a3c3812 (diff)
WinGui:
- Change the internal presets.dat file which stores built-in presets to JSON. - Starting to remove the CLI handling code. - Some assembly info updates. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6812 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r--win/CS/HandBrakeWPF/Presets.dat1656
-rw-r--r--win/CS/HandBrakeWPF/Properties/AssemblyInfo.cs2
-rw-r--r--win/CS/HandBrakeWPF/Properties/AssemblyInfo.cs.tmpl2
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/PresetService.cs69
4 files changed, 1654 insertions, 75 deletions
diff --git a/win/CS/HandBrakeWPF/Presets.dat b/win/CS/HandBrakeWPF/Presets.dat
index 0edf6b02f..9ecb25fa9 100644
--- a/win/CS/HandBrakeWPF/Presets.dat
+++ b/win/CS/HandBrakeWPF/Presets.dat
@@ -1,31 +1,1625 @@
-< Devices
-
- + Universal: -e x264 -q 20.0 -r 30 --pfr -a 1,1 -E ffaac,copy:ac3 -B 160,160 -6 dpl2,none -R Auto,Auto -D 0.0,0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -X 720 -Y 576 --loose-anamorphic --modulus 2 -m --encoder-preset fast --encoder-profile baseline --encoder-level 3.0
-
- + iPod: -e x264 -q 22.0 -r 30 --pfr -a 1 -E ffaac -B 160 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -I -X 320 -Y 240 --modulus 2 -m --encoder-preset medium --encoder-profile baseline --encoder-level 1.3
-
- + iPhone & iPod touch: -e x264 -q 22.0 -r 30 --pfr -a 1 -E ffaac -B 160 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -4 -X 960 -Y 640 --loose-anamorphic --modulus 2 -m --encoder-preset medium --encoder-profile high --encoder-level 3.1
-
- + iPad: -e x264 -q 20.0 -r 30 --pfr -a 1 -E ffaac -B 160 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -4 -X 1280 -Y 720 --loose-anamorphic --modulus 2 -m --encoder-preset medium --encoder-profile high --encoder-level 3.1
-
- + AppleTV: -e x264 -q 20.0 -r 30 --pfr -a 1,1 -E ffaac,copy:ac3 -B 160,160 -6 dpl2,none -R Auto,Auto -D 0.0,0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -4 -X 960 -Y 720 --loose-anamorphic --modulus 2 -m --encoder-preset medium --encoder-profile high --encoder-level 3.1 -x qpmin=4:cabac=0:ref=2:b-pyramid=none:weightb=0:weightp=0:vbv-maxrate=9500:vbv-bufsize=9500
-
- + AppleTV 2: -e x264 -q 20.0 -r 30 --pfr -a 1,1 -E ffaac,copy:ac3 -B 160,160 -6 dpl2,none -R Auto,Auto -D 0.0,0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -4 -X 1280 -Y 720 --loose-anamorphic --modulus 2 -m --encoder-preset medium --encoder-profile high --encoder-level 3.1
-
- + AppleTV 3: -e x264 -q 20.0 -r 30 --pfr -a 1,1 -E ffaac,copy:ac3 -B 160,160 -6 dpl2,none -R Auto,Auto -D 0.0,0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -4 -X 1920 -Y 1080 --decomb=fast --loose-anamorphic --modulus 2 -m --encoder-preset medium --encoder-profile high --encoder-level 4.0
-
- + Android: -e x264 -q 22.0 -r 30 --pfr -a 1 -E ffaac -B 128 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -X 720 -Y 576 --loose-anamorphic --modulus 2 --encoder-preset medium --encoder-profile main --encoder-level 3.0
-
- + Android Tablet: -e x264 -q 22.0 -r 30 --pfr -a 1 -E ffaac -B 128 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -X 1280 -Y 720 --loose-anamorphic --modulus 2 --encoder-preset medium --encoder-profile main --encoder-level 3.1
-
- + Windows Phone 8: -e x264 -q 22.0 -r 30 --pfr -a 1 -E ffaac -B 128 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -X 1280 -Y 720 --modulus 2 --encoder-preset medium --encoder-profile main --encoder-level 3.1
-
->
-
-< Regular
-
- + Normal: -e x264 -q 20.0 -a 1 -E ffaac -B 160 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 --loose-anamorphic --modulus 2 -m --encoder-preset veryfast --encoder-profile main --encoder-level 4.0
-
- + High Profile: -e x264 -q 20.0 -a 1,1 -E ffaac,copy:ac3 -B 160,160 -6 dpl2,none -R Auto,Auto -D 0.0,0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -4 --decomb --loose-anamorphic --modulus 2 -m --encoder-preset medium --encoder-profile high --encoder-level 4.1
-
-> \ No newline at end of file
+[
+ {
+ "Category": "Devices",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "Universal",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": 720,
+ "MaxHeight": 576,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 2,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 0,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 1,
+ "Quality": 20.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": 30.0,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "160",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ },
+ {
+ "AudioEncoderDisplayValue": "AC3 Passthru",
+ "AudioMixdownDisplayValue": "Automatic",
+ "BitRateDisplayValue": "Auto",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 6,
+ "Gain": 0,
+ "MixDown": 2,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": true,
+ "CannotSetBitrate": true,
+ "IsLossless": true,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": true,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "Baseline",
+ "ShortName": "baseline"
+ },
+ "VideoLevel": {
+ "DisplayName": "3.0",
+ "ShortName": "3.0"
+ },
+ "VideoPreset": {
+ "DisplayName": "Fast",
+ "ShortName": "fast"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": true,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Anamorphic: Loose, Width: \r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Devices",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "iPod",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": true,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": 320,
+ "MaxHeight": 240,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 0,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": true,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 0,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 1,
+ "Quality": 22.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": 30.0,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "160",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": true,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "Baseline",
+ "ShortName": "baseline"
+ },
+ "VideoLevel": {
+ "DisplayName": "1.3",
+ "ShortName": "1.3"
+ },
+ "VideoPreset": {
+ "DisplayName": "Medium",
+ "ShortName": "medium"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": false,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Resolution: x\r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Devices",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "iPhone & iPod touch",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": 960,
+ "MaxHeight": 640,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 2,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 0,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 1,
+ "Quality": 22.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": 30.0,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "160",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": true,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "High",
+ "ShortName": "high"
+ },
+ "VideoLevel": {
+ "DisplayName": "3.1",
+ "ShortName": "3.1"
+ },
+ "VideoPreset": {
+ "DisplayName": "Medium",
+ "ShortName": "medium"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": false,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Anamorphic: Loose, Width: \r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Devices",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "iPad",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": 1280,
+ "MaxHeight": 720,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 2,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 0,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 1,
+ "Quality": 20.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": 30.0,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "160",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": true,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "High",
+ "ShortName": "high"
+ },
+ "VideoLevel": {
+ "DisplayName": "3.1",
+ "ShortName": "3.1"
+ },
+ "VideoPreset": {
+ "DisplayName": "Medium",
+ "ShortName": "medium"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": false,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Anamorphic: Loose, Width: \r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Devices",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "AppleTV",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": 960,
+ "MaxHeight": 720,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 2,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 0,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 1,
+ "Quality": 20.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": 30.0,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "160",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ },
+ {
+ "AudioEncoderDisplayValue": "AC3 Passthru",
+ "AudioMixdownDisplayValue": "Automatic",
+ "BitRateDisplayValue": "Auto",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 6,
+ "Gain": 0,
+ "MixDown": 2,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": true,
+ "CannotSetBitrate": true,
+ "IsLossless": true,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": true,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": "qpmin=4:cabac=0:ref=2:b-pyramid=none:weightb=0:weightp=0:vbv-maxrate=9500:vbv-bufsize=9500",
+ "VideoProfile": {
+ "DisplayName": "High",
+ "ShortName": "high"
+ },
+ "VideoLevel": {
+ "DisplayName": "3.1",
+ "ShortName": "3.1"
+ },
+ "VideoPreset": {
+ "DisplayName": "Medium",
+ "ShortName": "medium"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": true,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Anamorphic: Loose, Width: \r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Devices",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "AppleTV 2",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": 1280,
+ "MaxHeight": 720,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 2,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 0,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 1,
+ "Quality": 20.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": 30.0,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "160",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ },
+ {
+ "AudioEncoderDisplayValue": "AC3 Passthru",
+ "AudioMixdownDisplayValue": "Automatic",
+ "BitRateDisplayValue": "Auto",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 6,
+ "Gain": 0,
+ "MixDown": 2,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": true,
+ "CannotSetBitrate": true,
+ "IsLossless": true,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": true,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "High",
+ "ShortName": "high"
+ },
+ "VideoLevel": {
+ "DisplayName": "3.1",
+ "ShortName": "3.1"
+ },
+ "VideoPreset": {
+ "DisplayName": "Medium",
+ "ShortName": "medium"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": true,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Anamorphic: Loose, Width: \r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Devices",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "AppleTV 3",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": 1920,
+ "MaxHeight": 1080,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 2,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 3,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 1,
+ "Quality": 20.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": 30.0,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "160",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ },
+ {
+ "AudioEncoderDisplayValue": "AC3 Passthru",
+ "AudioMixdownDisplayValue": "Automatic",
+ "BitRateDisplayValue": "Auto",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 6,
+ "Gain": 0,
+ "MixDown": 2,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": true,
+ "CannotSetBitrate": true,
+ "IsLossless": true,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": true,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "High",
+ "ShortName": "high"
+ },
+ "VideoLevel": {
+ "DisplayName": "4.0",
+ "ShortName": "4.0"
+ },
+ "VideoPreset": {
+ "DisplayName": "Medium",
+ "ShortName": "medium"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": true,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Anamorphic: Loose, Width: \r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Devices",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "Android",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": 720,
+ "MaxHeight": 576,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 2,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 0,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 1,
+ "Quality": 22.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": 30.0,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "128",
+ "Bitrate": 128,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": false,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "Main",
+ "ShortName": "main"
+ },
+ "VideoLevel": {
+ "DisplayName": "3.0",
+ "ShortName": "3.0"
+ },
+ "VideoPreset": {
+ "DisplayName": "Medium",
+ "ShortName": "medium"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": false,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Anamorphic: Loose, Width: \r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Devices",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "Android Tablet",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": 1280,
+ "MaxHeight": 720,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 2,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 0,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 1,
+ "Quality": 22.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": 30.0,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "128",
+ "Bitrate": 128,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": false,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "Main",
+ "ShortName": "main"
+ },
+ "VideoLevel": {
+ "DisplayName": "3.1",
+ "ShortName": "3.1"
+ },
+ "VideoPreset": {
+ "DisplayName": "Medium",
+ "ShortName": "medium"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": false,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Anamorphic: Loose, Width: \r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Devices",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "Windows Phone 8",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": 1280,
+ "MaxHeight": 720,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 0,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 0,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 1,
+ "Quality": 22.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": 30.0,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "128",
+ "Bitrate": 128,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": false,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "Main",
+ "ShortName": "main"
+ },
+ "VideoLevel": {
+ "DisplayName": "3.1",
+ "ShortName": "3.1"
+ },
+ "VideoPreset": {
+ "DisplayName": "Medium",
+ "ShortName": "medium"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": false,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Resolution: x\r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Regular",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": true,
+ "Name": "Normal",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": null,
+ "MaxHeight": null,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 2,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 0,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 2,
+ "Quality": 20.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": null,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "160",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": true,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "Main",
+ "ShortName": "main"
+ },
+ "VideoLevel": {
+ "DisplayName": "4.0",
+ "ShortName": "4.0"
+ },
+ "VideoPreset": {
+ "DisplayName": "Veryfast",
+ "ShortName": "veryfast"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": false,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Anamorphic: Loose, Width: \r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ },
+ {
+ "Category": "Regular",
+ "Description": "",
+ "IsBuildIn": true,
+ "IsDefault": false,
+ "Name": "High Profile",
+ "PictureSettingsMode": 0,
+ "UseDeinterlace": false,
+ "Task": {
+ "Source": null,
+ "Title": 0,
+ "Angle": 0,
+ "PointToPointMode": 0,
+ "StartPoint": 0,
+ "EndPoint": 0,
+ "Destination": null,
+ "OutputFormat": 0,
+ "OptimizeMP4": false,
+ "IPod5GSupport": false,
+ "Width": null,
+ "Height": null,
+ "MaxWidth": null,
+ "MaxHeight": null,
+ "Cropping": {
+ "Top": 0,
+ "Bottom": 0,
+ "Left": 0,
+ "Right": 0
+ },
+ "HasCropping": false,
+ "Anamorphic": 2,
+ "DisplayWidth": null,
+ "KeepDisplayAspect": false,
+ "PixelAspectX": 0,
+ "PixelAspectY": 0,
+ "Modulus": 2,
+ "Deinterlace": 0,
+ "CustomDeinterlace": null,
+ "Decomb": 2,
+ "CustomDecomb": null,
+ "Detelecine": 0,
+ "CustomDetelecine": null,
+ "Denoise": 0,
+ "DenoisePreset": 0,
+ "DenoiseTune": 0,
+ "CustomDenoise": null,
+ "Deblock": 0,
+ "Grayscale": false,
+ "VideoEncodeRateType": 2,
+ "VideoEncoder": 0,
+ "FramerateMode": 2,
+ "Quality": 20.0,
+ "VideoBitrate": null,
+ "TwoPass": false,
+ "TurboFirstPass": false,
+ "Framerate": null,
+ "AudioTracks": [
+ {
+ "AudioEncoderDisplayValue": "AAC (avcodec)",
+ "AudioMixdownDisplayValue": "Dolby Pro Logic II",
+ "BitRateDisplayValue": "160",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 0,
+ "Gain": 0,
+ "MixDown": 0,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": false,
+ "CannotSetBitrate": false,
+ "IsLossless": false,
+ "TrackName": ""
+ },
+ {
+ "AudioEncoderDisplayValue": "AC3 Passthru",
+ "AudioMixdownDisplayValue": "Automatic",
+ "BitRateDisplayValue": "Auto",
+ "Bitrate": 160,
+ "DRC": 0.0,
+ "IsDefault": false,
+ "Encoder": 6,
+ "Gain": 0,
+ "MixDown": 2,
+ "SampleRate": 0.0,
+ "SampleRateDisplayValue": "Auto",
+ "ScannedTrack": {
+ "TrackNumber": 0,
+ "Language": null,
+ "LanguageCode": null,
+ "Description": null,
+ "Format": null,
+ "SampleRate": 0,
+ "Bitrate": 0
+ },
+ "Track": 0,
+ "IsPassthru": true,
+ "CannotSetBitrate": true,
+ "IsLossless": true,
+ "TrackName": ""
+ }
+ ],
+ "AllowedPassthruOptions": {
+ "AudioAllowAACPass": true,
+ "AudioAllowAC3Pass": true,
+ "AudioAllowDTSHDPass": true,
+ "AudioAllowDTSPass": true,
+ "AudioAllowMP3Pass": true,
+ "AudioEncoderFallback": 4
+ },
+ "SubtitleTracks": [],
+ "IncludeChapterMarkers": true,
+ "ChapterMarkersFilePath": null,
+ "ChapterNames": [],
+ "AdvancedEncoderOptions": null,
+ "VideoProfile": {
+ "DisplayName": "High",
+ "ShortName": "high"
+ },
+ "VideoLevel": {
+ "DisplayName": "4.1",
+ "ShortName": "4.1"
+ },
+ "VideoPreset": {
+ "DisplayName": "Medium",
+ "ShortName": "medium"
+ },
+ "VideoTunes": [],
+ "ExtraAdvancedArguments": null,
+ "IsPreviewEncode": false,
+ "PreviewEncodeDuration": null,
+ "PreviewEncodeStartAt": null,
+ "RequiresM4v": true,
+ "ShowAdvancedTab": false,
+ "PictureSettingsDesc": "Anamorphic: Loose, Width: \r\nCrop Top: 0, Botton: 0, Left: 0, Right: 0"
+ },
+ "UsePictureFilters": true,
+ "Version": "svn5311 (Nightly Build)",
+ "AudioTrackBehaviours": null,
+ "SubtitleTrackBehaviours": null
+ }
+]
diff --git a/win/CS/HandBrakeWPF/Properties/AssemblyInfo.cs b/win/CS/HandBrakeWPF/Properties/AssemblyInfo.cs
index c9dd6cc8e..10daac53d 100644
--- a/win/CS/HandBrakeWPF/Properties/AssemblyInfo.cs
+++ b/win/CS/HandBrakeWPF/Properties/AssemblyInfo.cs
@@ -61,5 +61,5 @@ using System.Windows;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.0.0.5311")]
+[assembly: AssemblyVersion("0.0.0.6809")]
[assembly: NeutralResourcesLanguage("")] \ No newline at end of file
diff --git a/win/CS/HandBrakeWPF/Properties/AssemblyInfo.cs.tmpl b/win/CS/HandBrakeWPF/Properties/AssemblyInfo.cs.tmpl
index d99a490f7..db5403b6f 100644
--- a/win/CS/HandBrakeWPF/Properties/AssemblyInfo.cs.tmpl
+++ b/win/CS/HandBrakeWPF/Properties/AssemblyInfo.cs.tmpl
@@ -61,5 +61,5 @@ using System.Windows;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.11.0.$WCREV$")]
+[assembly: AssemblyVersion("0.1.0.$WCREV$")]
[assembly: NeutralResourcesLanguage("")] \ No newline at end of file
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
index 09fcc4a50..c20af5ddc 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
@@ -281,58 +281,42 @@ namespace HandBrakeWPF.Services.Presets
{
using (StreamReader reader = new StreamReader(stream))
{
- StringBuilder contents = new StringBuilder();
-
- string category = String.Empty;
-
- while (!reader.EndOfStream)
+ // New Preset Format.
+ try
{
- string line = reader.ReadLine();
- contents.AppendLine(line);
+ string json = reader.ReadToEnd();
+ var presetList = JsonConvert.DeserializeObject<List<Preset>>(json);
- // Found the beginning of a preset block )
- if (line != null && line.Contains("<") && !line.Contains("<<"))
+ foreach (Preset preset in presetList)
{
- category = line.Replace("<", string.Empty).Trim();
- }
+ preset.Version = VersionHelper.GetVersion();
+ preset.UsePictureFilters = true;
+ preset.IsBuildIn = true; // Older versions did not have this flag so explicitly make sure it is set.
- // Found a preset
- if (line != null && line.Contains("+"))
- {
- Regex r = new Regex("(: )"); // Split on hyphens.
- string[] presetName = r.Split(line);
-
- Preset newPreset = new Preset
- {
- Category = category,
- Name = presetName[0].Replace("+", string.Empty).Trim(),
- Version = VersionHelper.GetVersion(),
- Description = string.Empty, // Maybe one day we will populate this.
- IsBuildIn = true,
- UsePictureFilters = true,
- Task = QueryParserUtility.Parse(presetName[2])
- };
-
- if (newPreset.Name == "iPod")
+ if (preset.Name == "iPod")
{
- newPreset.Task.KeepDisplayAspect = true;
+ preset.Task.KeepDisplayAspect = true;
}
- newPreset.Task.AllowedPassthruOptions = new AllowedPassthru(true); // We don't want to override the built-in preset
+ preset.Task.AllowedPassthruOptions = new AllowedPassthru(true); // We don't want to override the built-in preset
- if (newPreset.Name == "Normal")
+ if (preset.Name == "Normal")
{
- newPreset.IsDefault = true;
+ preset.IsDefault = true;
}
- this.presets.Add(newPreset);
+ this.presets.Add(preset);
}
- }
- // Verify we have presets.
- if (this.presets.Count == 0)
+ // Verify we have presets.
+ if (this.presets.Count == 0)
+ {
+ throw new GeneralApplicationException("Failed to load built-in presets.", "Restarting HandBrake may resolve this issue", new Exception(json));
+ }
+ }
+ catch (Exception exc)
{
- throw new GeneralApplicationException("Failed to load built-in presets.", "Restarting HandBrake may resolve this issue", new Exception(contents.ToString()));
+ // Do Nothing.
}
}
}
@@ -571,8 +555,10 @@ namespace HandBrakeWPF.Services.Presets
Directory.CreateDirectory(directory);
}
+ JsonSerializerSettings settings = new JsonSerializerSettings { MissingMemberHandling = MissingMemberHandling.Ignore };
+
// Built-in Presets
- JsonSerializerSettings settings = new JsonSerializerSettings { MissingMemberHandling = MissingMemberHandling.Ignore, NullValueHandling = NullValueHandling.Ignore };
+
using (FileStream strm = new FileStream(this.builtInPresetFile, FileMode.Create, FileAccess.Write))
{
string presetsJson = JsonConvert.SerializeObject(this.presets.Where(p => p.IsBuildIn).ToList(), Formatting.Indented, settings);
@@ -583,14 +569,13 @@ namespace HandBrakeWPF.Services.Presets
}
// User Presets
- JsonSerializerSettings userPresetSettings = new JsonSerializerSettings { MissingMemberHandling = MissingMemberHandling.Ignore };
using (FileStream strm = new FileStream(this.userPresetFile, FileMode.Create, FileAccess.Write))
{
List<Preset> userPresets = this.presets.Where(p => p.IsBuildIn == false).ToList();
- string presetsJson = JsonConvert.SerializeObject(userPresets, Formatting.Indented, userPresetSettings);
+ string presetsJson = JsonConvert.SerializeObject(userPresets, Formatting.Indented, settings);
PresetContainer container = new PresetContainer(CurrentPresetVersion, presetsJson);
- string containerJson = JsonConvert.SerializeObject(container, Formatting.Indented, userPresetSettings);
+ string containerJson = JsonConvert.SerializeObject(container, Formatting.Indented, settings);
using (StreamWriter writer = new StreamWriter(strm))
{