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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th June 2015, 12:36   #21  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
okay, I been messing with gdb for the last 1.5 hours and still got no clue about how to get it to debug, literally.
so I made a broken binary of Chikuzen's original code
here: https://github.com/IFeelBloated/vsra...eases/tag/test
a little help here, tell me what I'm doing wrong plz?
feisty2 is offline   Reply With Quote
Old 19th June 2015, 12:49   #22  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
Make sure to add
Code:
-ggdb -g3 -O0
to the CXXFLAGS and don't let it strip the DLL.

Code:
gdb --args <command that crashes>
run
bt full
This prints the sequence of function calls that led to the crash, with the most recent at #0. It should give you the location of the crash as a file name and line number.
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 19th June 2015, 14:04   #23  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
sorry for the dumbness but, I'm still confused with gdb, like, what kind of command do I have to put in "<command that crashes>", sure it can't be that core.raws.Source.... vaporsynth command, right? it crashes vaporsynth if you try to load any file with core.raws.Source (...)
I updated a new broken x64 binary with debug symbols, someone kind plz, help me do the gdb test.

Last edited by feisty2; 19th June 2015 at 14:06.
feisty2 is offline   Reply With Quote
Old 19th June 2015, 14:40   #24  |  Link
Are_
Registered User
 
Join Date: Jun 2012
Location: Ibiza, Spain
Posts: 321
Something like "vspipe.exe something.py -"
Are_ is offline   Reply With Quote
Old 19th June 2015, 15:25   #25  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633

okay, it got stuck like this for, 15 minutes.
what does it mean?

1.vpy
import vapoursynth as vs
core = vs.get_core()
clp = core.raws.Source("1.rgb",720,576,src_fmt="GRAY16")
clp.set_output ()
feisty2 is offline   Reply With Quote
Old 19th June 2015, 16:00   #26  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
It means there was no crash.
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 19th June 2015, 16:15   #27  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
but 1.rgb is only about 30MB, vspipe should've done the work within seconds, not stuck for 15 minutes, and when I terminated vspipe.exe in taskmgr, t.rgb was still 0kb

and I loaded 1.vpy in vseditor and tried to preview it, it got stuck as well and taskmgr told me it stopped responding

Last edited by feisty2; 19th June 2015 at 16:19.
feisty2 is offline   Reply With Quote
Old 19th June 2015, 16:21   #28  |  Link
captainadamo
Guest
 
Posts: n/a
Can you host your sample file somewhere and post exactly what your script is? I can try to help you diagnose your issues.
  Reply With Quote
Old 19th June 2015, 16:43   #29  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
1.rgb https://mega.nz/#!FxIRHZRS!l_Vu7N_0A...BSyK0pemTgDDtY
1.vpy
Code:
import vapoursynth as vs
core = vs.get_core()
clp = core.raws.Source("1.rgb",720,576,src_fmt="GRAY16")
clp.set_output ()
1.vpy vspipe.exe are in the same folder with 1.rgb

edit:
and broken x64 binary with debug symbols https://github.com/IFeelBloated/vsra...eases/tag/test
in case you missed #21

Last edited by feisty2; 19th June 2015 at 17:16.
feisty2 is offline   Reply With Quote
Old 19th June 2015, 17:46   #30  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 496
works for me in linux (64 bits) with original code, with vsedit and pipe method

you clip is only 35frames?
sl1pkn07 is offline   Reply With Quote
Old 19th June 2015, 17:50   #31  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
Yeah, 35 frames just for test
feisty2 is offline   Reply With Quote
Old 19th June 2015, 17:52   #32  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 496
then works ok for me

EDIT: oh. wait. i use this fork https://github.com/myrsloik/vsrawsource

sorry :S
sl1pkn07 is offline   Reply With Quote
Old 19th June 2015, 17:57   #33  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
Maybe I should uninstall windows and take Linux instead?
Okay, I'm joking...
But I can't get it to work on windows with gcc
feisty2 is offline   Reply With Quote
Old 19th June 2015, 17:58   #34  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 496
and with clang?
sl1pkn07 is offline   Reply With Quote
Old 19th June 2015, 18:02   #35  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
Didn't test with clang, but it's 10am now and I'm going out and I will test it and report back when I get home
feisty2 is offline   Reply With Quote
Old 20th June 2015, 04:29   #36  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
@HolyWu
still not working, I think my gcc might be corrupted, I'll reinstall it and report back
feisty2 is offline   Reply With Quote
Old 20th June 2015, 05:21   #37  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
reinstalled gcc and things worked out alright, finally
so, new version here
v0.3.3
update: added support to GrayS (tested) and GrayH (not tested, cuz I can't find any float16 clip and fmtc got no support for GrayH so no way to test)
https://github.com/IFeelBloated/vsra...ases/tag/0.3.3

Last edited by feisty2; 20th June 2015 at 05:29.
feisty2 is offline   Reply With Quote
Old 28th January 2016, 03:29   #38  |  Link
ddubya
Registered User
 
Join Date: Jan 2016
Posts: 8
I have fixed a bunch of bugs in vsrawsource and almost done adding tests. Also I have added capability to read from a pipe (not tested on windows yet).

I have not compiled or tested on windows yet, if you want to help go for it.

https://github.com/walisser/vsrawsource
ddubya is offline   Reply With Quote
Old 2nd April 2016, 15:17   #39  |  Link
Efenstor
Registered User
 
Join Date: Aug 2008
Location: Krasnoyarsk, Russian Federation
Posts: 90
Quote:
Originally Posted by ddubya View Post
I have fixed a bunch of bugs in vsrawsource and almost done adding tests. Also I have added capability to read from a pipe (not tested on windows yet).

I have not compiled or tested on windows yet, if you want to help go for it.

https://github.com/walisser/vsrawsource
Can you please give me a hand on the shell pipes (in Linux)? Surfed through a whole lot of sites and still unsuccessful. Here is what I try to do and it doesn't work.
Code:
video = core.raws.Source(sys.stdin, 1920, 1080, 30000, 1001)
# Here goes some processing
video.set_output()
Command line:
Code:
ffmpeg -i input.mts -pix_fmt yuv420p -f rawvideo - | \
env PYTHONPATH=/usr/local/lib/python3.4/site-packages vspipe --y4m proc_vs.py - | \
ffmpeg -i pipe: output.mkv
The error I get:
Code:
Script evaluation failed:
Python exception: 'utf-8' codec can't decode byte 0x80 in position 7291: invalid start byte

Last edited by Efenstor; 2nd April 2016 at 15:20.
Efenstor is offline   Reply With Quote
Old 2nd April 2016, 19:12   #40  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
Quote:
Originally Posted by Efenstor View Post
Code:
video = core.raws.Source(sys.stdin, 1920, 1080, 30000, 1001)
# Here goes some processing
video.set_output()
Code:
Script evaluation failed:
Python exception: 'utf-8' codec can't decode byte 0x80 in position 7291: invalid start byte
Code:
video = core.raws.Source("/dev/stdin", 1920, 1080, 30000, 1001)
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Reply


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 06:00.


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