Opened 7 months ago

Last modified 7 months ago

#10612 new defect

ra_144 encoded in rm has no duration info

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

./ffmpeg -i 8k.wav -acodec ra_144 ra144.ra
ffmpeg version N-112362-g4c422de1db Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: 
  libavutil      58. 27.100 / 58. 27.100
  libavcodec     60. 30.101 / 60. 30.101
  libavformat    60. 15.100 / 60. 15.100
  libavdevice    60.  2.101 / 60.  2.101
  libavfilter     9. 11.100 /  9. 11.100
  libswscale      7.  4.100 /  7.  4.100
  libswresample   4. 11.100 /  4. 11.100
[aist#0:0/pcm_s16le @ 0x55ef35dccdc0] Guessed Channel Layout: mono
Input #0, wav, from '8k.wav':
  Metadata:
    encoder         : Lavf55.2.100
  Duration: 00:00:10.50, bitrate: 128 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> ra_144 (real_144))
Press [q] to stop, [?] for help
Output #0, rm, to 'ra144.ra':
  Metadata:
    encoder         : Lavf60.15.100
  Stream #0:0: Audio: ra_144 (lpcJ / 0x4A63706C), 8000 Hz, mono, s16, 8 kb/s
    Metadata:
      encoder         : Lavc60.30.101 real_144
[out#0/rm @ 0x55ef35df9a40] video:0kB audio:10kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 62.538023%
size=      17kB time=00:00:10.48 bitrate=  13.1kbits/s speed=58.3x
./ffmpeg -i ra144.ra
ffmpeg version N-112362-g4c422de1db Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: 
  libavutil      58. 27.100 / 58. 27.100
  libavcodec     60. 30.101 / 60. 30.101
  libavformat    60. 15.100 / 60. 15.100
  libavdevice    60.  2.101 / 60.  2.101
  libavfilter     9. 11.100 /  9. 11.100
  libswscale      7.  4.100 /  7.  4.100
  libswresample   4. 11.100 /  4. 11.100
Input #0, rm, from 'ra144.ra':
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
  Stream #0:0: Audio: ra_144 (lpcJ / 0x4A63706C), 8000 Hz, mono, s16, 8 kb/s
At least one output file must be specified

it's some old regression:

./ffmpeg -i 8k.wav -acodec ra_144 -y out.ra
ffmpeg version N-72719-g0dbea4642f Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: 
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 34.100 / 56. 34.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
Guessed Channel Layout for  Input Stream #0.0 : mono
Input #0, wav, from '8k.wav':
  Metadata:
    encoder         : Lavf55.2.100
  Duration: 00:00:10.50, bitrate: 128 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s
Output #0, rm, to 'out.ra':
  Metadata:
    encoder         : Lavf56.34.100
    Stream #0:0: Audio: ra_144 (real_144) (lpcJ / 0x4A63706C), 8000 Hz, mono, s16, 8 kb/s
    Metadata:
      encoder         : Lavc56.41.100 real_144
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> ra_144 (real_144))
Press [q] to stop, [?] for help
size=      17kB time=00:00:10.50 bitrate=  13.0kbits/s    
video:0kB audio:10kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 62.538021%
./ffmpeg -i out.ra
ffmpeg version N-72719-g0dbea4642f Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: 
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 34.100 / 56. 34.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
Input #0, rm, from 'out.ra':
  Metadata:
    title           : 
    author          : 
    copyright       : 
    comment         : 
  Duration: 00:00:10.52, start: 0.000000, bitrate: 13 kb/s
    Stream #0:0: Audio: ra_144 (lpcJ / 0x4A63706C), 8000 Hz, mono, s16, 8 kb/s
At least one output file must be specified
./ffmpeg -i 8k.wav -acodec ra_144 -y out.ra
ffmpeg version N-79286-g6f69f7a8bf Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: 
  libavutil      55. 20.100 / 55. 20.100
  libavcodec     57. 34.100 / 57. 34.100
  libavformat    57. 32.100 / 57. 32.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 41.100 /  6. 41.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
Guessed Channel Layout for  Input Stream #0.0 : mono
Input #0, wav, from '8k.wav':
  Metadata:
    encoder         : Lavf55.2.100
  Duration: 00:00:10.50, bitrate: 128 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s
[rm @ 0x55fb0c884b40] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, rm, to 'out.ra':
  Metadata:
    encoder         : Lavf57.32.100
    Stream #0:0: Audio: ra_144 (lpcJ / 0x4A63706C), 8000 Hz, mono, s16, 8 kb/s
    Metadata:
      encoder         : Lavc57.34.100 real_144
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> ra_144 (real_144))
Press [q] to stop, [?] for help
size=      17kB time=00:00:10.50 bitrate=  13.0kbits/s speed=70.4x    
video:0kB audio:10kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 62.538021%
./ffmpeg -i out.ra
ffmpeg version N-79286-g6f69f7a8bf Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: 
  libavutil      55. 20.100 / 55. 20.100
  libavcodec     57. 34.100 / 57. 34.100
  libavformat    57. 32.100 / 57. 32.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 41.100 /  6. 41.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
Input #0, rm, from 'out.ra':
  Metadata:
    title           : 
    author          : 
    copyright       : 
    comment         : 
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Audio: ra_144 (lpcJ / 0x4A63706C), 8000 Hz, mono, s16, 8 kb/s
At least one output file must be specified

Attachments (1)

8k.wav (164.1 KB ) - added by ami_stuff 7 months ago.

Download all attachments as: .zip

Change History (3)

by ami_stuff, 7 months ago

Attachment: 8k.wav added

comment:1 by ami_stuff, 7 months ago

the same problem with "-acodec aac"

with default "-acodec ac3" duration info is available

Note: See TracTickets for help on using tickets.