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 > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th February 2017, 20:28   #161  |  Link
Daemon404
Registered User
 
Join Date: Mar 2005
Posts: 128
Binaries for 1.1 are in the OP.

Somehow I'm not dead.
Daemon404 is offline   Reply With Quote
Old 19th February 2017, 23:29   #162  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 146
Quote:
Originally Posted by Daemon404 View Post
Binaries for 1.1 are in the OP.
Thanks! Can't build on macOS, getting this after autogen and configure:

$ make
CXX src/core/compat.lo
CXX src/core/d2v.lo
CXX src/core/decode.lo
src/core/decode.cpp:450:45: warning: 'codec' is deprecated
[-Wdeprecated-declarations]
if (dctx->fctx->streams[i]->codec->codec_type == AVMEDIA...
^
/usr/local/Cellar/ffmpeg/3.2.4/include/libavformat/avformat.h:893:21: note:
'codec' has been explicitly marked deprecated here
AVCodecContext *codec;
^
src/core/decode.cpp:491:13: warning: 'avcodec_decode_video2' is deprecated
[-Wdeprecated-declarations]
avcodec_decode_video2(dctx->avctx, out, &av_ret, &dctx->inpkt);
^
/usr/local/Cellar/ffmpeg/3.2.4/include/libavcodec/avcodec.h:4812:5: note:
'avcodec_decode_video2' has been explicitly marked deprecated here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^
/usr/local/Cellar/ffmpeg/3.2.4/include/libavcodec/avcodec.h:1578:16: warning:
'convergence_duration' is deprecated [-Wdeprecated-declarations]
typedef struct AVPacket {
^
/usr/local/Cellar/ffmpeg/3.2.4/include/libavcodec/avcodec.h:1630:13: note:
'convergence_duration' has been explicitly marked deprecated here
int64_t convergence_duration;
^
src/core/decode.cpp:510:25: warning: 'avcodec_decode_video2' is deprecated
[-Wdeprecated-declarations]
int r = avcodec_decode_video2(dctx->avctx, out, &av_ret...
^
/usr/local/Cellar/ffmpeg/3.2.4/include/libavcodec/avcodec.h:4812:5: note:
'avcodec_decode_video2' has been explicitly marked deprecated here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^
/usr/local/Cellar/ffmpeg/3.2.4/include/libavcodec/avcodec.h:1578:16: warning:
'convergence_duration' is deprecated [-Wdeprecated-declarations]
typedef struct AVPacket {
^
/usr/local/Cellar/ffmpeg/3.2.4/include/libavcodec/avcodec.h:1630:13: note:
'convergence_duration' has been explicitly marked deprecated here
int64_t convergence_duration;
^
/usr/local/Cellar/ffmpeg/3.2.4/include/libavcodec/avcodec.h:1578:16: warning:
'convergence_duration' is deprecated [-Wdeprecated-declarations]
typedef struct AVPacket {
^
/usr/local/Cellar/ffmpeg/3.2.4/include/libavcodec/avcodec.h:1630:13: note:
'convergence_duration' has been explicitly marked deprecated here
int64_t convergence_duration;
^
6 warnings generated.
CXX src/vs/applyrff.lo
src/vs/applyrff.cpp:192:36: error: expected expression
data->fields.push_back({ i, Progressive });
^
src/vs/applyrff.cpp:193:36: error: expected expression
data->fields.push_back({ i, Progressive });
^
src/vs/applyrff.cpp:196:40: error: expected expression
data->fields.push_back({ i, Progressive });
^
src/vs/applyrff.cpp:197:40: error: expected expression
data->fields.push_back({ i, Progressive });
^
src/vs/applyrff.cpp:200:44: error: expected expression
data->fields.push_back({ i, Progressive });
^
src/vs/applyrff.cpp:201:44: error: expected expression
data->fields.push_back({ i, Progressive });
^
src/vs/applyrff.cpp:207:36: error: expected expression
data->fields.push_back({ i, tff ? Top : Bottom });
^
src/vs/applyrff.cpp:208:36: error: expected expression
data->fields.push_back({ i, tff ? Bottom : Top });
^
src/vs/applyrff.cpp:211:40: error: expected expression
data->fields.push_back({ i, tff ? Top : Bottom });
^
9 errors generated.
KingLir is offline   Reply With Quote
Old 20th February 2017, 03:30   #163  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 397
New version works great!

I have to remind myself to take care when filenames contain spaces.

Last edited by Cary Knoop; 20th February 2017 at 04:42.
Cary Knoop is offline   Reply With Quote
Old 20th February 2017, 12:56   #164  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
Quote:
Originally Posted by KingLir View Post
Thanks! Can't build on macOS, getting this after autogen and configure:
src/vs/applyrff.cpp:211:40: error: expected expression
data->fields.push_back({ i, tff ? Top : Bottom });
^
9 errors generated.
Oops. Try this:
Code:
make clean && ./configure CXXFLAGS='-std=c++11' && make
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 20th February 2017, 13:07   #165  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 146
Quote:
Originally Posted by jackoneill View Post
Oops. Try this:
Code:
make clean && ./configure CXXFLAGS='-std=c++11' && make
Thanks! Works.
KingLir is offline   Reply With Quote
Old 20th May 2018, 22:17   #166  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 496
this is ok with the latest ffmpeg 4?

Code:
diff --git a/src/core/d2v.hpp b/src/core/d2v.hpp
index f87b1a0..ecdae78 100644
--- a/src/core/d2v.hpp
+++ b/src/core/d2v.hpp
@@ -68,7 +68,7 @@ static const int idct_algo_conv[8] = {
     FF_IDCT_AUTO,
     FF_IDCT_AUTO,
     FF_IDCT_AUTO,
-    FF_IDCT_XVIDMMX,
+    FF_IDCT_XVID,
     FF_IDCT_SIMPLEMMX
 };
 
diff --git a/src/core/decode.cpp b/src/core/decode.cpp
index b563697..11a0fef 100644
--- a/src/core/decode.cpp
+++ b/src/core/decode.cpp
@@ -242,12 +242,6 @@ decodecontext *decodeinit(d2vcontext *dctx, int threads, string& err)
     /* Set the thread count. */
     ret->avctx->thread_count = threads;
 
-    /*
-     * Enable EMU_EDGE so that we can use buffers that are
-     * not padded by 32 pixels.
-     */
-    ret->avctx->flags |= CODEC_FLAG_EMU_EDGE;
-
     /* Use refcounted frames. */
     ret->avctx->refcounted_frames = 1;
__________________
[AUR] Vapoursynth Stuff
[AUR] Avisynth Stuff

Last edited by sl1pkn07; 20th May 2018 at 22:20.
sl1pkn07 is offline   Reply With Quote
Old 2nd June 2018, 21:31   #167  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 496
done in upstream
__________________
[AUR] Vapoursynth Stuff
[AUR] Avisynth Stuff
sl1pkn07 is offline   Reply With Quote
Old 24th July 2018, 23:35   #168  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,616
Can this plugin works with D2VWitch to index video like this so I can skip a step?

Code:
core.d2v.Source(r"my_video.ts")
Also I have problem opening d2v made by dgindex when the video path in the d2v is non English because the dgindex d2v is in ANSI encoding instead of utf-8.
lansing is offline   Reply With Quote
Old 25th July 2018, 12:24   #169  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
Quote:
Originally Posted by lansing View Post
Can this plugin works with D2VWitch to index video like this so I can skip a step?

Code:
core.d2v.Source(r"my_video.ts")
That would be nice. It's on my to do list.

Quote:
Originally Posted by lansing View Post
Also I have problem opening d2v made by dgindex when the video path in the d2v is non English because the dgindex d2v is in ANSI encoding instead of utf-8.
That's unlikely to be fixed in any way. Does DGIndex have a feature you need that D2V Witch doesn't have?
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 25th July 2018, 15:02   #170  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,616
Quote:
Originally Posted by jackoneill View Post
That's unlikely to be fixed in any way. Does DGIndex have a feature you need that D2V Witch doesn't have?
Yeah I know this is a dgindex problem that have been existed since the beginning. I just wanna see if it would be easy enough to fix it on this end.
lansing is offline   Reply With Quote
Old 25th July 2018, 16:44   #171  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,707
You don't have to use the full path in d2v. Just uncheck "Use full paths" in options in dgindex and only the file name will be stored.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Old 25th July 2018, 21:34   #172  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,616
Quote:
Originally Posted by ChaosKing View Post
You don't have to use the full path in d2v. Just uncheck "Use full paths" in options in dgindex and only the file name will be stored.
The problem is still there if my file name is non English.
lansing is offline   Reply With Quote
Old 26th July 2019, 09:57   #173  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,616
I'm trying to stress my new Ryzen 3900x with this filter, but I was never able to get cpu utilization over 25%. And setting threads count to 10 is 200fps faster than leaving it at auto, is there something wrong?
lansing is offline   Reply With Quote
Old 17th July 2021, 15:28   #174  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 6,775
Trying to build d2vwitch using:
Code:
### d2vwitch
if echo "$args" | grep -q -i -w -E 'all|d2vwitch'
then
  mkdir build
  cd build

  top="$PWD"
  export PATH="$top:$PATH"
  export PKG_CONFIG_PATH="$top/libs/lib/pkgconfig"

  git clone --depth 1 https://github.com/dubhater/D2VWitch
  git clone --depth 1 https://github.com/FFmpeg/FFmpeg
  git clone --depth 1 https://github.com/vapoursynth/vapoursynth

  build_nasm

  cd FFmpeg
  ./configure --prefix="$top/libs" \
    --enable-gpl \
    --enable-version3 \
    --disable-encoders \
    --disable-muxers \
    --disable-outdevs \
    --disable-programs \
    --disable-doc \
    --disable-debug \
    --disable-xlib \
    --disable-sdl2 \
    --extra-cflags="-ffunction-sections -fdata-sections"
  make $MAKEFLAGS
  make install

  cd ../D2VWitch
  autoreconf -if
  vapoursynth_CFLAGS="-I../vapoursynth/include" \
  vapoursynth_LIBS=" " \
  LDFLAGS="-Wl,--gc-sections" \

  ./configure
  make $MAKEFLAGS
  strip d2vwitch
  cp -f d2vwitch ../..
  cd ..

  cat <<EOL >../d2vwitch-sources.txt
https://github.com/dubhater/D2VWitch
$(git -C D2VWitch rev-parse HEAD)

https://github.com/vapoursynth/vapoursynth
$(git -C vapoursynth rev-parse HEAD)

https://github.com/FFmpeg/FFmpeg
$(git -C FFmpeg rev-parse HEAD)
EOL

  cd ..
  rm -rf build
fi
see: https://github.com/Selur/HybridDeploy

problem is, the build stops at:
Code:
checking for vapoursynth... no
configure: error: Package requirements (vapoursynth) were not met:

No package 'vapoursynth' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables vapoursynth_CFLAGS
and vapoursynth_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Any idea what am I missing? This did work before,..

Cu Selur
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..

Last edited by Selur; 17th July 2021 at 15:36.
Selur is offline   Reply With Quote
Old 18th July 2021, 20:00   #175  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
I think you need to put something that is not whitespace in vapoursynth_LIBS. „-L.” should be harmless.
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 19th July 2021, 04:48   #176  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 6,775
Thanks for the suggestion, but using "-L." sadly didn't change much:
Code:
+ cd ../D2VWitch
+ autoreconf -if
configure.ac:17: installing './compile'
configure.ac:10: installing './config.guess'
configure.ac:10: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
Makefile.am: installing './depcomp'
+ vapoursynth_CFLAGS=-I../vapoursynth/include
+ vapoursynth_LIBS=-L.
+ LDFLAGS=-Wl,--gc-sections
+ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for grep that handles long lines and -e... /bin/grep
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for vapoursynth... no
configure: error: Package requirements (vapoursynth) were not met:

No package 'vapoursynth' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables vapoursynth_CFLAGS
and vapoursynth_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
full log: https://rentry.co/wwf6b
it stops with the same error.

Cu Selur
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is offline   Reply With Quote
Old 21st July 2021, 20:38   #177  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
Code:
  cd ../D2VWitch
  autoreconf -if
  vapoursynth_CFLAGS="-I../vapoursynth/include" \
  vapoursynth_LIBS=" " \
  LDFLAGS="-Wl,--gc-sections" \

  ./configure
Perhaps you need a backslash on the empty line as well. Or just put the assignments and the call to configure on the same line. (And use vapoursynth_LIBS="-L.")
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 22nd July 2021, 15:33   #178  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 6,775
Code:
cd ../D2VWitch
   autoreconf -if
   vapoursynth_CFLAGS="-I../vapoursynth/include" vapoursynth_LIBS="-L." LDFLAGS="-Wl,--gc-sections" ./configure
   make $MAKEFLAGS
get's me further but still fails, see: https://paste.ee/p/7KJ4O
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is offline   Reply With Quote
Old 23rd July 2021, 16:04   #179  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
I guess it's time to update that code to match the changes in ffmpeg.
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 12th October 2021, 10:35   #180  |  Link
Jukus
Registered User
 
Join Date: Jul 2019
Location: Russia
Posts: 85
https://github.com/dwbuiten/d2vsource/issues/48
Jukus is offline   Reply With Quote
Reply

Tags
d2v, dgindex, vapoursynth

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:50.


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