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
Upload audio file #170
Comments
|
I'm sorry I don't understand. What do you mean by "disable a video"? I guess the auto disabling video on tab unfocus is the web browser job. |
|
Problem was about the difference of meaning between video and video. Now fixed using video for video as a image + sound media, and image for video as a image alone media. |
|
I think it would be overkill. Video codecs are very good in compression if the image is static. And I guess web browsers optimize things when the player is on another tab. If you want to discuss this further, please come on IRC (#peertube on freenode). |
|
Apparently there seems to be some interest on framacolibri around using PeerTube for music - not changing the interface too much but rather providing a way to upload music formats directly.
Since YouTube is cracking on music listening, we can expect this practice to move with its userbase. |
|
I wanted to suggest the addition of plain audio, so I'm glad this is already here. Someone suggested that it could be extended to all kinds of media formats, like images, documents, slide shows etc. What do you think about that? |
|
@steckerhalter I don't think we will extend to all media formats. Plain audio is already a stretch. |
|
@rigelk hmm, in what way is it a stretch if I may ask? A decentralized network for media, why limit it to just video and not go beyond the youtube model to do what youtube would never imagine? Of course audio is like the most obvious extension, then people could ditch soundcloud etc. From that proceed to images (people can ditch flickr etc.), then documents (start with pdfs maybe, ditch scribd), then slides (ditch slideshare.net) and on and on... |
|
@steckerhalter a reason could be that the interface is centered around videos. Adding other media types will force an interface change to some extent. You won't be ditching soundcloud anytime soon even with audio support in PeerTube, since the interface will only be adapted to videos. We don't have the notion of albums or interprets to group musics together, nor do we have a player bar staying through your browsing for instance. I'm not saying this isn't possible. Someone might very well come up with a design proposal that fits all use cases, or we might have multiple interface layouts that the user can switch to depending on the media type he's looking for. I'm actually really thinking this is possible, but not anytime soon, and certainly not with our resources. |
Yes, but essential would be that someone can post music. I don't think the rest is that important. I'm not saying it should happen soon or even that you should do it. It's just something to consider. |
|
for sound support I think the interface could be left almost as is if the image would be a spectral analysis like mediagoblin does it: https://mediagoblin.org/images/tour/audio_screenshot_cropped.png |
Definitely. I had never seen the spectral view of mediagobelin. Looks nice. Either that or putting a predefined image. Any other visualisation ideas? |
|
There is some other ways. Here is a usage example for a python lib that is an accidental roadmap around these methods. |
|
(Sorry for opening another issue) In our case we just want to benefit because of the webtorrent technology (I think there is no other project with this philosophy) Use case: community web radios podcasts conscious about descentralization. Now think about a good podcast of 40 MB becoming viral. Please, don't stuck this because we don't have a "clear visualization for audio tracks", or because "this is just for videos". Workaround: if it is an audio just show this (or a default image indicating that this is sound): And we are not proposing anything strange. This is what youtube does. And I'm sure nearly everyone on this room that uses youtube sometimes listens a track. Youtube forces you to put a video. And right now, you are forcing me (and the users in general) to convert a real audio file in a pseudo videos; and this would be an inefficient and silly situation in my opinion (sorry if it sounds disrespectful). |
|
@rigelk I guess it could work taking an iterative approach: first just accept audio and put an audio placeholder image (something of this kind: https://openclipart.org/detail/168846/audio-speaker) later add more possible options:
|
|
Hi @yassinphilip has made something interesting about that, a simple script that changes an audio file to a video with waveforms here is his script https://framasphere.org/posts/7a1363b01bb001363f8a2a0000053625 If you don't have time to implement it I will have more free time at the end of april/may so I would be happy to have a look at this |
|
Ideally, an audio-only player could be cool for dumbphones. On this phone, if you want to listen to a conference, you have to remain with the screen turned on even if you don't watch it but only listen. If you turn off the screen, the video pauses. NewPipe application has an "audio backend mode" for youtube videos, I think it would be great if it was native to Peertube. |
|
I'll add my 2 cents and would love podcast support. I'm making a podcast myself and something like PeerTube looks very interesting.While I have to create a pseudovideo for publication on YouTube and could recycle that video... it would be much more natural to expect an audio-only medium to be audio-only. |
|
I'm interested in implementing or helping implement this functionality. I've already got a quick hack that works with mp3 files, tested on Firefox and Chrome. |
|
Hi @zacharystenger, I prefer to merge the preview file with the audio file uploaded by the user, so we still play videos on the front end. And it will be simpler :) |
|
Hey @Chocobozzz, I will look into the preview file code. If anyone wanted to see how I got it to work by treating the audio file like a video file, check out this branch. As far as I can tell it works just like a video would, there's is just a blank screen instead of images. Disclaimer: this code was quickly hacked together just to see if this would work. |
|
I would also be interested in audio support, I looked at the source code last year. As for visualization, Soundcloud waveform display is probably what most users are used to. |
Hi @Chocobozzz I don't see this button in admin interface. Can we upload audio file in PT v1.3.1 ? Thanks for your hard job ! |
|
@bristow This seems to be the relevant option: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L200 Edit: it seems to be enabled by default |
|
hum, i don't have this option : |
|
It seems to be only in the config file (see my link above), not in the web interface. |
No it will be in v1.4. We don't release additional features in patch versions, only bug fixes. |
|
Nice 👍 |
|
So Peertube is converting audio to video basically. The question is, how is the bitrate of the audio treated when transcoding. If a video is, say, 144, is the audio quality reduced? thank you. |

Considering that:
What about allowing user to disable/enable image, while keeping alive the sound ?
What about auto-disabling/enabling of image based on tab focus ?
The text was updated successfully, but these errors were encountered: