Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 06-23-2020, 07:28 PM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default Batchconverter: no extension in target-file when converting via commandline on Linux

I noticed, when using Reaper 6.10 on Linux, using the batchconverter via command-line doesn't add the proper file-extension to the filename. Unlike when I'm using the batchconverter in Reaper via GUI.

I'm not sure whether I'm doing it wrong but this doesn't seem to be on Mac and Windows.

This is the data I'm using to convert a file:

Code:
/home/meo-ada/Schreibtisch/temp.mp4  /home/meo-ada/Schreibtisch/temp
<CONFIG
  <OUTFMT 
    bDNwbVAAAAAAAAAABQAAAP////8EAAAAUAAAAAAAAAA=    
    SRATE 48000    
    NCH 2    
    RSMODE 7    
    DITHER 0    
    PAD_START 0
    PAD_END 0
    OUTPATH /home/meo-ada/Schreibtisch/    
    OUTPATTERN ''
  >
>

As I said, on Windows and Mac, it adds the file-extension, but not on Linux.
I also noted, that under some circumstance, the file is output into the directory stored in reaper.ini's lastcwd-entry, not the output-directory itself. This doesn't seem to be always the case and I couldn't figure out, what is happening here.
On Mac and Windows, the file is written into another directory.

I added the path to the targetfile in the datastructure above, which then stores the target-file into the right folder, but there seems to be some inconsistency in here.

I'm using Ubuntu Studio 19.10 on Intel.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-24-2020, 05:17 AM   #2
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,915
Default

You have your <CONFIG chunk incorrect, this is how it needs to be specified:
Code:
/home/meo-ada/Schreibtisch/temp.mp4
<CONFIG
  <OUTFMT 
    bDNwbVAAAAAAAAAABQAAAP////8EAAAAUAAAAAAAAAA=
  >
  SRATE 48000    
  NCH 2    
  RSMODE 7    
  DITHER 0    
  PAD_START 0
  PAD_END 0
  OUTPATH /home/meo-ada/Schreibtisch/    
  OUTPATTERN ''
>
Note that if you specify the output filename on the line of the source media (following the tab), then it should specify the extension (I believe this is consistently handled across platforms).
Justin is offline   Reply With Quote
Old 06-24-2020, 08:29 AM   #3
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Ah ok, thanks

A little nitpick then, would it be possible to add such an example to the comman-line help as well?

I really had trouble getting, how this was intended, so an example would be helpful with that, I think.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-24-2020, 12:58 PM   #4
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,915
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Ah ok, thanks

A little nitpick then, would it be possible to add such an example to the comman-line help as well?

I really had trouble getting, how this was intended, so an example would be helpful with that, I think.
We'll improve the help text, e.g.
Code:
  -batchconvert filelist.txt : batch converter mode, filelist.txt includes:
     filename.wav
       (or)
     filename.wav(TAB CHARACTER)outputfile.wav
       (any number of additional files)
     <CONFIG block (optional) which can contain:
       SRATE 44100 (omit to use source samplerate)
       NCH 2 (omit to use source channel count)
       RSMODE modeidx (resample mode, copy from project file)
       DITHER 3 (1=dither, 2=noise shaping, 3=both)
       USESRCSTART 1 (write source media BWF start offset to output)
       PAD_START 1.0 (leading silence in sec, can be negative)
       PAD_END 1.0 (trailing silence in sec, can be negative)
       OUTPATH 'path'
       OUTPATTERN 'wildcardpattern'
       FXCHAIN 'fxchainfilename' (use full path if specified, otherwise FxChains directory)
       <FXCHAIN
         (contents of .RfxChain file)
       >
       <OUTFMT
         (base64 data, e.g. contents <RECORD_CFG block from project file)
       >
       <METADATA
         (contents of <RENDER_METADATA block from project file)
       >
     >

Last edited by Justin; 06-24-2020 at 01:06 PM.
Justin is offline   Reply With Quote
Old 06-24-2020, 04:28 PM   #5
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Fantastic
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.