Opened 2 years ago

Closed 7 months ago

Last modified 7 months ago

#5930 closed enhancement (fixed)

Nut container doesnʼt support Opus codec

Reported by: Nekit Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: nut opus
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: title
Relevant part from the full log below:

[nut @ 0x55b90fc63d60] No codec tag defined for stream 0

Full log:

ffmpeg started on 2016-11-07 at 17:11:17
Report written to "ffmpeg-20161107-171117.log"
Command line:
ffmpeg -report -f lavfi -i "sine=frequency=1000:duration=5" -c:a libopus test.nut
ffmpeg version 3.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6.2.1 (GCC) 20160830
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.100 / 57. 64.100
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'.
Reading option '-i' ... matched as input file with argument 'sine=frequency=1000:duration=5'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libopus'.
Reading option 'test.nut' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file sine=frequency=1000:duration=5.
Applying option f (force format) with argument lavfi.
Successfully parsed a group of options.
Opening an input file: sine=frequency=1000:duration=5.
detected 4 logical cores
[Parsed_sine_0 @ 0x55b90fc50da0] Setting 'frequency' to value '1000'
[Parsed_sine_0 @ 0x55b90fc50da0] Setting 'duration' to value '5'
[AVFilterGraph @ 0x55b90fc4fb80] query_formats: 2 queried, 3 merged, 0 already done, 0 delayed
[lavfi @ 0x55b90fc4f460] All info found
Input #0, lavfi, from 'sine=frequency=1000:duration=5':
  Duration: N/A, start: 0.000000, bitrate: 705 kb/s
    Stream #0:0, 1, 1/44100: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
Successfully opened the file.
Parsing a group of options: output file test.nut.
Applying option c:a (codec name) with argument libopus.
Successfully parsed a group of options.
Opening an output file: test.nut.
[file @ 0x55b90fc666c0] Setting default whitelist 'file,crypto'
Successfully opened the file.
[graph 0 input from stream 0:0 @ 0x55b90fc6ffa0] Setting 'time_base' to value '1/44100'
[graph 0 input from stream 0:0 @ 0x55b90fc6ffa0] Setting 'sample_rate' to value '44100'
[graph 0 input from stream 0:0 @ 0x55b90fc6ffa0] Setting 'sample_fmt' to value 's16'
[graph 0 input from stream 0:0 @ 0x55b90fc6ffa0] Setting 'channel_layout' to value '0x4'
[graph 0 input from stream 0:0 @ 0x55b90fc6ffa0] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x4
[audio format for output stream 0:0 @ 0x55b90fc708e0] Setting 'sample_fmts' to value 's16|flt'
[audio format for output stream 0:0 @ 0x55b90fc708e0] Setting 'sample_rates' to value '48000|24000|16000|12000|8000'
[audio format for output stream 0:0 @ 0x55b90fc708e0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0x55b90fc6f060] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x55b90fc72980] [SWR @ 0x55b90fc72d20] Using s16p internally between filters
[auto-inserted resampler 0 @ 0x55b90fc72980] ch:1 chl:mono fmt:s16 r:44100Hz -> ch:1 chl:mono fmt:s16 r:48000Hz
[libopus @ 0x55b90fc660c0] No bit rate set. Defaulting to 64000 bps.
[nut @ 0x55b90fc63d60] No codec tag defined for stream 0
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argumentStream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> opus (libopus))

[AVIOContext @ 0x55b90fc6eee0] Statistics: 0 seeks, 1 writeouts

Change History (2)

comment:1 Changed 7 months ago by Nekit

  • Resolution set to fixed
  • Status changed from new to closed

Seems to have been fixed somewhere around v4.0.

Note: See TracTickets for help on using tickets.