Re: FFmpeg with dBpoweramp?
First take a wave file, and get it so FFmpeg can convert it on the command line, on its own, then post the command line you used please.
Re: FFmpeg with dBpoweramp?
[QUOTE=Spoon;163733]First take a wave file, and get it so FFmpeg can convert it on the command line, on its own, then post the command line you used please.[/QUOTE]
Original file
Name: 0.wav
Channels: 2
Sample Rate: 44.1khz
Bit depth: 16 bit
Command used with ffmpeg in command line:
ffmpeg -i 0.wav -vn -c:a aac -b:a 256k 0.m4a
Command used with dbpoweramp:
-i [infile] -vn -c:a aac -b:a 256k [outfile]
with 'pass wave header' selected and everything left as default
converting with dbpoweramp creates a .m4a file of 0 bytes.
Re: FFmpeg with dBpoweramp?
-i "[infile]" -vn -c:a aac -b:a 256k "[outfile]"
Re: FFmpeg with dBpoweramp?
[QUOTE=Spoon;163737]-i "[infile]" -vn -c:a aac -b:a 256k "[outfile]"[/QUOTE]
I already tried that. Still produces a file with 0 bytes.
Re: FFmpeg with dBpoweramp?
Try:
-i "[infile_long]" -vn -c:a aac -b:a 256k "[outfile_long]"
2 Attachment(s)
Re: FFmpeg with dBpoweramp?
[QUOTE=Spoon;163744]Try:
-i "[infile_long]" -vn -c:a aac -b:a 256k "[outfile_long]"[/QUOTE]
Nope, still didn't work. :/
[ATTACH=CONFIG]855[/ATTACH]
[ATTACH=CONFIG]856[/ATTACH]
Re: FFmpeg with dBpoweramp?
In Configure dBpoweramp is an option to enable debugging in music converter, enable it and do a conversion, it should show the exact filenames command line passed to the cli encoder in the debug log.
Re: FFmpeg with dBpoweramp?
[QUOTE=Spoon;163749]In Configure dBpoweramp is an option to enable debugging in music converter, enable it and do a conversion, it should show the exact filenames command line passed to the cli encoder in the debug log.[/QUOTE]
Everything seems fine, but still no idea why it's not producing any output.
[QUOTE]Splitting Command Line:Done
->-> [dBCoreConverter::ReaddBCommandFile]
<-<- [dBCoreConverter::ReaddBCommandFile]
Decodes [clDecoder::Get]
BatchID [clDecoder::Set]
->-> [cldBCodecHandler::LoadEncoder]
Loading Encoder 'D:\Program Files\dBpoweramp\encoder\CLI Encoder.DLL'
<-<- [cldBCodecHandler::LoadEncoder]
BatchID [clEncoder::Set]
->-> [dBCoreConverter::StripCoreConverterCmds]
<-<- [dBCoreConverter::StripCoreConverterCmds]
SendRawUnCompressed [clEncoder::Get]
Communicate [clDecoder::Get]
Communicate [clEncoder::Get]
NeedHQAudio [clEncoder::Get]
->-> [clDecoder::Open]
Opening file 'C:\Users\Makm\Desktop\0.wav' for read access: Opened
Reading Audio Information
->-> [clWaveDecoder::Initialize]
<-<- [clWaveDecoder::Initialize]
->-> [clRIFFHandler::Initialize]
clRIFFHandler::CalcAllChunks: Ok
<-<- [clRIFFHandler::Initialize]
->-> [clRIFFHandler::ScanFile]
clRIFFHandler::CalcAllChunks: Ok
RIFF Header 'RIFF' Length: 42865414 FormType 'WAVE'
Got Chunk 'fmt ' Length: 16 RiffSizeLeft: 42865402 ChunkPosition: 12
Got Chunk 'data' Length: 42865360 RiffSizeLeft: 42865378 ChunkPosition: 36
Got Chunk 'id3 ' Length: 10 RiffSizeLeft: 10 ChunkPosition: 42865404
clRIFFHandler::CalcAllChunks: Ok
<-<- [clRIFFHandler::ScanFile]
Read Audio Information
->-> [clWaveDecoder::ReadIDTags]
->-> [clWaveDecoder::PullOutFMTnDATA]
Finding 'fmt ' chunk.
Finding 'data' chunk.
Assigning 'fmt ' chunk to WFX
<-<- [clWaveDecoder::PullOutFMTnDATA]
2 ID Tags:
_riff_1: DATA Length: 4 fmt
_riff_2: DATA Length: 4 data
<-<- [clWaveDecoder::ReadIDTags]
->-> [clWaveDecoder::FillAudioProps]
Audio Quality: CD (Lossless)
Encoder Settings: PCM
Wave Header: Wave Format PCM
Channel Mapping: Left, Right
Sample Count: 10,716,340
Riff Chunks: 'fmt ' 16 bytes, 'data' 40.88 MB, 'id3 ' 10 bytes
ID Tag: ID3
Contains: ID Tag [ID3]
Gapless: Yes
<-<- [clWaveDecoder::FillAudioProps]
Writing Audio Information
->-> [clWaveDecoder::FillAudioInfo]
Audio Length: 243000 mili-seconds 42865360 bytes 1411 kbps
<-<- [clWaveDecoder::FillAudioInfo]
Written Audio Information
Preparing to Decode
->-> [clWaveDecoder::PrepareToDecodeAudio]
Calling ACMDecoder.CreateNewConverter
Compressed WFX (on file): Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 44100 Bytes Per Second: 176400 Block Align: 4 CB Size: 0
Uncompressed WFX (sent to db): Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 44100 Bytes Per Second: 176400 Block Align: 4 CB Size: 0
Setting Position in File
<-<- [clWaveDecoder::PrepareToDecodeAudio]
Prepared Decoding
<-<- [clDecoder::Open]
SendOverReplayGainTags [clEncoder::Get]
->-> [clEncoder::BeginConversion]
Converting to 'C:\Users\Makm\Desktop\0.m4a' encoder settings ' -cli_encoder="C:\Users\Makm\Desktop\ffmpeg.exe" -cli_cmd="-i {qt}[infile]{qt} -vn -c:a aac -b:a 256k {qt}[outfile]{qt}" -nodbtag'
Using Encoder 'C:\Users\Makm\Desktop\ffmpeg.exe'
Command Line '-i "C:\Users\Makm\Desktop\0M4ATM~1.WAV" -vn -c:a aac -b:a 256k "C:\Users\Makm\Desktop\0.m4a"'
Input Wave Format:Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 44100 Bytes Per Second: 176400 Block Align: 4 CB Size: 0
Output Wave Format:Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 44100 Bytes Per Second: 176400 Block Align: 4 CB Size: 0
Passing Wave Header: Yes
Using StdInput Pipe: No
dBpoweramp Writing Tags: No
<-<- [clEncoder::BeginConversion]
Communicate [clDecoder::Get]
Communicate [clEncoder::Get]
Encoding To: CLI Encoder
Encoder Cmd Line: -cli_encoder="C:\Users\Makm\Desktop\ffmpeg.exe" -cli_cmd="-i {qt}[infile]{qt} -vn -c:a aac -b:a 256k {qt}[outfile]{qt}" -nodbtag
============= CONVERSION BEGIN =============
============= CONVERSION END =============
Communicate [clDecoder::Get]
Communicate [clEncoder::Get]
->-> [dBCoreConverter::CloseDecoder]
->-> [clDecoder::Close]
->-> [clWaveDecoder::Close]
<-<- [clWaveDecoder::Close]
<-<- [clDecoder::Close]
->-> [clEncoder::EndConversion]
Running program after conversion 'D:\Program Files\dBpoweramp\encoder\CLI Encoder\' Command Line:
Program completed
<-<- [clEncoder::EndConversion]
File Size Check : 0 bytes Filename: C:\Users\Makm\Desktop\0.m4a
Communicate [clDecoder::Get]
Communicate [clEncoder::Get]
Conversion completed in 156 mili-seconds x1557 realtime encoding
File Size Check (core converter exit): 0 bytes Filename: C:\Users\Makm\Desktop\0.m4a[/QUOTE]
I got ffmpeg to work with foobar2000, and here is the command line: -i %s -vn -c:a aac -b:a 256k %d
Using it with dbpoweramp would be more convenient for me since I can directly convert from right click menu.
Re: FFmpeg with dBpoweramp?
It might be failing because dBpoweramp creates a zero byte file, which is needed for the short path name, see if ffmpeg has an option to overwrite existing files.