ncmdump.rs
ncmdump.rs copied to clipboard
Converted file has no image (cover art)
When the official app downloads no-copyright songs, it creates mp3 files with embedded cover images, which is very nice. This makes me believe the .ncm
files probably also contain image data.
By looking at src
, I can see the word image
in several places, supposedly it's meant to put cover image into the final mp3 outputs (I don't know rust, so I can't be sure). However, the final mp3 output does not have covers.
I wonder if this is possible to fix.
I'm sorry to notice this issue now. I will try to reproduce this issue. But it would be better if you can send me your ncm files.
I met the same problem. Here is my ncm file:
- a flac: https://www.mediafire.com/file/gzdi2t12hn83g1n/Aimer_-_March_of_Time.ncm/file
- a mp3: https://www.mediafire.com/file/e9lyzo00en6mkuv/Aimer_-One-epilogue-.ncm/file
notice me if the link is not working.
Using ncmdump.rs:
Using https://ncm.worthsee.com/:
Thanks, I will try to add this feature in next version.
@iqiziqi I can now confirm .ncm files downloaded from 网易云 do contain the image data, because when using this foobar2000 plugin to directly play the ncm file in foobar2000, images show up.
(to use the plugin, download foo_input_ncm.fb2k-component
from the release, then in foobar2000 > File > Preference > Components > "Install..."
Update: I found another similar project which I believe forked the same original ncmdump repo as this one. That project includes image after conversion, so for me personally this issue is solved.
I think #11 has solve this problem.
Now, when i use ncmdump:
./ncmdump Aimer\ -\ March\ of\ Time.ncm
the generated flac file, and mediainfo will print:
❯ mediainfo ./Aimer\ -\ March\ of\ Time.flac
General
Complete name : ~/Aimer - March of Time.flac
Format : FLAC
Format/Info : Free Lossless Audio Codec
File size : 33.1 MiB
Duration : 4 min 56 s
Overall bit rate mode : Variable
Overall bit rate : 935 kb/s
Album : BEST SELECTION "blanc"
Track name : March of Time
Performer : Aimer
Writing application : Lavf57.25.100
Cover : Yes
Cover type : Cover (front)
Cover MIME : image/jpeg
Audio
Format : FLAC
Format/Info : Free Lossless Audio Codec
Duration : 4 min 56 s
Bit rate mode : Variable
Bit rate : 934 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 44.1 kHz
Bit depth : 16 bits
Compression mode : Lossless
Stream size : 33.0 MiB (100%)
Writing library : Lavf57.25.100
MD5 of the unencoded content : C8D6E7AF00EE83BB4674DAA27C027A25
And for mp3 file:
./ncmdump Aimer\ -\ One\ -epilogue-.ncm
The mediainfo will print:
❯ mediainfo ~/Downloads/Aimer\ -\ One\ -epilogue-.mp3
General
Complete name : /Users/cc/Downloads/Aimer - One -epilogue-.mp3
Format : MPEG Audio
File size : 9.29 MiB
Duration : 4 min 0 s
Overall bit rate : 320 kb/s
Album : Sun Dance
Track name : One -epilogue-
Performer : Aimer
Writing library : LAME3.100U
Cover : Yes
Cover type : Cover (front)
Cover MIME : image/jpeg
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo
Duration : 4 min 0 s
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 2 channels
Sampling rate : 44.1 kHz
Frame rate : 38.281 FPS (1152 SPF)
Compression mode : Lossy
Stream size : 9.18 MiB (99%)
Writing library : LAME3.100U
Image
Format : JPEG
Width : 1 080 pixels
Height : 1 080 pixels
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Compression mode : Lossy
Stream size : 108 KiB (1%)