Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mpg/avi editor for linux?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mindows
n00b
n00b


Joined: 01 Aug 2002
Posts: 33

PostPosted: Wed Sep 25, 2002 1:58 am    Post subject: mpg/avi editor for linux? Reply with quote

can someone recommend me a mpg/avi editor for linux? i just want to cut a few frames out of avi & mpg movies. what do ppl use?
thanks,
Back to top
View user's profile Send private message
okram
n00b
n00b


Joined: 06 Aug 2002
Posts: 74
Location: Taipei, Taiwan

PostPosted: Wed Sep 25, 2002 4:05 am    Post subject: video editing Reply with quote

There is the heavyweight cinelarra published by heroinewarrior http://heroinewarrior.com/cinelerra.php3, but that is probably much more than you need.

for dv encoded avi there is the excellent kino http://kino.schirmacher.de/

And then there are the two superb command line utilities mjpegtools http://mjpeg.sourceforge.net/
and transcode http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode/html/misc.html
that you can use for converting between formats and very simple editing (cutting, pasting).

The commercial program MainActor http://www.mainconcept.com/ is quite good too and has a free demo.
Back to top
View user's profile Send private message
zypher
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 416
Location: Cologne, ger.

PostPosted: Wed Sep 25, 2002 5:30 am    Post subject: Reply with quote

There's a great little prog called avidemux.
For those who know virtualdub for win, it's THE program they're looking for.
I'v committed an ebuild, bug 7973.
I will be in the tree in 1.4 final they say.
You could check it out it you like, just dl the ebuild and put it in your PORTAGE_OVERLAY dir.
_________________
linux user 65882
Back to top
View user's profile Send private message
mindows
n00b
n00b


Joined: 01 Aug 2002
Posts: 33

PostPosted: Wed Sep 25, 2002 12:38 pm    Post subject: Reply with quote

cinerella didn't compile well on my machine. complained about not finding libquicktime.a. i think kino compiled successfully after getting a few dependencies, but segfaulted just about every time. do i need to patch my kernel to support the libraw? i'm using the 1.2 gentoo source.
if avidemux is going to be in the 1.4 tree, does that mean it wouldn't work with 1.2?
Back to top
View user's profile Send private message
mean
Guru
Guru


Joined: 25 Sep 2002
Posts: 313

PostPosted: Wed Sep 25, 2002 4:04 pm    Post subject: Reply with quote

The strict minimum to build avidemux is
- Gtk & Gdk 1.2
- Divxencore & divxdecore

So try zypher ebuild, and if for whatever reason it fails, build it manually
with ./configure --disable-warnings && make
Back to top
View user's profile Send private message
thorne
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 177

PostPosted: Wed Oct 09, 2002 7:38 pm    Post subject: Reply with quote

I've downloaded this app from the author's web site, r18. I installed it (./configure, make, make install) it runs, loads AVI (divx) files, and plays them, but when I try to save as MPEG1 (VCD) it pops up a message box which states "Not compiled with MPEG output support.)

I have libmpeg3 installed. What else do I need to do?

<edit> OK, emerged mjpegtools, now configure states it has mpeg support... will test in a few minutes. Also emerged mad, and ffmpeg. mad is now seen by ./configure, but it still does not see ffmpeg. Going to install xvid next.</edit>
_________________
Stupid bug, you go squish now!
-Homer Simpson

Registered linux user #287718


Last edited by thorne on Wed Oct 09, 2002 9:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
thorne
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 177

PostPosted: Wed Oct 09, 2002 9:13 pm    Post subject: Reply with quote

er.. uhm.. so, does k3b have VCD support yet? How would I go about burning a VCD with linux? I have xcdroast, gtoaster, and emerging k3b right now.. not sure which app I will use, so I'm testing a whole bunch.

BTW, after emerging libmpeg3, mjpegtools, and mad, avidemux now works properly (had to rebuild/compile it of course.)
_________________
Stupid bug, you go squish now!
-Homer Simpson

