Page 4 of 7
Re: Choppy overlay video Android V18.1
Posted: Tue Nov 18, 2014 5:41 pm
by petik0
interesting, on my PC, VLC shows the choppy video as artifacting which is the same as on android - it doesn't look choppy, instead it shows artifacts all over the place as the video is running. on youtube and wmp it looks like low/dropped frames.
and yeah, i agree that it doesn't seem shaky video should be causing this given we see this on non-shaky video as well. what i'm ultimately curious to see is anyone with android not seeing this issue and i'd like to see their settings. i assume Harry must have this working on his platform?
Re: Choppy overlay video Android V18.1
Posted: Tue Nov 18, 2014 5:46 pm
by Harry
Yes certainly, I regularly test this for Nexus4 and Samsung SIII. It is not a general problem but one specific to the format used during recording. Please keep in mind results from video recording and encoding are different for practically every Android device type. VLC and ffmpeg use the same code base as LapTimer's video library, so this is always the prove point. Any other viewer is hit or miss...
- Harry
Re: Choppy overlay video Android V18.1
Posted: Tue Nov 18, 2014 6:00 pm
by bulls23
I'm still playing around with the overlayed video from youtube...if you watch it frame by frame in VLC it's clear the picture only changes every 5 frames.
Re: Choppy overlay video Android V18.1
Posted: Tue Nov 18, 2014 6:23 pm
by petik0
Harry wrote:Yes certainly, I regularly test this for Nexus4 and Samsung SIII. It is not a general problem but one specific to the format used during recording. Please keep in mind results from video recording and encoding are different for practically every Android device type. VLC and ffmpeg use the same code base as LapTimer's video library, so this is always the prove point. Any other viewer is hit or miss...
- Harry
I would think that I should be able to re-encode the video to the format either the Nexus4 or the GS3 record in. Could you share those parameters and maybe an easy way to run the conversion (i.e. ffmpeg).
Re: Choppy overlay video Android V18.1
Posted: Tue Nov 18, 2014 6:32 pm
by bulls23
I'm such an idiot...a Firefox add-on was giving me the Youtube encoded versions of your Google Drive videos. I finally used the download buttons and it's completely different now, so please forget all I wrote.
Funny enough I'm still getting other results compared to yours:
VLC plays like repeating frames, Quicktime only plays sound and a blacl screen, and WMP plays at full speed but with blocky artifacts in the video, Win7 64bit
Here' the full media info for both files:
Code: Select all
Allgemein
Vollständiger Name : P:\Videos\LapTimerOverlay-20141115-114530.mp4
Format : MPEG-4
Format-Profil : Base Media
Codec-ID : isom
Dateigröße : 734 MiB
Dauer : 17min
Modus der Gesamtbitrate : konstant
Gesamte Bitrate : 5 837 Kbps
Kodierendes Programm : Lavf55.42.101
Video
ID : 1
Format : MPEG-4 Visual
Format-Profil : Advanced Simple@L1
Format-Einstellungen für BVOP : Ja
Format-Einstellungen für Qpel : Nein
Format-Einstellungen für GMC : Keine warppoints
Format-Einstellungen für Matrix : Default (H.263)
Codec-ID : 20
Dauer : 17min
Bitraten-Modus : konstant
Bitrate : 5 672 Kbps
Breite : 1 280 Pixel
Höhe : 720 Pixel
Bildseitenverhältnis : 16:9
Modus der Bildwiederholungsrate : variabel
Bildwiederholungsrate : 29,970 FPS
minimale Bildwiederholungsrate : 29,791 FPS
maximale Bildwiederholungsrate : 30,181 FPS
ColorSpace : YUV
ChromaSubsampling : 4:2:0
BitDepth/String : 8 bits
Scantyp : progressiv
Bits/(Pixel*Frame) : 0.205
Stream-Größe : 713 MiB (97%)
verwendete Encoder-Bibliothek : Lavc55.66.100
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format-Profil : LC
Codec-ID : 40
Dauer : 17min
Bitraten-Modus : konstant
Bitrate : 156 Kbps
Kanäle : 2 Kanäle
Kanal-Positionen : Front: L R
Samplingrate : 48,0 KHz
Stream-Größe : 19,6 MiB (3%)
Code: Select all
Allgemein
Vollständiger Name : P:\Videos\LapTimer-20141115-111541.mp4
Format : MPEG-4
Format-Profil : Base Media
Codec-ID : isom
Dateigröße : 2,08 GiB
Dauer : 24min
Gesamte Bitrate : 12,2 Mbps
Kodierungs-Datum : UTC 2014-11-15 17:40:11
Tagging-Datum : UTC 2014-11-15 17:40:11
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format-Profil : High@L3.1
Format-Einstellungen für CABAC : Ja
Format-Einstellungen für ReFrames : 1 frame
Format_Settings_GOP : M=1, N=18
Codec-ID : avc1
Codec-ID/Info : Advanced Video Coding
Dauer : 24min
Bitrate : 12,0 Mbps
Breite : 1 280 Pixel
Höhe : 720 Pixel
Bildseitenverhältnis : 16:9
Modus der Bildwiederholungsrate : variabel
Bildwiederholungsrate : 29,970 FPS
minimale Bildwiederholungsrate : 29,742 FPS
maximale Bildwiederholungsrate : 30,252 FPS
ColorSpace : YUV
ChromaSubsampling : 4:2:0
BitDepth/String : 8 bits
Scantyp : progressiv
Bits/(Pixel*Frame) : 0.434
Stream-Größe : 2,05 GiB (99%)
Titel : VideoHandle
Sprache : Englisch
Kodierungs-Datum : UTC 2014-11-15 17:40:11
Tagging-Datum : UTC 2014-11-15 17:40:11
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format-Profil : LC
Codec-ID : 40
Dauer : 24min
Source_Duration/String : 24min
Bitraten-Modus : konstant
Bitrate : 156 Kbps
Kanäle : 2 Kanäle
Kanal-Positionen : Front: L R
Samplingrate : 48,0 KHz
Stream-Größe : 27,3 MiB (1%)
Source_StreamSize/String : 27,3 MiB (1%)
Titel : SoundHandle
Sprache : Englisch
Kodierungs-Datum : UTC 2014-11-15 17:40:11
Tagging-Datum : UTC 2014-11-15 17:40:11
mdhd_Duration : 1466476
Re: Choppy overlay video Android V18.1
Posted: Wed Nov 19, 2014 2:15 am
by petik0
So just to try I converted the video to straight mpeg4 using ffmpeg (-vcodec mpeg4) and low bit rate ~1mbps and tried running overlay on that. The choppiness is still present, not quite as drastic, but unmistakably there.
Re: Choppy overlay video Android V18.1
Posted: Wed Nov 19, 2014 4:08 am
by gplracerx
I downloaded the raw file and looked at in a video editor, specifically VideoReDo. Not only is there a lot of jello distortion from the vibrating mount, but the focus changes between frames. Nearly every other frame has a change in focus, at least in the early part of the video. No wonder it looks choppy and is difficult to overlay.
Here are two consecutive frames:
4.04
https://dl.dropboxusercontent.com/u/915 ... 802%29.bmp
4.05
https://dl.dropboxusercontent.com/u/915 ... 803%29.bmp
The first is focused close up as the fender is sharp while the distance is fuzzy and the second is in focus for distance so the fender is fuzzy. Changing focus isn't fixable after the fact.
They're full size bitmap images so I didn't want to use the Img tag.
Re: Choppy overlay video Android V18.1
Posted: Wed Nov 19, 2014 4:15 am
by petik0
gplracerx wrote:I downloaded the raw file and looked at in a video editor, specifically VideoReDo. Not only is there a lot of jello distortion from the vibrating mount, but the focus changes between frames. Nearly every other frame has a change in focus, at least in the early part of the video. No wonder it looks choppy and is difficult to overlay.
Here are two consecutive frames:
4.04
https://dl.dropboxusercontent.com/u/915 ... 802%29.bmp
4.05
https://dl.dropboxusercontent.com/u/915 ... 803%29.bmp
The first is focused close up as the fender is sharp while the distance is fuzzy and the second is in focus for distance so the fender is fuzzy. They're full size bitmap images so I didn't want to use the Img tag.
Although true, completely irrelevant to the overlay. If you had seen the gopro originals i referred to, they have very little vibration and have the same problem.
Re: Choppy overlay video Android V18.1
Posted: Wed Nov 19, 2014 4:56 am
by gplracerx
But I didn't see the GoPro originals and the problems I see in the raw video do not look to be irrelevant to the overlay. The playback is jerky using about every player I have. Any overlay is going to make things worse.
Re: Choppy overlay video Android V18.1
Posted: Wed Nov 19, 2014 5:08 am
by petik0
gplracerx wrote:But I didn't see the GoPro originals and the problems I see in the raw video do not look to be irrelevant to the overlay. The playback is jerky using about every player I have. Any overlay is going to make things worse.
Why would any overlay make things worse? Video is video regardless of how fast the motion is. Yes, there would be more keyframes to keep up with the changes but otherwise you shouldn't get artifacting or dropped frames in encoding...I've done video overlay using a number of PC based solutions with ZERO additional artifacting or choppiness.
Here's source and overlay from a gopro. The gopro was run through ffmpeg as i described above. Again the worsening in dropped frames is present. Since I purposely reduced quality on the video to try to make it easier on laptimer, it doesn't scream in your face about it, but it's still very obvious. Might rerun this in higher bitrate to let it accentuate itself.
https://drive.google.com/file/d/0BxWx9e ... sp=sharing
https://drive.google.com/file/d/0BxWx9e ... sp=sharing