You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The most common resolutions are 360p and 198p. Add an --aggressive (or just --resize) option to concat to resize 198p videos to 360p, in order to reduce the number of output videos.
The Problem:
Occasionally, during times of high network congestion or for whatever other reason, showroom streams get reduced from 360p to 198p. Such streams are blocky and almost unwatchable, and usually don't last very long. However, the audio is still intact. Unfortunately, they can't be merged with 360p streams without being re-scaled (and losing data).
The Old Solution:
When I originally wrote concat.py, I opted to keep 360p and 198p separate rather than rescale in order to preserve as much of the original video data as possible. However... occasionally this results in a single stream getting split into 10+ videos of alternating 360p and 198p, and it's not like rescaling is going to make the video look noticeably worse.
The New Solution:
Add a --resize option to concat.py to complement the --generate and --merge options, and an --aggressive option that runs all three (--both will still only run --generate and --merge). --resize will work as follows:
scan the directory for 198p files
rename each 198p to resized/{filename}_198p.mp4
rescale each 198p to 360p (giving the new file the old name) w/ -crf 18
Occasionally streams also come in 396p and 720p, but these are rare (720p has only been seen once) and usually differ in other ways (e.g. 396p have lower frame rates), so this option will not affect them.
The text was updated successfully, but these errors were encountered:
Instead of using -crf 18, added --bitrate option to specify the target bitrate for resized videos (defaults to 300k). Otherwise the new feature works as described above.
The most common resolutions are 360p and 198p. Add an --aggressive (or just --resize) option to concat to resize 198p videos to 360p, in order to reduce the number of output videos.
The Problem:
Occasionally, during times of high network congestion or for whatever other reason, showroom streams get reduced from 360p to 198p. Such streams are blocky and almost unwatchable, and usually don't last very long. However, the audio is still intact. Unfortunately, they can't be merged with 360p streams without being re-scaled (and losing data).
The Old Solution:
When I originally wrote concat.py, I opted to keep 360p and 198p separate rather than rescale in order to preserve as much of the original video data as possible. However... occasionally this results in a single stream getting split into 10+ videos of alternating 360p and 198p, and it's not like rescaling is going to make the video look noticeably worse.
The New Solution:
Add a --resize option to concat.py to complement the --generate and --merge options, and an --aggressive option that runs all three (--both will still only run --generate and --merge). --resize will work as follows:
Occasionally streams also come in 396p and 720p, but these are rare (720p has only been seen once) and usually differ in other ways (e.g. 396p have lower frame rates), so this option will not affect them.
The text was updated successfully, but these errors were encountered: