Last edited by ubuntu-freak; December 25th, 2008 at 04:15 AM.
The touchpad on my laptop is a right pain in the butt, so I'd really like to do what you suggest here. However, the contents of my xorg.conf file look nothing like what you've suggested should be there! Other than the commented out bits at the top, this is all it says:
Code:Section "Device" Identifier "Configured Video Device" EndSection Section "Monitor" Identifier "Configured Monitor" EndSection Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" EndSection
Hi persistentstubborn,
There may be an easy way to do this but I am not aware of it . I have converted such files but you must have a copy of ffmpeg that has been compiled against the amr libraries:
I usually run the following command, demonstrating here with a downloaded youtube flv:Code:andrew@skamandros~$ ffmpeg -formats | grep amr FFmpeg version SVN-r16307, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --prefix=/usr --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-postproc --enable-avfilter --enable-pthreads --enable-libtheora --enable-libvorbis --enable-swscale --enable-x11grab --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libfaac --enable-libamr-wb - -enable-libamr-nb --enable-nonfree --enable-gpl libavutil 49.12. 0 / 49.12. 0 libavcodec 52. 8. 0 / 52. 8. 0 libavformat 52.23. 1 / 52.23. 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 Dec 25 2008 13:07:47, gcc: 4.2.4 DE amr 3GPP AMR file format DEA libamr_nb libamr-nb Adaptive Multi-Rate (AMR) Narrow-Band DEA libamr_wb libamr-wb Adaptive Multi-Rate (AMR) Wide-Band
This is a bit rough and ready as I am no ffmpeg expert, and in fact pillaged most of the settings from a blog, but it looks and sounds fine on a mobile phone. So I believe you need to compile your own ffmpeg after also compile and install amr wide and narrow band.Code:andrew@skamandros~/Desktop$ ffmpeg -i kbDs2XNmZos.flv -r 15 -b 200kbit/s -s 176x144 \ > -vcodec h263 -ar 8000 -ab 10.2k -acodec libamr_nb test.3gp FFmpeg version SVN-r16307, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --prefix=/usr --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-postproc --enable-avfilter --enable-pthreads --enable-libtheora --enable-libvorbis --enable-swscale --enable-x11grab --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libfaac --enable-libamr-wb --enable-libamr-nb --enable-nonfree --enable-gpl libavutil 49.12. 0 / 49.12. 0 libavcodec 52. 8. 0 / 52. 8. 0 libavformat 52.23. 1 / 52.23. 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 Dec 25 2008 13:07:47, gcc: 4.2.4 Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 57.92 (695/12) Input #0, flv, from 'kbDs2XNmZos.flv': Duration: 00:03:15.79, start: 0.000000, bitrate: 64 kb/s Stream #0.0: Video: flv, yuv420p, 320x240, 57.92 tb(r) Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s Output #0, 3gp, to 'test.3gp': Stream #0.0: Video: h263, yuv420p, 176x144, q=2-31, 200 kb/s, 15.00 tb(c) Stream #0.1: Audio: libamr_nb, 8000 Hz, mono, s16, 10 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding frame= 2938 fps=205 q=4.4 Lsize= 5224kB time=195.68 bitrate= 218.7kbits/s video:4903kB audio:258kB global headers:0kB muxing overhead 1.224137% andrew@skamandros~/Desktop$
I believe you were after an easier way to do this and perhaps Nathan might have some thoughts here?
All the best,
Andrew
You think that's air you're breathing now?
FFmpeg doesn't need compiling in Ubuntu and AMR support isn't needed to make mobile phone vids, just needed to make crap sounding mobile vids.
Last edited by ubuntu-freak; December 25th, 2008 at 03:59 PM.
Follow the instructions under "Enabling SHMConfig" from the following link:
https://help.ubuntu.com/community/SynapticsTouchpad
Then you can follow the rest of my instructions afterward.
I'll update my howto later.
heya, a great article but im having a few problems.
I followed your tutorial exactly on a freshly installed Ubuntu 8.04 PC.
I had no errors in installing all the packages you recomended.
However the problems I am having are as follows. I am unable to play DVDs in totem. I have tried a number of different films and get the following error.
Also in totem (again) I am unable to play youtube videos via the plugin. O get the following error:Code:An error occurred: Could not open location; you might not have permission to open the file. OR Totem could not play this media (DVD) although a plugin is present to handle it. You might want to check that a disc is present in the drive and that it is correctly configured.
I am however able to play:Code:ffdemux_swf: Element doesn't implement handling of this stream. Please file a bug.
MP3
DivX
Flash via firefox
So I know it seams to be a problem with totem but I like it and I am able to play DVDs on my other PC with it? -- although get the same error for youtube plugin. PLease advise me on what to do!
Intel Core 2 Duo 2x 2.33Ghz, FP-IN9 SLI mobo, 2Gb 800Mhz RAM, 256mb GeForce 7300 LE graphics, 120Gb IDE HD, 400Gb IDE HD,
Did you install anything extra for Totem that may be causing a conflict? Or just the packages I recommend?
Regarding DVD playback, does VLC play them okay? I realise you prefer Totem, but it's useful to know. Also, did you install totem-xine by mistake? That back-end caused me problems when I installed it in Hardy.
Hi ubuntu-freak,
My apologies. I have read the section in your excellent guide that deals with conversion to 3gp, which I guess was not clear from my post. I still feel that amr_nb has a place as a universal common denominator in such conversion although I acknowledge phones seem to have aac support more commonly these days in the 3gp container.
Again my apologies for treading on your toes .
Andrew
Last edited by andrew.46; December 26th, 2008 at 12:09 AM. Reason: Clarification ....
You think that's air you're breathing now?
You weren't treading on my toes.
I like people replying to posts in my thread, as I don't know all there is to know, plus I'm not around to reply quickly sometimes. Perhaps I was letting my personal views get in the way, as I don't think it's worth compiling FFmpeg to enable/fix AMR support.
The person you quoted had installed the locked version of FFmpeg first, then the unlocked Medibuntu version afterward. That's why he/she was having problems. Hopefully my advice on purging and reinstalling FFmpeg fixed that, as purging removes configuration files, folders etc, but I don't think the poster got back to me with results.
Sorry for being blunt in my other post.
Bookmarks