Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5701 closed defect (invalid)

Invalid argument while extracting CoverArt from WMA file

Reported by: Sami32 Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When extracting CoverArt? from a WMA file i got lot of Invalid argument. Not sure if it's normal though ?
Command line:
ffmpeg -v 9 -loglevel 99 -i semesta.wma coverwma.jpg -report

ffmpeg version N-80694-g074fdf4 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 26.100 / 55. 26.100
  libavcodec     57. 47.100 / 57. 47.100
  libavformat    57. 40.101 / 57. 40.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.102 /  6. 46.102
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-i' ... matched as input file with argument 'semesta.wma'.
Reading option 'coverwma.jpg' ... matched as output file.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option loglevel (set logging level) with argument 99.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file semesta.wma.
Successfully parsed a group of options.
Opening an input file: semesta.wma.
[file @ 033ca2c0] Setting default whitelist 'file,crypto'
[asf @ 033c9940] Format asf probed with size=2048 and score=100
[asf @ 033c9940] gpos mismatch our pos=24, end=132
[asf @ 033c9940] Before avformat_find_stream_info() pos: 1131 bytes read:32768 seeks:0 nb_streams:2
[asf @ 033c9940] parser not found for codec wmav2, packets or times may be invalid.
[asf @ 033c9940] parser not found for codec wmav2, packets or times may be invalid.
[asf @ 033c9940] max_analyze_duration 5000000 reached at 5014000 microseconds st:1
[asf @ 033c9940] After avformat_find_stream_info() pos: 150624 bytes read:163840 seeks:0 frames:112
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, asf, from 'semesta.wma':
  Metadata:
    track           : 2
    title           : Semesta
    album           : Music Pop
    genre           : Jazz
    artist          : Maliq n D'essentials
    encoder         : Lavf57.40.101
  Duration: 00:04:47.56, start: 0.000000, bitrate: 139 kb/s
    Stream #0:0, 1, 1/1000: Video: msmpeg4v3, 1 reference frame (MP43 / 0x3334504D), yuv420p, 500x500, 0/1, SAR 1:1 DAR 1:1, 1k tbr, 1k tbn, 1k tbc
    Stream #0:1, 111, 1/1000: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, fltp, 128 kb/s
Successfully opened the file.
Parsing a group of options: output file coverwma.jpg.
Successfully parsed a group of options.
Opening an output file: coverwma.jpg.
Successfully opened the file.
detected 1 logical cores
[graph 0 input from stream 0:0 @ 034e8340] Setting 'video_size' to value '500x500'
[graph 0 input from stream 0:0 @ 034e8340] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 034e8340] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 034e8340] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 034e8340] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 034e8340] Setting 'frame_rate' to value '1000/1'
[graph 0 input from stream 0:0 @ 034e8340] w:500 h:500 pixfmt:yuv420p tb:1/1000 fr:1000/1 sar:1/1 sws_param:flags=2
[format @ 03559ae0] compat: called with args=[yuvj420p|yuvj422p|yuvj444p]
[format @ 03559ae0] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p'
[auto-inserted scaler 0 @ 035859a0] Setting 'flags' to value 'bicubic'
[auto-inserted scaler 0 @ 035859a0] w:iw h:ih flags:'bicubic' interl:0
[format @ 03559ae0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 033cad20] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed
[auto-inserted scaler 0 @ 035859a0] picking yuvj420p out of 3 ref:yuv420p alpha:0
[swscaler @ 03513dc0] deprecated pixel format used, make sure you did set range correctly
[auto-inserted scaler 0 @ 035859a0] w:500 h:500 fmt:yuv420p sar:1/1 -> w:500 h:500 fmt:yuvj420p sar:1/1 flags:0x4
[mjpeg @ 03559420] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multiple cpu cores
[mjpeg @ 03559420] intra_quant_bias = 96 inter_quant_bias = 0
[image2 @ 03556920] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, image2, to 'coverwma.jpg':
  Metadata:
    track           : 2
    title           : Semesta
    album           : Music Pop
    genre           : Jazz
    artist          : Maliq n D'essentials
    encoder         : Lavf57.40.101
    Stream #0:0, 0, 1/1000: Video: mjpeg, 1 reference frame, yuvj420p(pc), 500x500 [SAR 1:1 DAR 1:1], 0/1, q=2-31, 200 kb/s, 1k fps, 1k tbn, 1k tbc
    Metadata:
      encoder         : Lavc57.47.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (msmpeg4v3 (msmpeg4) -> mjpeg (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
*** 46 dup!
[file @ 0355ed80] Setting default whitelist 'file,crypto'
[AVIOContext @ 03559c80] Statistics: 0 seeks, 2 writeouts
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
[image2 @ 03556920] Could not get frame filename number 2 from pattern 'coverwma.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument
No more output streams to write to, finishing.
frame=   47 fps=0.0 q=24.8 Lsize=N/A time=00:00:00.04 bitrate=N/A dup=46 drop=0 speed=0.124x    
video:864kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (semesta.wma):
  Input stream #0:0 (video): 1 packets read (59140 bytes); 1 frames decoded; 
  Input stream #0:1 (audio): 1 packets read (743 bytes); 
  Total: 2 packets (59883 bytes) demuxed
Output file #0 (coverwma.jpg):
  Output stream #0:0 (video): 47 frames encoded; 47 packets muxed (885237 bytes); 
  Total: 47 packets (885237 bytes) muxed
1 frames successfully decoded, 0 decoding errors
[AVIOContext @ 033ca400] Statistics: 163840 bytes read, 0 seeks
Conversion failed!

Attachments (1)

WMA_MediaInfo_5701.txt (2.1 KB) - added by Sami32 2 years ago.
WMA_MediaInfo_5701

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by Sami32

WMA_MediaInfo_5701

comment:1 Changed 2 years ago by Sami32

The WMA file can be downloaded there :
https://we.tl/fh5KJFD1yE

comment:2 Changed 2 years ago by cehoyos

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

I don't think this is a valid ticket.

comment:3 Changed 2 years ago by llogan

This is not a user support resource, but you forgot -vframes 1 to output a single image.

comment:4 Changed 2 years ago by Sami32

Great...it is working fine now :-)
Thank you very much Llogan for helping a newbie ;-)

Note: See TracTickets for help on using tickets.