Log in

View Full Version : StaxRip x86 (development for x86 has been stopped)


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 [98] 99 100

Patman
15th March 2015, 13:49
@Patman

I tried hard to find the file lock ensuring StaxRip cleaning up all resources properly, it looks like it happens only or mostly when dsmux is used because then the actual source file is in the temp files directory.

I think it's ffms2 not releasing the file handle! I already reported it in the ffms2 thread.

I've not seen such a exception, how do you know it was caused by ffms2?

I correct my statement ;)
After the crash which was caused by .net framework, the messagebox with the crashed ffms2.dll is a result of that.

And the crash causing by .net framework happens sporadically. I'll test your new build and give a feedback ;)

fumoffu
15th March 2015, 14:27
The last 2-3 builds very often detect the wrong fps value.
Many files are detected as 25fps while they are 29,97fps (yes I'm sure, I even tried encoding and as expected audio ends up out of sync).
In the old builds I used AssumeFPS to fix that (added from Misc in Filters) but now 1. there is no such option, 2. I tried adding it but it doesn't seem to work
What is the correct way to change fps now?
Any idea why it autodetection is wrong so often? (I test mainly on wmv and mp4 files)

burfadel
15th March 2015, 14:27
Here is a new build that I've tested quite a lot: https://www.dropbox.com/s/m612vwdkxrgbvdc/StaxRip_2015.03.15.7z?dl=0

Thanks! Output now shows correctly. Actually it still shows:
frames fps kb/s elapsed remain size est.size
in the status window, but that isn't necessarily a bad thing :)

TalasNetrag
15th March 2015, 15:48
@MikeTR
@stax76

I copied the mentioned dll's from the previous version and now it works.

Is it possible to mux the video stream from a mkv to a mp4 file? If I open a mkv file with StaxRip, set the Encoder to "Just Mux" and the container as mp4, it says that the encoder outputs 'mkv' and 'MP4' doesn't support that format.

stax76
15th March 2015, 16:42
The last 2-3 builds very often detect the wrong fps value.
Many files are detected as 25fps while they are 29,97fps (yes I'm sure, I even tried encoding and as expected audio ends up out of sync).

Wrong detection happens often though I've not seen NTSC detected as PAL

In the old builds I used AssumeFPS to fix that (added from Misc in Filters) but now 1. there is no such option, 2. I tried adding it but it doesn't seem to work
What is the correct way to change fps now?

You double-click the source filter and enter AssumeFPS there, the fps value in the main dialog gets updated after the change, the new info feature in the preview of the latest build shows also fps.

There are some sources where AssumeFPS fails but need something like this:

FFVideoSource("%source_file%", cachefile = "%working_dir%%source_name%.ffindex", fpsnum = 25, fpsden = 1)

Some info is here: http://avisynth.org.ru/docs/english/corefilters/fps.htm

Any idea why it autodetection is wrong so often? (I test mainly on wmv and mp4 files)

ffms2 (FFVideoSource) gets it wrong very often, other ffmpeg based source filters too, neuron2's source filters have much better fps and field processing detection. Because of this StaxRip reads the fps with MediaInfo and adds it to FFVideoSource, best place to fix it would be ffms2 I guess, I don't know if I can do anything else.

Feel free to post a sample clip.

Is it possible to mux the video stream from a mkv to a mp4 file? If I open a mkv file with StaxRip, set the Encoder to "Just Mux" and the container as mp4, it says that the encoder outputs 'mkv' and 'MP4' doesn't support that format.

With mkv muxer it's not a problem because mkvmerge supports almost everything. If mp4box could read mkv directly (can it?) then I might be able to enable it easily, extracting the video stream would be work and I don't like to work with mp4box, I never had a good experience working with mp4box.

fumoffu
15th March 2015, 17:32
Thx for quick answer Stax!
I updated to the build you put on dropbox and updated system codecs.
It seems now FFVideoSource detects ok, just the DirectShowSource which is default on some sources usually says 25fps...

bonus question: lets say someone has a 25fps mkv file (10bit-h264/opus) that should have been 29,97fps ;)
Any way to just remux it correctly? (audio is not a problem)
The funny thing is, if I load this file now FFVideoSource recognizes the files as 29,97fps (MediaInfo says 25fps + its out of sync) so good start but selecting "just mux" doesn't fix it - it still has wrong length and is not in sync

stax76
15th March 2015, 17:49
I updated to the build you put on dropbox and updated system codecs.

Only thing you need is Haali splitter and LAV Filters (Haali installed before LAV Filters), most important tools are Codec Tweak Tool and GraphStudio.

bonus question: lets say someone has a 25fps mkv file (10bit-h264/opus) that should have been 29,97fps
Any way to just remux it correctly? (audio is not a problem)

You mean mux to mp4? There is a tool called MkvToMp4, if it can't change the framerate then you could first create a proper mkv file, mkvtoolnix has a GUI included allowing you to remux anything to mkv allowing to change all kinds of parameters.

In StaxRip you can check audio sync before muxing with the play feature of the filters menu.

fumoffu
15th March 2015, 18:10
You mean mux to mp4? There is a tool called MkvToMp4, if it can't change the framerate then you could first create a proper mkv file, mkvtoolnix has a GUI included allowing you to remux anything to mkv allowing to change all kinds of parameters.

I was asking about mkv - I didn't know about mkvtoolnix and it's cool GUI ;) Works great - thx.

burfadel
15th March 2015, 19:00
I've just encoded (and still am) some stuff over the last 4.5 hours using batch encode. The 15 March 2015 build is running great! There doesn't seem to be any issues :).

Patman
15th March 2015, 20:33
I've tested your latest build of staxrip and it makes a solid impression but the issue with .net framework is still there.

Here are two screens and the log of the ffms massage box

http://s23.postimg.org/s0jlkkonb/Error_1.jpg (http://postimg.org/image/s0jlkkonb/)

http://s22.postimg.org/s6f0fqqnh/Error_2.jpg (http://postimg.org/image/s6f0fqqnh/)

Problemsignatur:
Problemereignisname: APPCRASH
Anwendungsname: StaxRip.exe
Anwendungsversion: 1.2.0.6
Anwendungszeitstempel: 55056c6e
Fehlermodulname: ffms2.dll
Fehlermodulversion: 2.21.0.0
Fehlermodulzeitstempel: 000020a8
Ausnahmecode: 40000015
Ausnahmeoffset: 00764098
Betriebsystemversion: 6.3.9600.2.0.0.256.48
Gebietsschema-ID: 1031
Zusatzinformation 1: 7ad6
Zusatzinformation 2: 7ad675bbdebe187196c6e12eb783c0b2
Zusatzinformation 3: c2b4
Zusatzinformation 4: c2b4996a1c3396fc18397e1e8252ad01

stax76
15th March 2015, 20:50
Is it sporadic or source specific?

Patman
15th March 2015, 21:00
Is it sporadic or source specific?

It's sporadic. The File type is every time the same and after a restart of Staxrip everything works well for a while.

