ffmpeg audio resampler problem

trogie - January 26, 2009 - 08:53
Project:FlashVideo
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

with recent versions of ffmpeg I'm having problems to convert videos to flv as the videos of my digital camera (canon ixus) has audio in pcm_u8 and (recent versions of) ffmpeg doesn't want to resample 8bit audio anymore.

Exiting with error message: 'Audio resampler only works with 16 bits per sample'...

Anybody a workaround until the resampler gets fixed?

more info:
https://roundup.mplayerhq.hu/roundup/ffmpeg/issue582
http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2009-January/018547.html

#1

NeilPorter - January 26, 2009 - 09:40

I have the exact same problem, everything works except those little avi files generated by digital cameras. My server is RHE so perhaps there are some older rpms I could use until a fix is applied to the current trunk of ffmpeg? Has anyone else got round this problem? Is there a way to checkout an older (and working) version of ffmpeg?

#2

trogie - January 26, 2009 - 09:54

Indeed that's the problem!

I want to downgrade ffmpeg but I also want to enable x264 (h-264) for HD videos and that's why I require the latest versions of ffmpeg...

#3

attheshow - January 27, 2009 - 01:50
Component:Code» Miscellaneous

#4

NeilPorter - February 13, 2009 - 11:56

I can't speak to the h-264 support because that wasn't a priority for me, but I have finally managed to sort out a solution to my ffmpeg installation problems. I'm outlining it here in case trogie or anyone else finds the information useful, as well as it being a handy reference point for me in the future.

This is on a RHE4 machine. I firstly found a howto install ffmpeg and broadly followed it. I then discovered that (like trogie) the latest trunk edition of ffmpeg was broken for audio in pcm_u8. After approximating when the howto was written with the ffmpeg svn repository I finally found a snapshot that was about 9 months old and worked. So the first thing I needed to do was to instead of directly checking out the code from the current trunk of ffmpeg I needed to add --revision to checkout the older version that used to work (before they messed up pcm_u8). I did this like so:-

svn checkout --revision 13000 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

Then I discovered another problem relating to sound and found a solution here. I was using the latest version of lame (3.98) but it turns out that ffmpeg is broken against that so I needed to roll back to 3.97 before installing ffmpeg. Then I simply issued my install command:-

./configure --enable-libmp3lame --enable-libamr-nb --enable-libamr-wb --enable-libxvid --enable-nonfree --enable-gpl --enable-shared --disable-mmx --disable-demuxer=v4l --disable-demuxer=v4l2 && make && make install

Et voila, it works... well so far!

#5

trogie - February 18, 2009 - 07:30

thanks for your information! Flashvideo is still on my to-do-list but a little lower priority.

I'll keep you informed about my progress in this workaround.

 
 

Drupal is a registered trademark of Dries Buytaert.