from H264 to AV1 journey starting and information as it goes. #77
Replies: 4 comments
-
Also there is the Tech of interpolation as well, and for Linux I think it is free. But.... I have not gotten anything working or tried it further out. The things I have tried in the past failed. Those making the SVPlayer has this tech. Not sure what FFMPEG can do if anything. But I have a test video that I think could use some 60 FPS running 25 as standard and it can be seen on some places. Would like to see if one could make it better and more fluently with it. Not sure why the versions of this does not have a 60FPS version, but I guess it takes some time encoding things. But still..... If you are going to release it to the world, but I guess, maybe something with space as well. Although..... Dunno, but could be interesting to see what could be done with some 60 FPS interpolation - SVPlayer does a wonderful work on the fly on my Android phone on the things I have tested, huge difference. Which still after many many years, one wonders why 60 FPS is not standard. Beyond 60 FPS is waste of energy in my view, but to to just to 60 FPS is a huge difference. Although the sweet spot I am not sure, I think I tested multiple FPS levels when I played CS many many years ago and 60 FPS was the level I kept it at. I never went above that, as it was unneeded. I must have tested multiple levels, but my memory only sustain that 60 FPS was the gold. Resolution and details was less of a thing, as long as it could run 60 FPS, that was more important then details of the game, and keeping on a good enough resolution, as long as those 60 FPS was keeping stable for net play. Anyway.... I have some more testing to do, lots of options to sort out and get into.... My writing about things just help me to make it more normalized for myself. I could try the bird files on my Android with some interpolation to see how it looks, and then have a look into seeing if I can do an interpolation encoding on it..... Not sure.... Oh and see if FFMPEG supports something maybe as well. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Yea still at it, but realizing I might have chosen some wrong settings for this. I am saving some GB's for sure, and actually thought I was at the higher end with CFR on 30 - but..... Maybe I need to go up to 40 or more, not sure. |
Beta Was this translation helpful? Give feedback.
-
Here is somewhat the main settings and a script I am using - but it seems I need to adjust things - not been able to get that much help on it and was just banned from FFmpeg on Discord, although not much help from them either on things. So somewhat bewildered on what to do.... I guess do some further tests and having my eyes on the product, just a lot easier with images, I kinda had something to go by and they are still images - thinking about what video what be a good test video for things like this :
So now running one instance of CFR 35 and another with CFR 40, you sure see some weight going off - higher is worse quality, there is always so much nonsense in the tech world. The images had the opposite, the higher number the better quality, but why have any standards......... And apparently also depending on it being H264, h265, v9 or AVI the CFR quality number is different, like..... Does not make any sense but you cannot rely on one CFR from one to the other. Even if as far as I recall sounds like a specific standard of quality - so you would think it would be the same, but nope. I also had some old AVI files and having some playable issues on some of the video players with the old AVI format, so I wanted to make them into MP4 - pretty near all of the files gets bigger with my main settings. So that seems kinda odd when we are talking about this modern thing that should be so good at making things smaller. Maybe all the VHS flimmer is making problems for it, dunno. But trying some further settings, at the very least it should not get bigger then the original. I will return with some more data points when I figure out some better settings, I clearly need to do some testing. I just tested MP3 versus OPUS Versus AAC - Overall...... Well, OPUS did best for speech at 8KB, it does very well with that. But beside that, I actually prefer MP3 on the higher levels as far as my testing went. AAC seemed somewhat more like MP3, it seemed like OPUS was rounding things more then MP3, and I guess AAC as well. I kinda made near everything encoded into OPUS audio as well, not so sure that was a good choice, but I still have the originals for the website so, but it is like a lot of waste of time doing all these files multiple times of cause as encoding takes a long time. But it is not easy to figure out it all. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So MP4 of cause is the preferred box to use as the Media players and such tend to use those for the most part - yet the MKV box might be better for putting stuff into it. But.... Overall, Not sure any of the Media players I have on the web support the MKV format, I have a testing coming up for the audioMotion. You might hack the planet naming them mp4 and trick it to play it anyway. I have yet to figure out if you can put soft subtitles into MP4, something might suggest it is a possibility, but at the very least MKV can do that.
Well this is my first try on encoding some video:

