Skip to main content
Topic: Why do I convert a 24bit AIFF failed in ffmpeg? (Read 339 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Why do I convert a 24bit AIFF failed in ffmpeg?

C:\Users\Administrator\Desktop>ffmpeg -i "YOU.flac" -c:a pcm_s24le -write_id3v2 1 YOU.aiff
ffmpeg version N-93389-gd15117c996 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.103 / 58. 47.103
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, flac, from 'YOU.flac':
  Metadata:
    TITLE           : YOU
    ALBUM           : YOU
    ARTIST          : 寮犳暚杞
  Duration: 00:03:26.45, start: 0.000000, bitrate: 1749 kb/s
    Stream #0:0: Audio: flac, 48000 Hz, stereo, s32 (24 bit)
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> pcm_s24le (native))
Press [q] to stop, [?] for help
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
Error initializing output stream 0:0 --
Conversion failed!

Why do I convert a 24bit AIFF failed in ffmpeg?Does ffmpeg support AIFF 24bit converting?

Re: Why do I convert a 24bit AIFF failed in ffmpeg?

Reply #1
Yeah, it looks like you don't have write permission for the destination folder.

Re: Why do I convert a 24bit AIFF failed in ffmpeg?

Reply #2
Oh, you're trying to convert FLAC to AIFF. Huh. I'll look at the code.
Thank you ver much.I also fail to convert different formats of 24bit audios (such as wav,alac,aiff and so on) to aiff in ffmpeg.

Re: Why do I convert a 24bit AIFF failed in ffmpeg?

Reply #3
Yeah, it looks like you don't have write permission for the destination folder.
but it would be successfully converting if the output audio was 16bit

Re: Why do I convert a 24bit AIFF failed in ffmpeg?

Reply #4
C:\Users\Administrator\Desktop>ffmpeg -i "YOU.flac" -c:a pcm_s16le -write_id3v2 1 YOU.aiff
ffmpeg version N-93389-gd15117c996 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.103 / 58. 47.103
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, flac, from 'YOU.flac':
  Metadata:
    TITLE           : YOU
    ALBUM           : YOU
    ARTIST          : 寮犳暚杞
  Duration: 00:03:26.45, start: 0.000000, bitrate: 1749 kb/s
    Stream #0:0: Audio: flac, 48000 Hz, stereo, s32 (24 bit)
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, aiff, to 'YOU.aiff':
  Metadata:
    TITLE           : YOU
    ALBUM           : YOU
    ARTIST          : 寮犳暚杞
    encoder         : Lavf58.26.101
    Stream #0:0: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 15
36 kb/s
    Metadata:
      encoder         : Lavc58.47.103 pcm_s16le
size=   38710kB time=00:03:26.44 bitrate=1536.0kbits/s speed= 735x
video:0kB audio:38709kB subtitle:0kB other streams:0kB global headers:0kB muxing
 overhead: 0.000474%


but it succeed when converting to 16bit

Re: Why do I convert a 24bit AIFF failed in ffmpeg?

Reply #5
[...]
  built with gcc 8.2.1 (GCC) 20190212
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.103 / 58. 47.103
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[...]
[...]
  built with gcc 8.2.1 (GCC) 20190212
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.103 / 58. 47.103
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[...]
littlebit not theme: ffmpeg -hide_banner ...

Re: Why do I convert a 24bit AIFF failed in ffmpeg?

Reply #6
[...]
  built with gcc 8.2.1 (GCC) 20190212
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.103 / 58. 47.103
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[...]
[...]
  built with gcc 8.2.1 (GCC) 20190212
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.103 / 58. 47.103
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[...]
littlebit not theme: ffmpeg -hide_banner ...
haha,thank you! I got it!Useful!

Re: Why do I convert a 24bit AIFF failed in ffmpeg?

Reply #7
Hi,

Perhaps an endianness-related problem.
Try pcm_s24be instead of pcm_s24le.

    AiZ

Re: Why do I convert a 24bit AIFF failed in ffmpeg?

Reply #8
Hi,

Perhaps an endianness-related problem.
Try pcm_s24be instead of pcm_s24le.

    AiZ
My problem was solved!Thank You!

 
SimplePortal 1.0.0 RC1 © 2008-2019