Registered linux user #287718
Back to top
View user's profile Send private message
thorne
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 177

PostPosted: Thu Oct 10, 2002 12:03 am    Post subject: Reply with quote

Well, now I have arson installed as well. Also merged VCDImager. Still getting an error when I try to burn VCDs with arson =/
BTW - I can write audio and data CDs with all of the programs.

Ahh well.

Any help? anyone? anyone at all?
_________________
Stupid bug, you go squish now!
-Homer Simpson

Registered linux user #287718
Back to top
View user's profile Send private message
Mr. Pointy
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2002
Posts: 77

PostPosted: Thu Oct 10, 2002 9:16 am    Post subject: Reply with quote

If you've sucsessfully used vcdimager and have the created videocd.bin and videocd.cue ( or whatever they're called) use cdrdao.

for vcd:

cdrdao write videocd.cue

for svcd:

cdrdao write -t svcd videocd.cue

there are other options related to cdrw drivers and speed etc that you can put on the command line or in a config file here's mine:

~/.cdrdao

write_device:"/dev/cdrw"
write_speed:12
write_driver:"generic-mmc"
read_driver:"generic-mmc"
read_device:"/dev/dvd
Back to top
View user's profile Send private message
mean
Guru
Guru


Joined: 25 Sep 2002
Posts: 313

PostPosted: Thu Oct 10, 2002 12:54 pm    Post subject: Reply with quote

If you want to convert divx to VCD there is a meta filter called VCD-Res that will adjust the size automagically to VCD compatible one.

Using mjpegtools to create VCD works but it is painfully slow

I'm looking for a faster way.

For ffmpeg when installing it, don't forget to use --enable-shared
If already done, copy avcodec.h common.h (bswap.h ? depending on you build) to /usr/include/ffmpeg.

If you do editing (cut etc...) i strongly recommend you disable misc->turbo (ffmpeg).
Back to top
View user's profile Send private message
zypher
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 416
Location: Cologne, ger.

PostPosted: Thu Oct 10, 2002 6:12 pm    Post subject: Reply with quote

I compiled ffmpeg by hand and used --enable-shared.
That did the trick for me.
BTW, be sure to start avidemux from an xterminal, the console-output is often useful.
_________________
linux user 65882
Back to top
View user's profile Send private message
thorne
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 177

PostPosted: Fri Oct 11, 2002 5:10 pm    Post subject: Reply with quote

nice! thanks everyone, I will give all your suggestions a try and report back with my results (compiling the CVS of ffmpeg.)

<edit>
Ack, the ffmpeg FAQ states:
FFMpeg Frequently Asked Questions


1) ffserver doesn't not work.
ffmpeg development is now concentrated on the codec and format
handling. New developments broke ffserver, so don't expect it to work
correctly. It is planned to fix it ASAP.
Last modified: Wed Aug 15 22:22:31 UTC 2001
glantau at yahoo.fr


Maybe I should stick with the ebuild.
</edit>

just a quick note: arson automatically detected VCDImager after I emerged it, but it still fails after it writes the xml file. I'm not exactly sure what the error message is since I haven't messed around with it for a few days. Will post more details soon.

Also, this may be a silly question: Does CPU optimization (CFLAGS, etc) improve decoding / encoding performance? I currently have not set these flags, just have CHOST set to i686 (I have an AMD Duron 950mhz.) I hope the answer is a minimal increase in performance because I'm not sure I feel like recompiling my whole system =)
_________________
Stupid bug, you go squish now!
-Homer Simpson

Registered linux user #287718
Back to top
View user's profile Send private message
thorne
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 177

PostPosted: Fri Oct 11, 2002 5:32 pm    Post subject: Reply with quote

OK, avidemux now sees ffmpeg as well! thanks =)

One other thing I noticed:

