Comments (24)
The transcoding GPU on my server does not support AV1, unfortunately. In the future I will likely upgrade GPUs, but I'll see if I can put together a plugin for it. Thanks for your help!
from peertube.
I realized that H265 only seems to be supported in VODs, not Livestreams.
Can you describe the problem? Is the player unable to play the live stream? Or is the server unable to transcode it?
from peertube.
I'm able to transcode it fine - I have a plugin and it works pretty well. However, the browser itself will not play the video during a livestream, only during the replay.
- Livestream with HEVC profile
- Video shows as live, but there is no video on screen
- Terminate livestream
- Replay video, which plays back in browser correctly
The only issue is that the video does not play back in browser. Please note that HEVC profile is enabled for VODs as well. Here's a link to my plugin if you wanted a better idea of how it works, in case I missed something.
https://gitea.nicecrew.digital/matty/peertube-plugin-nctv-nvenc-transcode
from peertube.
Here's the error - I was incorrect, this does happen with VODs too, on some browsers but I think it depends on what format they were uploaded in. Not sure.
Failed to play video
The video failed to play due to technical issues.
HLS.js error: mediaError - fatal: true - manifestIncompatibleCodecsError
\"reason\":\"no level with compatible codecs found in manifest\"
You can see a test video here.
It seems to work on mobile browsers (at least on Android) - perhaps it's an issue with desktop browsers not supporting H265? Either way, I figured I'd ask.
from peertube.
Update:
H265 encoded VODs will play on Windows and Android mobile devices across Chromium based browsers (Brave, Chrome, Edge) Live videos will not. Perhaps it's the FFMPEG options that are passed in? Who knows.
H265 encoded VODs do not play on Linux browsers (tested Firefox, Chrome and Brave). Unfortunately I believe this is simply a limitation of supported devices.
It would still be nice to have Live videos encoded in H265 play on supported browsers and hardware, so I'll leave this open in an attempt to assist in future proofing PeerTube.
from peertube.
It would still be nice to have Live videos encoded in H265 play on supported browsers and hardware, so I'll leave this open in an attempt to assist in future proofing PeerTube.
Can you paste the web browser error when you try to play a H265 live?
from peertube.
There is no error. Audio plays, but not video. It's just a black screen.
from peertube.
I'd recommend switching to VP9 instead, broader compatibility and should be supported by NVENC as well.
Edit: doesn't seem to be implemented in ffmpeg. Weird. AV1 a possibility, or card doesn't support it?
If AV1 is not supported and your goal is to increase video quality, with bandwidth being less of a concern: try H264 at 12Mbps bitrate per YouTube's recommendations.
from peertube.
We already do use H264 NVENC and it works fine. I was just hoping to be able to support hevc_nvenc for future proofing and bandwidth constraints.
from peertube.
We already do use H264 NVENC and it works fine. I was just hoping to be able to support hevc_nvenc for future proofing and bandwidth constraints.
HEVC/H265 is dead due to licensing issues. Use AV1 for future proofing and bandwidth saving. π
from peertube.
Well unfortunately the GPU in my server cares less about licensing issues and more about encoder support, of which, AV1 is not supported. ;)
from peertube.
Well unfortunately the GPU in my server cares less about licensing issues and more about encoder support, of which, AV1 is not supported. ;)
It's an industry wide concern, this is why web browser compatibility of H265/HEVC isn't broad.
AV1 has a permissible license, allowing web browsers and media appliances to implement software fallbacks without fear of legal ramifications.
AV1 implements similar in goal features to H265/HEVC, which results in similar increase in quality and bandwidth saving.
If you have the available budget: the Intel Arc A310 is a very good choice as hardware accelerated encoder. It supports H264, VP9, H265/HEVC and AV1.
from peertube.
I am unfamiliar with Intel GPUs as they're relatively new to the market. I can budget for it, but that would also involve ensuring that there are Linux drives for it. I have a Tesla P4 at the moment and have been relatively pleased with it. I could, in theory, purchase one for research and see where it goes. I appreciate the heads up.
from peertube.
I am unfamiliar with Intel GPUs as they're relatively new to the market. I can budget for it, but that would also involve ensuring that there are Linux drives for it. I have a Tesla P4 at the moment and have been relatively pleased with it. I could, in theory, purchase one for research and see where it goes. I appreciate the heads up.
The kernel, Mesa drivers, VAAPI and ffmpeg support are all there in the latest stable releases. On rolling-release distro's like Fedora Rawhide/CentOS Stream 9 (+ ELRepo and locally recompiled Mesa to re-enable proprietary codecs) or Arch Linux it'd work.
There is the problem of fan control however, this is currently not yet implemented.
from peertube.
Much appreciated.
from peertube.
@MattyBoombalatty Can you provide a permanent live stream link + a vod video link so I can try to find what's the cause of your issue?
from peertube.
@Chocobozzz sure, when would be a good time for you? Did you want me to set up an HEVC encoded livestream and give you the link while it's going?
from peertube.
Did you want me to set up an HEVC encoded livestream and give you the link while it's going?
Yes please
from peertube.
Okay, I'll do that tonight. Our time differences make this more difficult π
from peertube.
Are you available for me to do this now?
from peertube.
Yes
from peertube.
Here is the HEVC livestream:
https://nicecrew.tv/w/tpC3YaHrwTTn8Ys3gkJE8w
and an HEVC VOD
https://nicecrew.tv/w/mLbNbdTbhFFviFsD8zmtfp
from peertube.
Thanks, unfortunately the issue seems more complex that I thought. Can you try AV1 and tell me if it works?
from peertube.
I donβt know about live-streaming but HEVC VOD worked fine for me with the transcoding debug plugin. I think I had to modify a line or two in the source code as well.
Linux web browsers work but have to be compiled with hevc support. For windows you need to download the hevc codec in the windows store and use edge.
im not sure if this has changed since hevc has gained more mainline support however with the web browsers as this was over a year ago.
from peertube.
Related Issues (20)
- number of views HOT 1
- Slow query upon updating user video history HOT 3
- Add scheduler to delete old notifications HOT 6
- Explicitly don't cache HTML files
- Postgres serialization issue after multiple permanent live streams re-starting simultaneously HOT 1
- Lightweight PeerTube icon, for blogs/sites to place in footers, etc. HOT 1
- Ensure client don't cache plugin translations file
- Transcoding failed: Missing lock for job HOT 4
- How are comments/like/dislikes synced? HOT 2
- A `Video` object does not contain the group as a target in to/cc/audience HOT 2
- Cannot compute FPS because 0 is lower than our minimum value 1 HOT 5
- Playback issue with range (position) with unusual video framerate HOT 1
- Turkish translation HOT 1
- trying to restore sql db is failining HOT 2
- Error log on server: "Cannot read properties of undefined (reading 'isBlacklisted')" HOT 1
- Settings of type "password" triggers the browser password store HOT 4
- "Stats" button appears for remote video HOT 1
- Plugin new version notification is always showing the latest plugin version, even for old notifications
- Index plugins/themes on first startup, for better user experience for new admins. HOT 1
- Error on FreeBSD when following instructions on diffing configuration changes 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 peertube.