Help with FFMPEG and MIME types for TRanscode module

SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Tue, 2008-09-09 10:10

I have this output at ffmpeg module!
Which codec i need for sound at swf (transcde module)
I think i have enable alla available :(

Quote:
Supported MIME Types

The FFMPEG module can decode files of the following MIME types

video/x-ms-asf
video/x-msvideo
video/x-flv
video/quicktime
video/mp4
video/mpeg
video/x-ms-wmv

The FFMPEG module can encode files to the following MIME types

video/x-flv
Missing required audio codec, encoded videos will not contain sound.
Version Information

FFmpeg version r11872+debian_0.svn20080206-12, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-libfaad --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-altivec --disable-vis --enable-shared --disable-static
libavutil version: 49.6.0
libavcodec version: 51.50.0
libavformat version: 52.7.0
libavdevice version: 52.0.0
built on Aug 25 2008 17:05:04, gcc: 4.3.1

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2008-09-09 23:45

this is what your ffmpeg is missing:
--enable-libmp3lame
flv uses mp3 audio.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Wed, 2008-09-10 01:04

I tried lame - mp3
I installed and make again the instalion (+configure ) for the ffmpeg!

Quote:

./configure --enable-gpl --enable-libfaad --enable-swscale --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-liba52 --enable-libvorbis --enable-libmp3lame --enable-pthreads --enable-libdc1394 --enable-shared
Version Information

But it returns this error in the ffmpeg module ehen i test it!

Quote:
/usr/bin/ffmpeg: symbol lookup error: /usr/lib/libavcodec.so.52: undefined symbol: av_lfg_init

Any further assistance?

tried to reinstall libacodec pascage but nothing change :(

thank you for the help : )

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-09-10 01:13

I have not rebuilt mine since january, but here is my configuration

Quote:
configuration: --cc=cc --prefix=/usr/local --make=gmake --disable-debug --enable-memalign-hack --enable-shared --enable-pp --extra-cflags=-I/usr/local/include/vorbis -I/usr/local/include --extra-ldflags=-L/usr/local/lib -la52 --extra-libs=-pthread --enable-gpl --enable-pthreads --mandir=/usr/local/man --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad --enable-libfaadbin --disable-mmx --enable-libmp3lame --enable-libogg --disable-ffplay --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Wed, 2008-09-10 01:24

I will try it and post the result tomorrow ;)

thx for the fast reply!

The new version of Ffmpeg doesn't have many of these argument!

e.g. --enable-libogg ,,--enable-pp .

Can you upload somewhere your source of ffmpeg so i can download it ? (if you have it )

thank you again.

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Wed, 2008-09-10 01:30

