View previous topic :: View next topic |
Author |
Message |
mindows n00b
Joined: 01 Aug 2002 Posts: 33
|
Posted: Wed Sep 25, 2002 1:58 am Post subject: mpg/avi editor for linux? |
|
|
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 |
|
|
okram n00b
Joined: 06 Aug 2002 Posts: 74 Location: Taipei, Taiwan
|
|
Back to top |
|
|
zypher Retired Dev
Joined: 10 Jun 2002 Posts: 416 Location: Cologne, ger.
|
Posted: Wed Sep 25, 2002 5:30 am Post subject: |
|
|
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 |
|
|
mindows n00b
Joined: 01 Aug 2002 Posts: 33
|
Posted: Wed Sep 25, 2002 12:38 pm Post subject: |
|
|
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 |
|
|
mean Guru
Joined: 25 Sep 2002 Posts: 313
|
Posted: Wed Sep 25, 2002 4:04 pm Post subject: |
|
|
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 |
|
|
thorne Apprentice
Joined: 19 Sep 2002 Posts: 177
|
Posted: Wed Oct 09, 2002 7:38 pm Post subject: |
|
|
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 |
|
|
thorne Apprentice
Joined: 19 Sep 2002 Posts: 177
|
Posted: Wed Oct 09, 2002 9:13 pm Post subject: |
|
|
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 |
|
|
thorne Apprentice
Joined: 19 Sep 2002 Posts: 177
|
Posted: Thu Oct 10, 2002 12:03 am Post subject: |
|
|
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 |
|
|
Mr. Pointy Tux's lil' helper
Joined: 27 May 2002 Posts: 77
|
Posted: Thu Oct 10, 2002 9:16 am Post subject: |
|
|
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 |
|
|
mean Guru
Joined: 25 Sep 2002 Posts: 313
|
Posted: Thu Oct 10, 2002 12:54 pm Post subject: |
|
|
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 |
|
|
zypher Retired Dev
Joined: 10 Jun 2002 Posts: 416 Location: Cologne, ger.
|
Posted: Thu Oct 10, 2002 6:12 pm Post subject: |
|
|
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 |
|
|
thorne Apprentice
Joined: 19 Sep 2002 Posts: 177
|
Posted: Fri Oct 11, 2002 5:10 pm Post subject: |
|
|
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 |
|
|
thorne Apprentice
Joined: 19 Sep 2002 Posts: 177
|
Posted: Fri Oct 11, 2002 5:32 pm Post subject: |
|
|
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 |
|
|
thorne Apprentice
Joined: 19 Sep 2002 Posts: 177
|
Posted: Fri Oct 11, 2002 6:12 pm Post subject: |
|
|
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 |
|
|
mean Guru
Joined: 25 Sep 2002 Posts: 313
|
Posted: Fri Oct 11, 2002 6:30 pm Post subject: |
|
|
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 |
|
|
mean Guru
Joined: 25 Sep 2002 Posts: 313
|
Posted: Fri Oct 11, 2002 6:34 pm Post subject: |
|
|
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 |
|
|
thorne Apprentice
Joined: 19 Sep 2002 Posts: 177
|
Posted: Sat Oct 12, 2002 4:02 am Post subject: |
|
|
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 |
|
|
mean Guru
Joined: 25 Sep 2002 Posts: 313
|
|
Back to top |
|
|
|