Code:
 DivX4linux decode   : yes
 DivX4linux encode   : yes
 Divx5 ?             : yes
 Xvid  (emulation)   : no
 Xvid  Codec         : no
 Mjpeg               : yes
 Mpeg 1 & 2          : yes
 Mad decoder         : yes
 OSS                 : yes
 Xv(overlay)         : yes
 Lame                : yes
 Ogg Vorbis          : yes
 A52/AC3             : yes
 FFMPEG              : yes
 ARTS                : no


Why wouldn't it see ARTS? I'm using KDE... Sound doesn't work with OSS as far as I can tell. XMMS used to lock up until I told it to use arts. I also think I have Xvid on the system.

And one more question about ffmpeg: ./configure did not locate mp3lame, and vorbis... although avidemux does. thoughts?
_________________
Stupid bug, you go squish now!
-Homer Simpson

Registered linux user #287718
Back to top
View user's profile Send private message
thorne
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 177

PostPosted: Fri Oct 11, 2002 6:12 pm    Post subject: Reply with quote

More updates...

1. While trying to convert divx to vcd, I only get video in the output file, no audio. I'm using ffmpeg. This is related to the fact that it did not find mp3lame, right?

2. Should there be a difference in speed while using ffmpeg compared to mjpeg? I see no difference at all. Both say about ~300 minutes for a 700MB divx file.
_________________
Stupid bug, you go squish now!
-Homer Simpson

Registered linux user #287718
Back to top
View user's profile Send private message
mean
Guru
Guru


Joined: 25 Sep 2002
Posts: 313

PostPosted: Fri Oct 11, 2002 6:30 pm    Post subject: Reply with quote

For arts, it is due to the dumb way configure is build.
It does not use the same flags for C and preprocessor
In the config.log you should have something about
arts.h ok
arts.h rejected by preprocessor, no ?
Did you use --with-extra-includes=/usr/kde/3/include --with-extra-libs=/usr/kde/3/lib

For ffmpeg and vorbis, lame -> Better that way else you will have dependancy problem.

For mpeg-1 output, it is normal you get only the video.
To have audio, select audio->process mode, normalize (48->44 if needed) and file -> save audio

Then toolame /tmp/audio.wav -e -b 224 -ms /tmp/audio.mp2
Then multiplexe audio.mp2 and video.m1v to have your final mpeg file.

It works but it is painfully slow. I have success using TMpgenc with wine.
It may be a solution if you don't mind wine.

Mjpeg is fast but the size is not the same (nor the quality)
Try on a 5 mn sample both and look at the size :)
Back to top
View user's profile Send private message
mean
Guru
Guru


Joined: 25 Sep 2002
Posts: 313

PostPosted: Fri Oct 11, 2002 6:34 pm    Post subject: Reply with quote

For arts
export LDFLAGS="-L/usr/kde/3/lib"
./configure --with-extra-includes=/usr/kde/3/include --with-extra-lib=/usr/kde/3/lib --disable-warnings

And it should be detected
Back to top
View user's profile Send private message
thorne
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 177

PostPosted: Sat Oct 12, 2002 4:02 am    Post subject: Reply with quote

mean wrote:
For arts
export LDFLAGS="-L/usr/kde/3/lib"
./configure --with-extra-includes=/usr/kde/3/include --with-extra-lib=/usr/kde/3/lib --disable-warnings

And it should be detected


Tried it, but still no arts =(

Code:
configure: WARNING: artsc/artsc.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: artsc/artsc.h: proceeding with the preprocessor's result


mean wrote:
I have success using TMpgenc with wine.
It may be a solution if you don't mind wine.


Heh, I think I would rather use something native. avidemux seems to be working now, I just have to wait to test out some VCDs =)
_________________
Stupid bug, you go squish now!
-Homer Simpson

Registered linux user #287718
Back to top
View user's profile Send private message
mean
Guru
Guru


Joined: 25 Sep 2002
Posts: 313

PostPosted: Sat Oct 12, 2002 6:27 am    Post subject: Reply with quote

For arts please try http://fixounet.free.fr/avidemux/configure.gz
with the LDFLAGS and --with-extra...

It should work
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum