create video alternative files automatically

324 views
Skip to first unread message

magnus

unread,
Dec 5, 2010, 2:24:58 PM12/5/10
to ResourceSpace
Hello,

I have searched the forum and I can't find any hits on encoding
alternate video automatically.

I'm having a problem creating alternative video files automatically.
I have edited the config.php file and removed the # symbol in front
of the h264 entries.

When I do this my resourcespace screen goes white / blank.
When I put back the pound symbol resourcespace is fine when I refresh
the page.

I am using resourcespace version 3.8.2144
Server Platform Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2
php 5.3.2
ffmpeg 0.6.1

Here are the lines I removed the # from

$ffmpeg_alternatives[0]["name"]="QuickTime H.264 WVGA";
$ffmpeg_alternatives[0]["filename"]="quicktime_h264";
$ffmpeg_alternatives[0]["extension"]="mov";
$ffmpeg_alternatives[0]["params"]="-vcodec h264 -s wvga -aspect 16:9 -
b 2500k -deinterlace -ab 160k -acodec mp3 -ac 2";
$ffmpeg_alternatives[0]["lines_min"]=480

My resourcespace runs fine other than that.

Any help would be greatly appreciated.

magnus

unread,
Dec 5, 2010, 7:20:10 PM12/5/10
to ResourceSpace
I also noticed that the line below does not have a semi colon at the
end.
I'm not a programmer but shouldn't their be one?

> $ffmpeg_alternatives[0]["lines_min"]=480

I have checked my ffmpeg formats and the codec is supported.

I'll keep checking my install just incase it's my mistake.

magnus

unread,
Dec 7, 2010, 10:34:46 AM12/7/10
to ResourceSpace
Ha,

I'm answering my own posts.

OK I added the semicolon to the end of this line and I don't get a
white screen anymore

$ffmpeg_alternatives[0]["lines_min"]=480;

But now my H.264 file renders a file size of 0.





Phil

unread,
Jan 19, 2011, 3:47:53 PM1/19/11
to ResourceSpace
Hi Magnus

I'm having the same problem as you. I can see all my alternative
download, but they all have a filesize of 0 B. Did you find a solution
for this?

Best,
Philipp

magnus

unread,
Jan 20, 2011, 3:44:17 PM1/20/11
to ResourceSpace
Hello All,

Went back to the beginning.
I finally got my alternative video's working.

I'm running the following

Ubuntu 9.10
I am using resourcespace version 3.8.2144
Server Platform Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2
php 5.3.2
FFmpeg version SVN-r26402

I found that my ffmpeg was giving error messages when running the
default entries and producing a file size of 0.
This is not evident until you run the same syntax from the command
line.

I trashed my ffmpeg and followed these instructions.
http://ubuntuforums.org/showthread.php?t=786095
NOW BEFORE YOU DO THIS try just changing the lines as below in your
config.php

$ffmpeg_alternatives[0]["name"]="QuickTime H.264 WVGA";
$ffmpeg_alternatives[0]["filename"]="quicktime_h264";
$ffmpeg_alternatives[0]["extension"]="mp4";
$ffmpeg_alternatives[0]["params"]="-acodec libfaac -ab 96k -vcodec
h264 -b 9500k -vpre slow -crf 22 -threads 0";
$ffmpeg_alternatives[0]["lines_min"]=480;

The only difference to my config is -vcodec libx264, I installed the
X264 library.
I really wanted to use this codec because apparently it does WMV's
really well.

In the end my alternatives will include a h264(avc) , mpeg2, wmv.

Also this is just the first go at it. I really want to make sure my
h264's are top quality.
The params line will get more complicated when I include the exact 2
pass settings.

let me know how it goes philipp





Phil

unread,
Jan 21, 2011, 2:34:56 PM1/21/11
to ResourceSpace
Hi Magnus

Thank you for your reply. My ffmpeg installation works nicely. If I
take the code and copy it to the command line, the video is being
created just the way it should. I added your lines of code to the
config.php, but still the same problem. 0 Bytes :(

Is there a command to recreate the alternative-files?

Have a great weekend,
Philipp

On Jan 20, 3:44 pm, magnus <davidcmag...@gmail.com> wrote:
> Hello All,
>
> Went back to the beginning.
> I finally got my alternative video's working.
>
> I'm running the following
>
> Ubuntu 9.10
> I am using resourcespace version  3.8.2144
> Server Platform Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2
> php 5.3.2
> FFmpeg version SVN-r26402
>
> I found that my ffmpeg was giving error messages when running the
> default entries and producing a file size of 0.
> This is not evident until you run the same syntax from the command
> line.
>
> I trashed my ffmpeg and followed these instructions.http://ubuntuforums.org/showthread.php?t=786095

magnus

unread,
Jan 24, 2011, 10:12:46 AM1/24/11
to ResourceSpace
Hey Phillip,

My ffmpeg also worked creating other types of files. not h264 files.
It wasn't until double checked all my installations that I realized
that perhaps a codec was missing from ffmpeg's installation.

Let me understand you situation.

Your saying that by putting the default RS ffmpeg strings into a
command line statement you produce a H.264 file?
But when run in RS you produce a file size of 0 bytes.

Could you please post the command line you used to produce the
successful video.

Where is your ffmpeg located?

mrpatulski

unread,
Jan 30, 2011, 9:58:23 AM1/30/11
to ResourceSpace
Do you have the ffmpeg x264 components installed?
Reply all
Reply to author
Forward
0 new messages