The problem I have here is, that I am running 3 instances, yet the CPU's are not being used much, and will probably take a long time to finish as these are 30 minutes video's. I thought I would run these as I am probably going to replace them anyway at some and making them smaller would not be a bad thing. 2 are mkv and 1 is mp4.
Apparently the encoding thing I am using it at this point not very good at utilizing multiple threads. I wanted to use the same thing as what I was using for AVIF images, at least close to it and its technology. But apparently those who makes both image and video, don't seem to have done a good job on video CPU usage. Even 3 threads seems to be to much for it never really getting a continual flow of 300% being used, but being much softer.
Now of cause, you could sort out videos out in multiple folders, and let it do multiple transactions at the same time, but lets see, 3, 6, 9, 12, 15.... I could probably run 5 without to much issue and still be able to run the computer fine, as it is on its soft size of usage. There is another encoder that is suggest to be used that is more effective in its CPU usage, but it seems they still compare the results against the slower model, or less effective CPU utilizing encoder I am now using. So trying to sort out my options here.
Need to figure out what it is doing to the audio as well, and if I should make them into the OPUS format and set the quality for that as well. Might give me a little as well on the slimming down, although probably not that much. I was thinking of going mono as it is probably don't do much difference anyway. But probably won't be a huge amount saved on that, but of cause every MB counts on a paid web host, and also the bandwidth and the loading times for the users. With the AVIF, it does not seem to be much of a problem decoding the images after they are loaded, the biggest hurdle is the loading of the data, not the decoding. I have some older mobiles I would like to try this with as well and test it. But overall, it seems the biggest issue is the loading of data not the decoding, but of cause encoding images into AVIF is the biggie of usage, but that is on my end and not theirs. I have encoded around 100.000 AVIF files with my main settings, and they are on the website. How much you slim down an image file with AVIF is differently but you can really slim a lot off. Sometimes we are talking 9 or above, I have even seen over 10 times slimming with my settings, and actually much more with some pictures. So we are talking about a substantial slimming down. Great for Web, and really.... I am somewhat just deleting the originals at this point. Everything goes away anyway....
Anyway, back to AV1.... So there seems to be something else then this specific encoder close to the AVIF Encoder and I am suggested to try it out. Should be close to the result of the other yet be able to use more CPU's - or maybe I should reach out to them on the former and see how far they are on something utilizing more CPU's. Probably not a biggie overall, the results might be smaller as it goes. But we try to gain the best settings for now, and provide the information for anyone who wants it for a good foundation to start out from. One could fine tune things further if they wanted, but at least you have a very good starting foundation with the settings I am finding. Of cause things might change as it goes, clearly you still have people working on encoders, but that will continue, like even the old JPEG encoding is still being worked on, kid you not. I tried the best of the best, got it working and tested it against AVIF. No Chance! And WebP, trash. Just go directly to AVIF. This is the next step for images for sure, and uses the same tech as the AV1 videos.
There was someone who said that AVIF was just like an I Frame image of AV1 or something - not sure I am getting it correct, but a full still image, which is used sometimes by the AV1 here and there when needed.
I was also thinking of the possibility of putting mp3 files into a mp4 with a still image, but I think mp3 can also fix an image, although it might be used differently in the media players. Like in the audioMotion it uses the mp3 image more like a thumbnail, a MP4 would be shown in the video screen. But I have a good amount of questions on this........... How it would work and this and that, like tuning the audio afterwards in a mp4 box, can it be done or do one needs to open the box and take the sound file out of the box to do so again if needed. Also still need to check if softsubs can be used in MP4, as it might become a little cumbersome when changing file names to do it twice as there is subtitles for a lot on my media files. But of cause, what issues will that do in regards of later updating them.... How much work and such. At least I do not wanna hardcode the subs into the video. And who knows, maybe I wanna make some Danish subtitles as well at some point, although not sure if that is possible to sort out in audioMotion. But not something I am engaging in at the moment, but I do wonder if it is already possible in audioMotion. Probably not, but do not know.
Anyway........
Some images of the 3 first runnings - not sure what is going on, but something:




And lets post this....
Oh by the way, I found that bird video from 2000 I think it was, I wanted to use that for some testing as well, but.... Yea we will see. The biggest version I could find is 1080p. Although I primary use 720p for my website, only for small text stuff 1080p is needed. So keeping it down on size and usage of the device. There was something with the numbers, on going higher or lower in quality setting compared to high or low resolution, I will need to check that as well. I think that app, what was it called, handbrake talked about something. Although I am using FFMPEG, which I think is just the foundation of other GUI apps. So........ I need to see if I can also resize things down to 720p if bigger then wanted, but overall, so many factors that needs to be sorted out. And how long will these things take..... Like the fishing tank videos are still at it, I think this will be consuming a lot of time.
Beta Was this translation helpful? Give feedback.
All reactions