Converting video formats
Using the script below, I have converted the format of 20 videos. Took 119 hours 14 minutes.
Code:
#! /bin/bash Is there a faster way to do this? Something simular to this? Code:
Even a 10% reduction in run time over the 2 formats would mount to a whole day. Dave |
Overclock your machine, upgrade your cpu & ram. Lol
Maybe since they have been converted already you can use those new files to convert to the next desired formats. Instead of converting them all over to a new format. Does this make sense? |
Are you just changing the container format? You can add the -acodec copy and -vcodec copy flags to ffmpeg, and it won't recompress the audio and video.
|
Quote:
Code:
for fl in *.ogg; do ffmpeg -i "$fl" -o "${fl%.*}".webm; done I've never done web videos myself, nor used ffmpeg, but I do a lot of dvd encoding with both mencoder and HandBrake. They both average about 2 hours per dvd for a 2 pass process. Is ffmpeg perhaps being thrown off by your using a music encoding suffix (ogg) for files that actually are videos? As in trying every format that it will handle to determine what your ogg files actually are. What does its log file have to say? |
Quote:
|
Quote:
|
Quote:
I used only the 'ogg' in a tread recently posted. Deeper research has produced this information HTML Supported. Code:
Browser MP4 WebM Ogg Code:
<!DOCTYPE html> This VIDEO stuff is a new learning curve for me. Thanks for you help and feed back. Dave |
You're encoding for the web? Don't even bother with ogg containers or Theora video. There is no browser whose currently supported version supports theora video in an ogg container, but not vp8 video in a webm container.
Just do one patent-encumbered h264/mp3/mp4 encode and one patent-unencumbered vp8/vorbis/webm encode. Something like this should cover you: Code:
ffmpeg -i input.avi -vcodec libx264 -acodec mp3 movie.mp4 Code:
<video> |
Quote:
Code:
cores=2 |
Quote:
|
Quote:
Code:
$ cat >transcode.sh <<__EOF__ |
Quote:
|
The "xargs -P 2" option runs 2 commands in parallel. The "find -exec" option doesn't.
-Ben |
Thanks to all for the informaton, instructions and patients. I have put the script to running. I will be back after Sunday, Renaissance Festival is starting this weekend and I have things to do to get ready.
|
Quote:
Code:
-exec command {} + Code:
-exec command {} \; |
All times are GMT -5. The time now is 03:39 AM. |