mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-22 02:21:51 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d610f08a5e | ||
|
|
e5e1c78135 | ||
|
|
e82f0af2cc | ||
|
|
11e579d5b9 |
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// <copyright file="Application.xaml.cs" company="AAllard">License: http://www.gnu.org/licenses/gpl.html GPL version 3.</copyright>
|
||||
|
||||
/* File Converter - This program allow you to convert file format to another.
|
||||
Copyright (C) 2016 Adrien Allard
|
||||
Copyright (C) 2017 Adrien Allard
|
||||
email: adrien.allard.pro@gmail.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
|
||||
@@ -32,7 +32,7 @@ namespace FileConverter
|
||||
{
|
||||
Major = 1,
|
||||
Minor = 2,
|
||||
Patch = 1,
|
||||
Patch = 2,
|
||||
};
|
||||
|
||||
private readonly List<ConversionJob> conversionJobs = new List<ConversionJob>();
|
||||
|
||||
@@ -74,7 +74,9 @@ namespace FileConverter.ConversionJobs
|
||||
protected virtual void FillFFMpegArgumentsList()
|
||||
{
|
||||
// This option are necessary to be able to read metadata on Windows. src: http://jonhall.info/how_to/create_id3_tags_using_ffmpeg
|
||||
const string metadataArgs = "-id3v2_version 3 -write_id3v1 1";
|
||||
const string mp3MetadataArgs = "-id3v2_version 3 -write_id3v1 1";
|
||||
// AAC have no standard tag system, use ApeV2 (that are compatible). src: http://eolindel.free.fr/foobar/tags.shtml
|
||||
const string aacMetadataArgs = "-write_apetag 1";
|
||||
|
||||
switch (this.ConversionPreset.OutputType)
|
||||
{
|
||||
@@ -84,7 +86,7 @@ namespace FileConverter.ConversionJobs
|
||||
|
||||
// https://trac.ffmpeg.org/wiki/Encode/AAC
|
||||
int audioEncodingBitrate = this.ConversionPreset.GetSettingsValue<int>(ConversionPreset.ConversionSettingKeys.AudioBitrate);
|
||||
string encoderArgs = $"-c:a aac -q:a {this.AACBitrateToQualityIndex(audioEncodingBitrate)} {channelArgs} {metadataArgs}";
|
||||
string encoderArgs = $"-c:a aac -q:a {this.AACBitrateToQualityIndex(audioEncodingBitrate)} {channelArgs} {aacMetadataArgs}";
|
||||
|
||||
string arguments = string.Format("-n -stats -i \"{0}\" {2} \"{1}\"", this.InputFilePath, this.OutputFilePath, encoderArgs);
|
||||
|
||||
@@ -109,7 +111,7 @@ namespace FileConverter.ConversionJobs
|
||||
|
||||
// Compute final arguments.
|
||||
string videoFilteringArgs = ConversionJob_FFMPEG.Encapsulate("-vf", transformArgs);
|
||||
string encoderArgs = $"-c:v mpeg4 -vtag xvid -qscale:v {this.MPEG4QualityToQualityIndex(videoEncodingQuality)} {audioArgs} {videoFilteringArgs} {metadataArgs}";
|
||||
string encoderArgs = $"-c:v mpeg4 -vtag xvid -qscale:v {this.MPEG4QualityToQualityIndex(videoEncodingQuality)} {audioArgs} {videoFilteringArgs} {mp3MetadataArgs}";
|
||||
string arguments = string.Format("-n -stats -i \"{0}\" {2} \"{1}\"", this.InputFilePath, this.OutputFilePath, encoderArgs);
|
||||
|
||||
this.ffmpegArgumentStringByPass.Add(new FFMpegPass(arguments));
|
||||
@@ -122,7 +124,7 @@ namespace FileConverter.ConversionJobs
|
||||
string channelArgs = ConversionJob_FFMPEG.ComputeAudioChannelArgs(this.ConversionPreset);
|
||||
|
||||
// http://taer-naguur.blogspot.fr/2013/11/flac-audio-encoding-with-ffmpeg.html
|
||||
string encoderArgs = $"-compression_level 12 {channelArgs} {metadataArgs}";
|
||||
string encoderArgs = $"-compression_level 12 {channelArgs}";
|
||||
string arguments = string.Format("-n -stats -i \"{0}\" {2} \"{1}\"", this.InputFilePath, this.OutputFilePath, encoderArgs);
|
||||
|
||||
this.ffmpegArgumentStringByPass.Add(new FFMpegPass(arguments));
|
||||
@@ -201,11 +203,11 @@ namespace FileConverter.ConversionJobs
|
||||
switch (encodingMode)
|
||||
{
|
||||
case EncodingMode.Mp3VBR:
|
||||
encoderArgs = $"-codec:a libmp3lame -q:a {this.MP3VBRBitrateToQualityIndex(encodingQuality)} {channelArgs} {metadataArgs}";
|
||||
encoderArgs = $"-codec:a libmp3lame -q:a {this.MP3VBRBitrateToQualityIndex(encodingQuality)} {channelArgs} {mp3MetadataArgs}";
|
||||
break;
|
||||
|
||||
case EncodingMode.Mp3CBR:
|
||||
encoderArgs = $"-codec:a libmp3lame -b:a {encodingQuality}k {channelArgs} {metadataArgs}";
|
||||
encoderArgs = $"-codec:a libmp3lame -b:a {encodingQuality}k {channelArgs} {mp3MetadataArgs}";
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -234,7 +236,7 @@ namespace FileConverter.ConversionJobs
|
||||
string audioArgs = "-an";
|
||||
if (this.ConversionPreset.GetSettingsValue<bool>(ConversionPreset.ConversionSettingKeys.EnableAudio))
|
||||
{
|
||||
audioArgs = $"-c:a aac -qscale:a {this.AACBitrateToQualityIndex(audioEncodingBitrate)} {metadataArgs}";
|
||||
audioArgs = $"-c:a aac -qscale:a {this.AACBitrateToQualityIndex(audioEncodingBitrate)}";
|
||||
}
|
||||
|
||||
string encoderArgs = string.Format(
|
||||
@@ -256,7 +258,7 @@ namespace FileConverter.ConversionJobs
|
||||
string channelArgs = ConversionJob_FFMPEG.ComputeAudioChannelArgs(this.ConversionPreset);
|
||||
|
||||
int encodingQuality = this.ConversionPreset.GetSettingsValue<int>(ConversionPreset.ConversionSettingKeys.AudioBitrate);
|
||||
string encoderArgs = $"-vn -codec:a libvorbis -qscale:a {this.OGGVBRBitrateToQualityIndex(encodingQuality)} {channelArgs} {metadataArgs}";
|
||||
string encoderArgs = $"-vn -codec:a libvorbis -qscale:a {this.OGGVBRBitrateToQualityIndex(encodingQuality)} {channelArgs}";
|
||||
string arguments = string.Format("-n -stats -i \"{0}\" {2} \"{1}\"", this.InputFilePath, this.OutputFilePath, encoderArgs);
|
||||
|
||||
this.ffmpegArgumentStringByPass.Add(new FFMpegPass(arguments));
|
||||
@@ -279,7 +281,7 @@ namespace FileConverter.ConversionJobs
|
||||
audioArgs = $"-codec:a libvorbis -qscale:a {this.OGGVBRBitrateToQualityIndex(audioEncodingBitrate)}";
|
||||
}
|
||||
|
||||
string encoderArgs = $"-codec:v libtheora -qscale:v {this.OGVTheoraQualityToQualityIndex(videoEncodingQuality)} {audioArgs} {videoFilteringArgs} {metadataArgs}";
|
||||
string encoderArgs = $"-codec:v libtheora -qscale:v {this.OGVTheoraQualityToQualityIndex(videoEncodingQuality)} {audioArgs} {videoFilteringArgs}";
|
||||
|
||||
string arguments = string.Format("-n -stats -i \"{0}\" {2} \"{1}\"", this.InputFilePath, this.OutputFilePath, encoderArgs);
|
||||
|
||||
@@ -312,7 +314,7 @@ namespace FileConverter.ConversionJobs
|
||||
string channelArgs = ConversionJob_FFMPEG.ComputeAudioChannelArgs(this.ConversionPreset);
|
||||
|
||||
EncodingMode encodingMode = this.ConversionPreset.GetSettingsValue<EncodingMode>(ConversionPreset.ConversionSettingKeys.AudioEncodingMode);
|
||||
string encoderArgs = $"-acodec {this.WAVEncodingToCodecArgument(encodingMode)} {channelArgs} {metadataArgs}";
|
||||
string encoderArgs = $"-acodec {this.WAVEncodingToCodecArgument(encodingMode)} {channelArgs}";
|
||||
string arguments = string.Format("-n -stats -i \"{0}\" {2} \"{1}\"", this.InputFilePath, this.OutputFilePath, encoderArgs);
|
||||
|
||||
this.ffmpegArgumentStringByPass.Add(new FFMpegPass(arguments));
|
||||
@@ -330,11 +332,11 @@ namespace FileConverter.ConversionJobs
|
||||
if (videoEncodingQuality == 63)
|
||||
{
|
||||
// Replace maximum quality settings by lossless compression.
|
||||
encodingArgs = $"-lossless 1 {metadataArgs}";
|
||||
encodingArgs = $"-lossless 1";
|
||||
}
|
||||
else
|
||||
{
|
||||
encodingArgs = $"-crf {this.WebmQualityToCRF(videoEncodingQuality)} -b:v 0 {metadataArgs}";
|
||||
encodingArgs = $"-crf {this.WebmQualityToCRF(videoEncodingQuality)} -b:v 0";
|
||||
}
|
||||
|
||||
string transformArgs = ConversionJob_FFMPEG.ComputeTransformArgs(this.ConversionPreset);
|
||||
|
||||
@@ -264,6 +264,7 @@
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.en.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.pt.resx" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
|
||||
@@ -24,7 +24,13 @@ namespace FileConverter
|
||||
string exeLocation = Path.GetDirectoryName(Uri.UnescapeDataString(new UriBuilder(Assembly.GetExecutingAssembly().CodeBase).Path));
|
||||
|
||||
// Return all culture for which satellite folder found with culture code.
|
||||
return cultures.Where(cultureInfo => Directory.Exists(Path.Combine(exeLocation, "Languages", cultureInfo.Name)));
|
||||
foreach (CultureInfo cultureInfo in cultures)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(cultureInfo.Name) && Directory.Exists(Path.Combine(exeLocation, "Languages", cultureInfo.Name)))
|
||||
{
|
||||
yield return cultureInfo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetExtensionCategory(string extension)
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Windows;
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("FileConverter")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2016")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
|
||||
@@ -0,0 +1,547 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="About" xml:space="preserve">
|
||||
<value>Sobre</value>
|
||||
</data>
|
||||
<data name="ActionWhenConversionSucceedDescription" xml:space="preserve">
|
||||
<value>Se a conversão for bem sucedida, o que pretende fazer com o ficheiro original?</value>
|
||||
</data>
|
||||
<data name="ActionWhenConversionSucceedTitle" xml:space="preserve">
|
||||
<value>Ação a fazer aquando conversão bem sucedida</value>
|
||||
</data>
|
||||
<data name="AddNewPreset" xml:space="preserve">
|
||||
<value>Adicional nova predefinição (duplicar predefinição selecionada)</value>
|
||||
</data>
|
||||
<data name="Application" xml:space="preserve">
|
||||
<value>Programa</value>
|
||||
</data>
|
||||
<data name="AudioTitle" xml:space="preserve">
|
||||
<value>Audio</value>
|
||||
</data>
|
||||
<data name="AutomaticallyCheckForUpdates" xml:space="preserve">
|
||||
<value>verificar por atualizações automaticamente quando o File converter iniciar</value>
|
||||
</data>
|
||||
<data name="AutomaticallyExitWhenAllConversionsFinished" xml:space="preserve">
|
||||
<value>Sair do programa automaticamente quando todas as conversões estiverem concluídas</value>
|
||||
</data>
|
||||
<data name="ClampToLowestPowerOfTwoSize" xml:space="preserve">
|
||||
<value>Clamp to lowest power of 2 size</value>
|
||||
</data>
|
||||
<data name="Close" xml:space="preserve">
|
||||
<value>Fechar</value>
|
||||
</data>
|
||||
<data name="ConversionPresets" xml:space="preserve">
|
||||
<value>Predefinições de conversão</value>
|
||||
</data>
|
||||
<data name="ConversionQueueTitle" xml:space="preserve">
|
||||
<value>Ficheiros para converter</value>
|
||||
</data>
|
||||
<data name="ConvertedFrom" xml:space="preserve">
|
||||
<value>Convertidos de</value>
|
||||
</data>
|
||||
<data name="Diagnostics" xml:space="preserve">
|
||||
<value>Logs</value>
|
||||
</data>
|
||||
<data name="DiagnosticsButtonTitle" xml:space="preserve">
|
||||
<value>Logs</value>
|
||||
</data>
|
||||
<data name="DocumentationButtonDescription" xml:space="preserve">
|
||||
<value>Abrir documentação</value>
|
||||
</data>
|
||||
<data name="DonateButtonTitle" xml:space="preserve">
|
||||
<value>Doar</value>
|
||||
</data>
|
||||
<data name="DonateDescription" xml:space="preserve">
|
||||
<value>Não se esqueça de recompensar o meu trabalho se gostou :)</value>
|
||||
</data>
|
||||
<data name="DownloadAndInstallButtonDescription" xml:space="preserve">
|
||||
<value>A atualização irá ser decarregada em background e instalada assim que fechar o File Converter.</value>
|
||||
</data>
|
||||
<data name="DownloadAndInstallButtonTitle" xml:space="preserve">
|
||||
<value>instalar quando eu sair do File Converter</value>
|
||||
</data>
|
||||
<data name="Encoding" xml:space="preserve">
|
||||
<value>Codificação :</value>
|
||||
</data>
|
||||
<data name="EncodingSpeed" xml:space="preserve">
|
||||
<value>Velocidade de codificação :</value>
|
||||
</data>
|
||||
<data name="FileConverterStartHelp1" xml:space="preserve">
|
||||
<value>O File Converter é uma extensão shell.</value>
|
||||
</data>
|
||||
<data name="FileConverterStartHelp2" xml:space="preserve">
|
||||
<value>Isso quer dizer que está integrada no explorador de ficheiros.</value>
|
||||
</data>
|
||||
<data name="FileConverterStartHelp3" xml:space="preserve">
|
||||
<value>Para usar o File Converter abra o explorador de ficheiros e clique com o botão direito do rato em qualquer ficheiro que goste para mostrar o menu de contexto, onde encontrará os comandos do File Converter (veja o ficheiro readme para ver a lista de formatos de ficheiro compatíveis).</value>
|
||||
</data>
|
||||
<data name="FileNameTemplate" xml:space="preserve">
|
||||
<value>Nome do ficheiro de modelo</value>
|
||||
</data>
|
||||
<data name="FramesPerSecond" xml:space="preserve">
|
||||
<value>Quadros por segundo :</value>
|
||||
</data>
|
||||
<data name="GitHubButtonDescription" xml:space="preserve">
|
||||
<value>Abrir a página do projeto no GitHub</value>
|
||||
</data>
|
||||
<data name="Help" xml:space="preserve">
|
||||
<value>Ajuda ?</value>
|
||||
</data>
|
||||
<data name="InputExample" xml:space="preserve">
|
||||
<value>Exemplo de origem</value>
|
||||
</data>
|
||||
<data name="InputFormats" xml:space="preserve">
|
||||
<value>Formatos de origem</value>
|
||||
</data>
|
||||
<data name="InputPostConversionActionDeleteName" xml:space="preserve">
|
||||
<value>Apagar</value>
|
||||
</data>
|
||||
<data name="InputPostConversionActionMoveInArchiveFolderName" xml:space="preserve">
|
||||
<value>Mover-se para um ficheiro</value>
|
||||
</data>
|
||||
<data name="InputPostConversionActionNoneName" xml:space="preserve">
|
||||
<value>Nenhum</value>
|
||||
</data>
|
||||
<data name="InstallButtonDescription" xml:space="preserve">
|
||||
<value>A atualização foi transferida. Saia do File Converter e instale a atualização agora.</value>
|
||||
</data>
|
||||
<data name="InstallButtonTitle" xml:space="preserve">
|
||||
<value>Instalar quando eu saia do File Converter</value>
|
||||
</data>
|
||||
<data name="IssueButtonDescription" xml:space="preserve">
|
||||
<value>Reportar um problema</value>
|
||||
</data>
|
||||
<data name="MoveDownSelectedPreset" xml:space="preserve">
|
||||
<value>Mover a predefinição selecionada para baixo</value>
|
||||
</data>
|
||||
<data name="MoveUpSelectedPreset" xml:space="preserve">
|
||||
<value>Mover a predefinição selecionada para cima</value>
|
||||
</data>
|
||||
<data name="Mp3CbrDescription" xml:space="preserve">
|
||||
<value>Codificação de bitrate constante</value>
|
||||
</data>
|
||||
<data name="Mp3VbrDescription" xml:space="preserve">
|
||||
<value>Codificação de bitrate variável</value>
|
||||
</data>
|
||||
<data name="NinetyDegreesRotationTitle" xml:space="preserve">
|
||||
<value>90°</value>
|
||||
</data>
|
||||
<data name="NinetyDegreesRotationTooltip" xml:space="preserve">
|
||||
<value>Rotacionar 90° sentido inverso aos ponteiros do relógio</value>
|
||||
</data>
|
||||
<data name="Ok" xml:space="preserve">
|
||||
<value>Ok</value>
|
||||
</data>
|
||||
<data name="OneEightyDegreesRotationTitle" xml:space="preserve">
|
||||
<value>180°</value>
|
||||
</data>
|
||||
<data name="OneEightyDegreesRotationTooltip" xml:space="preserve">
|
||||
<value>Rotacionar 180°</value>
|
||||
</data>
|
||||
<data name="OuputFileNameTemplateSample" xml:space="preserve">
|
||||
<value>C:\Música\Artista\Álbum\música.wav</value>
|
||||
</data>
|
||||
<data name="OutputExample" xml:space="preserve">
|
||||
<value>Destino</value>
|
||||
</data>
|
||||
<data name="OutputFilePathTemplateHelp" xml:space="preserve">
|
||||
<value>(P): caminho do ficheiro original
|
||||
(F): nome do arquivo original
|
||||
(O): tipo de extensão de destino
|
||||
(I): tipo de extensão de entrada
|
||||
(D0): input parent folder
|
||||
(d1): input sub parent folder
|
||||
...
|
||||
(N: i): índice de número de página
|
||||
(N: c): contagem total de páginas
|
||||
|
||||
Caminhos especiais:
|
||||
(P: d): caminho para Documentos
|
||||
(P: m): caminho para música
|
||||
(P: v): caminho para vídeos
|
||||
(P: p): caminho para fotos
|
||||
|
||||
Use maj para a versão em maiúsculas</value>
|
||||
</data>
|
||||
<data name="OutputFormat" xml:space="preserve">
|
||||
<value>Formato de saída</value>
|
||||
</data>
|
||||
<data name="Preset" xml:space="preserve">
|
||||
<value>Predefinição</value>
|
||||
</data>
|
||||
<data name="PresetName" xml:space="preserve">
|
||||
<value>Nome da predefinição</value>
|
||||
</data>
|
||||
<data name="Quality" xml:space="preserve">
|
||||
<value>Qualidade :</value>
|
||||
</data>
|
||||
<data name="RecommendeBitrateRangeInBlue" xml:space="preserve">
|
||||
<value>O bitrate recomendado está representado a azul</value>
|
||||
</data>
|
||||
<data name="RemoveSelectedPreset" xml:space="preserve">
|
||||
<value>Remover a predefinição selecionada</value>
|
||||
</data>
|
||||
<data name="Rotate" xml:space="preserve">
|
||||
<value>Rotacionar :</value>
|
||||
</data>
|
||||
<data name="Save" xml:space="preserve">
|
||||
<value>Guardar</value>
|
||||
</data>
|
||||
<data name="Scale" xml:space="preserve">
|
||||
<value>Escala :</value>
|
||||
</data>
|
||||
<data name="SeeChangeLog" xml:space="preserve">
|
||||
<value>Ver log de alterações ...</value>
|
||||
</data>
|
||||
<data name="Settings" xml:space="preserve">
|
||||
<value>Definições</value>
|
||||
</data>
|
||||
<data name="SettingsButtonTitle" xml:space="preserve">
|
||||
<value>Definições</value>
|
||||
</data>
|
||||
<data name="TwoSeventyDegreesRotationTitle" xml:space="preserve">
|
||||
<value>270°</value>
|
||||
</data>
|
||||
<data name="TwoSeventyDegreesRotationTooltip" xml:space="preserve">
|
||||
<value>Rotacionar 90° na direção dos ponteiros do relógio</value>
|
||||
</data>
|
||||
<data name="UpgradeAvailable" xml:space="preserve">
|
||||
<value>Uma atualização para o File Converter está disponível. É altamente recomendado instala-la assim que puder!</value>
|
||||
</data>
|
||||
<data name="UpgradeDownloadInProgress" xml:space="preserve">
|
||||
<value>Download da atualização em progresso...</value>
|
||||
</data>
|
||||
<data name="UpgradeWindowTitle" xml:space="preserve">
|
||||
<value>Atualizações do File Converter</value>
|
||||
</data>
|
||||
<data name="VideoEncodingQualityTooltip" xml:space="preserve">
|
||||
<value>Define a relação "tamanho x qualidade". Um valor mais baixo produz um ficheiro mais pequeno, um valor mais alto produz um ficheiro com mais qualidade.</value>
|
||||
</data>
|
||||
<data name="VideoEncodingSpeedFasterName" xml:space="preserve">
|
||||
<value>Mais rápido</value>
|
||||
</data>
|
||||
<data name="VideoEncodingSpeedFastName" xml:space="preserve">
|
||||
<value>Rápido</value>
|
||||
</data>
|
||||
<data name="VideoEncodingSpeedMediumName" xml:space="preserve">
|
||||
<value>Médio</value>
|
||||
</data>
|
||||
<data name="VideoEncodingSpeedSlowerName" xml:space="preserve">
|
||||
<value>Mais lento</value>
|
||||
</data>
|
||||
<data name="VideoEncodingSpeedSlowName" xml:space="preserve">
|
||||
<value>Lento</value>
|
||||
</data>
|
||||
<data name="VideoEncodingSpeedSuperFastName" xml:space="preserve">
|
||||
<value>Super rápido</value>
|
||||
</data>
|
||||
<data name="VideoEncodingSpeedTooltip" xml:space="preserve">
|
||||
<value>Define a relação "tamanho x duração de compressão". Uma compressão lenta produz um ficheiro mais pequeno (pela mesma qualidade) do que uma compressão mais rapida.</value>
|
||||
</data>
|
||||
<data name="VideoEncodingSpeedUltraFastName" xml:space="preserve">
|
||||
<value>Ultra rápido</value>
|
||||
</data>
|
||||
<data name="VideoEncodingSpeedVeryFastName" xml:space="preserve">
|
||||
<value>Bastante rápido</value>
|
||||
</data>
|
||||
<data name="VideoEncodingSpeedVerySlowName" xml:space="preserve">
|
||||
<value>bastante lento</value>
|
||||
</data>
|
||||
<data name="VideoTitle" xml:space="preserve">
|
||||
<value>Video</value>
|
||||
</data>
|
||||
<data name="Wav16bitsDescription" xml:space="preserve">
|
||||
<value>PCM signed 16-bit little-endian</value>
|
||||
</data>
|
||||
<data name="Wav24bitsDescription" xml:space="preserve">
|
||||
<value>PCM signed 24-bit little-endian</value>
|
||||
</data>
|
||||
<data name="Wav32bitsDescription" xml:space="preserve">
|
||||
<value>PCM signed 32-bit little-endian</value>
|
||||
</data>
|
||||
<data name="Wav8bitsDescription" xml:space="preserve">
|
||||
<value>PCM signed 8-bit little-endian</value>
|
||||
</data>
|
||||
<data name="ZeroDegreesRotationTitle" xml:space="preserve">
|
||||
<value>Nenhum</value>
|
||||
</data>
|
||||
<data name="ZeroDegreesRotationTooltip" xml:space="preserve">
|
||||
<value>Sem rotação</value>
|
||||
</data>
|
||||
<data name="ConversionStateConversion" xml:space="preserve">
|
||||
<value>Conversão</value>
|
||||
</data>
|
||||
<data name="ConversionStateDone" xml:space="preserve">
|
||||
<value>Feito</value>
|
||||
</data>
|
||||
<data name="ConversionStateExtraction" xml:space="preserve">
|
||||
<value>Extração</value>
|
||||
</data>
|
||||
<data name="ConversionStateFailed" xml:space="preserve">
|
||||
<value>Falhou</value>
|
||||
</data>
|
||||
<data name="ConversionStateInQueue" xml:space="preserve">
|
||||
<value>Em espera</value>
|
||||
</data>
|
||||
<data name="ConversionStateReadIntputImage" xml:space="preserve">
|
||||
<value>Ler a imagem de entradae</value>
|
||||
</data>
|
||||
<data name="ConversionStateReadDocument" xml:space="preserve">
|
||||
<value>Ler o documento</value>
|
||||
</data>
|
||||
<data name="StringAnimatedImageName" xml:space="preserve">
|
||||
<value>Imagem animada</value>
|
||||
</data>
|
||||
<data name="StringAudioName" xml:space="preserve">
|
||||
<value>Áudio</value>
|
||||
</data>
|
||||
<data name="StringDocumentName" xml:space="preserve">
|
||||
<value>Documento</value>
|
||||
</data>
|
||||
<data name="StringImageName" xml:space="preserve">
|
||||
<value>Imagem</value>
|
||||
</data>
|
||||
<data name="StringVideoName" xml:space="preserve">
|
||||
<value>Vídeo</value>
|
||||
</data>
|
||||
<data name="ExitWaitingDuration" xml:space="preserve">
|
||||
<value>Duração de espera antes da saída do programa</value>
|
||||
</data>
|
||||
<data name="Language" xml:space="preserve">
|
||||
<value>Idioma</value>
|
||||
</data>
|
||||
<data name="MaximumNumberOfSimultaneousConversions" xml:space="preserve">
|
||||
<value>Número máximo de conversões simultâneas</value>
|
||||
</data>
|
||||
<data name="DefaultPresetName" xml:space="preserve">
|
||||
<value>Nova predefinição</value>
|
||||
</data>
|
||||
<data name="DownloadingChangeLog" xml:space="preserve">
|
||||
<value>###A transferir registo de alterações ...</value>
|
||||
</data>
|
||||
<data name="ConversionArchives" xml:space="preserve">
|
||||
<value>Arquivos de conversão</value>
|
||||
</data>
|
||||
<data name="ErrorCanceled" xml:space="preserve">
|
||||
<value>Cancelado.</value>
|
||||
</data>
|
||||
<data name="ErrorCantFindFFMPEG" xml:space="preserve">
|
||||
<value>Não foi possível encontrar o executável do ffmpeg. você deveria tentar reinstalar o programa.</value>
|
||||
</data>
|
||||
<data name="ErrorCDAExtractionFailed" xml:space="preserve">
|
||||
<value>A extração da faixa de áudio do CD falhou.</value>
|
||||
</data>
|
||||
<data name="ErrorCDDriveNotReady" xml:space="preserve">
|
||||
<value>A unidade de CD não está pronta</value>
|
||||
</data>
|
||||
<data name="ErrorFailedToLaunchFFMPEG" xml:space="preserve">
|
||||
<value>Foi impossível abrir o ffmpeg.</value>
|
||||
</data>
|
||||
<data name="ErrorFailToCreateOutputPathFolders" xml:space="preserve">
|
||||
<value>Foi impossível criar as pastas no caminho de saída.</value>
|
||||
</data>
|
||||
<data name="ErrorFailToGenerateUniqueOutputPath" xml:space="preserve">
|
||||
<value>Foi impossível criar um caminho único de saída.</value>
|
||||
</data>
|
||||
<data name="ErrorFailToReadCDDrive" xml:space="preserve">
|
||||
<value>Foi impossível ler a unidade de CD '{0}'.</value>
|
||||
</data>
|
||||
<data name="ErrorFailToRetrieveInputPathDriveLetter" xml:space="preserve">
|
||||
<value>Foi impossível conseguir a letra da unidade do ficheiro original.</value>
|
||||
</data>
|
||||
<data name="ErrorFailToRetrieveTrackNumber" xml:space="preserve">
|
||||
<value>Foi impossível conseguir o número de faixa do caminho de entrada do CDA.</value>
|
||||
</data>
|
||||
<data name="ErrorFailToUseCDDriveOpen" xml:space="preserve">
|
||||
<value>Foi impossível usar a unidade de CD porque não está aberta.</value>
|
||||
</data>
|
||||
<data name="ErrorInputTypeIncompatibleWithOutputType" xml:space="preserve">
|
||||
<value>O ficheiro original é incompatível com o formato de ficheiro selecionado.</value>
|
||||
</data>
|
||||
<data name="ErrorInvalidOutputPath" xml:space="preserve">
|
||||
<value>Caminho de saída inválido gerado pelo modelo de caminho do ficheiro de saída.</value>
|
||||
</data>
|
||||
<data name="ErrorUnsupportedOutputFormat" xml:space="preserve">
|
||||
<value>Formato de saída não suportado '{0}'.</value>
|
||||
</data>
|
||||
<data name="ChannelCountTitle" xml:space="preserve">
|
||||
<value>Contagem de canais :</value>
|
||||
</data>
|
||||
<data name="ChannelCountTooltip" xml:space="preserve">
|
||||
<value>Mudar o número de canais do ficheiro original</value>
|
||||
</data>
|
||||
<data name="MonoOption" xml:space="preserve">
|
||||
<value>Mono</value>
|
||||
</data>
|
||||
<data name="SameChannelCountOption" xml:space="preserve">
|
||||
<value>O mesmo que o ficheiro original</value>
|
||||
</data>
|
||||
<data name="StereoOption" xml:space="preserve">
|
||||
<value>Stereo</value>
|
||||
</data>
|
||||
<data name="LicenceHeader1" xml:space="preserve">
|
||||
<value>**Este programa é gratuito**.</value>
|
||||
</data>
|
||||
<data name="LicenceHeader2" xml:space="preserve">
|
||||
<value>Você pode redistribuí-lo e/ou modificá-lo sob os termos da GNU General Public License.</value>
|
||||
</data>
|
||||
<data name="LicenceHeader3" xml:space="preserve">
|
||||
<value>Este programa é distribuído na esperança de que seja útil, mas SEM QUALQUER GARANTIA. Veja a GNU General Public License (disponível na pasta de instalação do programa: "LICENSE.md") para mais detalhes.</value>
|
||||
</data>
|
||||
<data name="ApplicationIsTerminating" xml:space="preserve">
|
||||
<value>O programa está a terminar.</value>
|
||||
</data>
|
||||
<data name="ApplicationWillTerminateInMultipleSeconds" xml:space="preserve">
|
||||
<value>O programa irá terminar automáticamente em {0} segundos.</value>
|
||||
</data>
|
||||
<data name="ApplicationWillTerminateInOneSecond" xml:space="preserve">
|
||||
<value>O programa irá terminar automáticamente em 1 segundo.</value>
|
||||
</data>
|
||||
<data name="StringMiscName" xml:space="preserve">
|
||||
<value>Variadoc</value>
|
||||
</data>
|
||||
<data name="ErrorCantFindOutputFiles" xml:space="preserve">
|
||||
<value>É impossivel encontrar o(s) ficheiro(s) de saída.</value>
|
||||
</data>
|
||||
<data name="ErrorConversionFailedWithOutput" xml:space="preserve">
|
||||
<value>A conversão falhou mas existem ficheiros presentes na localização.</value>
|
||||
</data>
|
||||
<data name="ConversionStatePrepareConversion" xml:space="preserve">
|
||||
<value>Preparar conversão</value>
|
||||
</data>
|
||||
<data name="ErrorMicrosoftOfficeIsNotAvailable" xml:space="preserve">
|
||||
<value>O Microsoft Office deve estar instalado para sr possível converter documentos do Office.</value>
|
||||
</data>
|
||||
<data name="ErrorUnableToUseMicrosoftOffice" xml:space="preserve">
|
||||
<value>É impossível abrir o documento Microsoft Office (verifique se a sua licença/instalação é válida)</value>
|
||||
</data>
|
||||
<data name="ErrorMicrosoftExcelIsNotAvailable" xml:space="preserve">
|
||||
<value>O Microsoft Excel tem de estar instalado para converter documentos Excel.</value>
|
||||
</data>
|
||||
<data name="ErrorMicrosoftPowerPointIsNotAvailable" xml:space="preserve">
|
||||
<value>O Microsoft PowerPoint tem de estar instalado para converter documentos PowerPoint.</value>
|
||||
</data>
|
||||
<data name="ErrorMicrosoftWordIsNotAvailable" xml:space="preserve">
|
||||
<value>O Microsoft Word tem de estar instalado para converter documentos Word.</value>
|
||||
</data>
|
||||
<data name="WebsiteButtonDescription" xml:space="preserve">
|
||||
<value>Abrir o site do File Converter</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -54,6 +54,22 @@ namespace FileConverter
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (settingsVersion <= 3)
|
||||
{
|
||||
// Try to fix corrupted settings (GitHub issue #5).
|
||||
string scale = preset.GetSettingsValue(ConversionPreset.ConversionSettingKeys.ImageScale);
|
||||
if (scale != null)
|
||||
{
|
||||
preset.SetSettingsValue(ConversionPreset.ConversionSettingKeys.ImageScale, scale.Replace(',', '.'));
|
||||
}
|
||||
|
||||
scale = preset.GetSettingsValue(ConversionPreset.ConversionSettingKeys.VideoScale);
|
||||
if (scale != null)
|
||||
{
|
||||
preset.SetSettingsValue(ConversionPreset.ConversionSettingKeys.VideoScale, scale.Replace(',', '.'));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ namespace FileConverter
|
||||
|
||||
public partial class Settings : IXmlSerializable
|
||||
{
|
||||
public const int Version = 3;
|
||||
public const int Version = 4;
|
||||
|
||||
private bool exitApplicationWhenConversionsFinished = true;
|
||||
private float durationBetweenEndOfConversionsAndApplicationExit = 3f;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Settings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SerializationVersion="3">
|
||||
<Settings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SerializationVersion="4">
|
||||
<ExitApplicationWhenConversionsFinished>true</ExitApplicationWhenConversionsFinished>
|
||||
<DurationBetweenEndOfConversionsAndApplicationExit>3</DurationBetweenEndOfConversionsAndApplicationExit>
|
||||
<MaximumNumberOfSimultaneousConversions>2</MaximumNumberOfSimultaneousConversions>
|
||||
@@ -243,7 +243,7 @@
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputTypes>webp</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="VideoScale" Value="0,75" />
|
||||
<Settings Key="VideoScale" Value="0.75" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="VideoFramesPerSecond" Value="10" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
@@ -504,7 +504,7 @@
|
||||
<InputTypes>xcf</InputTypes>
|
||||
<InputTypes>webp</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="ImageScale" Value="0,25" />
|
||||
<Settings Key="ImageScale" Value="0.25" />
|
||||
<Settings Key="ImageRotation" Value="0" />
|
||||
<Settings Key="ImageClampSizePowerOf2" Value="False" />
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
|
||||
@@ -13,9 +13,9 @@ namespace FileConverter.Upgrade
|
||||
public static class Helpers
|
||||
{
|
||||
#if DEBUG
|
||||
private const string BaseURI = "http://raw.githubusercontent.com/Tichau/FileConverter/development/";
|
||||
private const string BaseURI = "https://raw.githubusercontent.com/Tichau/FileConverter/development/";
|
||||
#else
|
||||
private const string BaseURI = "http://raw.githubusercontent.com/Tichau/FileConverter/master/";
|
||||
private const string BaseURI = "https://raw.githubusercontent.com/Tichau/FileConverter/master/";
|
||||
#endif
|
||||
|
||||
private static WebClient webClient = new WebClient();
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace FileConverter.ValueConverters.Generic
|
||||
throw new Exception("Invalid enum type " + typeName + ".");
|
||||
}
|
||||
|
||||
return System.Convert.ChangeType(value, type);
|
||||
return System.Convert.ChangeType(value, type, culture);
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
@@ -36,8 +36,8 @@ namespace FileConverter.ValueConverters.Generic
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return value.ToString();
|
||||
|
||||
return System.Convert.ChangeType(value, typeof(string), culture);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
xmlns:generic="clr-namespace:FileConverter.ValueConverters.Generic"
|
||||
xmlns:windows="clr-namespace:FileConverter.Windows"
|
||||
xmlns:project="clr-namespace:FileConverter.Properties"
|
||||
xmlns:System="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:globalization="clr-namespace:System.Globalization;assembly=mscorlib"
|
||||
x:Name="window" x:Class="FileConverter.SettingsWindow"
|
||||
MinWidth="640" MinHeight="480"
|
||||
Width="900" Height="675"
|
||||
@@ -288,7 +288,7 @@
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="60"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=VideoScale|System.Double, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="2" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2" Foreground="#004B82"/>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=VideoScale|System.Double, ConverterCulture={x:Static globalization:CultureInfo.InvariantCulture}, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="2" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2" Foreground="#004B82"/>
|
||||
<Label Grid.Column="1">
|
||||
<Label.Content>
|
||||
<MultiBinding Converter="{StaticResource FormatStringConverter}" Mode="OneWay">
|
||||
@@ -345,7 +345,7 @@
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="60"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=VideoScale|System.Double, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="2" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2" Foreground="#004B82"/>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=VideoScale|System.Double, ConverterCulture={x:Static globalization:CultureInfo.InvariantCulture}, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="2" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2" Foreground="#004B82"/>
|
||||
<Label Grid.Column="1">
|
||||
<Label.Content>
|
||||
<MultiBinding Converter="{StaticResource FormatStringConverter}" Mode="OneWay">
|
||||
@@ -423,7 +423,7 @@
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="60"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=VideoScale|System.Double, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="2" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2" Foreground="#004B82"/>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=VideoScale|System.Double, ConverterCulture={x:Static globalization:CultureInfo.InvariantCulture}, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="2" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2" Foreground="#004B82"/>
|
||||
<Label Grid.Column="1">
|
||||
<Label.Content>
|
||||
<MultiBinding Converter="{StaticResource FormatStringConverter}" Mode="OneWay">
|
||||
@@ -489,7 +489,7 @@
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="60"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=VideoScale|System.Double, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="2" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2" Foreground="#004B82"/>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=VideoScale|System.Double, ConverterCulture={x:Static globalization:CultureInfo.InvariantCulture}, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="2" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2" Foreground="#004B82"/>
|
||||
<Label Grid.Column="1">
|
||||
<Label.Content>
|
||||
<MultiBinding Converter="{StaticResource FormatStringConverter}" Mode="OneWay">
|
||||
@@ -556,7 +556,7 @@
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="60"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=VideoScale|System.Double, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="2" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2" Foreground="#004B82"/>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=VideoScale|System.Double, ConverterCulture={x:Static globalization:CultureInfo.InvariantCulture}, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="2" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2" Foreground="#004B82"/>
|
||||
<Label Grid.Column="1">
|
||||
<Label.Content>
|
||||
<MultiBinding Converter="{StaticResource FormatStringConverter}" Mode="OneWay">
|
||||
@@ -618,7 +618,7 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=ImageScale|System.Double, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="16" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2 3 4 6 8 12 16" Foreground="#004B82"/>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=ImageScale|System.Double, ConverterCulture={x:Static globalization:CultureInfo.InvariantCulture}, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="16" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2 3 4 6 8 12 16" Foreground="#004B82"/>
|
||||
<Label Grid.Row="0" Grid.Column="1">
|
||||
<Label.Content>
|
||||
<MultiBinding Converter="{StaticResource FormatStringConverter}" Mode="OneWay">
|
||||
@@ -667,7 +667,7 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=ImageScale|System.Double, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="16" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2 3 4 6 8 12 16" Foreground="#004B82"/>
|
||||
<Slider x:Name="ScaleSlider" Grid.Column="0" Value="{Binding SelectedPreset.Settings, ConverterParameter=ImageScale|System.Double, ConverterCulture={x:Static globalization:CultureInfo.InvariantCulture}, Converter={StaticResource ConversionSettingsToValueType}, ElementName=window, Mode=TwoWay}" Margin="0,2,0,0" VerticalAlignment="Top" IsSnapToTickEnabled="True" Minimum="0.075" Maximum="16" SmallChange="0.075" LargeChange="0.25" TickPlacement="BottomRight" Ticks="0.075 0.125 0.25 0.5 0.75 1 1.25 1.5 1.75 2 3 4 6 8 12 16" Foreground="#004B82"/>
|
||||
<Label Grid.Column="1">
|
||||
<Label.Content>
|
||||
<MultiBinding Converter="{StaticResource FormatStringConverter}" Mode="OneWay">
|
||||
@@ -781,7 +781,7 @@
|
||||
<Button x:Name="RemovePresetButton" Content="-" ToolTip="{x:Static project:Resources.RemoveSelectedPreset}" HorizontalAlignment="Left" Width="25" Margin="2,0" Click="RemovePresetButton_Click"/>
|
||||
<Button x:Name="MoveDownPresetButton" Content="v" ToolTip="{x:Static project:Resources.MoveDownSelectedPreset}" HorizontalAlignment="Left" Width="25" Margin="2,0,0,0" Click="MovePresetDownButton_Click"/>
|
||||
<TextBlock Margin="5,5,0,0">
|
||||
<Hyperlink CommandParameter="http://github.com/Tichau/FileConverter/wiki/How-to-create-a-new-custom-preset%3F" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" Foreground="#1E6BB8"><x:Static Member="project:Resources.Help" /></Hyperlink>
|
||||
<Hyperlink CommandParameter="https://github.com/Tichau/FileConverter/wiki/How-to-create-a-new-custom-preset%3F" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" Foreground="#1E6BB8"><x:Static Member="project:Resources.Help" /></Hyperlink>
|
||||
</TextBlock>
|
||||
</DockPanel>
|
||||
</Grid>
|
||||
@@ -855,7 +855,7 @@
|
||||
</ComboBox>
|
||||
|
||||
<TextBlock Grid.Row="3" Margin="0,5,0,0">
|
||||
<Hyperlink CommandParameter="http://github.com/Tichau/FileConverter/wiki/Input-file-post-conversion-actions" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" Foreground="#1E6BB8"><x:Static Member="project:Resources.Help" /></Hyperlink>
|
||||
<Hyperlink CommandParameter="https://github.com/Tichau/FileConverter/wiki/Input-file-post-conversion-actions" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" Foreground="#1E6BB8"><x:Static Member="project:Resources.Help" /></Hyperlink>
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
@@ -913,7 +913,7 @@
|
||||
</TextBlock.Text>
|
||||
</TextBlock>
|
||||
<TextBlock Grid.Row="3" Grid.Column="1" Margin="5,0,5,0">
|
||||
<Hyperlink CommandParameter="http://github.com/Tichau/FileConverter/wiki/Output-file-path-template" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" Foreground="#1E6BB8"><x:Static Member="project:Resources.Help" /></Hyperlink>
|
||||
<Hyperlink CommandParameter="https://github.com/Tichau/FileConverter/wiki/Output-file-path-template" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" Foreground="#1E6BB8"><x:Static Member="project:Resources.Help" /></Hyperlink>
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
|
||||
@@ -1002,7 +1002,7 @@
|
||||
|
||||
<StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Center" Margin="5">
|
||||
<Label Content="{x:Static project:Resources.DonateDescription}" VerticalAlignment="Center" FontStyle="Italic"/>
|
||||
<Button Style="{StaticResource DonateButton}" Margin="5,0,5,0" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" CommandParameter="http://pledgie.com/campaigns/31615?from=about">
|
||||
<Button Style="{StaticResource DonateButton}" Margin="5,0,5,0" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" CommandParameter="https://pledgie.com/campaigns/31615?from=about">
|
||||
<Button.Content>
|
||||
<DockPanel>
|
||||
<Image Source="/FileConverter;component/Resources/Pledge-icon.png"></Image>
|
||||
@@ -1013,17 +1013,17 @@
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,0">
|
||||
<Button ToolTip="{x:Static project:Resources.GitHubButtonDescription}" Background="WhiteSmoke" BorderBrush="DarkGray" Padding="1" Margin="5,0,5,0" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" CommandParameter="http://github.com/Tichau/FileConverter/?from=about">
|
||||
<Button ToolTip="{x:Static project:Resources.GitHubButtonDescription}" Background="WhiteSmoke" BorderBrush="DarkGray" Padding="1" Margin="5,0,5,0" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" CommandParameter="https://github.com/Tichau/FileConverter/?from=about">
|
||||
<Button.Content>
|
||||
<Image Source="/FileConverter;component/Resources/GitHub-Icon.png"></Image>
|
||||
</Button.Content>
|
||||
</Button>
|
||||
<Button ToolTip="{x:Static project:Resources.IssueButtonDescription}" Background="WhiteSmoke" BorderBrush="DarkGray" Padding="1" Margin="5,0,5,0" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" CommandParameter="http://github.com/Tichau/FileConverter/issues?from=about">
|
||||
<Button ToolTip="{x:Static project:Resources.IssueButtonDescription}" Background="WhiteSmoke" BorderBrush="DarkGray" Padding="1" Margin="5,0,5,0" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" CommandParameter="https://github.com/Tichau/FileConverter/issues?from=about">
|
||||
<Button.Content>
|
||||
<Image Source="/FileConverter;component/Resources/GitHub-Issue-Icon.png"></Image>
|
||||
</Button.Content>
|
||||
</Button>
|
||||
<Button ToolTip="{x:Static project:Resources.DocumentationButtonDescription}" Background="WhiteSmoke" BorderBrush="DarkGray" Padding="1" Margin="5,0,5,0" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" CommandParameter="http://github.com/Tichau/FileConverter/wiki?from=about">
|
||||
<Button ToolTip="{x:Static project:Resources.DocumentationButtonDescription}" Background="WhiteSmoke" BorderBrush="DarkGray" Padding="1" Margin="5,0,5,0" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" CommandParameter="https://github.com/Tichau/FileConverter/wiki?from=about">
|
||||
<Button.Content>
|
||||
<Image Source="/FileConverter;component/Resources/GitHub-Documentation-Icon.png"></Image>
|
||||
</Button.Content>
|
||||
@@ -1035,7 +1035,7 @@
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
<Label Grid.Row="3" Grid.Column="0" Content="Copyright @ 2016, Adrien Allard. All right reserved." Foreground="#FF4D4D4D" Margin="0,2,0,2"/>
|
||||
<Label Grid.Row="3" Grid.Column="0" Content="Copyright @ 2017, Adrien Allard. All right reserved." Foreground="#FF4D4D4D" Margin="0,2,0,2"/>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace FileConverter
|
||||
|
||||
public SettingsWindow()
|
||||
{
|
||||
this.SupportedCultures = Helpers.GetSupportedCultures().Where(cultureInfo => cultureInfo.IsNeutralCulture).ToArray();
|
||||
this.SupportedCultures = Helpers.GetSupportedCultures().ToArray();
|
||||
|
||||
this.InitializeComponent();
|
||||
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
## Version 1.2.2
|
||||
- Added: Portuguese translation (thanks to Khidreal).
|
||||
- Fixed: Issue where scale was corrupted when switching application language (github issue #5).
|
||||
- Fixed: Issue where file metadata were not copied when converting to aac format (github issue #15).
|
||||
- Tech: Update to ffmpeg 3.2.2 version.
|
||||
- Tech: Improve security using https instead of http for upgrade system and links (thanks to TheAresjej).
|
||||
|
||||
## Version 1.2.1
|
||||
- Fixed: Issue where audio file tags were not copied in a format readable by Windows.
|
||||
- Fixed: Issue where the default language was set to french (github issue #6).
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<!-- Upgrade documentation: http://wixtoolset.org/documentation/manual/v3/howtos/updates/major_upgrade.html -->
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Product Id="*" Name="$(var.ProductName)" Language="1033" Version="1.2.1" Manufacturer="Adrien Allard" UpgradeCode="e3ca717b-a897-418a-bbef-5c7e35c76e4b">
|
||||
<Product Id="*" Name="$(var.ProductName)" Language="1033" Version="1.2.2" Manufacturer="Adrien Allard" UpgradeCode="e3ca717b-a897-418a-bbef-5c7e35c76e4b">
|
||||
<?if $(var.Platform) = x64 ?>
|
||||
<Package Id="*" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
|
||||
<?else ?>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -5,37 +5,43 @@
|
||||
|
||||
You can download it here: [www.file-converter.org](http://file-converter.org/?from=readme.md).
|
||||
|
||||
You can find more information about what's in File converter and how to use it on the [wiki](http://github.com/Tichau/FileConverter/wiki).
|
||||
You can find more information about what's in File converter and how to use it on the [wiki](https://github.com/Tichau/FileConverter/wiki).
|
||||
|
||||
You can help this project by contributing on [Github](http://github.com/Tichau/FileConverter/) or by making a donation on [Pledgie](http://pledgie.com/campaigns/31615) :).
|
||||
You can help this project by contributing on [Github](https://github.com/Tichau/FileConverter) or by making a donation on [Pledgie](https://pledgie.com/campaigns/31615) :).
|
||||
|
||||
## Thanks
|
||||
|
||||
### Localization
|
||||
|
||||
Thanks to **Khidreal** for the Portuguese localization.
|
||||
|
||||
## Middlewares
|
||||
|
||||
File converter uses the following middlewares:
|
||||
|
||||
**ffmpeg** as file conversion software.
|
||||
Thanks to ffmpeg devs for this awesome open source file conversion tool. [Web site link](https://www.ffmpeg.org/)
|
||||
Thanks to ffmpeg devs for this awesome open source file conversion tool. [Web site link](https://ffmpeg.org)
|
||||
|
||||
**ImageMagick** as image edition and conversion software.
|
||||
Thanks to image magick devs for this awesome open source image edition software suite. [Web site link](http://imagemagick.net/)
|
||||
And thanks to dlemstra for the C# wrapper of this software. [CodePlex link](https://magick.codeplex.com/)
|
||||
Thanks to image magick devs for this awesome open source image edition software suite. [Web site link](http://imagemagick.net)
|
||||
And thanks to dlemstra for the C# wrapper of this software. [CodePlex link](https://magick.codeplex.com)
|
||||
|
||||
**Ghostscript** as pdf edition software.
|
||||
Thanks to ghostscript devs. [Download link](http://www.ghostscript.com/download/gsdnld.html)
|
||||
Thanks to ghostscript devs. [Download link](https://www.ghostscript.com/download/gsdnld.html)
|
||||
|
||||
**SharpShell** to easily create windows context menu extensions.
|
||||
Thanks to Dave Kerr for his work on SharpShell. [CodePlex link](https://sharpshell.codeplex.com/)
|
||||
Thanks to Dave Kerr for his work on SharpShell. [CodePlex link](https://sharpshell.codeplex.com)
|
||||
|
||||
**Ripper** and **yeti.mmedia** for CD Audio extraction.
|
||||
Thanks to Idael Cardoso for his work on CD Audio ripper. [Code project link](http://www.codeproject.com/Articles/5458/C-Sharp-Ripper)
|
||||
Thanks to Idael Cardoso for his work on CD Audio ripper. [Code project link](https://www.codeproject.com/Articles/5458/C-Sharp-Ripper)
|
||||
|
||||
**Markdown.XAML** for markdown rendering in the wpf application.
|
||||
Thanks to Bevan Arps for his work on Markdown.XAML. [GitHub link](http://github.com/theunrepentantgeek/Markdown.XAML)
|
||||
Thanks to Bevan Arps for his work on Markdown.XAML. [GitHub link](https://github.com/theunrepentantgeek/Markdown.XAML)
|
||||
|
||||
**WpfAnimatedGif** for animated gif rendering in the wpf application.
|
||||
Thanks to Thomas Levesque for his work on WpfAnimatedGif. [GitHub link](http://github.com/XamlAnimatedGif/WpfAnimatedGif)
|
||||
Thanks to Thomas Levesque for his work on WpfAnimatedGif. [GitHub link](https://github.com/XamlAnimatedGif/WpfAnimatedGif)
|
||||
|
||||
## License
|
||||
|
||||
File Converter is licensed under the GPL version 3 License.
|
||||
For more information check the LICENSE.md file in your installation folder or the [gnu website](http://www.gnu.org/licenses/gpl.html).
|
||||
For more information check the LICENSE.md file in your installation folder or the [gnu website](https://www.gnu.org/licenses/gpl.html).
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
<Version>
|
||||
<Latest Major="1" Minor="2" Patch="0"/>
|
||||
<URL>http://github.com/Tichau/FileConverter/releases/download/v1.2/FileConverter-1.2-x86-setup.msi</URL>
|
||||
</Version>
|
||||
<Latest Major="1" Minor="2" Patch="1"/>
|
||||
<URL>https://github.com/Tichau/FileConverter/releases/download/v1.2.1/FileConverter-1.2.1-x86-setup.msi</URL>
|
||||
</Version>
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
<Version>
|
||||
<Latest Major="1" Minor="2" Patch="0"/>
|
||||
<URL>http://github.com/Tichau/FileConverter/releases/download/v1.2/FileConverter-1.2-x64-setup.msi</URL>
|
||||
</Version>
|
||||
<Latest Major="1" Minor="2" Patch="1"/>
|
||||
<URL>https://github.com/Tichau/FileConverter/releases/download/v1.2.1/FileConverter-1.2.1-x64-setup.msi</URL>
|
||||
</Version>
|
||||
Reference in new issue
Block a user