Author Topic: BASS_Encode_Start stops recrding to file after 3 hours and 22 minutes  (Read 315 times)

axisdj

  • Posts: 56
Hello

I am using BASS_Encode_Start with lame encoder:

Code: [Select]
recordEncode = BASS_Encode_Start(theMixer, com, BASS_ENCODE_AUTOFREE, vbNull, 0)  the above works but stops recording at 3h:22m

I read that maybe noHead flag needs to be set but when I do this:

Code: [Select]
recordEncode = BASS_Encode_Start(theMixer, com, BASS_ENCODE_NOHEAD or BASS_ENCODE_AUTOFREE, vbNull, 0) 
nothing gets recorded, no bass error reported either. The recordEncode is not 0

My lame argument: com = "lame -b " & currentRate & " - " & theName

any guidance on this?

Thanks

Chris

  • Posts: 1967
Hello

I am using BASS_Encode_Start with lame encoder:

Code: [Select]
recordEncode = BASS_Encode_Start(theMixer, com, BASS_ENCODE_AUTOFREE, vbNull, 0)  the above works but stops recording at 3h:22m

I read that maybe noHead flag needs to be set but when I do this:

Code: [Select]
recordEncode = BASS_Encode_Start(theMixer, com, BASS_ENCODE_NOHEAD or BASS_ENCODE_AUTOFREE, vbNull, 0) 
nothing gets recorded, no bass error reported either. The recordEncode is not 0

My lame argument: com = "lame -b " & currentRate & " - " & theName

any guidance on this?

Thanks
BASS_ENCODE_NOHEAD, will mean that bass will not self building that WaveHeader

just try this
Code: [Select]
recordEncode = BASS_Encode_Start(theMixer, com, BASS_ENCODE_RF64 or BASS_ENCODE_AUTOFREE, vbNull, 0) 

axisdj

  • Posts: 56
thanks I will try that and post the result.. testing now

axisdj

  • Posts: 56
no still same result,

stops recording to file at 3h 22m 54s

WP

Chris

  • Posts: 1967
try this
 
Code: [Select]
recordEncode = BASS_Encode_Start(theMixer, com, BASS_ENCODE_NOHEAD or BASS_ENCODE_AUTOFREE, vbNull, 0)
com = lame  -r -s 44100 -b 128 -

The -r will tell Lame not to look at a Waveheader
« Last Edit: 12 Jul '21 - 08:24 by Chris »

axisdj

  • Posts: 56
that fixed it thanks!