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. |
|
|
Thread Tools | Search this Thread | Display Modes |
12th May 2019, 16:25 | #61 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Same error using ffms2 as src filter.
edit: I missed using : -f vapoursynth
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 12th May 2019 at 16:33. |
12th May 2019, 16:45 | #62 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
The built works very well and it's really helpful being able to open vpy with ffmpeg.
I wonder if mpv can open vpy too? I tried it a few days before but couldn't get it working.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
14th May 2019, 20:19 | #63 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
@Wolfberry
I would like to suggest using --enable-libmp3lame in the next built.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
15th May 2019, 16:55 | #64 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
@Wolfberry
Thanks for the new built. There is an issue, I'm not able to use this command line: ffmpeg.exe -f vapoursynth -i C:\test.vpy -c:v libx265 -an -y -hide_banner C:\test.mkv The problem seem to be arbitrary because sometimes it works and it happens only with x265 and not with x264.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
16th May 2019, 19:59 | #65 | Link | ||
Registered User
Join Date: May 2004
Posts: 324
|
Quote:
If all else fails you could just do this: Quote:
I know this code works with x265, NVEnc, and mpv player. |
||
16th May 2019, 20:02 | #66 | Link | |||
Registered User
Join Date: May 2004
Posts: 324
|
Quote:
However using the following line will play back the vpy script in mpv, It will lack the ability to properly scrub the file forward or back. Quote:
Quote:
Last edited by Revan654; 16th May 2019 at 20:08. |
|||
18th May 2019, 03:34 | #67 | Link |
Registered User
Join Date: May 2011
Posts: 321
|
clip could be output to mpv player right from script itself using output() and using subprocess modul. VSEdit might need clip.set_output() at the end.
Code:
import vapoursynth as vs from vapoursynth import core import subprocess clip = core.avisource.AVISource(r'C:\video.avi') #import shutil #mpv = shutil.which('mpv') mpv = r'C:\tools\mpv.exe' mpv_cmd = [mpv, '-'] process = subprocess.Popen(mpv_cmd, stdin=subprocess.PIPE) file_handle=process.stdin clip.output(file_handle, y4m = True) process.communicate() Last edited by _Al_; 18th May 2019 at 03:42. |
19th May 2019, 08:44 | #68 | Link | |
Helenium(Easter)
Join Date: Aug 2017
Location: Hsinchu, Taiwan
Posts: 99
|
Quote:
I adjusted the LAVF patches for x265 and it seems to be better, can you confirm?
__________________
Monochrome Anomaly Last edited by Wolfberry; 28th May 2019 at 08:08. |
|
19th May 2019, 13:13 | #69 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
@Wolfberry
It's either fixed or improved, didn't happen in a couple of test runs, much appreciated, thanks.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
23rd May 2019, 21:16 | #70 | Link | ||
Registered User
Join Date: Aug 2015
Posts: 47
|
I tried to use Wolfberry FFmpeg Builds but I couldn't encode, did I missed something?
vpy script: Quote:
Quote:
Last edited by unix; 25th May 2019 at 08:41. |
||
23rd May 2019, 22:19 | #71 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Try with the most simple script, meaning only the source filter, what does ffmpeg output?
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
24th May 2019, 07:59 | #72 | Link | |
Registered User
Join Date: Aug 2015
Posts: 47
|
But my script so simple
Quote:
Last edited by unix; 25th May 2019 at 08:41. |
|
24th May 2019, 12:26 | #73 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
There is no output so it could be the same problem I had before. Since you are using relative paths, are you sure all files can be found? Does it work with a real input file (mkv)?
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
24th May 2019, 17:19 | #74 | Link | |||
Registered User
Join Date: Aug 2015
Posts: 47
|
Quote:
Quote:
Quote:
|
|||
24th May 2019, 18:22 | #76 | Link | |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Quote:
Tested with: ffplay.exe -f vapoursynth -i 'D:\test.vpy'
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
|
24th May 2019, 22:50 | #77 | Link | ||
Helenium(Easter)
Join Date: Aug 2017
Location: Hsinchu, Taiwan
Posts: 99
|
Quote:
What I mean by static is that ffmpeg will not require extra dlls at startup. Quote:
I just extracted VapourSynth64-Portable-R45, python-3.7.3-embed-amd64 and ffmpeg to the same directory and use that as a testing environment.
__________________
Monochrome Anomaly Last edited by Wolfberry; 28th May 2019 at 08:07. |
||
28th May 2019, 08:24 | #79 | Link | |
Helenium(Easter)
Join Date: Aug 2017
Location: Hsinchu, Taiwan
Posts: 99
|
Quote:
__________________
Monochrome Anomaly Last edited by Wolfberry; 29th May 2019 at 10:11. |
|
31st May 2019, 05:39 | #80 | Link | |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
Since I've now hammered out the kinks (hopefully), I'm able to answer this based on actually cross-compiling VapourSynth instead of using gendef on Windows dlls.
Quote:
The entire process is documented here (link goes directly to the VapourSynth section of the guide): https://github.com/qyot27/mpv/blob/e...ious.txt#L4396 One distinction is that when I'd tested with using gendef to handle VapourSynth too, I could get FFmpeg to link to it, but mpv refused to link to libavformat. gendeffing only Python and then cross-compiling VapourSynth like any other library results in both FFmpeg and mpv being able to link to it (importantly, mpv being able to directly play back scripts this way). 32-bit and 64-bit FFmpeg and mpv with static VapourSynth Said binaries include *both* VS demuxers. The upstream demuxer is still 'vapoursynth', and the other one is 'vapoursynth_alt'. It's easy to tell them apart because they return different data types as input: '-f vapoursynth' returns wrapped_avframe, '-f vapoursynth_alt' returns rawvideo. The upstream demuxer also doesn't honor relative file paths across directories (in just FFMS2? maybe in general?), while the alt demuxer does. Last edited by qyot27; 31st May 2019 at 16:47. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|