Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version Search this Thread
02-27-2010, 11:16 AM   #1
Site Supporter
firefly's Avatar

Join Date: Mar 2008
Location: New Brunswick
Photos: Albums
Posts: 200
Linux Video Compression for K-x

Hello again.

I'm a long-time linux user and have to do a fair bit of searching for my photo editing tools. I've found that picasa is great for my jpeg, and I use lightzone (free as in beer) for RAW captures. This has worked well in the last couple of years... but now since I have video I found that I need to compress these motion JPEGs to something more manageable.

Enter Avidemux.

What a great tool. I'm able to compress and convert the mjpeg avis from the camera to anything I choose. At the moment I'm liking h.264, 4000 bitrate with vorbis sound in a matroska container. I also added a chroma noise reduction plugin to the video encoding, since the k-x does not seem to apply any noise reduction at high isos for video.

The results are excellent, 1/3 the size and portable.

Anyone else have any good tips?

02-27-2010, 11:29 AM   #2
Site Supporter
firefly's Avatar

Join Date: Mar 2008
Location: New Brunswick
Photos: Albums
Posts: 200
Original Poster
I think this should be moved to Post Processing, Printing, Software, and Darkroom. My bad.
02-27-2010, 03:02 PM   #3
tux
Forum Member




Join Date: Dec 2009
Posts: 82
I wrote a script to convert mine. I find it quicker & easier than using avidemux and it can do multiple move files with a single command :

"movieconvert"

#!/bin/bash
# depending on your camera you may need to change AVI to lowercase
for movie in *.AVI ; do
echo Processing "$movie"
ffmpeg -i $movie -acodec mp2 -ac 1 -ar 44100 -ab 96k -vcodec libx264 -vpre hq -crf 24 -threads 0 output/$movie
done

Save the above as a new file & make it executable. Then run the movieconvert command in the directory where you movie files are. All your movies will convert to x264 and get stored in the "output" directory. They use about 10* less disk space with no loss in quality.

The conversion is done using ffmeg which is installed on most linux distros.

Last edited by tux; 02-27-2010 at 03:19 PM.
02-27-2010, 05:27 PM   #4
Site Supporter
firefly's Avatar

Join Date: Mar 2008
Location: New Brunswick
Photos: Albums
Posts: 200
Original Poster
that's a nice little script. Any thoughts on audio too?

02-28-2010, 06:59 AM   #5
Veteran Member
tomtor's Avatar

Join Date: Apr 2008
Location: Netherlands
Posts: 382
QuoteOriginally posted by firefly Quote
that's a nice little script. Any thoughts on audio too?
What would you need regarding the audio?

The audio is converted as well with that script (to mp2 format).

Any suggestions regarding video editing?

I tried kdenlive which works quite well...

Last edited by tomtor; 02-28-2010 at 07:02 AM. Reason: add edit question
02-28-2010, 07:08 AM   #6
Site Supporter
firefly's Avatar

Join Date: Mar 2008
Location: New Brunswick
Photos: Albums
Posts: 200
Original Poster
just noticed the acodec flag, thanks. For video editing, I'm going to try kino... we'll see how it goes.

QuoteOriginally posted by tomtor Quote
What would you need regarding the audio?

The audio is converted as well with that script (to mp2 format).

Any suggestions regarding video editing?

I tried kdenlive which works quite well...
05-14-2010, 02:01 PM   #7
New Member
kkumer's Avatar

Join Date: May 2010
Location: Zagreb
Posts: 11
QuoteQuote:
All your movies will convert to x264 and get stored in the "output" directory. They use about 10* less disk space with no loss in quality.
Hm, since you are transcoding from mjpg to H.264, I guess there has to be some loss in quality, right? Is this negligible for all practical purposes? (BTW, thanks for the script.)
05-14-2010, 02:29 PM   #8
Site Supporter
boriscleto's Avatar

Join Date: Dec 2009
Location: Liverpool, NY
Photos: Gallery
Posts: 12,872
HandBrake

05-17-2010, 08:33 AM   #9
Veteran Member




Join Date: Jun 2007
Location: Owego, NY
Posts: 976
Yeah, Handbrake can now load arbitrary video and is sooo easy
05-21-2010, 01:49 AM   #10
Senior Member




Join Date: Feb 2009
Location: SLovakia
Photos: Gallery
Posts: 140
For Linux is best AviDemux, as You wrote



Avidemux - Downloads


It is free multiplatform video manipulating tool.
The best compression for K-7 and K-X video is X264 codec.

AviDemux contains also plenty of useful filters, very good denoiser
Mplayer hqdn 3D, which I can recommend when shooting under bad light.

Last edited by therion; 05-21-2010 at 02:03 AM.
02-24-2011, 08:52 AM   #11
Site Supporter
firefly's Avatar

Join Date: Mar 2008
Location: New Brunswick
Photos: Albums
Posts: 200
Original Poster
Just as a followup here...

I abandonned AviDemux for conversion and used ffmpeg exclusively. It worked well, but had trouble filtering noise. Before compiling a new ffmpeg I thought I'd have a look around at the 'new' GUI stuff for linux.

I tried Handbrake per someone's suggestion here.

Files are easily queued, output results are customizable and look great. Full support for H.264 encoding via x264 is built-in, custom noise filtering via HQDN3D built-in. Output to either mp4 or mkv containers... really does everything I need.

I must say, adding files to queue via GUI is much less daunting than having to work with that avidemux batch scripting. I develop software for a living, the last thing I want to do when I get home is constantly develop/tweak scripts to perform video conversion functions.
Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
camera, dslr, k-x, linux, noise, photography, reduction, video
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Video Time Compression with VirtualDub KansasHorizons.com Video and Pentax HDSLRs 2 02-21-2012 11:31 PM
K-x JPEG Compression Nightwings Pentax DSLR Discussion 8 08-02-2010 04:19 PM
Video compression ? SpidahX Video and Pentax HDSLRs 5 07-05-2010 02:58 PM
Compression: Was anyone else shocked? oldguy Pentax DSLR Discussion 3 03-02-2008 07:30 PM
Image compression software Jimbo Pentax DSLR Discussion 13 01-06-2008 11:20 AM



All times are GMT -7. The time now is 09:01 PM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top