Giter Site home page Giter Site logo

seewav's People

Contributors

adefossez avatar faroit avatar shanelee avatar tuanh208 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

seewav's Issues

Generating static Image

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.

Encoding error

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.

issue with missing partial audio

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.

unexpected keyword argument 'capture_output'

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

a WindowsPath object instead of a string for the audio file name?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.