still the same error :(

bah :(

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-09-10 01:32

Mine is for freeBSD, but I have several available for different OS on mysite (don't know if any will work with transcode).

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-09-10 01:37
 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Mon, 2008-09-22 10:02

Now i have this configuration :

Quote:
FFmpeg version SVN-r15340, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-libfaad --enable-swscale --enable-libmp3lame --enable-liba52 --enable-x11grab --enable-libgsm --enable-libtheora --enable-libgsm --prefix=/usr --enable-libvorbis --prefix=/usr --enable-libdc1394 --enable-encoder=mp3 --enable-encoder=mp3adu --enable-encoder=mp3on4
libavutil 49.10. 0 / 49.10. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
built on Sep 17 2008 14:34:29, gcc: 4.3.1

But the problem still :S

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2008-09-22 11:05
Quote:
/usr/bin/ffmpeg: symbol lookup error: /usr/lib/libavcodec.so.52: undefined symbol: av_lfg_init

this error?
try a google search.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Mon, 2008-09-22 11:33

No, the error that :

Quote:
Missing required audio codec, encoded videos will not contain sound.

although i have enabled the mp3 at configure.

Also doesn't compress the video now.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2008-09-22 21:51

Would you like to try the current version of transcode I have?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Tue, 2008-09-23 01:29

i am using the version that is here:

Is any other version available ?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2008-09-23 02:51

Well, when we were working on this, I kept mine in its working state before the last update. And I have my own little tweaks.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Tue, 2008-09-23 11:09

can you send it to try your then ?

i really need this module to my site :)

(thank you again for the support!)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2008-09-23 11:40
 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Tue, 2008-09-23 11:42

thx i will try it ^^

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Tue, 2008-09-23 12:26
Quote:
Supported MIME Types

The FFMPEG module can decode files of the following MIME types

video/x-ms-asf
video/x-msvideo
video/x-flv
video/quicktime
video/mp4
video/mpeg

The FFMPEG module can encode files to the following MIME types

video/x-flv
Missing required audio codec, encoded videos will not contain sound.
Version Information

FFmpeg version SVN-r15340, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-libfaad --enable-swscale --enable-libmp3lame --enable-liba52 --enable-x11grab --enable-libgsm --enable-libtheora --enable-libgsm --prefix=/usr --enable-libvorbis --prefix=/usr --enable-libdc1394 --enable-encoder=mp3 --enable-encoder=mp3adu --enable-encoder=mp3on4
libavutil 49.10. 0 / 49.10. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
built on Sep 17 2008 14:34:29, gcc: 4.3.1

Bah the same problem :S :(

Is going to be a new-stable version for G2.3?

 
seba84

Joined: 2008-09-28
Posts: 7
Posted: Sun, 2008-09-28 08:33
Quote:
The FFMPEG module can decode files of the following MIME types

video/x-ms-asf
video/x-msvideo
video/x-flv
video/quicktime
video/mp4
video/mpeg

The FFMPEG module can encode files to the following MIME types

video/x-flv
Missing required audio codec, encoded videos will not contain sound.
Version Information

FFmpeg version SVN-r15441, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --libdir=/usr/lib --shlibdir=/usr/lib --bindir=/usr/bin --incdir=/usr/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=/usr/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libgsm --enable-liba52 --enable-libtheora --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --enable-swscale --enable-libdc1394 --enable-nonfree --disable-mmx --disable-altivec --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-encoder=mp3 --enable-encoder=mp3adu --enable-encoder=mp3on4
libavutil 49.11. 0 / 49.11. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 1. 0 / 0. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Sep 28 2008 01:12:50, gcc: 4.3.1

hey,
I got the same error, but I tried to transcode works fine. I buidl ffmpeg (svn source) on my on and tried to use debian packages from http://debian-multimedia.org/. I Alsways got this message in the admin menu and it says "Audio support not available, video will be silent." on the transcode page.

I mean, I am happy that everything works, but I would like to have this future without failure message (if possible ;))

@SUBERIP: have you tried to transcode a video? maybe it works too???

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Mon, 2008-09-29 00:17

You are lucky :(

Have you updated the site at Gallery 2.2.6? [ I am trying to see if this is the problem :*( ]

All the videos with audio compress them to a file with size: 1589

maybe a other type is needed a ffmpeg :(

seba84 can you pls post your configuration ?

thank you for the info although :)

 
seba84

Joined: 2008-09-28
Posts: 7
Posted: Mon, 2008-09-29 09:34

@suberip: witch configuration do you mean? the ffmpeg. See my quoted text. I got the svn snapshot and build it with the posted configuration command.

I used the transcode script on a test install of version 2.3 RC1.

Right now i got an other problem: Yesterday I want to update a none productive (thank god) install with around 8000 items to 2.3 RC1 to use the transcode script but several errors occur. I can't even access the admin interface of that version. So this is prior for the moment.

all this is just hobby and at the moment i'm out of time for hobbies.

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Mon, 2008-09-29 16:47

Oh my wrong i though that was my configuration :P

i will try yours right now :)

Quote:
Supported MIME Types

The FFMPEG module can decode files of the following MIME types

video/x-ms-asf
video/x-msvideo
video/x-flv
video/quicktime
video/mp4
video/mpeg

The FFMPEG module can encode files to the following MIME types

video/x-flv
Missing required audio codec, encoded videos will not contain sound.
Version Information

FFmpeg version SVN-r15442, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-libfaad --enable-swscale --enable-libmp3lame --enable-liba52 --enable-libtheora --prefix=/usr --enable-libvorbis --enable-libxvid --prefix=/usr --enable-encoder=mp3 --enable-encoder=mp3adu --enable-encoder=mp3on4 --enable-encoder=libmp3lame
libavutil 49.11. 0 / 49.11. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
built on Sep 29 2008 19:15:25, gcc: 4.3.1

Now can encode movies with out sound correct! But when the movie has sound the file is still corupted :S

still trying ;)

 
seba84

Joined: 2008-09-28
Posts: 7
Posted: Mon, 2008-09-29 21:11

just a status info:
I tried several builds with different configurations but with the same results. I always get the messages "Missing required audio codec, encoded videos will not contain sound."

But most time they have sound. In other cases they are broken. The videos are all from the same digital ixus 60.

After that I tried to install the binary version from suprsidrs web side witch works fine with all videos, shows the "missing requierd audio codec..." message and has no sound.

i have no more ideas right now. Next week (Oktoberfest comes first ;)) i will try own builds of lame and libmp3lame or older revisions of ffmpeg.

greets seba

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Tue, 2008-09-30 01:46

lol

It is 5 in the mornig and i found this site while trying to fix it!
http://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html

and the bin files works !! the ffmpeg modules seems to pass but i think miss some de-codecs now :P.

At transcode page still says Audio support not available, video will be silent.

The sound type is PCM !

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Tue, 2008-09-30 02:01

A restart of module FFMPEG and all are fine!!

I hope these posts will help the other with the same problem :)

