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 |
![]() |
#61 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,601
|
Thanks for the built. Any idea what could be wrong here?
Code:
C:\Users\frank\Desktop>C:\Users\frank\Daten\Projekte\VB\staxrip\bin\Apps\Encoders\ffmpeg\ffmpeg.exe -i "C:\Users\frank\Daten\Misc\Video Samples\test_temp\test.vpy" -c:v libx264 -an -y -hide_banner "C:\Users\frank\Daten\Misc\Video Samples\test_temp\test_out.mkv" C:\Users\frank\Daten\Misc\Video Samples\test_temp\test.vpy: Invalid data found when processing input Code:
import os import sys ScriptPath = 'C:/Users/frank/Daten/Projekte/VB/staxrip/bin/Apps/Plugins/VS/Scripts' sys.path.append(os.path.abspath(ScriptPath)) import vapoursynth as vs core = vs.get_core() core.std.LoadPlugin(r"C:\Users\frank\Daten\Projekte\VB\staxrip\bin\Apps\Plugins\vs\vslsmashsource\vslsmashsource.dll") clip = core.lsmas.LibavSMASHSource(r"C:\Users\frank\Daten\Misc\Video Samples\test.mp4") clip.set_output() Code:
General CompleteName : C:\Users\frank\Daten\Misc\Video Samples\test.mp4 Format/String : MPEG-4 Format_Profile : Base Media CodecID/String : isom (isom/iso2/avc1/mp41) FileSize/String : 60.9 MiB Duration/String : 2 min 49 s OverallBitRate/String : 3 007 kb/s Encoded_Application/String: Lavf57.19.100 Video ID/String : 1 Format/String : AVC Format/Info : Advanced Video Codec Format_Profile : High@L4 Format_Settings : CABAC / 3 Ref Frames Format_Settings_CABAC/String: Yes Format_Settings_RefFrames/String: 3 frames CodecID : avc1 CodecID/Info : Advanced Video Coding Duration/String : 2 min 49 s BitRate/String : 2 876 kb/s Width/String : 1 920 pixels Height/String : 1 080 pixels DisplayAspectRatio/String: 16:9 FrameRate_Mode/String : Variable FrameRate/String : 23.976 (24000/1001) FPS FrameRate_Minimum/String : 23.974 FPS FrameRate_Maximum/String : 23.981 FPS ColorSpace : YUV ChromaSubsampling/String : 4:2:0 BitDepth/String : 8 bits ScanType/String : Progressive Bits-(Pixel*Frame) : 0.058 StreamSize/String : 58.2 MiB (96%) colour_range : Limited colour_primaries : BT.709 transfer_characteristics : BT.709 matrix_coefficients : BT.709 Codec configuration box : avcC Audio ID/String : 2 Format/String : AAC LC Format/Info : Advanced Audio Codec Low Complexity CodecID : mp4a-40-2 Duration/String : 2 min 49 s BitRate_Mode/String : Constant BitRate/String : 126 kb/s Channel(s)/String : 2 channels ChannelLayout : L R SamplingRate/String : 44.1 kHz FrameRate/String : 43.066 FPS (1024 SPF) Compression_Mode/String : Lossy StreamSize/String : 2.54 MiB (4%) Default/String : Yes AlternateGroup/String : 1 |
![]() |
![]() |
![]() |
#65 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,601
|
@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. |
![]() |
![]() |
![]() |
#66 | 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. |
||
![]() |
![]() |
![]() |
#67 | 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. |
|||
![]() |
![]() |
![]() |
#68 | Link |
Registered User
Join Date: May 2011
Posts: 175
|
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. |
![]() |
![]() |
![]() |
#69 | 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. |
|
![]() |
![]() |
![]() |
#71 | Link | ||
Registered User
Join Date: Aug 2015
Posts: 43
|
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. |
||
![]() |
![]() |
![]() |
#73 | Link | |
Registered User
Join Date: Aug 2015
Posts: 43
|
But my script so simple
Quote:
Last edited by unix; 25th May 2019 at 08:41. |
|
![]() |
![]() |
![]() |
#75 | Link | |||
Registered User
Join Date: Aug 2015
Posts: 43
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#77 | Link | |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,408
|
Quote:
Tested with: ffplay.exe -f vapoursynth -i 'D:\test.vpy'
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository |
|
![]() |
![]() |
![]() |
#78 | 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. |
||
![]() |
![]() |
![]() |
#80 | 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. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|