WAV samplerate conversion with CODEC ID 1 ???

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

WAV samplerate conversion with CODEC ID 1 ???

christian.will

Is it somehow possible to convert wav audio takes with a CODEC ID of 1?
Because ffmpeg and sox are creating very long and "unusal" codec ids like:
00000001-0000-0010-8000-00AA00389B71


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: WAV samplerate conversion with CODEC ID 1 ???

Tobias Rapp-2
On 15.09.2020 11:44, [hidden email] wrote:
> Is it somehow possible to convert wav audio takes with a CODEC ID of 1?
> Because ffmpeg and sox are creating very long and "unusal" codec ids like:
> 00000001-0000-0010-8000-00AA00389B71

That GUID is part of the WaveFormatExtensible structure, used by WAVE
files to specify additional format properties. It means "PCM", see the
section about "SubFormat" in [1], and should be compatible with common
playback software.

Regards, Tobias

Links:
[1]
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ksmedia/ns-ksmedia-waveformatextensible

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: WAV samplerate conversion with CODEC ID 1 ???

Carl Eugen Hoyos-2
Am Di., 15. Sept. 2020 um 11:59 Uhr schrieb Tobias Rapp
<[hidden email]>:
>
> On 15.09.2020 11:44, [hidden email] wrote:
> > Is it somehow possible to convert wav audio takes with a CODEC ID of 1?
> > Because ffmpeg and sox are creating very long and "unusal" codec ids like:
> > 00000001-0000-0010-8000-00AA00389B71

Command line and complete, uncut console output missing.

No, because we don't want to create files that do not conform to the
wav standard.
(You can easily change the source code yourself if you have to.)

> That GUID is part of the WaveFormatExtensible structure, used by WAVE
> files to specify additional format properties. It means "PCM", see the
> section about "SubFormat" in [1], and should be compatible with common
> playback software.

Very often, it sadly isn't.

We should probably add an option to force tag 1.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: WAV samplerate conversion with CODEC ID 1 ???

christian.will
In reply to this post by Tobias Rapp-2


>-----Urspr√ľngliche Nachricht-----
>Von: ffmpeg-user <[hidden email]> Im Auftrag von Tobias Rapp
>Gesendet: Dienstag, 15. September 2020 11:59
>An: [hidden email]
>Betreff: Re: [FFmpeg-user] WAV samplerate conversion with CODEC ID 1 ???
>
>On 15.09.2020 11:44, [hidden email] wrote:
>> Is it somehow possible to convert wav audio takes with a CODEC ID of 1?
>> Because ffmpeg and sox are creating very long and "unusal" codec ids like:
>> 00000001-0000-0010-8000-00AA00389B71
>
>That GUID is part of the WaveFormatExtensible structure, used by WAVE files to specify additional format properties. It means "PCM", see the section about "SubFormat" in [1], and >should be compatible with common playback software.
>
>Regards, Tobias
>
>Links:
>[1]
>https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ksmedia/ns-ksmedia-waveformatextensible

So it is not possible to keep the original format code 1 and ffmpeg will always create an EXTENSIBLE container??
Because some software is not able to use the Ext GUIDs.
Havent found anything in the ffmpeg format documentation.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: WAV samplerate conversion with CODEC ID 1 ???

Tobias Rapp-2
On 15.09.2020 12:20, [hidden email] wrote:
> So it is not possible to keep the original format code 1 and ffmpeg will always create an EXTENSIBLE container??
> Because some software is not able to use the Ext GUIDs.
> Havent found anything in the ffmpeg format documentation.

I don't think such an option on WAV format level exists at the moment.
Usually the WaveFormatExtensible variant is written by audio software in
case of bit-width > 16 or channel count > 2.

What are the output properties in your case (FFmpeg console output)? And
what software did you try opening the output file with?

Regards, Tobias

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: WAV samplerate conversion with CODEC ID 1 ???

christian.will


>-----Urspr√ľngliche Nachricht-----
>on: ffmpeg-user <[hidden email]> Im Auftrag von Tobias Rapp
>Gesendet: Dienstag, 15. September 2020 12:32
>An: [hidden email]
>Betreff: Re: [FFmpeg-user] WAV samplerate conversion with CODEC ID 1 ???
>
>On 15.09.2020 12:20, [hidden email] wrote:
>> So it is not possible to keep the original format code 1 and ffmpeg will always create an EXTENSIBLE container??
>> Because some software is not able to use the Ext GUIDs.
>> Havent found anything in the ffmpeg format documentation.
>
>I don't think such an option on WAV format level exists at the moment.
>Usually the WaveFormatExtensible variant is written by audio software in case of bit-width > 16 or channel count > 2.
>
>What are the output properties in your case (FFmpeg console output)? And what software did you try opening the output file with?

I see. Yes a force option would be cool if possible hehe
Our format here and generally is 48/24/mono but sometimes also 44/16/mono
The software used to opening was some lip animation software, dont know the name.



_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: WAV samplerate conversion with CODEC ID 1 ???

christian.will
In reply to this post by Carl Eugen Hoyos-2


<-----Urspr√ľngliche Nachricht-----
<Von: ffmpeg-user <[hidden email]> Im Auftrag von Carl Eugen Hoyos
<Gesendet: Dienstag, 15. September 2020 12:20
<<An: FFmpeg user questions <[hidden email]>
<Betreff: Re: [FFmpeg-user] WAV samplerate conversion with CODEC ID 1 ???<
<
<Am Di., 15. Sept. 2020 um 11:59 Uhr schrieb Tobias Rapp
<<[hidden email]>:
<>
<> On 15.09.2020 11:44, [hidden email] wrote:
<> > Is it somehow possible to convert wav audio takes with a CODEC ID of 1?
<> > Because ffmpeg and sox are creating very long and "unusal" codec ids like:
<> > 00000001-0000-0010-8000-00AA00389B71<
<
<Command line and complete, uncut console output missing.<
<
<No, because we don't want to create files that do not conform to the wav standard.
<(You can easily change the source code yourself if you have to.)<
<
<> That GUID is part of the WaveFormatExtensible structure, used by WAVE
<> files to specify additional format properties. It means "PCM", see the
<> section about "SubFormat" in [1], and should be compatible with common
<> playback software.<
<
<Very often, it sadly isn't.
<
<We should probably add an option to force tag 1.

Thanks for the reply!

Fyi
Just found out, it is possible with sox
As you can specify the filetype/format with -t <wavpcm> command
$ sox input.wav -t wavpcm -b 24 output.wav ...



_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".