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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 18th January 2019, 20:49   #1  |  Link
belonesox
Registered User
 
Join Date: May 2010
Location: Moscow, Russia
Posts: 35
Preview Vapoursynth script with MPV

I wish to preview vapoursynth scripts with MPV,
ideally with seeking, but I still cannot align MPV with VS on formats/colors, etc.

Consider small project:
https://github.com/belonesox/wtf-vap...th-mpv-preview

release.py:
Code:
#!/usr/bin/env python3
import vapoursynth as vs

core = vs.get_core()
video = core.std.BlankClip(format=vs.YUV420P10, length=1000, color=[128, 190, 128]) 
video = core.sub.Subtitle(video, "WTF???", 0, 500, style="sans-serif,200,&H00FF00FF")
video.set_output()
When I build it with 'build.sh'
Code:
vspipe --y4m release.py - | ffmpeg -i pipe: encoded.mkv
all OK

When I preview it with 'preview-ffplay.sh'
Code:
vspipe --y4m release.py - | ffplay -i pipe:
all OK

But how I can preview it with MPV?

I tried
Code:
vspipe --y4m release.py - |  mpv --demuxer rawvideo --demuxer-rawvideo-mp-format=yuv420p10 -
and tried all formats supported by MPV...
but still getting wrong result ("moving text with wrong color").

What am I doing wrong?
belonesox is offline   Reply With Quote
 

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 12:57.


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