[FFmpeg-devel] Question about ffmpeg support of sph files with embedded-shorten-v2.00 coding

2023-08-29 Thread Don Resnik
ffmpeg,

I have a sph file that ffmpeg will not process.  I am using ffmpeg 6.0,
which I believe is the latest version.   I am actually running ffprobe on
the file.

Here is the file header:

NIST_1A
   1024
sample_count -i 10612160
sample_n_bytes -i 1
channel_count -i 2
sample_byte_format -s1 1
sample_rate -i 8000
sample_coding -s27 ulaw,embedded-shorten-v2.00
database_id -s8 CALLHOME
pin -s6 509115
sample_checksum -i 12165
end_head

Here is the command:
>ffprobe -i input-file.sph

and here is the output:
[nistsphere @ 0x29f1ac0] coding ulaw,embedded-shorten-v2.00 is not
implemented. Update your FFmpeg version to the newest one from Git. If the
problem still occurs, it means that your file has a feature which has not
been implemented.

Before I go through sending a sample file, I would just like to confirm
that ffmpeg should be able to process audio files with:

'sample_coding -s27 ulaw,embedded-shorten-v2.00'

I was hoping there was a setting for configuration I could try that I have
not discovered yet to make this work.

Thank you for your help resolving this issue.

Don R.
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] Question about ffmpeg support of sph files with embedded-shorten-v2.00 coding

2023-08-29 Thread Don Resnik
Peter,

Thanks for your response.  I mentioned that I am using ffmpeg 6.0, isn't
that the latest version?

I will submit on the bug tracker side.  After doing some research, I think
the issue is that in

https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/nistspheredec.c#L73
The only embedded-shorten condition that is handled is this one

} else if (!av_strncasecmp(coding, "pcm,embedded-shorten", 20))
{

There is no accounting for my coding condition 'ulaw,embedded-shorten-v2.00'

I will submit it as a bug, but I may also try to make a patch to test that
if I include my coding in the conditional that it will work.

Thanks,

Don R

On Tue, Aug 29, 2023 at 4:30 PM Peter Ross  wrote:

> On Tue, Aug 29, 2023 at 12:45:57PM -0400, Don Resnik wrote: > ffmpeg,
> >
> > I have a sph file that ffmpeg will not process.  I am using ffmpeg 6.0,
> > which I believe is the latest version.   I am actually running ffprobe on
> > the file.
> >
> > Here is the file header:
>
> ...
>
> > and here is the output:
> > [nistsphere @ 0x29f1ac0] coding ulaw,embedded-shorten-v2.00 is not
> > implemented. Update your FFmpeg version to the newest one from Git. If
> the
> > problem still occurs, it means that your file has a feature which has not
> > been implemented.
> >
> > Before I go through sending a sample file, I would just like to confirm
> > that ffmpeg should be able to process audio files with:
> >
> > 'sample_coding -s27 ulaw,embedded-shorten-v2.00'
> >
> > I was hoping there was a setting for configuration I could try that I
> have
> > not discovered yet to make this work.
>
> Follow the instructions: *Update your FFmpeg version to the newest one
> from Git.*
>
> If you do not know how to update FFmpeg from git, I suggest using an
> automatic build: https://github.com/BtbN/FFmpeg-Builds/releases
>
> If problem still exists report it on the bug tracker:
> https://trac.ffmpeg.org/ . Attach sample file to bug report.
>
> -- Peter
> (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
> ___
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".