adefossez / seewav Goto Github PK
View Code? Open in Web Editor NEWAudio waveform visualisation, converts any audio to a nice video
License: The Unlicense
Audio waveform visualisation, converts any audio to a nice video
License: The Unlicense
Hey I was wondering if there is a way to generate one image that shows the full length of the audio file. My goal ist to get a visual presentation of an audio file similar to soundcloud.
I'm under macOS 10.15 with all the requeriments installed, I'm getting this errors when encoding a file:
seewav -c 46,26,71 -W 1920 -H 1080 /Volumes/Producción\ HD/mp3/Miss\ Kittin.mp3 /Volumes/Producción\ HD/mp4
Generating the frames...
100%|████████████████████████████| 162738/162738 [5:23:52<00:00, 8.37 frames/s]
Encoding the animation video...
Traceback (most recent call last):
File "/usr/local/bin/seewav", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/seewav.py", line 285, in main
visualize(args.audio,
File "/usr/local/lib/python3.10/site-packages/seewav.py", line 219, in visualize
sp.run([
File "/usr/local/Cellar/[email protected]/3.10.7/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ffmpeg', '-y', '-loglevel', 'panic', '-r', '60', '-f', 'image2', '-s', '1920x1080', '-i', '%06d.png', '-i', PosixPath('/Volumes/Producción HD/mp3/Miss Kittin.mp3'), '-t', '2712.3133333333335', '-c:a', 'aac', '-vcodec', 'libx264', '-crf', '10', '-pix_fmt', 'yuv420p', '-shortest', PosixPath('/Volumes/Producción HD/mp4')]' returned non-zero exit status 1.
I have been seeing last few seconds of the audio missing in the output mp4 file. I am not sure what's causing this.
I am running on mac m1 monterey. Any advice is appreciated.
Traceback (most recent call last):
File "/home/user/.local/bin/seewav", line 8, in <module>
sys.exit(main())
File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 297, in main
size=(args.width, args.height))
File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 179, in visualize
wav, sr = read_audio(audio, seek=seek, duration=duration)
File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 66, in read_audio
info = read_info(audio)
File "/home/user/.local/lib/python3.6/site-packages/seewav.py", line 54, in read_info
capture_output=True)
File "/usr/lib/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'
Could be linked to :
https://stackoverflow.com/questions/53209127/subprocess-unexpected-keyword-argument-capture-output
Same error whatever how i write the path (directly
seewav "E:\seewav-master\seewav-master\SabouUrban.mp3" "SabouUrban.mp4"
seewav dldl.wav dldl.wav.mp4
ect.... it seems that seewav is still trying to use a WindowsPath object instead of a string for the audio file name.
(seawav) PS E:\seewav-master\seewav-master> seewav dldl.wav
Traceback (most recent call last):
File "C:\Users\Laurent.conda\envs\seawav\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\Laurent.conda\envs\seawav\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Laurent.conda\envs\seawav\Scripts\seewav.exe_main.py", line 7, in
File "C:\Users\Laurent.conda\envs\seawav\lib\site-packages\seewav.py", line 297, in main
size=(args.width, args.height))
File "C:\Users\Laurent.conda\envs\seawav\lib\site-packages\seewav.py", line 179, in visualize
wav, sr = read_audio(audio, seek=seek, duration=duration)
File "C:\Users\Laurent.conda\envs\seawav\lib\site-packages\seewav.py", line 85, in read_audio
proc = sp.run(command, check=True, capture_output=True)
File "C:\Users\Laurent.conda\envs\seawav\lib\subprocess.py", line 453, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Laurent.conda\envs\seawav\lib\subprocess.py", line 756, in init
restore_signals, start_new_session)
File "C:\Users\Laurent.conda\envs\seawav\lib\subprocess.py", line 1100, in _execute_child
args = list2cmdline(args)
File "C:\Users\Laurent.conda\envs\seawav\lib\subprocess.py", line 511, in list2cmdline
needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: argument of type 'WindowsPath' is not iterable
Hi, can we have the old-siri-like effect of "waves" instead of bars? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.