Re: [DVBCUT-devel] Qt4 port and further directions
On 04/19/13 01:59, Wolfgang Baron wrote: Hi all, I started porting dvbcut from Qt3 to Qt4 on 2013-03-29, based on the most current svn sources late at night in my free time using mercurial for storing the history. My first aim was to port dvbcut to Qt4 and add multiple source videos. Nice to hear that some people still have free time. Not so nice to hear that you're wasting it. Well, in my opinion, anyway. This is an overview of what I already did: - apply qt3to4 - convert forms with uic3 -convert - port issues not covered by qt3to4 - use current libavcodec, libavformat and libswscale from system packages - remove the dependency of the q3support module Issues not covered by qt3to4 were: - QImage::scale() - QImage::scaled() - implicit cast from std::string to QString - implicit cast from QString to bool - lots of changes in method names Things to consider using QtCreator: - run setversion.sh to create version information The autoconf stuff and directories containing library code are not used. I have not yet created a new KDevelop4 project, because I do not have any experience with KDevelop. If anyone needs this, I will of course look into it. I would also look into new autoconf support, if anyone can give a good reason for doing so. Unlike others, an autoconf-based build environment will work on any system that has `make' and a decent shell. Is that reason good enough? You won't believe how much trouble I've already had with packages that use scons, cmake, or other evil^H^H^H^Hfancy stuff. These will be my next steps: - make sure it still runs on windows - remove all deprecations and compiler warnings - use models in all convenient places - use QListViews instead of QListWidgets - enable multiple input files - provide translations - find similar frames assistant - etc. I sent a mail to Sven Over some time ago, but he has not answered yet. If you like to see, what I have done in the dvbcut project, can please anybody reply to my and tell me how to proceed? Maybe the best course of action would be to take over maintenance of the package, if you're really willing and able to spend so much time on it. Unfortunately, I can't give you write access to the repository, since I'm not its owner. Only Sven can do that, and he's abandoned the project years ago. On the other hand, you don't have to use the repository on sourceforge. You don't have to use subversion either. You could set up a new git or mercurial repository and work with that. -- Michael Tired Riepe mich...@mr511.de X-Tired: Each morning I get up I die a little -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] Status on the project?
On 11/07/12 20:54, Reinhard Tartler wrote: So what's the conclusion? Has development of dvbcut ended and relies on ancient libraries for which there is no upstream support anymore? As far as I'm concerned, yes. -- Michael Tired Riepe mich...@mr511.de X-Tired: Each morning I get up I die a little -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] New dvbcut upstream snapshot in debian
Hi. On 01/21/12 11:45, Reinhard Tartler wrote: Moreover, I found a problem in the Cmake files that you ship. They're part of the Qt4 patch. I don't use cmake for the Qt3 build, for largely the same reasons I got rid of the original scons build system. Well, maintaining two separate build systems is surely suboptimal. The cmake build system isn't my favorite either, but could you perhaps elaborate on the problems that it is imposing on you? I'm not familiar with cmake, so I can't maintain and support a cmake-based build system. I'm asking because my agenda on this is to get the Qt4 build integrated properly so that we don't have to update the patch on every upstream snapshot. And Qt3 is, unfortunately, not an option for use in a Distribution setting. Well, I don't want to maintain two versions, and it doesn't seem to be possible to write a program that works with both Qt versions (which says quite a lot about Qt, in my opinion), so a switch to Qt4 would be irrevocable - something I've tried to avoid so far. And as long as the autoconf build system isn't ported, I'm not going to. -- Michael Tired Riepe mich...@mr511.de X-Tired: Each morning I get up I die a little -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] New dvbcut upstream snapshot in debian
Hi. On 01/21/12 13:23, Reinhard Tartler wrote: I see. What I understand is that the cmake build system is basically not blessed by upstream, and it was a mistake to settle on it in the debian package. Moreover, the qt4 patch in its current form only works with the cmake system. Well, what's blessed, as you call it, is the Qt3/autoconf combination. Qt4/autoconf would be okay, too, as long as everybody is aware that there's no way back once I incorporate the patch, and that the Qt3 version is effectively dead and buried at the same time. Therefore, you'd require the Qt4 port to work with the autoconf. It must also work on Windows/MinGW, as the Qt3 port does. Let's not forget that there are more operating systems than just Linux and its derivatives. -- Michael Tired Riepe mich...@mr511.de X-Tired: Each morning I get up I die a little -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] Simple help menu added
Hi! Here is the work by Claus reformed as a patch against SVN. I've removed all the whitespace changes that were apparently due to spaces changed to tabs by a rogue editor. Thanks, I had made it that far already. But when I ran the program, it dumped core at exit. Some kind of memory corruption, I guess, that needs to be investigated before I commit the changes. I've also made sure the license text exactly matches the license at the top of the source, and included the copyright and owner. Good idea. I've also added links to the project web site. Even better. Although that page is way out of date. I've tested the Help - About action, and I'm happy with it. No core dumps at exit? Strange. -- Michael Tired Riepe mich...@mr511.de X-Tired: Each morning I get up I die a little -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] Changes in r144-r155
Hi! Claus Buchberger wrote: in config.log is the resolution: configure:3705: gcc -o conftest -g -O2 -L/home/download/dvbcut/dvbcut/ffmpeg/lib conftest.c -la52 -lmad 5 /usr/local/lib/liba52.a(imdct.o): In function `a52_imdct_init': /home/download/dvbcut/liba52/a52dec-0.7.5-cvs/liba52/imdct.c:372: undefined reference to `sqrt' [...] configure:3729: result: no configure:3739: error: Did not find required a52 library Is it a bug in the configure script or do I need the the previous version of liba52? Actually, configure is lying. liba52 is NOT missing - but it wants you to link with -lm (the math library) as well. This does not happen (at least on Linux) if you install liba52 as a shared library (in your case, there's only the static one). But you have to explicitly configure liba52 with --enable-shared for that (which I recommend anyway). I changed configure.in a little to take care of that. When it looks for liba52, it will now automatically include -lm, whether you need it or not. Welcome to r156, -- Michael Tired Riepe mich...@mr511.de X-Tired: Each morning I get up I die a little -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] Packaging of DVBCut for Ubuntu
Hi! Ralph Glasstetter wrote: Done. Welcome to r135. There's no need to recompile dvbcut, though. The outbuffer::open function isn't used, so this patch has no effect at all. ... except breaking the windows build! ;-) buffer.cpp: In member function `int outbuffer::open(const char*)': buffer.cpp:503: error: `S_IRGRP' undeclared (first use this function) So much for POSIX compatibility. :( r136 should fix this as well. -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] [PATCH] show picture infos
Hi! Michael Riepe wrote: BTW, r133 is not yet commited... ;-) Oops... but now it is. :-) As it turned out, that wasn't such a good idea. I noticed that r133 generated several bad index files (ones that r133 itself was unable to open). Therefore, I turned off generation of the new format. The display part of Ralph's patch is still there, however. Welcome to r134, -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] Packaging of DVBCut for Ubuntu
Hi! fabrice wrote: I've been packaging DVBCut for Ubuntu, but for better integration, I need an icon, to be able to display it in the Audio and video section of gnome menu. Is there an official icon? Nope, sorry. Also, I've been obliged to make a patch to fix compilation errors with the actual svn content: Index: dvbcut-0.5.4/src/buffer.cpp === --- dvbcut-0.5.4.orig/src/buffer.cpp2008-10-10 05:24:49.0 + +++ dvbcut-0.5.4/src/buffer.cpp2008-10-10 05:25:42.0 + @@ -499,7 +499,7 @@ int outbuffer::open(const char* filename) { close=true; - return fd=::open(filename,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY); + return fd=::open(filename,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,S_IRUSR|S_IWUSR); } int outbuffer::putdata(const void *data, unsigned int len, bool autoresize) Actually, that should be 0666, not 0600. But I can change that myself. Hope this could be integrated in the next release. By the way, when is the next release planned? I don't know. It's long overdue, though. -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] Some ideas for new features
Hi! L. Weiss wrote: Oh, i just tried to load that concatenated mpg to dvbcut. It just loads that what was my first part. Did you generate a new index for the concatenated mpg? -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] translation of dvbcut
Hi! Martin Ereth wrote: In case we're going to use Qt's translation mechanism in the first place. That would be the easiest solution. But also the worst one. What if we want to add a gtk+ GUI one day? Or a *real* command-line version without the GUI overhead? The former is already on my wish list, by the way. What dvbcut badly needs is more separation of the functionality and the GUI. And a clean interface between them. If we use a Qt feature for i18n/l10n, we're going in the wrong direction. Unless we only translate the GUI portion (i.e. the 60-odd menu items). Besides that, everybody else uses gettext. I consider it a major design flaw that Qt provides its own translation mechanism, instead of proper hooks for gettext. If your Qt application uses any non-GUI libraries, for example, you end up using both mechanisms in parallel: gettext for the libraries and the Qt translator for the GUI. That's plain stupid, in particular since no serious application can do without third-party libraries these days. With regard to that, dvbcut is not an exception. -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] translation of dvbcut
Hi! Martin Ereth wrote: @Michael: Maybe you could start adding the _()? If I find the time... We don't need to do the work twice. Of course not. Please tell me, when you start with it. Also I'll tell you, when I'll find some time. Okay. But it will take a while. -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] translation of dvbcut
Hi! Martin Ereth wrote: I read that dvbcut may be included at least in SUSE. To support this step it would be great when dvbcut is available in different languages. Yep. But that can't be done in some minutes: At first dvbcut has to be internationalized (i18n) and then it can be localized (l10n). For the first step it is neccessary to add a _() around every string that should be translateable. There have to be some little changes in main.cpp, too. When the strings are marked, a tool (gettext) extracts all the strings, that should be translated in a separate file. (This step can be done in an hour or two.) I'm quite familiar with the i18n process, as far as we're talking about ordinary C/C++ code. Been there, done that. What I *don't* know, on the other hand, is how you can internationalize the Qt stuff. Many texts, in particular all the menu labels, are currently specified inside the .ui files. I have absolutely no idea how to add the _() there. Or if there's any other mechanism. Or if that works with the standard (GNU) gettext. :( [...] Please tell me, whether you like dvbcut to be translatable. [...] Well, yes, of course! I think we already spoke about that here. But I didn't find a solution for the Qt/designer problem yet. I'm not familiar with designer at all (in fact, I usually modify the .ui files with an ordinary text editor). -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] Changes in r90
Hi! Ralph Glasstetter wrote: Do we need the right one at all? No, of course not... just thought you want to have it because of optical/symetry reasons... ;-) Yes. But there are a lot of semantic problems with it. E.g. what's the correct type to display if the list is empty? Or when the first item is a Stop item? I don't need it,... they should both be the same if inbetween start/stop markers and if not it's IMHO a little confusing to see a different one from the last start/stop marker Exactly. Okay, I removed it. Welcome to r91. -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] translation of dvbcut
Hi! Martin Ereth wrote: The problem is, that the .cpp and .h files of the ui's aren't there. But they should. Do you use the default build system (scons)? I found out he following: I can use the uic-tool to generate these files. Fortunately there is an option called -tr func, which takes the parameter to set for i18n. Good to know. So I need to issue: $ uic dvbcutbase.ui dvbcutbase.h $ uic -impl dvbcutbase.h -tr _ dvbcutbase.ui dvbcutbase.cpp That file should be named uic_dvbcutbase.cpp. Then I have the correct files with _() instead of tr() surrounding every string. After that the following should extract the strings $ xgettext --qt --keyword=tr --flag=tr:1:pass-c-format --flag=tr:1:pass-qt-format --keyword=translate:2 --flag=translate:2:pass-c-format --flag=translate:2:pass-qt-format --keyword=QT_TR_NOOP --flag=QT_TR_NOOP:1:pass-c-format --flag=QT_TR_NOOP:1:pass-qt-format --keyword=QT_TRANSLATE_NOOP:2 --flag=QT_TRANSLATE_NOOP:2:pass-c-format --flag=QT_TRANSLATE_NOOP:2:pass-qt-format --keyword=_ --flag=_:1:pass-c-format --flag=_:1:pass-qt-format --keyword=N_ --flag=N_:1:pass-c-format --flag=N_:1:pass-qt-format -o dvbcut.po *.cpp I'll try that myself. But I get 67 strings. That is far to less. Probably because you only get the menu labels. How do you normally build the .cpp and .h files from the .ui-files? Normally, scons does that automatically. Don't ask how (or ask Sven). -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] translation of dvbcut
Hi! Martin Ereth wrote: Yep... the missing files should have been created automatically by moc and/or uil. Is Qt3 installed in one of the standard locations? Hm. It is installed in /usr/qt/3. The standard qmake/uic/... is of qt4. But I was able to build dvbcut at April 6th this year. What bins does dvbcut need? The Qt3 binaries (that is, you probably have to set QTDIR for Qt3). I'm not sure if qmake works at all. -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel
Re: [DVBCUT-devel] translation of dvbcut
Hi! Martin Ereth wrote: Michael Riepe schrieb: Martin Ereth wrote: The problem is, that the .cpp and .h files of the ui's aren't there. But they should. Do you use the default build system (scons)? I just issue make like described in INSTALL. How should I build it, then? That's the normal way to do it. I have no idea why it fails. On my system, all necessary files are generated. Please do the following: - get a fresh copy from the repository - cd to the main directory - run make 21 | tee make.log - send me the logfile But I get 67 strings. That is far to less. Probably because you only get the menu labels. Yep. I'm, sorry. That is exactly the number of extraxtable strings from the ui-files. The strings in the normal .cpp-files should be marked anytime with _(. I can do that, but I'd like to be able to build it without any changes ... :-) If all else fails, I can do that as well. -- Michael Tired Riepe [EMAIL PROTECTED] X-Tired: Each morning I get up I die a little - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ DVBCUT-devel mailing list DVBCUT-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-devel