LLEB-ME / gouv.fa

https://gouv.fa
0 stars 1 forks source link

Proposal for standard video uploads #7

Closed doamatto closed 2 years ago

doamatto commented 2 years ago

I want to not only save some space on the movies that we currently have, but to allow the collection to start growing. This is a decision that requires utmost scrutiny due to the girth of movie files and the power required to transcode if need be.

My proposed standard should in theory be compatible across as many devices and, assuming Direct Play and Direct Stream is enabled in Plex, prevent most transcoding.

- MP4 container
- H.264 video
- 30fps or less
- high@4.0 or lower
- 5 or less reference frames
- AAC 2.0 (192kbps CBR) at minimum; AC3 5.1 (640kbps CBR) allowed
- SRt, SMI, SSA/ASS, or WebVTT required. Burnt-in subtitled are not allowed. Must be an external file.
- Movie file must be named `Movie Title (YEAR).mp4`
- Movie poster must be named `poster.jpg`
- Subtitles must be named `Movie Title (YEAR).ISO-639-1.srt`

ref: ISO-639-1. Plex supports ISO-639-2/B, but there is no need for the extra letter in most any instance.

An alternative container would be MKV, which most any modern device can do without remuxing, but I don't have a general demographic of the hardware we all use, so I propose MP4 as a safety. As of writing, we cannot ban or block transcoding (not a feature).

I'll test re-encoding one animated movie and one live-action off the Plex currently to test.

doamatto commented 2 years ago

Test encodes:

The Guy Who Didn't Like Musicals (live-action)
- Original: 10,62Go (about meeting standard)
- Render on M1 using VideoToolbox in Handbrake (one-pass): 15m49s
- Final: 1,05Go

Ponyo (animated)
- Original: 7,2Go (exceeding standards)
- Render on M1 using VideoToolbox in Handbrake (one-pass): 14m53s
- Final: 1,95Go

To my eyes, watching both in their entirety seem to be still a decent video and audio quality compared to the originals on both disc and rip.

@LLEB-ME/members please try streaming either or on varying devices via the TESTING library. Do not try Vite (Films) as that library contains the non-optimised copies of these films.

doamatto commented 2 years ago

Curiously, it does a lot of transcoding on iOS image

doamatto commented 2 years ago

iOS 100% supports AAC; just look at iTunes: AAC 320 in M4A containers. This is also with it set to "Play Original." As for why it transcodes to SD (720p?) is beyond me. AFAIK this phone supports 1080p.

doamatto commented 2 years ago

Couldn't quite tell you what I did. But: image

doamatto commented 2 years ago

My guess: because I'm doing it over cellular data, it was thinking that I was on a throttled network. I literally changed every default playback on the phone to use the maximum quality that the server could provide. This meant everything would be streamed direct. When I use the proper transcoded file, it brings the usage in half (6 Mbps rated). This should honestly be pretty solid. I still want to stress test this in the near future, but I think the limit will honestly be the bandwidth Spectrum provides me, as well as the bandwidth of future nodes, be it Plex or otherwise.

doamatto commented 2 years ago

I'd like to get a confirmation from at least two others to ensure that we want to use this as our LLEB standard for video. There is, as far as I am aware, no other standards.

doamatto commented 2 years ago

Still looking for further confirmation that this is the path we want to go forward with for video encoding.

cc @LLEB-ME/members

doamatto commented 2 years ago

A standard for music, literature, and video has been established in order #0002. Revisions are welcome.