Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VirtualDub, VDubMod & AviDemux
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th December 2016, 14:11   #1  |  Link
asaleo
Registered User
 
Join Date: Mar 2013
Posts: 27
FFmpeg with VirtualDub miss two first frames

I have used the Tateu plugin together with VirtualDub and Deshaker for stabilizing videos.
Today I am using ffmpeg for opening mp4 files in VirtualDub.
When I try to use old logfiles, created together with the Tateu plugin in VirtualDub, video stabilization is lost.

I have found that for a video with say 1700 frames, "ffmpeg-video" shows only 1698 frames in VirtualDub but uses 1700 frames during Deshaker stabilization.

Thus the "Tateu logfile" shows values for 1700 frames and the "ffmpeg logfile" shows values for only 1698 frames plus value zero for frame 1699 and 1700.

Frame 3 in tateau-logfile corresponds to frame 1 in ffmpeg logfile.

I use latest ffmpeg version, v1848

I will now mark every new logfile to be able to use the right encoder together with VirtualDub when I need to make changes to my stabilized videos.

Do any of you have an explication for the behavior of ffmpeg?
Regards
asaleo is offline   Reply With Quote
Old 29th December 2016, 19:12   #2  |  Link
asaleo
Registered User
 
Join Date: Mar 2013
Posts: 27
ffmpeg v1848 do not work with Deshaker

Found more facts about my problem.
ffmpeg v1848 do not work with Deshaker.
I have returned to v1836
Earlier I recognized that v1841 didnīt work with Deshaker either.
It seems that ffmpeg is not tested together with Deshaker.

I have also found that GoPro HD4 Silver files work with both tateu and ffmpeg. No difference in frame numbers. 1080p

GoPro HD2 files (960p) still causes problems with frame numbers which gives different logfiles for files imported to VirtualDub using tateu or ffmpeg encoders.
Regards
asaleo is offline   Reply With Quote
Old 29th December 2016, 19:13   #3  |  Link
shekh
Registered User
 
Join Date: Mar 2015
Posts: 775
It is not completely clear what you are using at each step (and where you see the problem).
By "using ffmpeg" you mean "FFMpeg Input Plugin",
Tateu plugin is afaik mp4 demuxer but uses some sort of vfw codec for actual AVC decoding.
It is a known problem that vfw decoder cannot deliver frame X when you request frame X in random order, easy to confirm by jumping through timeline with some frame-numbered video.
__________________
VirtualDub2
shekh is offline   Reply With Quote
Old 29th December 2016, 19:22   #4  |  Link
shekh
Registered User
 
Join Date: Mar 2015
Posts: 775
If you are interested in FilterMod and it also has problem, upload your sample files and I will check what is possible to do.
__________________
VirtualDub2
shekh is offline   Reply With Quote
Old 30th December 2016, 08:19   #5  |  Link
asaleo
Registered User
 
Join Date: Mar 2013
Posts: 27
Only GoPro HD2 files miss frames

Thanks shekh for answering.
I have now checked mp4 files from 2010 to 2015.
During check I have VirtualDub opened in two windows,
one window for opening mp4 files with Tateu encoder and the other window for opening mp4 files wiht ffmpeg encoder.

I then open same file in those windows. I expect that first frame in VirtualDub should be identical in those two windows.
Thats not the case for files created by GoPro HD2 mp4 files.
First two frames in "fmpeg-opened" video are missing
Stepping two frames forward in "tateu-opened" video shows frame identical to first frame in "ffmpeg-opened" video.
This will of course create problems when you use logfilers from Deshaker. You have to use right encoder to a specific logfile if you want to make changes in old files.

I can live with this problem but is of course curious why an mp4 file can differ that much.

Both GoPro HD1 and GoPro HD4 Silver do not show this error.

Regards
asaleo is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 13:34.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.