Valkyrie Riders Cruiser Club
November 17, 2025, 02:20:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Ultimate Seats Link VRCC Store
Homepage : Photostash : JustPics : Shoptalk : Old Tech Archive : Classifieds : Contact Staff
News: If you're new to this message board, read THIS!
 
VRCC Calendar Ad
Pages: [1]   Go Down
Print
Author Topic: motorcycle related video editing...  (Read 668 times)
hubcapsc
Member
*****
Posts: 16799


upstate

South Carolina


« on: November 04, 2017, 06:52:21 AM »

I've been fiddling with video editing lately and have learned a few things
with much yet to learn.

My objective is to be able to root around in ride videos from my gopro
for a few seconds here or a few seconds there of something interesting
and then post it to youtube so I can include it in a ride post.

It sounds easy, but seems hard.

My gopro shoots video in OK quality, and it is easy to pull out a clip
from time-index-a to time-index-b that retains full quality.

When you upload a video to youtube, they re-encode (transcode)
the video into numerous different versions (from lowest quality
to highest quality). A lower quality one has a smaller file size than
a higher quality one, so when someone views a video, youtube detects
the speed of their Internet connection and shows them a version that
might download to them in a reasonable amount of time. Youtube
provides a little "gear wheel" at the bottom of the screen so that
you can choose any of the available qualities, even if it means
you have to wait a long time for it to download.

I've been trying to figure out how to prepare my videos so that,
at least at the highest quality, the video is still worth looking at,
and that's what I perceive to be the hard part.

It turns out that it is pretty easy to shoot a "static video" - some
talking head standing in front of a bland background - and upload
that to youtube... even after they transcode it, all the versions look
pretty good.

It is a lot harder to shoot a video from a motorcycle moving in and
out of the shade through a canopy of trees where the background
is constantly changing, and retain the quality through the
transcoding.

Transcoding involves a bunch of mathematical compression algorithms
with respect to the difference between one frame and the next. When
there's not much difference, the compression works out great. When
there's a lot of difference between adjacent frames, the compression
shows up in the finished product as a lack of resolution.

Here's a good example: https://www.youtube.com/watch?v=gn1hy2t2Bpc

This is us turning onto Yellow Creek Road a couple of weeks ago at
the Fall Color Ride. If you click on it, and use the gear wheel to select
1080p (the highest quality) you can see that when we are out in the
open the quality is pretty good, and when we are zooming through
the tree canopy, the quality is reduced.

The quality of the whole video is good when I'm looking at what was
outputted from my gopro.

When you look at professional videos on youtube, at the highest quality
level, such as this Yamaha Niken video we've been talking about on
some threads here, it is all good: https://www.youtube.com/watch?v=ERpQ6_NQGPM

Part of the reason it is all good is because the professional videographer
avoided hard-to-compress shots (like zooming through the tree canopy)
on purpose. There's lots of zooming down curvy roads going on in this
video, but it is all done in places where the background is not complex,
and the colors are few and the lighting doesn't change much.

I think that one thing that will help my videos will be to figure out
more about reducing the frame-rate without getting the audio
out-of-sync, and perhaps which video and audio codices to use...

So... do you know of any (short hopefully) motorcycle videos on youtube
that are high quality through the whole video, and which involve
complex backgrounds? You could post links to them on this thread...

-Mike
« Last Edit: November 06, 2017, 05:27:07 AM by hubcapsc » Logged

hubcapsc
Member
*****
Posts: 16799


upstate

South Carolina


« Reply #1 on: November 04, 2017, 12:19:25 PM »


I perceive this to be a better version, I've reduced the frame rate from 30 fps to 25 fps...

https://www.youtube.com/watch?v=z_CuYggYoVA

My computer is a very recent Linux (4.13), the Fedora 26 distribution,
it has about as new a kernel as you can get and all the packages are
just about the newest versions...

I use ffmpeg to edit the videos.

To cut a clip (in this case 45 seconds starting at 0 seconds) from the
12 minute long raw video from the camera (GP010207.MP4) to a file called
"yellow_creek.mp4":

ffmpeg -i GP010207.MP4 -ss 00:00:00 -to 00:00:45 -copy yellow_creek.mp4

This command resets the frame rate to 25 and adjusts the bits/second to
the range that youtube suggests (8M):

ffmpeg -y -i yellow_creek.mp4 -r 25 -c:v libx264 -b:v 8M -movflags faststart yellow_creek_frame25.mp4

Here's 12 frames per second  Wink

https://www.youtube.com/watch?v=O9uL1ano_n8

-Mike

Logged

Firefight100
Member
*****
Posts: 116

Usa


« Reply #2 on: November 04, 2017, 01:45:04 PM »

Mp4 is probably not the best container to use.  Here is a google search that should help you out.  www.google.com/search?q=best+format+to+upload+hd+video+to+youtube&oq=best+format+to+upload+hd+video+to+you&aqs=chrome.1.69i57j0l2.15438j0j7&sourceid=chrome&ie=UTF-8
Logged
hubcapsc
Member
*****
Posts: 16799


upstate

South Carolina


« Reply #3 on: November 04, 2017, 05:34:08 PM »



Thanks... those seem to say the same thing I've been finding,
that's why I'm using H.264... notice "-c:v libx264" from the
ffmpeg command line above... these are all of youtube's
suggested settings:

https://support.google.com/youtube/answer/1722171

-Mike
Logged

hubcapsc
Member
*****
Posts: 16799


upstate

South Carolina


« Reply #4 on: November 05, 2017, 08:12:58 PM »


Here's a first shot at video stabilization...  cooldude

https://www.youtube.com/watch?v=FxuGIWkeVU0

-Mike "remember the gear wheel and 1080p"
Logged

The emperor has no clothes
Member
*****
Posts: 29945


« Reply #5 on: November 05, 2017, 08:38:38 PM »


Here's a first shot at video stabilization...  cooldude

https://www.youtube.com/watch?v=FxuGIWkeVU0

-Mike "remember the gear wheel and 1080p"
cooldude looked good to me  cooldude
Logged
hubcapsc
Member
*****
Posts: 16799


upstate

South Carolina


« Reply #6 on: November 06, 2017, 04:51:00 AM »


Thanks MH...

This is a better stabilized version (on my end)... the end-product
is a much smaller, easier to upload, file.

https://www.youtube.com/watch?v=ScoAnxRwIFY

What you see on youtube doesn't seem any different from the
first stabilized version, me doing the right thing on my end
(when/if I figure out how) may help deal with the re-encoding
they do on their end.

Before I upload them, my stabilized versions play really well
even when the bikes go from the light into the shade under
the trees...

Anywho... I think the stabilization is a big improvement, if there's
going to be distortion it is helpful that it is not also shaky...

-Mike
Logged

hubcapsc
Member
*****
Posts: 16799


upstate

South Carolina


« Reply #7 on: November 06, 2017, 06:40:30 PM »


Here's 18 seconds of pretty clear footage... I'll have to try the
settings that produced this on the 45 second yellow creek shot...

https://www.youtube.com/watch?v=b8qSP0Z_1rY

-Mike "youtube gear wheel, 1080p"
Logged

Pages: [1]   Go Up
Print
Jump to: