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

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd February 2012, 16:51   #241  |  Link
amtm
Guest
 
Posts: n/a
Quote:
Originally Posted by Selur View Post
Is this only for the GUI or also for the command line? (I prefer to set delay&co manually there
The GUI will pull it out automatically and the CLI will read it if you specify the "-auto" switch.

Quote:
Originally Posted by Selur View Post
+ What will happen if I call '-startdelay' with a negative value?
For the CLI it'll maintain the current behavior. It'll offset your startcut value or if no startcut value is specified it'll end up being your startcut value.

For the GUI, it'll be populated as a cut value. I'm also going to change the GUI so that negative delay isn't accepted. If you want a negative delay, just modify your start cut value in the GUI since that's what it was doing behind the scenes, anyway.
  Reply With Quote
Old 3rd February 2012, 16:55   #242  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Thanks for clearing that up! (-> so, no objections from my side )
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 3rd February 2012, 16:57   #243  |  Link
amtm
Guest
 
Posts: n/a
Quote:
Originally Posted by Selur View Post
Thanks for clearing that up! (-> so, no objections from my side )
Okay. Maintaining the behavior for the CLI is good so for automated tools like yours that you don't get any added complexity. If you always just specify "-auto" it'll do the work for you so you don't have to specify the -startdelay and it'll work the exact same as if you had (obviously barring any bugs ).
  Reply With Quote
Old 4th February 2012, 03:04   #244  |  Link
phate89
Registered User
 
Join Date: Apr 2009
Posts: 153
Quote:
Originally Posted by amtm View Post
And just so everyone knows the new cut/delay behavior works as follows:

If a delay is set in the filename, set from something like DGIndex, etc, and the delay is positive it will be set in the delay field and this will insert silence. If it's negative it will be treated as a cut value, since that's really what negative delay is doing, and will be added to the start cut and the cut checkbox will be checked. If both cut values and delay, I'm actually thinking of renaming it to "insert silence" since that's what it will really be doing from now on, values are specified the cutting will be done first and then the silence frames will be added at the specified points. That is unless silence will be added within the file and that will be done before cutting so that there is less chance for error prone translation to the position within the newly cut file.

Anyone have any issues or object with this new behavior?
I think it's confusing for people that only use the tool to apply delay..they want to apply delay and they search for it...
naturally you're right.. a negative delay it's only a cut at the start... but also the positive delay it's an insert of silence at the start... so why remove only the negative?
In my case i have a lot of times both cut and a negative delay... it's a lot easier insert both values without to have to calc it manually...

Last edited by phate89; 4th February 2012 at 03:10.
phate89 is offline   Reply With Quote
Old 27th February 2012, 12:38   #245  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
@amtm: assuming you are the maintainer of http://download.opensuse.org/reposit...xUbuntu_10.04/ could you update is to a more current version ? thanks.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 27th February 2012, 17:16   #246  |  Link
pandv2
Registered User
 
Join Date: Sep 2011
Posts: 37
Hello,

Had you thinked about the command line switchs to allow multiple adds and cuts in the middle of stream? (I think you want to implement this). I am doing something similar for subtitles and because the use is paralel (cut in audio, cut in subs...) maybe I can clone the sintax to simplify the use.

Thanks.
pandv2 is offline   Reply With Quote
Old 10th March 2012, 20:49   #247  |  Link
pandv2
Registered User
 
Join Date: Sep 2011
Posts: 37
Hello,

I thinked delaycut supported mp2 and mp3 files, but maybe I am wrong because this formats are not in the list of available formats (and I can not open them).

But I think in older versions I used delaycut to fix mp3 files. If delaycut doesn't suport this files, is there any program to do with mp3 what delaycut does with ac3?

Thanks.
pandv2 is offline   Reply With Quote
Old 11th March 2012, 02:14   #248  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Quote:
Originally Posted by pandv2 View Post
Hello,

I thinked delaycut supported mp2 and mp3 files, but maybe I am wrong because this formats are not in the list of available formats (and I can not open them).
Try renaming your .MP2s and .MP3s to .MPA ?????
Midzuki is offline   Reply With Quote
Old 12th March 2012, 16:41   #249  |  Link
pandv2
Registered User
 
Join Date: Sep 2011
Posts: 37
Quote:
Try renaming your .MP2s and .MP3s to .MPA ?????
Of course it works. And also if I use the command line version or select all files (*.*). It's only a cosmetic bug, but a bug. I only report it because amtm is developing (I hope) it.
pandv2 is offline   Reply With Quote
Old 18th March 2012, 22:00   #250  |  Link
amtm
Guest
 
Posts: n/a
Sorry, I've been away for a while due to a variety of reasons, but I'm still working on it but it probably won't be for another 2 weeks before getting a new version due to some travelling I've got to do.

Yes, it supports mp3. I'll change the open file filters as I just copied the way the original program did it which only did *.mpa and you had to do "all files" to get the mp3. It's nothing but a carry over that can be changed.
  Reply With Quote
Old 20th April 2012, 12:30   #251  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Quote:
delaycut -fixcrc fix -inputtype milliseconds -startdelay -1190 -o "D:\Encoding Output\fixDelay_ger_aid_6122__13_26_48_111_06.ac3" -i "D:\Encoding Output\fixDelay DELAY -1190ms_ger_aid_6122__13_26_48_111_05.ac3"
triggers an unwanted 'milliseconds' Popup-Window, would be nice if this would NOT happen when called through the command line (better output something to std::cerr or std:ut)

+ delayac3.cpp misses:
#include "math.h"

+ some thing it wrong with delaycut.pro, using:
Code:
QT += core gui
CONFIG += qt \
console

TARGET = delaycut

!win32 {
  target.path = /usr/bin
  INSTALLS += target
}

TEMPLATE = app

SOURCES += main.cpp\
        delaycut.cpp \
    delayac3.cpp \
    dragdroplineedit.cpp

HEADERS += delaycut.h \
    sil48.h \
    delayac3.h \
    types.h \
    dragdroplineedit.h

FORMS += \
    delaycut.ui

RESOURCES += \
    delaycut.qrc
    
RC_FILE = delaycut.rc
works fine on Linux&Mac

Cu Selur
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 12th July 2012 at 15:57. Reason: Please, use quote instead code for long lines
Selur is offline   Reply With Quote
Old 24th June 2012, 11:12   #252  |  Link
hlmasterchief93
Registered User
 
Join Date: Jun 2011
Posts: 3
sorry, but how to compile delaycut in ubuntu ?
i check the README but i cant see the instruction
i use
Code:
git clone git://github.com/athomasm/delaycut.git
cd delaycut
qmake
make
and it's returned error
Code:
g++ -m64 -Wl,-O1 -o delaycut     -L/usr/lib/x86_64-linux-gnu -lQtGui -lQtCore -lpthread 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [delaycut] Error 1
hlmasterchief93 is offline   Reply With Quote
Old 24th June 2012, 11:20   #253  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Did you try the changes I posted above? (adjusting delaycut3.cpp and delaycut.pro)
Compiling works fine for me with these changes (on ubuntu 32/64 and mac osx x)
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 12th July 2012, 15:52   #254  |  Link
Snakekick
Registered User
 
Join Date: Nov 2004
Posts: 8
@Selur
sorry for my question but how do i make this changes?
i did not have the file delaycut3.cpp
qmake give not response and make give me the same error @hlmasterchief93

**Edit***

delaycut3.cpp== delayac3.cpp

Last edited by Snakekick; 12th July 2012 at 15:58.
Snakekick is offline   Reply With Quote
Old 12th July 2012, 15:57   #255  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Quote:
i did not have the file delaycut3.cpp and delaycut.pro
That is strange since, qmake generates the MakeFiles by looking into the delaycut.pro file and they are both listed over at: https://github.com/athomasm/delaycut
I see I made a typo delaycut3.cpp should be delayac3.cpp
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 12th February 2013, 00:48   #256  |  Link
Overdrive80
Anime addict
 
Overdrive80's Avatar
 
Join Date: Feb 2009
Location: Spain
Posts: 673
Hi guys, I want remove a segment of ac3 file. I put a example:

First part: 0ms-5000ms
Secong part: 6000ms-end

Of this way, I would remove 999ms intermediate. ¿How I should configure delaycut for it?
__________________
Intel i7-6700K + Noctua NH-D15 + Z170A XPower G. Titanium + Kingston HyperX Savage DDR4 2x8GB + Radeon RX580 8GB DDR5 + ADATA SX8200 Pro 1 TB + Antec EDG750 80 Plus Gold Mod + Corsair 780T Graphite
Overdrive80 is offline   Reply With Quote
Old 16th February 2013, 00:50   #257  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Quote:
Originally Posted by Overdrive80 View Post
Hi guys, I want remove a segment of ac3 file. I put a example:

First part: 0ms-5000ms
Secong part: 6000ms-end

Of this way, I would remove 999ms intermediate. ¿How I should configure delaycut for it?
MKVtoolnix has a function (newly implemented) to trim given specific time lengths.
Which is perfect for trimming the beginning and/or the end of a compliant Matroska file.
Mux the AC3 into an MKA (Matroska Audio) using mmg and apply the splits you want.

Documentation on the -split function here.
http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge.html#mkvmerge.description.split

You can later demux the AC3 using MKVtoolnix with MKVExtractGUI or other tool.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 16th February 2013, 12:40   #258  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
@Sparktank

The easy way is use, like a say to Overdrive80 in other post, eac3to:

eac3to input.ac3 output.ac3 -edit=0:00:05.000,-1000ms

(remove 992ms without recode)

With DelayCut we can Cut first part 0 to 5000ms, obtain the second part with a -6000ms Delay and after join the 2 parts.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 16th February 2013, 16:24   #259  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by tebasuna51 View Post
@Sparktank

The easy way is use, like a say to Overdrive80 in other post, eac3to:

eac3to input.ac3 output.ac3 -edit=0:00:05.000,-1000ms

(remove 992ms without recode)

With DelayCut we can Cut first part 0 to 5000ms, obtain the second part with a -6000ms Delay and after join the 2 parts.
Greetings tebasuna51.

How about inserting silence? Would a + sign work for both cases?
Can multiple edits be performed by a single command line?

Many thanks and best regards.

Last edited by mariner; 16th February 2013 at 17:13.
mariner is offline   Reply With Quote
Old 16th February 2013, 17:15   #260  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
To insert 1000ms of silence:

eac3to input.ac3 output.ac3 -edit=0:00:05.000,1000ms -silence

(with values less than 1000ms the default for eac3to is loop the previous frames)
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 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 01:02.


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