Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add non-container formats flac and wav #14

Closed
wants to merge 2 commits into from

Conversation

MKO1640
Copy link
Contributor

@MKO1640 MKO1640 commented Jul 21, 2021

currently not yet tested

@amotl
Copy link
Member

amotl commented Jul 22, 2021 via email

@amotl
Copy link
Member

amotl commented Jul 22, 2021 via email

@codecov
Copy link

codecov bot commented Jul 22, 2021

Codecov Report

Merging #14 (e2643a7) into main (686aac2) will decrease coverage by 0.88%.
The diff coverage is 17.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #14      +/-   ##
==========================================
- Coverage   35.57%   34.68%   -0.89%     
==========================================
  Files           7        7              
  Lines         357      369      +12     
==========================================
+ Hits          127      128       +1     
- Misses        230      241      +11     
Flag Coverage Δ
unittests 34.68% <17.64%> (-0.89%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
saraswati/cli.py 0.00% <ø> (ø)
saraswati/recorder.py 43.75% <12.50%> (-2.88%) ⬇️
saraswati/model.py 96.42% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 686aac2...e2643a7. Read the comment docs.

@MKO1640
Copy link
Contributor Author

MKO1640 commented Jul 22, 2021

I think I could do that.
But I would like to point out that we should then support all codec-container combinations.
wav ; flac ; wav-ogg ; flac-ogg ; wav-mka ; flac-mka
I would then make available wav in connection with the ogg and wav containers.
Your suggestion requires a little more juggling, of course, when assembling the pipeline_expression string and that of the suffix as well.

I think we should close this pull request and I'll create a new one when I'm ready.

@MKO1640
Copy link
Contributor Author

MKO1640 commented Jul 22, 2021

before I start to test and do a new pull request.
Did you imagine it to be like this?
https://github.com/MKO1640/saraswati/tree/dev-MKO1640

Unfortunately i have not yet found a solution to bring this to my test system quickly and easily.

@amotl
Copy link
Member

amotl commented Jul 22, 2021

Hi @MKO1640,

your patch looks excellent. Just submit a PR and I will add some comments to it.

With kind regards,
Andreas.

P.S.: You can pip install a Python package directly from a repository on GitHub like

pip install git+https://github.com/user/repo.git@branch

For testing purposes, you might want to install it into a virtualenv which can be completely removed afterwards, like

# Install
python3 -m venv --system-site-packages .venv
source .venv/bin/activate
pip install git+https://github.com/MKO1640/saraswati.git@dev-MKO1640

# Evaluate
saraswati record ....

# Clean up
deactivate
rm -r .venv

@MKO1640
Copy link
Contributor Author

MKO1640 commented Jul 22, 2021

I had tried before. think i have to look again for git.

user@Hiveeyes01:~$ pip install git+https://github.com/MKO1640/saraswati.git@dev-MKO1640
Collecting git+https://github.com/MKO1640/saraswati.git@dev-MKO1640
  Cloning https://github.com/MKO1640/saraswati.git (to revision dev-MKO1640) to /tmp/pip-req-build-skdelskr
  Running command git clone -q https://github.com/MKO1640/saraswati.git /tmp/pip-req-build-skdelskr
  ERROR: Error [Errno 2] No such file or directory: 'git' while executing command git clone -q https://github.com/MKO1640/saraswati.git /tmp/pip-req-build-skdelskr
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

@amotl
Copy link
Member

amotl commented Jul 22, 2021

Hm. Are you sure git is installed on your system? apt-get install git might help...

@amotl amotl changed the title makeshift add non container formats flac and wav. [WIP] Add non-container formats flac and wav Jul 22, 2021
@MKO1640
Copy link
Contributor Author

MKO1640 commented Jul 22, 2021

I believed that linux mint git is installed by default.
I installed it, now it works.

@amotl
Copy link
Member

amotl commented Jul 22, 2021

Closing this in favor of #15.

@amotl amotl closed this Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants