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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1581 | Link | |
|
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,501
|
Quote:
Last edited by qyot27; 19th July 2012 at 17:45. |
|
|
|
|
|
|
#1582 | Link |
|
Registered User
Join Date: Mar 2011
Posts: 5,062
|
I'm not overly knowledgeable when it comes to video indexing/encoding, but I'm having an ffms2 indexing problem and thought I'd ask about it here. I'm using version 2.17 and I've tried r683.
I have some MKVs which contain constant frame rate DivX video and I'm fairly sure the video contains duplicate frames. If I remux the MKVs as AVIs I can open them using AVISource and the duplicate frames seem be included when encoding. If I use ffms2 to index them however, the resulting video contains fewer frames than the original. The total video duration is basically correct, but the frame rate is reduced to achieve it. Adding "fpsnum=25, fpsden=1" to the script (25fps source) fixes the frame count and I can convert without audio sync issues. If the issue is duplicate frames, is this expected behavior or should ffms2 handle them "correctly"? Thanks. |
|
|
|
|
|
#1583 | Link | |
|
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,869
|
Quote:
http://forum.doom9.org/showthread.ph...07#post1583307 |
|
|
|
|
|
|
#1584 | Link |
|
.
![]() Join Date: Oct 2001
Location: Germany
Posts: 7,859
|
calling:
Code:
LoadPlugin("G:\Hybrid\avisynthPlugins\ffms2.dll")
FFVideoSource("H:\Output\input.m2ts",cachefile="H:\Temp\input_m2ts_41.ffindex",threads=1)
input.m2ts contains avc video Cu Selur |
|
|
|
|
|
#1585 | Link | |
|
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,136
|
Quote:
The ffms2 based on ffmbc outputs the same image of ffmbc->v210->readv210 The ffms2 based on ffmpeg outputs the same image of ffmpeg->v210->readv210 Now the main question is: which is the right decode? |
|
|
|
|
|
|
#1586 | Link |
|
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,869
|
What is the difference?
I tried decoding ProRes to v210 in different ways and always had same (or 99.9%) results. Seen some tiny differences in waveform, but it's impossible to so it by eye. I have no clue which is correct, but as far as I can tell difference is marginal. Will try again with new Resolve 9. |
|
|
|
|
|
#1587 | Link |
|
Registered User
Join Date: Jan 2006
Posts: 1,869
|
I'm wondering if this is the proper way to force point sized 4:1:1 export with ffms2 (original build) and Avisynth 2.6a3:
Code:
A = FFAudioSource(dir+fn) V = FFVideoSource(dir+fn, resizer="POINT")#attempt to avoid touching chroma in 4:1:1 -> 4:2:2 AudioDub(V, A) ConvertToYV411(chromaresample="point")#convert from YUY2->YV411 |
|
|
|
|
|
#1590 | Link |
|
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,136
|
It's at pixel level. It concern only some pixels and it resemble something similar to a 'luma' difference. Nothing correlated to visual artefacts. Watching the clip stacked, you can see better where are the difference. They're small but I've seen some bigger 'portions' of difference. Anyway I can live with it, but since the decoded image should be the same from both ffmbc and ffmpeg, I'm wondering which provide the right decode.
|
|
|
|
|
|
#1592 | Link | |
|
Registered User
Join Date: Jan 2006
Posts: 1,869
|
Ok,
I'm having a bunch of problems. FFMS2 is crashing. Code:
dir="C:\project004\home video project\" fn="testclip.mov" plugindir="M:\Program Files\AviSynth 2.5\plugins\temp\" pluginfn="ffms2.dll" Load_Stdcall_Plugin(plugindir+pluginfn) A = FFAudioSource(dir+fn) V = FFVideoSource(dir+fn) AudioDub(V, A) Quote:
Avisynth 2.6a3 ffms-2.17-cplugin.7z No other plugins loaded And the source clip is here http://www.digitalfaq.com/forum/vide...html#post22197 NTSC DV in mov I couldn't find any more recent versions of the C version to try. Last edited by jmac698; 4th August 2012 at 20:26. |
|
|
|
|
|
|
#1593 | Link |
|
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,676
|
Hi jmac698, here is an updated FFMS2 C plugin.
BTW, since I'm not a member of DigitalFAQ I can't download your sample. |
|
|
|
|
|
#1594 | Link |
|
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,501
|
EDIT 2012-08-17: A much better solution was committed to SVN. Disregard this post.
With current revisions of both FFmpeg and libav from git, compilation of r702 (both trunk and C-plugin) fails due to some CodecID changes. The following patch resolves the issue by moving most of the CodecID instances to AVCodecID: [doesn't exist anymore] I don't know if I changed it in places that may have been unnecessary, but it doesn't seem to have caused any other problems (but I also don't compile FFMS2 with Visual Studio). Last edited by qyot27; 18th August 2012 at 04:15. |
|
|
|
|
|
#1595 | Link |
|
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,501
|
FFMS2 r705 trunk:
Code:
CXX src/core/matroskavideo.lo
CXX src/core/numthreads.lo
CC src/core/stdiostream.lo
CXX src/core/utils.lo
src/core/utils.cpp: In function 'void FlushBuffers(AVCodecContext*)':
src/core/utils.cpp:569:34: error: invalid conversion from 'const AVCodec*' to 'AVCodec*' [-fpermissive]
AVCodec *codec = CodecContext->codec;
^
make: *** [src/core/utils.lo] Error 1
Code:
CXX src/core/matroskaaudio.o
CXX src/core/matroskaindexer.o
CXX src/core/matroskavideo.o
CXX src/core/utils.o
src/core/utils.cpp: In function 'void FlushBuffers(AVCodecContext*)':
src/core/utils.cpp:569:34: error: invalid conversion from 'const AVCodec*' to 'AVCodec*' [-fpermissive]
AVCodec *codec = CodecContext->codec;
^
make: *** [src/core/utils.o] Error 1
|
|
|
|
|
|
#1596 | Link |
|
もこたんインしたお!
Join Date: Jan 2008
Location: Finland / Japan
Posts: 512
|
Yes, to get ffms2 to build with current libav/ffmpeg you have to do something a la this.
You get somewhat less errors as you are not building it on windows/MSVC, and the weird-looking include addition comes from the fact that FFMIN and friends are being used there, yet it was not included in order to use them.
__________________
[I'm human, no debug]
|
|
|
|
|
|
#1597 | Link |
|
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,501
|
Something that I've been wondering lately, partially about testing the performance of certain decoding methods:
Is it possible (or rather, how easy/difficult would it be) to add a decoder= option to FFMS2 to cover those cases where multiple decoders for the same format are present in a build of libavcodec? Something similar is there with the demuxer option, and would provide some flexibility to test if there happens to be a problem with one of the decoders. Currently, to test this with external decoders you have to explicitly disable the native one and enable the external, and consequently make multiple builds of both FFmpeg/libav and FFMS2 to cover the difference. Last edited by qyot27; 22nd August 2012 at 02:20. |
|
|
|
|
|
#1598 | Link | |
|
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,647
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
|
|
|
|
|
#1599 | Link | |
|
Registered User
Join Date: Dec 2008
Posts: 99
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|