EMoC

Utilities

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

Emoc is simple application, front end for "ffmpeg" and "mencoder" command line programs, that enables you to convert video files from one format to another, resize and resample them (usually to deminish video file in size on disk). Additionally, Emoc can join various files into one video file. It is designed to be simple to use.

felmur

9 years ago

in sources mainwindow.cpp (about at row 160) you have defined a file dialog but then you have used the static funcion:

QStringList fileNames = QFileDialog::getOpenFileNames();

to get path of files selected.

So, if you close the dialog without select anything, emoc exits with a segmentation fault or other error.

You should use this:

if (dialog.exec())
{
QStringList fileNames = dialog.selectedFiles();
QString fn =fileNames.at(0);
QStringList fs = fn.split("/");
fs.removeLast();
lastFileDirectory = fs.join("/");
ui->listView->addItems(fileNames);
}

Again, i think you should add a space string at the row in which you specify the "-s" parameter for ffmpeg (around line 340), so the correct line is:

ffmpegParams += " -s "+QString::number(p.width)+"x"+QString::number(p.height);

I suggest you to add a line like this:

printf("command is: ffmpeg %s\n",ffmpegParams.toStdString().data());

at the end of ffmpegParams construction to evalue the correct command which will be executed.




Report

C

beli0135

9 years ago

Thanks for the feedback.
I will fix it as soon as I can.

My C++ is not as good as AS3 or delphi.. still learning.

Thanks.

Report

DjNeophyte

9 years ago

I man,make error on amd64 (kubuntu lucid)


g++ -Wl,-O1 -o emoc main.o mainwindow.o profiles.o moc_mainwindow.o moc_profiles.o -L/usr/lib -lQtGui -lQtCore -lpthread
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/bin/ld: i386 architecture of input file `main.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `mainwindow.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `profiles.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `moc_mainwindow.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `moc_profiles.o' is incompatible with i386:x86-64 output
make: *** [emoc] Errore 1

Report

C

beli0135

9 years ago

I dont have amd64 machine so I cant test. Deb package is for x86.

Try building it from source. That will work 100%.

Report

mschnide

9 years ago

Also after a
make clean
it isn't possible to to compile it!

% make
/usr/bin/uic mainwindow.ui -o ui_mainwindow.h
/usr/bin/uic profiles.ui -o ui_profiles.h
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I. -o main.o main.cpp
main.cpp:1:30: error: QtGui/QApplication: Datei oder Verzeichnis nicht gefunden
In file included from main.cpp:2:
mainwindow.h:4:29: error: QtGui/QMainWindow: Datei oder Verzeichnis nicht gefunden
mainwindow.h:5:20: error: QProcess: Datei oder Verzeichnis nicht gefunden
In file included from mainwindow.h:6,
from main.cpp:2:
objects.h:11: error: ‘QString’ does not name a type
objects.h:18: error: ‘QString’ does not name a type
In file included from main.cpp:2:
mainwindow.h:14: error: expected class-name before ‘{’ token
mainwindow.h:15: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
mainwindow.h:17: error: expected ‘;’ before ‘public’
mainwindow.h:24: error: ‘QString’ does not name a type
mainwindow.h:25: error: ‘QString’ does not name a type
mainwindow.h:26: error: ‘QString’ does not name a type
mainwindow.h:27: error: ISO C++ forbids declaration of ‘QList’ with no type
mainwindow.h:27: error: expected ‘;’ before ‘<’ token
mainwindow.h:30: error: ‘QStringList’ does not name a type
mainwindow.h:31: error: ‘QStringList’ does not name a type
mainwindow.h:32: error: ‘QStringList’ does not name a type
mainwindow.h:33: error: ‘QString’ does not name a type
mainwindow.h:34: error: ‘QString’ does not name a type
mainwindow.h:36: error: ‘QProcess’ does not name a type
mainwindow.h:37: error: ‘QProcess’ does not name a type
mainwindow.h:42: error: ‘QString’ has not been declared
mainwindow.h:42: error: ‘QString’ has not been declared
mainwindow.h:48: error: expected ‘:’ before ‘slots’
mainwindow.h:49: error: expected primary-expression before ‘void’
mainwindow.h:49: error: ISO C++ forbids declaration of ‘slots’ with no type
mainwindow.h:49: error: expected ‘;’ before ‘void’
main.cpp: In function ‘int main(int, char**)’:
main.cpp:6: error: ‘QApplication’ was not declared in this scope
main.cpp:6: error: expected ‘;’ before ‘a’
mainwindow.h:19: error: ‘MainWindow::~MainWindow()’ is private
main.cpp:7: error: within this context
main.cpp:8: error: ‘class MainWindow’ has no member named ‘show’
main.cpp:9: error: ‘a’ was not declared in this scope
main.cpp: At global scope:
main.cpp:4: warning: unused parameter ‘argc’
main.cpp:4: warning: unused parameter ‘argv’
make: *** [main.o] Fehler 1

Report

C

beli0135

9 years ago

It looks like Qt problem.
Be sure you have all proper 64-bit Qt development packages.

I found similar errors when compiling for Windows OS, so I gave up. As I remember, one fellow on openSUSE forums did compile it well on 64 bit machine.

I dont know how to help you with this.

Report

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
0.90
updated Jan 28 2010
added Jan 28 2010
downloads 24h
0
page views 24h 2
System Tags app software