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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 18th April 2017, 21:38   #81  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by sneaker_ger View Post
Yes, looking good.

Don't forget to let test5 create new .ffindex files, people.
Yes, delete all old ones. I forgot to bump the index version and using an old index=>old issues.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is online now  
Old 18th April 2017, 22:48   #82  |  Link
dipje
Registered User
 
Join Date: Oct 2014
Posts: 268
The weird things I had at the start of my MTS files seem fixed now. Stepping through the files (forward) reveal nothing out of the ordinary an all good.

Stepping backwards still starts acting weird, but you might just call that 'by design and do not seek backwards' I don't know.
If I start stepping backwards (after having stepped forward through the whole video) the first few frames seek very quick (cached I guess) then the frames seek back slower (to be expected, seeking backwards in a file that is not All-I).
But after around 80 frames the picture 'freezes'. I can step back a few frames but they all look the same (they didn't while seeking forward through the file). This lasts for around 10 frames (GOP length?). Then it goes to slowly seeking backwards frame by frame again.

Now, if I start stepping forward at this moment, those 10 'freeze frames' are still there. I have to step back a whole lot more and then step forward ago and now the exact same frames step forward OK. So is there actually some seeking gone bad here, or is the Vapoursynth cache being naughty? Or both?

What appears to be happening is that after seeking +/- 80 frames backwards ffms2 produces 10 frames of 'freeze frame', and Vapoursynth caches those 10 frames, so stepping them forward again will not fix it while the bad frames are still in the cache.

@Myrsloik: You still have my MTS example file right? Create a simple script that opens it with ffms2 with nothing more, open it in Vapoursynth Editor. Go to the last frame, then start holding down the arrow-down key to step backward. Around frame 192 the 'freeze frame' occurs. Also happens in VDFilterMod (to rule out a bug in Vapoursynth Editor or something).
If I open the file and don't seek to the end but instead seek to frame +/- 220 and start holding down the arrow key, the glitch once again occurs at frame +/- 192 (same spot) so it does seem related to that position in the file, not the amount of frames I stepped backwards or anything.

PS (And yes, I deleted .ffindex file before I started)
PS2 (And I'm talking about test5, just to be clear)
dipje is offline  
Old 18th April 2017, 23:40   #83  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Originally Posted by Myrsloik View Post
It would be very helpful if you throw all your mpeg and transport streams at it.
How would I handle audio, dump or audiodub?

I want to encode this sample:

http://www.mediafire.com/file/t51xbk...owing_Pains.ts

Some script code and command lines to get me started would be helpful.
stax76 is offline  
Old 19th April 2017, 10:32   #84  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by dipje View Post
The weird things I had at the start of my MTS files seem fixed now. Stepping through the files (forward) reveal nothing out of the ordinary an all good.

...
Interesting. It at least seems to improve and probably exposes a few different issues. So many old hacks to re-evaluate in there...

I wish I'd kept a bigger collection of samples.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is online now  
Old 27th April 2017, 19:43   #85  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,815
Is this normal that in latest ffms2000 test5 all frames in VC-1 are detected as keyframes?
Example
Code:
# keyframe format v1
fps 0
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FFMS 2.20
Code:
# keyframe format v1
fps 0
0
1
25
49
53
77
101
106
130
154
178
202
226
250
274
298
322
346
370
394
418
442
466
490
Atak_Snajpera is offline  
Old 27th April 2017, 19:56   #86  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by Atak_Snajpera View Post
Is this normal that in latest ffms2000 test5 all frames in VC-1 are detected as keyframes?
...
No, can I have a small sample?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is online now  
Old 27th April 2017, 20:01   #87  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,815
No problem give me 15 minutes...
Atak_Snajpera is offline  
Old 27th April 2017, 20:16   #88  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,815
ok done
http://www.mediafire.com/file/98z5ynb5m6dwb0r/VC-1.mkv
Atak_Snajpera is offline  
Old 27th April 2017, 20:51   #89  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by Atak_Snajpera View Post
Must be a broken mkv/ffmpeg bug. The parser really does report all the frames as keyframes. I'll poke it a bit more but definitely not my fault.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is online now  
Old 13th May 2017, 08:54   #90  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
It seems that the latest ffms2000 breaks BePipe -> NeroAACEnc compatibility.
Although the audio stream is detected by BePipe, NeroAACEnc can't encode it and fails.
FranceBB is offline  
Old 13th May 2017, 08:55   #91  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by FranceBB View Post
It seems that the latest ffms2000 breaks BePipe -> NeroAACEnc compatibility.
Although the audio stream is detected by BePipe, NeroAACEnc can't encode it and fails.
Audio handling wasn't changed at all. Oddly enough.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is online now  
Old 13th May 2017, 09:05   #92  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
Uhm... Well, with the stable FFMpegSource2 I was able to open a file in avisynth, and pipe the audio using BePipe to NeroAACEnc, but I can't with ffms2000.
I think you can reproduce my error pretty easily with any source.

Sample:

FFMpegSource2("Ep1.avi", fpsnum=24000, fpsden=1001, atrack=-1)

BePipe.exe --script "Import(^AVS Script.avs^)" | neroAacEnc.exe -lc -br 320000 -if - -of "audio.m4a"
FranceBB is offline  
Old 22nd May 2017, 02:31   #93  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
Hi,
I have an .mka audio track which contains two tracks: the first one is a FLAC lossless audio track with 6 channels, and the second one is an AC3 stereo audio track.
When I use FFAudioSource() it takes the second track (AC3) instead of the very first one.
I think it should use the first available audio track, so FLAC.
Is this a bug? Do you want me to upload the .mka file?


General
Unique ID : 174555563715229058114849233714037036678 (0x83522DC00F66393A809D00CAF83E9686)
Complete name : O:\episodi\[VCB-Studio] Shingeki no Bahamut Genesis [Ma10p_1080p]\bahamutep2audiodolby.mka
Format : Matroska
Format version : Version 4 / Version 2
File size : 664 MiB
Duration : 23 min 52 s
Overall bit rate mode : Variable
Overall bit rate : 3 890 kb/s
Encoded date : UTC 2016-11-12 14:21:14
Writing application : mkvmerge v9.5.0 ('Quiet Fire') 64bit
Writing library : libebml v1.3.4 + libmatroska v1.4.5

Audio #1
ID : 1
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 23 min 52 s
Bit rate mode : Variable
Bit rate : 3 249 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 11.719 FPS (4096 spf)
Bit depth : 24 bits
Stream size : 555 MiB (84%)
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)
Language : Japanese
Default : Yes
Forced : No

Audio #2
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 23 min 52 s
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 spf)
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 109 MiB (16%)
Language : Japanese
Service kind : Complete Main
Default : No
Forced : No
FranceBB is offline  
Old 22nd May 2017, 09:24   #94  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Are both tracks manually selectable?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is online now  
Old 22nd May 2017, 17:14   #95  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
Yes, sure. I can select them using potplayer. If I just open the file, it plays the FLAC track as default.
FranceBB is offline  
Old 23rd May 2017, 20:54   #96  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Released test6. Download link in first post.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is online now  
Old 23rd May 2017, 21:08   #97  |  Link
Mystery Keeper
Beyond Kawaii
 
Mystery Keeper's Avatar
 
Join Date: Feb 2008
Location: Russia
Posts: 724
Test6 finally opens VP9 properly. Thank you!
__________________
...desu!
Mystery Keeper is offline  
Old 16th July 2017, 10:34   #98  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
@Myrsloik

I believe there is a memory leak with the x64 build, I've not examined it in detail, in staxrip for every job memory grew 50-100 MB, I always thought it's staxrip and I've been too careless with resources, forgetting to detach event handlers and things, I changed my design and had major problems with it, by accident I noticed that it don't happen with l-smash, I've tried with VirtualDub, after every opening and closing circle memory grows 10 MB, for GUIs this is very problematic because they don't keep one script open but rather work with multiple scripts opening and closing them on demand. I've currently an issue on the tracker by somebody that is trying to batch process 3200 files in one go. :-)
stax76 is offline  
Old 16th July 2017, 12:24   #99  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
That's what you get from including experimental versions of helper applications in a stable version of your own software...
manolito is offline  
Old 16th July 2017, 12:57   #100  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
I knew it was coming.
stax76 is offline  
Closed Thread


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:30.


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