Comments (8)
@KayPure I think I got it to work by using the binary of ffmpeg built by BtbN : https://www.ffmpeg.org/download.html#build-windows
from stemgen.
Same problem...
from stemgen.
Hmm that's weird, I haven't seen this error. How did you install ffmpeg?
from stemgen.
I'm having the same issue here, I think
converting input/wwh.1.flac to alac...
ffmpeg version n6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 13.1.1 (GCC) 20230429
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-version3 --enable-vulkan
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
input/wwh.1.flac: No such file or directory
Command '['ffmpeg', '-i', 'input/wwh.1.flac', '-c:a', 'alac', '-c:v', 'copy', 'input/wwh.1.m4a']' returned non-zero exit status 1.
I'm on EndeavourOS, ffmpeg installed via pacman
from stemgen.
This looks like a problem with ni-stem
, rather than stemgen
to me, but line 106 of stem.py
doesn't do an error check and it ends up finishing cleanly but no output.
from stemgen.
Here's a full log:
https://gist.github.com/chnoma/30f12bcc9446150395486a0d37f02522
Nothing is generated in the output folder
EDIT:
it was because I didn't have gpac installed it seems sorry :(
from stemgen.
Hey @chnoma -- glad you found the issue.
The first one was because the input file didn't exists: input/wwh.1.flac: No such file or directory
And yeah the second one was because gpac wasn't installed. On Linux you need to install it yourself. It's in the docs but I'll add a callout to make sure that people don't miss it.
Closing to avoid growing this issue. Please feel free to report a new issue if you still experience one.
from stemgen.
i am having similar error:
C:\Users\ADMIN\Desktop\PYTHON\stemgen-master\stemgen-master>python stemgen.py track.wav -d cuda
Using GPU for processing.
Output dir already exists.
Working dir created.
Done.
Extracting bit depth...
bits_per_sample=16
Done.
Extracting sample rate...
sample_rate=48000
Done.
Extracting cover...
Error: The file does not contain any cover art.
Done.
Extracting metadata...
{'title': 'track'}
Creating tags.json...
Done.
Converting to wav and/or downsampling...
Input File : 'C:\Users\ADMIN\Desktop\PYTHON\stemgen-master\stemgen-master\output/track/track.wav'
Channels : 2
Sample Rate : 48000
Precision : 16-bit
Duration : 00:06:19.04 = 18194042 samples ~ 28428.2 CDDA sectors
File Size : 0
Bit Rate : 0
Sample Encoding: 16-bit Signed Integer PCM
In:0.00% 00:00:00.00 [00:06:19.04] Out:0 [ | ] Clip:0 sox WARN wav: Premature EOF on .wav input file
In:0.00% 00:00:00.00 [00:06:19.04] Out:0 [ | ] Clip:0
Done.
Done.
Ready!
Creating a Stem file for track...
Splitting stems...
Using 16-bit model...
Selected model is a bag of 1 models. You will see that many progress bars per track.
Separated tracks will be stored in C:\Users\ADMIN\Desktop\PYTHON\stemgen-master\stemgen-master\output\track\htdemucs
Separating track C:\Users\ADMIN\Desktop\PYTHON\stemgen-master\stemgen-master\output\track\track.wav
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python311\Lib\site-packages\demucs\__main__.py", line 10, in <module>
main()
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python311\Lib\site-packages\demucs\separate.py", line 173, in main
sources = apply_model(model, wav[None], device=args.device, shifts=args.shifts,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python311\Lib\site-packages\demucs\apply.py", line 187, in apply_model
sub_model.to(device)
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py", line 1160, in to
return self._apply(convert)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py", line 810, in _apply
module._apply(fn)
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py", line 810, in _apply
module._apply(fn)
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py", line 810, in _apply
module._apply(fn)
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py", line 833, in _apply
param_applied = fn(param)
^^^^^^^^^
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py", line 1158, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\cuda\__init__.py", line 289, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
Done.
Creating stem...
[Done 0/6]
converting C:\Users\ADMIN\Desktop\PYTHON\stemgen-master\stemgen-master\output/track/track.wav to alac...
ffmpeg version 2023-12-28-git-c1340f3439-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --pkg-config=pkgconf --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-dxva2 --enable-d3d11va --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 58. 36.100 / 58. 36.100
libavcodec 60. 36.100 / 60. 36.100
libavformat 60. 20.100 / 60. 20.100
libavdevice 60. 4.100 / 60. 4.100
libavfilter 9. 14.102 / 9. 14.102
libswscale 7. 6.100 / 7. 6.100
libswresample 4. 13.100 / 4. 13.100
libpostproc 57. 4.100 / 57. 4.100
[wav @ 000001de7f2cd640] Cannot check for SPDIF
[aist#0:0/pcm_s16le @ 000001de7f2d01c0] Guessed Channel Layout: stereo
Input #0, wav, from 'C:\Users\ADMIN\Desktop\PYTHON\stemgen-master\stemgen-master\output/track/track.wav':
Duration: N/A, bitrate: 1411 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le (native) -> alac (native))
Press [q] to stop, [?] for help
[aost#0:0/alac @ 000001de7f2d1a00] No filtered frames for output stream, trying to initialize anyway.
Output #0, ipod, to 'C:\Users\ADMIN\Desktop\PYTHON\stemgen-master\stemgen-master\output/track/track.m4a':
Metadata:
encoder : Lavf60.20.100
Stream #0:0: Audio: alac (alac / 0x63616C61), 44100 Hz, stereo, s16p, 128 kb/s
Metadata:
encoder : Lavc60.36.100 alac
[out#0/ipod @ 000001de7f2d0980] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[out#0/ipod @ 000001de7f2d0980] Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used)
size= 0kB time=N/A bitrate=N/A speed=N/A
[Done 1/6]
converting C:\Users\ADMIN\Desktop\PYTHON\stemgen-master\stemgen-master\output/track/htdemucs/track/drums.wav to alac...
ffmpeg version 2023-12-28-git-c1340f3439-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --pkg-config=pkgconf --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-dxva2 --enable-d3d11va --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 58. 36.100 / 58. 36.100
libavcodec 60. 36.100 / 60. 36.100
libavformat 60. 20.100 / 60. 20.100
libavdevice 60. 4.100 / 60. 4.100
libavfilter 9. 14.102 / 9. 14.102
libswscale 7. 6.100 / 7. 6.100
libswresample 4. 13.100 / 4. 13.100
libpostproc 57. 4.100 / 57. 4.100
[in#0 @ 0000026f3747f780] Error opening input: No such file or directory
Error opening input file C:\Users\ADMIN\Desktop\PYTHON\stemgen-master\stemgen-master\output/track/htdemucs/track/drums.wav.
Error opening input files: No such file or directory
Command '['ffmpeg', '-i', 'C:\\Users\\ADMIN\\Desktop\\PYTHON\\stemgen-master\\stemgen-master\\output/track/htdemucs/track/drums.wav', '-c:a', 'alac', '-c:v', 'copy', 'C:\\Users\\ADMIN\\Desktop\\PYTHON\\stemgen-master\\stemgen-master\\output/track/htdemucs/track/drums.m4a']' returned non-zero exit status 4294967294.
Done.
Cleaning...
Done.
Success! Have fun :)
from stemgen.
Related Issues (20)
- [Feature Request] Windows Support HOT 10
- [Feature Request] MP3 support HOT 9
- [Note] ALAC stems can't be read on Windows within Traktor HOT 3
- Sweep(slow): Review the codebase and make suggestions to make the code more readable and Pythonic HOT 1
- Sweep(slow): Review the codebase and make suggestions to make the code more readable and Pythonic HOT 1
- Sweep: Refactor ableton.py to be cleaner, extracting any methods you can into separate files if that makes sense HOT 1
- Sweep: Add comments and docstrings to ableton.py. Clarify each method and global HOT 1
- Mutagen missing in installation instructions HOT 1
- Converting multiple songs at once? HOT 3
- [Feature request] Extract only vocals and instrumental HOT 2
- How to know if qaac encoder is used on Windows? HOT 2
- [Feature request] Custom name & color for stem HOT 2
- [Bug] Windows cleaning step failing HOT 5
- [Feature Request] Following the Stem File Specification HOT 1
- [Bug] ALAC stems can't be read on Windows within Traktor HOT 4
- Google Colab version? HOT 1
- Extract audio files from STEM file? HOT 6
- [No such file or directory] \output/NoGoodbye/htdemucs/NoGoodbye/drums.wav HOT 1
- Getting an error, when running the docker script version. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stemgen.