than k you all for the help :)
i done it :D

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2008-09-30 02:06

Any video with surround sound 5.1 or greater is not yet supported by ffmpeg either. So that could also be your error.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Tue, 2008-09-30 02:16

No, all are kk now.
I dont know why i couldnt install ffmpeg and make it work but the bin that i download works fine :)

 
seba84

Joined: 2008-09-28
Posts: 7
Posted: Tue, 2008-09-30 10:46

grrrr.... I tried again a view configurations during my brake. I think they changed something in the svn. In the newes version there should be an error witch was a prolme to me: got that on a transcode during shell (https://roundup.mplayerhq.hu/roundup/ffmpeg/issue641)

with r12787:
gallery: no error occurs on the ffmpeg test page but on transcode page (but transcode did not work)
on shell: everything works fine

with r10787
gallery: no error occurs on the ffmpeg test page but on transcode page (but transcode did not work)
on shell: everything works fine

suprsidr: can you please tel me with revision you are using and maybe give me your transcode modul?! would be nice. I send you an msg with an email addy.

greets seba84

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Tue, 2008-09-30 11:02

Download the modules for Transcode && Ffmpeg and install them.

from site:
https://sourceforge.net/tracker/index.php?func=detail&aid=1758576&group_id=7130&atid=307130

install the ffmpeg: " apt-get isntall ffmpeg "
then go to :
[url] http://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html[/url]

and copy paste the bin file to "/usr/bin/" and the libs at the library path for your system!

restart module ffmpeg.

This is my steps.

 
seba84

Joined: 2008-09-28
Posts: 7
Posted: Tue, 2008-09-30 11:20

uhh... thank you. I should read what you wrote!

this is working here too... maybe all my other revision in the post above would have done that too.?! I mean I never deactivate the ffmpeg module. I guess that was my fault because there was no error in the ffmpeg module test, just on transcode side.

@suprsidr just ignore my msg.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2008-09-30 11:28

I guess I should have asked if you had "Bumped" your modules ;)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-10-08 23:16

I just spent a couple of hours with transcode and ffmpeg.
I added a video bitrate selector, fixed the other options to actually work. Fixed the "Missing audio..... " error.
AND finished transcode on upload. ;)

Lemme know if you're interested in the update.

-s

FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Thu, 2008-10-09 00:45

:O

we are dieing for this upddate!!!

please
can you pls put and default values so at upload can encode with that values?

