Conversion

  • 05 Oct

    How to convert audio from one format to another format

    How to convert audio from one format to another format

    Q: We would like to archive audio, convert from one format and downsample to another format. What I’ve tested is FFmpeg.exe  This program would need to execute a command to convert the original file to another format at the destination. This seems really simple, command line execution, but you would know how best to format this process. We would be copying files from source to destination. Here’s the command we’d execute for each file (obviously the file names would be different for each file).

    ffmpeg -i audio.wav -acodec libmp3lame audio.mp3

    I figured it out how to make this work with 2 rules.

    • First rule to execute the command and convert the files.
    • The second rule to be triggered when the first rule is complete to move the files to central storage. I just processed 145 files and it was effortless.
    One question. IF the command that is being executed in rule 1 has a problem (error message “process already running”) or anything like that, how do I kill the process that is operating in the background? I experienced this when I didn’t have a setting for overwrite, it was looking for a Y or N to continue. I added the setting to overwrite, but if something else comes up?
    • Added CMD (Command Line) as Destination:
    limagito file mover command line as destination
    • Screenshot of the Command settings I used:
      • Command Line: CMD /C “C:\Temp\ffmpeg.exe” -i “%SFP%SFN” -y -ab 48k “%DFP%DFW.mp3”
        • CMD /C: Execute Command and Close afterwards
        • %SFP: Source File Path ( Path ends with a \ )
        • %SFN: Source File Name
        • -y to confirm overwrites without needing a user interference
        • %SDFP: Destination File Path, in this setup it was set to C:\Temp\Test\
        • %DFW: Destination File Name Without Extension

    limagito filemover convert audio

    A: Setup looks good. You need command line switches that do not ask any feedback to the ‘user’. In case of error it should return a value <> 0. I guess it will be possible with ffmpeg.exe and it seems you already did by adding the -y switch.

    If you need any help about this ‘convert audio’ request, please let us know.

    Best Regards,

    Limagito Team

    #ffmpeg #managedfiletransfer #filetransfer #filemanagement

    By Limagito-Team Command Conversion
  • 28 Aug

    How to convert UTF8-BOM to UTF8 by stripping the three-byte BOM

    Q: Can LimagitoX convert UTF8-BOM to UTF8 by stripping the three-byte BOM (EF BB BF) from files?

    A: Yes, please add a PScript as Destination:

    • Add the following script: link

    limagito file mover stripping the three-byte BOM

    Feedback customer:

    Thank you for your prompt response. Success! Thank you for your help.

    If you need any help about this ‘stripping the three-byte BOM’, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement

  • 09 Jan

    How to search for a string and replace it with a CRLF

    How to search for a string and replace it with a CRLF

    Q: Is it possible to search for a string and replace it with a CRLF (as we say in windows) [Return]

    The main issue is to replace <br/> with a carriage return Line feed

    A: Yes this is possible by adding the following script:

    • We used a Windows folder as Source:

    limagito file mover Windows folder as source

    • Because we only want to process text files, we added the following include filename filter:

    limagito file mover file filter setup

    • As Destination we added our Pascal Script option, do not forget to adjust the ctOutputPath const:
      • Please add the following script: link
      • This script will replace all <br/> entries by #13#10 (CRLF)

    limagito file mover destination setup

     

    #fileconversion #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this question, please let us know.

    Best Regards,

    Limagito Team

     

SEARCH