stax76
15th March 2015, 21:08
Without stack trace and not happening on my system this could be very difficult to solve. :(

Patman
15th March 2015, 22:41
Logfile

Beim Aufruf einer COM-Komponente wurde ein HRESULTE E_FAIL-Fehler zurückgegeben.


Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.Runtime.InteropServices.COMException (0x80004005): Beim Aufruf einer COM-Komponente wurde ein HRESULT E_FAIL-Fehler zurückgegeben.
bei System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
bei System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
bei StaxRip.TaskDialog`1.Show() in C:\Daten\Projekte\VS\VB\StaxRip\UI\TaskDialog.vb:Zeile 308.
bei StaxRip.MainModule.MsgError(String text, String content) in C:\Daten\Projekte\VS\VB\StaxRip\General\General.vb:Zeile 1425.
bei StaxRip.GlobalClass.ShellExecute(String cmd, String args) in C:\Daten\Projekte\VS\VB\StaxRip\General\Misc.vb:Zeile 748.
bei StaxRip.ProcessForm.bnDonations_Click(Object sender, EventArgs e) in C:\Daten\Projekte\VS\VB\StaxRip\Forms\ProcessForm.vb:Zeile 504.
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
Assembly-Version: 4.0.0.0.
Win32-Version: .
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
----------------------------------------
StaxRip
Assembly-Version: 1.2.0.6.
Win32-Version: 1.2.0.6.
CodeBase: file:///F:/VideoProgz/StaxRip_1.2.0.x_beta/StaxRip.exe.
----------------------------------------
System.Windows.Forms
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34239 built by: FX452RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
Microsoft.VisualBasic
Assembly-Version: 10.0.0.0.
Win32-Version: 12.0.20806.33440 built by: FX45W81RTMREL.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll.
----------------------------------------
System.Core
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Configuration
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Xml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34230 built by: FX452RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
mscorlib.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------
System.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.resources.dll.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle Ausnahmefehler an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

burfadel
15th March 2015, 23:45
I've tested your latest build of staxrip and it makes a solid impression but the issue with .net framework is still there.

Here are two screens and the log of the ffms massage box

http://s23.postimg.org/s0jlkkonb/Error_1.jpg (http://postimg.org/image/s0jlkkonb/)

http://s22.postimg.org/s6f0fqqnh/Error_2.jpg (http://postimg.org/image/s6f0fqqnh/)

Try running Easy NGEN runner.

Extract (using winrar or 7-zip) the file downloaded from here:
https://db.tt/v9SzgNlk

and use option 2. Even if it doesn't help, it probably needs running anyway :). You need to run in from an elevated command prompt, which can be done by right clicking on it and selecting 'Run As Administrator'.

Vulpix
16th March 2015, 00:32
The last 2-3 builds very often detect the wrong fps value.
Many files are detected as 25fps while they are 29,97fps (yes I'm sure, I even tried encoding and as expected audio ends up out of sync).
In the old builds I used AssumeFPS to fix that (added from Misc in Filters) but now 1. there is no such option, 2. I tried adding it but it doesn't seem to work
What is the correct way to change fps now?
Any idea why it autodetection is wrong so often? (I test mainly on wmv and mp4 files)

I've actually had the same issue myself - all the files were being detected as 25FPS too. It's still happening. I wonder why? I actually still have the 1.1.9.0 staxrip here and it works just fine. I tried replacing the mediainfo from the new one with the old one but it didn't work.

Besides, when I look at the staxrip log, I can see that the video is - easily - detected with the correct framerate:

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 24mn
Bit rate mode : Variable
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Title : MPEG-4 AVC Video 21965 kbps 1080p 23.976 fps 16.9 High Profile 4.1
Language : English
Default : Yes
Forced : No
DURATION : 02:24:28.076000000
NUMBER_OF_FRAMES : 207826
NUMBER_OF_BYTES : 23799437434
_STATISTICS_WRITING_APP : mkvmerge v7.7.0 ('Six Voices') 64bit built on Feb 28 2015 23:39:33


So why isn't this framerate used within StaxRip? I tried toying around with the variables but all of them are giving me 25.000 fps. In fact, when you start staxrip with an EMPTY template (I mean the default one), and when you select "FFVideoSource", then if you then doubleclick it and go to "preview" it already shows 25.000 fps, even though there are no files loaded.

clickie for a screenie (http://imgur.com/1ErnzXV)

What gives?

@stax76 - I've been using StaxRip since forever mid-2006 I think. Many, many years. I was a little sad when I saw that h265 started becoming a thing and my (pretty much only) favourite tool was still years old. So I went to the project page and BAM, you boss! It's updated! x265 support and everything! You're the best, keep it up! Staxrip rules!

IbrahimKh
16th March 2015, 02:48
how yo enable auto demuxing like old staxrip?
i mean auto audio demux before indexing.

Betsy25
16th March 2015, 03:27
@stax,
I remember before your time off, StaxRip did some very intelligent things by itself, for example thoroughly testing if a source needs to be deinterlaced. Now, I see none of that, I only can check the checkbox next to "Field", but that doesn't seem to do anything besides injecting a blank "Yadif()" line inside the .avs of all encodes, no matter if interlaced or not ?

Where have all these clever functions gone ?????

I might have forgotten how to all properly do it, since using MeGUI as main application, but I suspect, StaxRip no longer properly checks the source if specific actions should be taken, or did I really forgot how to properly set it up ? I've digged through the multiple ways of trying to configure it, but don't find anything regarding any analyzing options during the input stage.

DocSavage
16th March 2015, 08:08
Hi Stax,

I have been trying to solve this problem for awhile and whilst some info on here has been useful, there's not been a definitive answer - unless I missed it :(

My question is -
Using StaxRip can I re-encode an MKV file to MPEG-4 Visual with a Format Profile of Advanced Simple@L5 (BVOP=2, QPEL=0) and a Matrix Default of H263 within an AVI container?

Could I get some simple instructions on how to do this i.e. filter, encoder settings etc.?

Hi, for easy transport on my media player I use AVC to encode my episodic TV series blu-rays down to a 1280x720 MKV. However been tooling around with StaxRip in the hopes of redoing these as good quality 640x360 MP4 (AVI) so my dad can see them on his older Archos player. Now using StaxRip to try and do this more efficiently, the result is always too blocky (artefacts) no matter the bitrate - see mediainfo below
Video
File size :185 MiB
Format : MPEG-4 Visual
Format profile : Simple@L1
Format settings, Matrix : Default (H.263)
Codec ID : FMP4
Duration : 20mn 55s
Bit rate : 1 096 Kbps
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.198
Stream size : 164 MiB (89%)
Writing library : Lavc56.14.100
So my questions are -
Would a change of the format profile from Simple@L1 to L5 yield any improvements and how can I do this?
Format settings are at H.263 would H.264 not be better, and how can I change this?
What would the best filter be to use, when downscaling 1280x720 MKV to a 640x360 AVI, whilst keeping filesize about the same?
Any advice or pointers would be useful. :thanks:

Patman
16th March 2015, 20:21
how yo enable auto demuxing like old staxrip?
i mean auto audio demux before indexing.

hi,

for mkv files go to settings/demux and select mkvextract. Select the edit button and mark demux audio. That's it!

stax76
16th March 2015, 20:39
@Patman

I noticed ffms2 leaking memory, you can see it easily seeking around in the preview. I'll revert to 2.20, maybe this was causing your crashes.

@Betsy25

I don't remember if there was a auto detection for field processing, I have doubt in such a feature like it takes time to process and I think it's best performed manually, for the same reason auto crop was disabled by default.

My question is -
Using StaxRip can I re-encode an MKV file to MPEG-4 Visual with a Format Profile of Advanced Simple@L5 (BVOP=2, QPEL=0) and a Matrix Default of H263 within an AVI container?

Could I get some simple instructions on how to do this i.e. filter, encoder settings etc.?

ASP with ffmpeg is flawed so you would integrate xvid encraw. StaxRip allows you to integrate any video or audio CLI encoder, even a CLI muxer, example CLI profiles are included. I suggest you to try it, when you get stuck hopefully somebody will help.

dinolazer
16th March 2015, 20:39
I was getting an error about missing frames and "Insanity Detected" from FFVideoSource in the auto-generated AviSynth scripts that caused crashes to occur somewhat often. I did not have any issue before I installed the 64-bit version Windows 7. I had used 32-bit Windows 7 before then.

I was able to bypass the error by using other functions to load the file and get a properly encoded and muxed file. However, the output file had sound that would slowly get out of sync.

Research kept leading me to this on the FFMS page:
https://code.google.com/p/ffmpegsource/issues/detail?id=74

Setting threads to 1 fixed the problem with my encode. I am not sure what other issues were address in 2.18; however, those with frames missing, "Insanity Detected" errors need to upgrade their version of ffms2 plugin in the AviSynth plugins folder for StaxRip. Don't use the 64bit version of the plugin as there are errors with Virtual Dub (I think it was VDM the threads mentioned) that crash the encode.

To StaxRip author: I know the 2.18 is a release candidate and not a stable release; however, I am not the only 64-bit user who has this crash. Including this version might prevent head banging frustration.

Patman
16th March 2015, 20:55
@Patman

I noticed ffms2 leaking memory, you can see it easily seeking around in the preview. I'll revert to 2.20, maybe this was causing your crashes.



I have checked my system and reinstalled some apps. Now i test your latest build and see what happens ;)

Lupissimo
16th March 2015, 21:54
When reencoding an x264.mkv file including cutting and transcoding a dts mono audio into ac3 mono 96k I get errors and no ac3 file is created. The logfile is attached.

stax76
16th March 2015, 22:25
New release. :)

1.2.1.0 (2015-03-16)


Added macros %media_info_video:<property>% and %media_info_audio:<property>%
Added options in preview to copy the time of the current position, to save the current frame as JPG and replaced the Info feature with a better looking one
Added timeout of 2 minutes to most common shown error dialog so job processing continues
Fixed AAC output failure
Fixed assistant complaing about subtitle cutting being not supported even when muxing is disabled
Fixed command line based encoders not working with certain paths and characters
Fixed default audio language being German instead of local, this is saved in projects and templates and not in audio profiles
Fixed MP4Box failing to demux in case the output already exists from a previous job run for instance
Fixed MP4Box leaving temp files in system temp directory
Fixed MP4Box failing due to missing libraries
Fixed play feature not working in filters menu and subtitle menu due to missing YV12 decoder, the solution is the same as for preview and cropping window converting to RGB
Fixed play feature of the filters menu audio not working with cutting
Fixed qaac not accepting FLAC due to missing libflac
Fixed temp files directory being deleted even if it contains more jobs to encode
Fixed wrong text encoding in log file and log window
Improved eac3to error handling
Improved Log text and window showing more infos with better formatted text, the windows uses word wrap
Updated MP4Box to 0.5.2-DEV-rev107
Updated NVEncC to 1.04
Updated L-SMASH-Works to r784
Updated x265 to 1.5+258
Reverted ffms2 back to 2.20 due to memory leak


http://sourceforge.net/projects/staxmedia/files/latest/download

http://1drv.ms/1BNAh1u

Lynx_TWO
16th March 2015, 23:32
Awesome Stax, thanks for the quick updates! I remember back in the day I used to have to manually update x264 since releases were like 4 months apart :D

klf
17th March 2015, 00:03
Hello,
There is a problem in recognizing fps. With different source filters, the framerate remains at 25 while it can be 23.976, 24 or other. Could you explain me?
Thank you

stax76
17th March 2015, 00:39
@Lupissimo

best post the log to paste bin, I tried what you described and here it worked: http://pastebin.com/CqfMd7w4

@klf

Hi and welcome, please upload a sample and send the link per private message.

Patman
17th March 2015, 02:00
I've tested your staxrip version with included ffms2 c-plugin 5 hours and i've encoded a lot of files (10) during this time. I had no problems anymore after the check of my system. I've tried to reproduce the memory leak of the ffm2 c-plugin but without results. The usage of memory grows up to 1,5 GB but this is shown in some posts in the thread (https://german.doom9.org/showthread.php?p=1693724#post1693724) of ffms2 c-plugin development. I think the c-plugin can be included in further versions. I'll test your 1.2.1.0 build these evening. Thanks Stax great job!!!

stax76
17th March 2015, 02:07
I made extensive tests regarding the leak, trust me it's there! Try seeking with 2-3 different sources within the same process.

Patman
17th March 2015, 06:12
I made extensive tests regarding the leak, trust me it's there! Try seeking with 2-3 different sources within the same process.

You're right stax. 20 minutes after my post staxrip stopped working but 1,5GB of memory was in usage. The whole app was hanging and nothing happened.

cegy
17th March 2015, 11:36
New release. :)

1.2.1.0 (2015-03-16)


Added macros %media_info_video:<property>% and %media_info_audio:<property>%
Added options in preview to copy the time of the current position, to save the current frame as JPG and replaced the Info feature with a better looking one
Added timeout of 2 minutes to most common shown error dialog so job processing continues
Fixed AAC output failure
Fixed assistant complaing about subtitle cutting being not supported even when muxing is disabled
Fixed command line based encoders not working with certain paths and characters
Fixed default audio language being German instead of local, this is saved in projects and templates and not in audio profiles
Fixed MP4Box failing to demux in case the output already exists from a previous job run for instance
Fixed MP4Box leaving temp files in system temp directory
Fixed MP4Box failing due to missing libraries
Fixed play feature not working in filters menu and subtitle menu due to missing YV12 decoder, the solution is the same as for preview and cropping window converting to RGB
Fixed play feature of the filters menu audio not working with cutting
Fixed qaac not accepting FLAC due to missing libflac
Fixed temp files directory being deleted even if it contains more jobs to encode
Fixed wrong text encoding in log file and log window
Improved eac3to error handling
Improved Log text and window showing more infos with better formatted text, the windows uses word wrap
Updated MP4Box to 0.5.2-DEV-rev107
Updated NVEncC to 1.04
Updated L-SMASH-Works to r784
Updated x265 to 1.5+258
Reverted ffms2 back to 2.20 due to memory leak


http://sourceforge.net/projects/staxmedia/files/latest/download

http://1drv.ms/1BNAh1u

it seems there's still a few bugs which i've told you about and i don't think they was fully fixed or there broken...? :eek:
it seems we are back to blind guessing the file name of what is loaded also it's kicking up a fuss about a .aac file for the mp4 container :(
no idea why that is
http://i.imgur.com/tsyDvFq.png

both of which was pointed out about file naming/container issue here (http://forum.doom9.org/showthread.php?p=1707827#post1707827) and also a page afterwards
p.s. all this works as it should in 1.1.8.0
http://i.imgur.com/aB1Kwyi.png

stax76
17th March 2015, 12:55
@cegy

I reacted on all your request, aac was requested for mkv: http://forum.doom9.org/showthread.php?p=1707803#post1707803

regarding audio filename, iirc the extension is always shown and the filename only if it's different from the video source, I consider to show it always, anybody else a opinion on this?

Patman
17th March 2015, 20:24
@cegy

I reacted on all your request, aac was requested for mkv: http://forum.doom9.org/showthread.php?p=1707803#post1707803

regarding audio filename, iirc the extension is always shown and the filename only if it's different from the video source, I consider to show it always, anybody else a opinion on this?

I've tested this and for me everything is fine! There is the possibility to show the mediainfo if you're right click in this field and the option to go to path. With an audio source that isn't equal with source of video the whole filename is shown in clips. For me it's okay.

@DocSavage

Do you want 2-pass encode or 1-pass encode? You want to use custom matrices?

Schattenspieler
18th March 2015, 00:30
…, anybody else a opinion on this?I like it just the way it is, because it seems logical to me.

Also I convert mostly DVB recordings, which tend to have a relatively long file name containing the name, date, time and programm. I would just end up with the display of a too long filename for the field, but not getting the necessary infos about the audio track itself.

Edit: @cegy: Why is there a question "what file do I have loaded?: S (http://forum.doom9.org/showthread.php?p=1713506#post1713506)"? To the right is indicated "Just Mux", so the answer is: the file you have loaded! Which in turn is indicated above in the "source" field.

stax76
18th March 2015, 17:03
@cegy

Here is a build with raw aac enable for mp4 output: http://www.dropbox.com/s/gakzmbfusiee8n2/StaxRip_2015.03.18.7z?dl=0

this build expects Haali setup located at: Applications\MatroskaSplitter.exe

Changelog:


Enabled raw AAC files input for MP4 container output
Added Haali Splitter, StaxRip asks only to install it if dsmux is enabled (Tools/Settings/Demux) or when MKV output is selected in the eac3to dialog, both is selected and enabled by default and I recommend to keep it so


@all

The delete temp files dir feature was broke because of a file lock of the c plugin version of ffms2 and since the last release is not using a c plugin build, the feature to delete the temp file works again, last release fixed a related bug as well: Fixed temp files directory being deleted even if it contains more jobs to encode (works only if the job file is located in the temp file dir)

Patman
18th March 2015, 20:40
Hi Stax,

I have been trying to solve this problem for awhile and whilst some info on here has been useful, there's not been a definitive answer - unless I missed it :(

My question is -
Using StaxRip can I re-encode an MKV file to MPEG-4 Visual with a Format Profile of Advanced Simple@L5 (BVOP=2, QPEL=0) and a Matrix Default of H263 within an AVI container?

Could I get some simple instructions on how to do this i.e. filter, encoder settings etc.?

Hi DocSavage,

i've tested the xvid encoder with staxrip. You have the possibility to set custom switches. Select Codec ASP or XviD and choose a mode. Typ this:

-vtag XVID -profile:v 15 -level 5 -bf 2

in the field and you got Advanced Simple@L5 (BVOP=2, QPEL=0) with default h263 within an avi container. I prefer to use the XviD codec because of the better results.

MACKerMD
18th March 2015, 21:02
@STAX :
I want to thank you for fixing the HE-AAC 'issue' that I had. It -does- now encode from .flac into he-aac using qaac.
I so appreciate it that it works now, I wanted to thank you for fixing it. (Not all comments here are about bugs) :)

JohnLai
19th March 2015, 14:58
After reading page 240 and 241, configuring lavfilter directshow as preferred etc......is there any way to use DXVA (native) for decoding purpose?
I know DXVA (copyback) works, but it is still too slow. Using DXVA (native) resulted in software decoding as mentioned by NikoD.

Can't use Quicksync decoding either, because I am transcoding from 4K HEVC to normal 1080p HEVC (using rigaya NVEncC).
Currently using GTX 960.

Patman
19th March 2015, 19:44
Hi Stax,

your latest staxrip build is fantastic. For me it works as it should.
I found out that the avi file contains "packed bitstream" when you use XviD profile for video encode with setting: XviD codec, custom switch -bf 2.
I have a question: Is it possible to integrate an app or something else that unpack "packed bitstream" in avi files? For example mpeg4 modifier cl (http://forum.doom9.org/showthread.php?t=117553) or unpackmp4 avi. Packed bitstream caused some problems with older video players.

fantasmanegro
19th March 2015, 20:34
Hi Stax,

your latest staxrip build is fantastic. For me it works as it should.
I found out that the avi file contains "packed bitstream" when you use XviD profile for video encode with setting: XviD codec, custom switch -bf 2.
I have a question: Is it possible to integrate an app or something else that unpack "packed bitstream" in avi files? For example mpeg4 modifier cl or unpackmp4 avi. Packed bitstream caused some problems with older video players.

as far as i remember... you can uncheck "packed bitstream"... in xvid settings... or as you comment, not using XviD Profiles...

the app you're asking for is "mpeg4modifier"...google for it...

stax76
19th March 2015, 21:09
I have a question: Is it possible to integrate an app or something else that unpack "packed bitstream" in avi files? For example mpeg4 modifier cl or unpackmp4 avi. Packed bitstream caused some problems with older video players.

Are you sure it can't be done with ffmpeg?

After reading page 240 and 241, configuring lavfilter directshow as preferred etc......is there any way to use DXVA (native) for decoding purpose?
I know DXVA (copyback) works, but it is still too slow. Using DXVA (native) resulted in software decoding as mentioned by NikoD.

If you want to know exact you have to ask in the LAV Filters thread.

Can't use Quicksync decoding either, because I am transcoding from 4K HEVC to normal 1080p HEVC (using rigaya NVEncC).
Currently using GTX 960.

I measured 4K HEVC decoding with GTX 960 using avsmeter (http://forum.doom9.org/showthread.php?t=165528), cuvid gave 142 fps, DXVA copy back 106 fps

@STAX :
I want to thank you for fixing the HE-AAC 'issue' that I had. It -does- now encode from .flac into he-aac using qaac.
I so appreciate it that it works now, I wanted to thank you for fixing it. (Not all comments here are about bugs) :)

You are welcome!

@all

There was indeed a critical fps issue which took me a while to realize.

1.2.2.0


Enabled raw AAC files input for MP4 container output
Fixed framerate being falsely detected as 25 in certain countries
Added Haali Splitter, StaxRip asks only to install it if dsmux is enabled (Tools/Settings/Demux) or when MKV output is selected in the eac3to dialog, both is selected and enabled by default and I recommend to keep it so


http://sourceforge.net/projects/staxmedia/files/StaxRip_1.2.2.0.7z/download

http://1drv.ms/1Cy0YrJ

Patman
19th March 2015, 21:11
as far as i remember... you can uncheck "packed bitstream"... in xvid settings... or as you comment, not using XviD Profiles...

the app you're asking for is "mpeg4modifier"...google for it...

hello,

in staxrip 1.1.9.0 was the option the uncheck "packed bitstream". In the new staxrip ffmpeg is used to encode to avi file. There are no seperat xvid settings inside. You have the chance to select 1 of 4 different codec libaries and the option to select 1 of 3 modes to encode. All other parameters will entered by custom switches.

I know the app and it's a gui. These two apps that i've named are non gui. I asked for these apps to have a clear avi file after one process.

Patman
19th March 2015, 21:14
Are you sure it can't be done with ffmpeg?

I have searched some days to find a solution but nothing so far. If you know any command please tell us ;)

:thanks: for new release!!!:D

stax76
19th March 2015, 21:35
@Patman

I didn't found anything either, you could make a profile with xvid encraw, the only thing that keeps me away bundling it is the size but then it's only 700 kb. I have always to think about the size because of the download and hd space, ProjectX and VirtualDubMod are candidates to remove, both are disabled by default.

JohnLai
20th March 2015, 03:42
I measured 4K HEVC decoding with GTX 960 using avsmeter (http://forum.doom9.org/showthread.php?t=165528), cuvid gave 142 fps, DXVA copy back 106 fps



So....judging from it, there is no chance of getting DXVA (Native) working? T_T

Guess I stick with copyback. I got some 4K HEVC files that doesn't play nicely with cuvid >.< (it defaults back to pure software decoding).

EDIT:
Second question, I noticed one of CPU core is maxed while the rest is idling when "Resize" filter being used to downscale. Is the resize filter still using CPU instead of GPU shaders?

2nd EDIT:
If I don't resize, DXVA(copyback) mode, convert from 1080p (H264) to 1080p (HEVC) produces 200fps.
If I resize, DXVA(copyback) mode, convert from 1080p (H264) to 720p (HEVC) produces 150fps. (Bicubic neutral)

Sandra
20th March 2015, 20:18
It don't look like a bug, maybe somebody can give you a tip if you post the command line and media info from the log file.





Hi , i meant the Audio Setup.

I made Screenshots comparing the previous Official StaxRip Final Version. Usually when having AAC in Setup when Quality was setup to 1, AAC Audio had a 320 Kbit VBR Rate . Now in new Versions this isnt possible anymore.
When Quality is Setup to 1 the Audio Bitrate is 350 Kbit in VBR
So I see no way to setup AAC Audio to VBR 320 KBIT anymore, even if i decrease Quality.

Previous Final

http://i62.tinypic.com/ej6dt.jpg


Latest Versions

http://i59.tinypic.com/2e1zixc.jpg




http://i58.tinypic.com/2co4mxj.jpg

fantasmanegro
20th March 2015, 21:04
hello,

in staxrip 1.1.9.0 was the option the uncheck "packed bitstream". In the new staxrip ffmpeg is used to encode to avi file. There are no seperat xvid settings inside. You have the chance to select 1 of 4 different codec libaries and the option to select 1 of 3 modes to encode. All other parameters will entered by custom switches.

I know the app and it's a gui. These two apps that i've named are non gui. I asked for these apps to have a clear avi file after one process.

ups!... sorry... my mistake...

i did not notice the ffmpeg change...

VelleX
21st March 2015, 02:58
@Sandra
I think it never was 320kbps VBR. Because its a constant Quality Setting, not a variable Bitrate Setting.
Just look here
http://wiki.hydrogenaud.io/index.php?title=Nero_AAC#Quality.2Fbitrate_control
http://wiki.hydrogenaud.io/index.php?title=LAME#Technical_information
or
https://trac.ffmpeg.org/wiki/Encode/MP3

And if the command is the same, like -quality 1.0, it does not matter what StaxRip shows. E.g. Besweet is the same 10 year old version like in older StaxRip versions.

I tested with a 2.0 AC3 Source, with -quality 1.0, and result was a 400kbps AAC.
With 0.95 i got about 384kbps, so its almost the same ass on the hydrogenaudio wiki page.

JohnLai
21st March 2015, 12:39
Seem like the resizer filter is using CPU. Is there any GPU based resizer? @stax76