Hi,

In the configuration options, I find that, many transcoders paths are to be defines and many I also find that each video file type has its own player configured. But for my use, I just need to convert all uploaded files to flv and provide playback using flowplayer or any other FLV player. What is the best way to do this? And what are all the software I need in my server? I'm currently runny LAMP stack with postfix on Ubuntu 10.04 LTS

Comments

hypertext200’s picture

Status: Active » Fixed

1. Install FFMPEG
2. Set its path on video module configurations.
3. Enable preset to convert videos to FLV (In the Preset settings)
4. Set the Player for Flowplayer in the Player settings.

dbinoj’s picture

Status: Active » Fixed

Hi,
Thanks for the info, I did exactly as you have mentioned (except, I decided to use SWF Tools with JW player)
I installed FFMPEG as per the instructions found here: http://ubuntuforums.org/showpost.php?p=9868359&postcount=1289

I did NOT install libvpx, "Adding lavf support to x264" from the instructions

But I got this error when I tried to transcode a .mp4 file. After uploading, the thumbnails were generated perfectly though.

Video conversion failed for preset html5_mp4. FFMPEG reported the following output: ffmpeg version N-31160-gcbfdfbe, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 3 2011 20:38:29 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab libavutil 51. 11. 0 / 51. 11. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 5. 0 / 53. 5. 0 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 24. 1 / 2. 24. 1 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 1 codec frame rate differs from container frame rate: 60000.00 (60000/1) -> 29.97 (30000/1001) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sites/default/files/videos/original/pirates guitar.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isomavc1mp42 creation_time : 2008-10-17 03:19:31 Duration: 00:01:35.71, start: 0.000000, bitrate: 601 kb/s Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 100 kb/s Metadata: creation_time : 2008-10-17 03:19:31 Stream #0.1(und): Video: h264 (Baseline), yuv420p, 480x360 [PAR 1:1 DAR 4:3], 500 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc Metadata: creation_time : 2008-10-17 03:19:31 File for preset 'slow' not found 

What might be wrong?

dbinoj’s picture

Status: Fixed » Active
hypertext200’s picture

Status: Fixed » Active

It seems the required libs are missing, could you please install FFMPEG from the recommended script in documentation and see.

dbinoj’s picture

Which one should I use?

github.com/heidisoft/FFMPEG-Install-Script
or 
github.com/heidisoft/ffmpeg-static

Also the README says to read INSTALL.txt for instructions to use the script. But I could not find any INSTALL text file with instructions on how to run the script. Please help

hypertext200’s picture

Status: Active » Fixed

Both are working, This is just a shell scripts to run

sudo sh ffmpeg.sh
dbinoj’s picture

Hi,
I tried your script today. But the results were not positive. I have pastebin'd the log of the install. Is anything wrong with the script or my OS?

http://pastebin.com/QPe9nQky
dbinoj’s picture

Priority: Normal » Minor
Status: Fixed » Active
dbinoj’s picture

bump!
Any idea on what might be wrong? I'm trying to figure it out for 2 days with a dozen reinstall of Ubuntu

dbinoj’s picture

Status: Active » Closed (fixed)

Hi,

I found that installing ffmpeg from ubuntu repos fixed the issue. But i think you'd wanna check out what is wrong with your install script.

refer’s picture

i usually use this tool to convert flv or swf files to other formats http://www.macvide.com/Macvide_FlashVideo_Converter/, but thanx a lot!