|
2021-06-29
, 10:54
|
|
Posts: 584 |
Thanked: 1,550 times |
Joined on Sep 2019
|
#2
|
The Following User Says Thank You to nonsuch For This Useful Post: | ||
|
2021-07-04
, 09:08
|
|
Posts: 106 |
Thanked: 313 times |
Joined on Mar 2019
|
#3
|
The Following User Says Thank You to clort For This Useful Post: | ||
|
2021-07-04
, 18:43
|
|
Posts: 584 |
Thanked: 1,550 times |
Joined on Sep 2019
|
#4
|
Cpu use with mplayer vieweing 24fps 960x540 is at 55-75% with h264 and 75-105% with h265.
|
2021-07-05
, 03:27
|
|
Posts: 106 |
Thanked: 313 times |
Joined on Mar 2019
|
#5
|
|
2021-07-05
, 10:47
|
|
Posts: 584 |
Thanked: 1,550 times |
Joined on Sep 2019
|
#6
|
The Following User Says Thank You to nonsuch For This Useful Post: | ||
|
2021-07-10
, 20:31
|
|
Posts: 106 |
Thanked: 313 times |
Joined on Mar 2019
|
#7
|
"’Ive been in the streaming media industry since 2008".That is stating clearly that he is encoding for streaming video which has hard limits on maximum bitrate due to the slow network carrier. This not our use case and it's very important to understand why it matters.
And:
"I like to make sure that my content uses all of the bells and whistles for delivering bitrate based content..."
- person in front of static background
- sun with heat waves
- tree blossoms waving in wind
- person in front of falling petals
ffmpeg -y -nostdin -hide_banner -analyzeduration 2147483647 -probesize 2147483647 -i Seijun_Suzukis_Zigeunerweisen_Tsigoineruwaizen_1980_1080p_HD_English_Subbed-YOtP3_WOphA.mp4 -pix_fmt yuv420p -filter:v "hqdn3d=0.0:0.0:7.0:7.0, scale=720x540,setsar=1:1" -vsync 1 -vcodec libx264 -b:v: 173k -bufsize 244k -maxrate 288k -preset veryslow -profile:v high -tune fastdecode -pass 1 -filter:a "aresample=async=1:min_hard_comp=0.100000:first_pts=0" -c:a libopus -b:a 28000 -application voip -cutoff:a 12000 -frame_duration:a 60 -max_muxing_queue_size 9999 -f mp4 -y /dev/null
20 second video samples from h265-clort
- The h265vb bitrate variance is much less than in the h265crf encode: The simple scenes use more bits per second and the complex scenes use less.
- The first two low-motion scenes are acceptable for a small phone screen,in both encodes, though h265 delivers less blockiness at lower bitrate.
- The tree blossoms in the bitrate-constrained h264 consume around 345kbit/s versus h265crf's~1500kbit/s. This limitarion, compounded by the more primitive h264 encoding, makes the scene completely unrecognizable.
- The woman on phone encoded with h264 with peak ~300kbit/s is an abstract mess versus the clear picture h265crf gives her with peak ~500kbit/s.
The Following 3 Users Say Thank You to clort For This Useful Post: | ||
|
2021-07-14
, 03:43
|
|
Posts: 106 |
Thanked: 313 times |
Joined on Mar 2019
|
#9
|
The Following User Says Thank You to clort For This Useful Post: | ||
|
2021-07-14
, 05:11
|
|
Posts: 106 |
Thanked: 313 times |
Joined on Mar 2019
|
#10
|
echo 5 > /sys/class/backlight/backlight/brightness
mplayer -vo x11 -fs -ss 01:36:00 -endpos 600
/etc/init.d/droid4-powermanagement status > poweruse_h265.txt
pidstat -C mplayer -u 10 60|grep -v PID > cpuuse_h265.txt
CPU H264vb: 41.2%Discarding the first power reading (it hasn't yet registered a full minute of video playback) we take the mean of 9 readings:
CPU H265crf: 58.9%
Power H264vb: 1427 mWNote this movie was low-motion, 720x540 and quite easy on the CPU at 58.9%. More action-oriented 960x540 movies tend to push h265 CPU use into the 75-95% range.
Power H265crf: 1760 mW
h264vb 53% of batteryFor the whole movie, the tested h265crf encode would require a bit less than 20% more total energy than the h264vb, since the high power peak included is a larger percentage of the sample than the whole movie.
h265crv 64% of battery
By keeping bitrate low and using the -tune fastdecode option, mplayer (and sometimes mpv) has no trouble keeping up with the video! Very small filesize, acceptable small screen quality. Much joy!
Here's a sample ffmpeg line i just encoded with:
ffmpeg -y -i $1\
-filter:v "hqdn3d=0.0:0.0:7.0:7.0,smartblur=1.9:-.24:0.09:1:0.0:0.0,scale=960x540,setsar=1:1,eq=con trast=1.20:brightness=0.08:gamma=1.15"\
-filter:a "volume=1.4"\
-movflags faststart -c:v libx265 -crf 30 -pix_fmt yuv420p -preset medium -tune fastdecode -auto-alt-ref 0 -metadata:s handler_name=ClortVids\
-c:a libopus -b:a 56000 -frame_duration:a 60\
out.mkv
So this 2 hour film came in at about 280MB. 32 seconds is just 560kB.
http://0x0.st/-pE1.mkv
h265 does great for lectures, with static backgrounds.
http://0x0.st/-pEf.mkv
Playback cpu% (one core) on the omap4 is ranging from 75-98%, so higher bitrates and/or framerate films could be problematic.
Still, it's very nice for me. Small files, films and lectures watching on-the-go!
Last edited by clort; 2021-06-28 at 23:28.