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. |
5th May 2015, 14:37 | #2021 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
6th May 2015, 01:20 | #2022 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,419
|
FFMS2 C-plugin r1015+85
Optimized for Pentium-III and SSE. ffmpeg version r71895 git-0eec40b Copyright (c) 2000-2015 the FFmpeg developers built with gcc 5.1.0 (GCC) Code:
libavutil 54. 23.101 / 54. 23.101 libavcodec 56. 36.100 / 56. 36.100 libavformat 56. 31.102 / 56. 31.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 configuration: --prefix=/home/qyot27/win32_build --cross-prefix=i686-w64-mingw32- --enable-gpl --enable-version3 --disable-w32threads --enable-avresample --disable-encoders --disable-decoder=utvideo --enable-libutvideo --disable-decoder=dca --enable-libdcadec --disable-muxers --disable-doc --disable-debug --disable-devices --disable-avdevice --disable-filters --disable-avfilter --enable-avisynth --cpu=pentium3 --extra-cflags='-mfpmath=sse -march=pentium3 -msse -mtune=pentium3' --target-os=mingw32 --arch=x86 Last edited by qyot27; 26th June 2015 at 08:52. Reason: fix year; that was ffprobe's copyright info |
7th May 2015, 10:48 | #2023 | Link | ||
Registered User
Join Date: Nov 2009
Location: France
Posts: 20
|
Quote:
The framerate mention may be there to allow easier timecode calculation for people who want to parse the .txt log that -k creates. As #1513 mentioned, it would be nice to have a built-in function that displays both the keyframe numbers and the corresponding timecodes. Quote:
Basically, integrating https://github.com/SAPikachu/VFRHelper (which uses FFMS2.dll for MKV, MP4 and FLV) for FFMS2's supported input formats. (I cannot use VFRHelper 1.3.1 (2012-08-24) on my .mkv file, it returns an error. Also, for some reason ffmsindex.exe manages to find keyframes 10 times faster than ffmpeg/ffprobe. ) |
||
8th May 2015, 17:23 | #2024 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
8th May 2015, 21:29 | #2025 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
We're too lazy to improve ffinfo() so contributions would be appreciated. The changes we want are described in the issue below. Only average avisynth scripting skills needed. The values should obviously be displayed with the fancy names as text.
The issue is here: https://github.com/FFMS/ffms2/issues/61
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
9th May 2015, 21:16 | #2026 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Code:
function FFColorSpace(int i) { i=(i<0||i>10) ? 2 : i return Select(i,"RGB","BT709 (ITU-R Rec.709)","Unspecified","Unspecified","FCC","BT470BG (ITU-R Rec.601)","SMPTE170M (ITU-R Rec.601)","SMPTE240M","YCOCG","BT2020_NCL","BT2020_NC") } function FFColorRange(int i) { i=(i<0||i>2) ? 0 : i return Select(i,"Unknown/Unspecified","Limited range (usually 16-235)","Full range (0-255)") } function FFCropping(int l,int t, int r,int b) { return "Left="+String(l)+" Top="+String(t)+" Right="+String(r)+" Bottom="+String(b) } function FFSampAR(int num,int den) { return String(num)+":"+String(den)+((num<=0 || den<=0)?"":string(Float(num)/den," (%.3f)")) } function FFPictType(int ch) { s=chr(ch) s = s + ( \ ch==73?" (Intra)":ch==80?" (Predicted)":ch==66?" (Bi-dir predicted)":ch==83?" (S(GMC)-VOP MPEG4)" \ : ch==105?" (Switching Intra)":ch==112?" (Switching Predicted)":ch==98?" (FF_BI_TYPE [no good explanation available])" \ : " (Unknown)") return s } function FFInfo(clip c, bool "framenum", bool "frametype", bool "cfrtime", bool "vfrtime", string "varprefix", \ bool "colorspace",bool "colorrange",bool "cropping",bool "sar",bool "version",bool "showprefix") { framenum = default(framenum,true) frametype = default(frametype,true) cfrtime = default(cfrtime,true) vfrtime = default(vfrtime,true) varprefix = default(varprefix, FFVAR_PREFIX) colorSpace = default(colorspace,true) colorrange = default(colorrange,true) cropping = default(cropping,true) sar = default(sar,true) version = default(version,true) showprefix = default(showprefix,false) c.frameevaluate(""" fftempstring = "" varprefix = """" + varprefix + """" """) version ? frameevaluate("""fftempstring = fftempstring + "Version: " + FFGetVersion + "\n" """, after_frame=true) : nop() framenum ? frameevaluate("""fftempstring = fftempstring + "Frame Number: " + string(current_frame) + " of " + string(framecount()) + "\n" """, after_frame=true) : nop() # frametype ? frameevaluate("""fftempstring = fftempstring + "Picture Type: " + chr(eval(varprefix + "FFPICT_TYPE")) + "\n" """, after_frame=true) : nop() frametype ? frameevaluate("""fftempstring = fftempstring + "Picture Type: " + FFPictType(eval(varprefix + "FFPICT_TYPE")) + "\n" """, after_frame=true) : nop() cfrtime ? frameevaluate("""fftempstring = fftempstring + "CFR Time: " + FFFormatTime(round((current_frame * 1000) / framerate())) + "\n" """, after_frame=true) : nop() vfrtime ? frameevaluate("""fftempstring = fftempstring + "VFR Time: " + FFFormatTime(eval(varprefix + "FFVFR_TIME")) + "\n" """, after_frame=true) : nop() colorspace ? frameevaluate("""fftempstring = fftempstring + "ColorSpace: " + FFColorSpace(eval(varprefix + "FFCOLOR_SPACE")) + "\n" """, after_frame=true) : nop() colorrange ? frameevaluate("""fftempstring = fftempstring + "Color Range: " + FFColorRange(eval(varprefix + "FFCOLOR_RANGE")) + "\n" """, after_frame=true) : nop() cropping ? frameevaluate("""fftempstring = fftempstring + "Cropping: " + FFCropping(eval(varprefix + "FFCROP_LEFT"),eval(varprefix + "FFCROP_TOP"),eval(varprefix + "FFCROP_RIGHT"),eval(varprefix + "FFCROP_BOTTOM")) + "\n" """, after_frame=true) : nop() sar ? frameevaluate("""fftempstring = fftempstring + "SAR: " + FFSampAR(eval(varprefix + "FFSAR_NUM"),eval(varprefix + "FFSAR_DEN")) + "\n" """, after_frame=true) : nop() showprefix ? frameevaluate("""fftempstring = fftempstring + "Prefix: '" + varprefix + "'\n" """, after_frame=true) : nop() return scriptclip("subtitle(fftempstring, lsp = 1)", after_frame=true) } You might want to remove 'showprefix' stuff. Alter as you will.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 13th May 2015 at 03:30. Reason: update |
13th May 2015, 02:08 | #2027 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Myrsloik,
take another peek at previous post, not (I hope) quite a lousy as previous. (incidentally I'm sitting in/on a chair too, FYI).
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 13th May 2015 at 02:20. |
13th May 2015, 09:39 | #2028 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Glorious work my chair based comrade! You efforts have now been merged with minimal changes.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
17th May 2015, 13:13 | #2029 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
I am here to inform you of the glorious new 2.21 release. Go and update because it actually is a lot better than the previous one.
Those of you who still care about Avisynth and have minor coding skills may want to help with this small improvement (replace ffms2.avsi with real code): https://github.com/FFMS/ffms2/issues/209
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
17th May 2015, 15:49 | #2031 | Link |
47.952fps@71.928Hz
Join Date: Mar 2011
Posts: 940
|
__________________
Win10 (x64) build 19041 NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4) NTSC | DVD: R1 | BD: A AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Last edited by Sparktank; 17th May 2015 at 17:23. |
18th May 2015, 20:30 | #2034 | Link |
Registered User
Join Date: Oct 2014
Posts: 268
|
.. The new 2.21 seems to make a mess ('behave differently') when opening my AVCHD files.
I always remuxed my .mts AVCHD files into .mkv with mkvtoolnix, and then opened the .mkv file with ffms2, and specifying the fpsnum / fpsden parameters. That was the way to get the video/audio sync OK in those files for me. (The video + audio tracks don't always aline perfectly, my camera seems to start recording audio the moment you press record, but the video track starts less than a second later when the first pictures are actually coming in or something like that). With the new 2.21 version, it seems to open OK, but after the first 20 frames or so (it varies file to file) it jumps back and the first 20 frames (or so) repeat. If I try to open the .MTS file directly it creates garbage / artifacted frames around the 20 frames mark for a few frames and then it continues OK again. (Tested this only with Vapoursynth r27 x64 btw, but with both the 2.21-msvc and 2.21-icl x64 builds) Reverting back to 2.20 fixes it. |
18th May 2015, 20:32 | #2035 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
18th May 2015, 22:44 | #2037 | Link |
Registered User
Join Date: Oct 2014
Posts: 268
|
been a (long) time since I asked something here, what is the preferred method of sharing a sample? Got like a 6 second file, 16.4 mb. It's of my little son so I won't really like throwing it out there public, but to a few trusted devs is no problem.
If a shorter ok-to-go-public example is requested, I need to shoot a second or 3 with something to sync audio to tomorrow (it's night here now). |
19th May 2015, 07:33 | #2038 | Link | |
Registered User
Join Date: Nov 2005
Posts: 583
|
Quote:
Would you also kindly advise if whatever lingering issues with interlaced contents and ts files have been resolved? Many thanks and best regards. |
|
19th May 2015, 09:14 | #2040 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Sure, just use something else to open files instead.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
Thread Tools | Search this Thread |
Display Modes | |
|
|