HDR10+ Timelapse Filmed with Samsung and Edited with FFMPEG

Subscribers:
8,660
Published on ● Video Link: https://www.youtube.com/watch?v=Zo8gi8K4LDs



Duration: 3:01
30 views
1


This is a 30x timelapse. The audio does not correspond to the video.
This was my first attempt at creating HDR timelapse video, I do not have an HDR screen or any paid software that can edit HDR.

To do something like this yourself use:

ffmpeg -i inputvideo.mp4 -filter_complex "[0:v]setpts=0.1*PTS[v];[0:a]atempo=10[a]" -map "[v]" -map "[a]" -c:v libx265 -b:v 20M -r 60 -x265-params "hdr-opt=1:repeat-headers=1:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:master-display='G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(1000,1)':max-cll='4000,1000'" -c:a aac -b:a 256k -g 60 outputvideo.mp4

That will produce a 10x speedup

1. The input video file, 'inputvideo.mp4', serves as the source for the time-lapse creation.
2. The video is sped up by 10 times using the 'setpts' filter, while using atempo to keep the audio pitch unchanged.
3. The resulting video and audio streams are mapped using '-map'.
4. The video is encoded with the 'libx265' codec and set to a bitrate of 20Mbps ('-b:v 20M').
5. The output video is set to 60 frames per second ('-r 60') for smoother playback.
6. The 'x265-params' specify the HDR10+ metadata, including color primaries, transfer function, color matrix, and mastering display parameters.
7. The audio is encoded in AAC format with a bitrate of 256k ('-c:a aac -b:a 256k').
8. The GOP (Group of Pictures) size is set to 60 frames ('-g 60') for efficient video compression.
9. The resulting time-lapse video is saved as 'outputvideo.mp4'.

How the 'x265-params' work:

hdr-opt=1: Enables the insertion of HDR10+ metadata into the video stream. HDR10+ is a dynamic metadata HDR format that allows for scene-by-scene or even frame-by-frame adjustment of HDR parameters.

repeat-headers=1: Ensures that the HDR10+ metadata is repeated in each IDR (Instantaneous Decoding Refresh) frame. This is necessary to maintain the correct metadata throughout the video stream.

colorprim=bt2020: Specifies the color primaries for the HDR content. BT.2020 is a widely used color space for HDR video, providing a larger gamut compared to standard color spaces like BT.709.

transfer=smpte2084: Sets the transfer function for the HDR content to SMPTE ST 2084, also known as PQ (Perceptual Quantizer). SMPTE ST 2084 is designed to accurately represent the human visual perception of brightness in HDR video.

colormatrix=bt2020nc: Defines the color matrix for the HDR content as BT.2020 non-constant luminance. This matrix is used to convert the RGB values of the video to the YCbCr color space.

master-display='G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(1000,1)': Specifies the mastering display metadata, providing information about the characteristics of the display used during mastering. The values in parentheses represent the chromaticity coordinates of the green, blue, and red primaries, white point, and maximum luminance.

G(13250,34500): Green primary chromaticity coordinates.
B(7500,3000): Blue primary chromaticity coordinates.
R(34000,16000): Red primary chromaticity coordinates.
WP(15635,16450): White point chromaticity coordinates.
L(1000,1): Maximum and minimum luminance levels.
max-cll='4000,1000': Specifies the maximum content light level (max CLL) and maximum frame-average light level (max FALL) metadata. These values represent the brightest pixel in the content and the maximum brightness level averaged across the entire frame, respectively.

4000: Maximum content light level (in nits) of the brightest pixel.
1000: Maximum frame-average light level (in nits) across the entire frame.

This is the Wilfred Major Feed plant Recorded 2022-06-30 in North Lancaster

#HDR #HDR10 #FFMPEG




Other Videos By Nathanael Newton


2023-07-22The great Rivers of the sky #cloud #timelapse #ottawa #canada #ottawagatineau #weather #britannia
2023-07-22The clouds rise and fall like waves on the ocean #ottawa #ottawagatineau #sunset #timelapse #canada
2023-07-22I've got so many sunset videos.. #ottawa #ottawagatineau #canada #sunset #timelapse #britannia
2023-07-22I miss my 50mm lens.. #timelapse #ottawa #streetphotography #pinecrest #nepean #mist #fog #loop
2023-07-22why buy pizza when you can make much better pizza at home #diy #homemade #homecooked #pizza #food
2023-07-22Summertime storm clouds #canada #onstorm #2020
2023-07-20Right in the middle of the road.. πŸ˜‚ #ottawa #crash #ops #octranspo #bus #wreck
2023-07-20Rush Hour Traffic on Ottawa's Infamous R1 Bus Complete (Both Directions, Double-Decker Bus) Realtime
2023-07-19Rush Hour Traffic on Ottawa's Infamous R1 Bus Complete (Both Directions) HDR Timelapse
2023-07-19The 5th SundayFunday Vlog - Finishing 2 weeks of cleaning then rollerblading at the skatepark
2023-07-18HDR10+ Timelapse Filmed with Samsung and Edited with FFMPEG
2023-07-18I'm the luckiest man in #Ottawa right now.. On an EMPTY R1 Double Decker Bus following a rainstorm 😍
2023-07-18I suspect that I may be the only person who actually likes the R1 bus πŸ˜”πŸ˜‚πŸ˜― #ottawa #olrt #masstransit
2023-07-18Why are there *#$+ holes in the skate park? #ottawa #rollerblading #outdoors #lol #canada
2023-07-162023 April & July OLRT East Expansion Construction Update
2023-07-15another absolutely epic find from my favourite thrift store #music #recorder #audio #salvationarmy
2023-07-15😍😍😍 Look at this epic fan
2023-07-14I hate the Google Pixel 7 Pro and I regret buying it (Part 1)
2023-07-14the #glutenfree bread at the store is way too expensive so I'm going to make my own #vegan #diy
2023-07-14How I prevent my computer from bugging me about Windows 11 upgrade #hacks #tips #diy #lol
2023-07-13Storm clouds in Ottawa on the Day of the Tornado (2023-07-13)