the update can be done from admin control at plugin list or manually?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2008-10-09 02:53

Uploaded them here.

I'll look into adding some admin options for setting upload defaults.
I'm not really crazy about the onUpload feature. A simple 6mb movie trailer took a good bit of time to upload and transcode.
Although I added a progressBar to ItemAddfromBrowser.tpl to indicate it was still working at it. Most people would have hit the back button which could produce broken or missing object errors in G2.
Added the progressBar to Transcode.tpl too ;)
I'll include the progressBar mod here.
add it to gallery2/modules/core/templates/local

-s

FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
seba84

Joined: 2008-09-28
Posts: 7
Posted: Thu, 2008-10-09 05:45

thank you very much... right now I'm on work.

I will try this evening.

Greets seba84

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Thu, 2008-10-09 23:56

nice it is working :)
thank you again!

 
seba84

Joined: 2008-09-28
Posts: 7
Posted: Fri, 2008-10-10 05:46

sorry, didn't look on it last night. I first had to find out how to uninstall a corrupt hidden module by hand :) (newest version of the hidden module - no deinstall or delete over the admin menu). I will try to find some time this weekend...

 
mstorman

Joined: 2006-05-08
Posts: 20
Posted: Fri, 2008-11-07 22:38

wow. This one appears to be working just fine. Nice work. I did have a couple that werent getting transcoded. All i did was edited the video > Transcode Tab > Uncheck Enable transcoding, save, then Check Enable transcoding.

This is just sweet! Great job.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2008-11-07 22:58

I actually have many updates, but I need to cleanup some code before I package it up for trial.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
mstorman

Joined: 2006-05-08
Posts: 20
Posted: Fri, 2008-11-07 23:17

suprsidr,

Will there be an option to adjust the quality of the encoded movies?

Thanks
Matthew.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-11-08 03:36

Ok, new version up.
Adds new options in admin -> transcode
Adds new transcode options in add item from web browser.
Adds transcode to different mimetypes.
Adds output quality/height/width/audio channels/audio samplerate........

I'd uninstall previous versions of transcode & ffmpeg.

You will have to re-install ffmpeg before transcode and probably bump the thumbnail module too(deactivate/re-activate) after ffmpeg.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-11-08 03:43

While you're at it, try the new flashvideo updates as well.
Adds admin options for player color/sharing/fullscreen/allow download/autoStart ;)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
mstorman

Joined: 2006-05-08
Posts: 20
Posted: Sat, 2008-11-08 04:20
 
mstorman

Joined: 2006-05-08
Posts: 20
Posted: Sat, 2008-11-08 04:23

Also, the File size (bytes) for native and transcoded is 3385361/3385361. Default Video bitrate @ Medium.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-11-08 04:24

What format did you try to transcode to?
Was it on upload or itemEdit?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
mstorman

Joined: 2006-05-08
Posts: 20
Posted: Sat, 2008-11-08 04:29

I tried to transcode to flv, and tried both upload and itemEdit.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-11-08 04:35

Ok, I see 2 issues, give me a sec to fix them.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-11-08 04:48

Ok, kinda fixed it... the problem lies with a particular mime(s) having more then 1 extension associated.
flv will definately work, but I have to explore a better way of achieving the default extension for said mime.

Also removed some traces from ffmpeg - so uninstall/re-install again... sorry.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
mstorman

Joined: 2006-05-08
Posts: 20
Posted: Sat, 2008-11-08 05:50

ok, much better. There are still a couple issues though. Ill keep track of them and post them here when I put the list together.

 
SUBERIP

Joined: 2008-03-03
Posts: 23
Posted: Sat, 2008-11-08 10:43

Nice work :) seems to work for me :) no bug until now!

I just started a maintenance "build all thumbnail" i hope will work with the videos too ;)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-11-08 12:52
Quote:
no bug until now

So there is a bug?

Quote:
I just started a maintenance "build all thumbnail" i hope will work with the videos too

It should, no changes there. - remember video thumbs take a sec as the offset needs to be reached.
Works for me.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2