Notices


Reply
Thread Tools
Posts: 73 | Thanked: 141 times | Joined on Oct 2010
#1
Hi,
do you know if exist an application to extract the audio track from video and convert in mp3 ?
Something like pymp but whit a local folder

I tried via x-term whit ffmpeg but it don't work, miss the libvacodec-unstripped-51 / 52 and in the repo there isn't

Any solution?
Thanx in advance

Last edited by Veleno; 2011-02-15 at 09:26.
 
stickymick's Avatar
Posts: 1,079 | Thanked: 1,019 times | Joined on Mar 2010
#2
Not on the N900 yet, I don't think. But I could be wrong.

On my PC I use Format Factory.

Sorries not much help.
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#3
at least flv -videos can be converted

http://maemo.org/packages/view/pymp/
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 

The Following 2 Users Say Thank You to ossipena For This Useful Post:
stickymick's Avatar
Posts: 1,079 | Thanked: 1,019 times | Joined on Mar 2010
#4
Originally Posted by ossipena View Post
at least flv -videos can be converted

http://maemo.org/packages/view/pymp/
Never knew dat one. Must check it out sometime.
 
Posts: 100 | Thanked: 543 times | Joined on Jun 2010 @ Kiev, Ukraine
#5
Code:
mplayer -ao pcm:file=audio.wav video.avi
lame audio.wav audio.mp3
 

The Following 3 Users Say Thank You to divan For This Useful Post:
Posts: 73 | Thanked: 141 times | Joined on Oct 2010
#6
Sorry, can you explain the command?
I tried whit:
mplayer -ao pcm:file=audio.wav name_of_the_video.avi
lame audio.wav audio.mp3

But the resulting is two files: audio.wav and audio.mp3 whitout audio track

Code:
/MyDocs/.videos $ mplayer -ao pcm:file=prova.wav Allexjo.flv lame prova.wav prova.mp3
MPlayer SVN-r30099-4.2.1 (C) 2000-2009 MPlayer Team

Playing Allexjo.flv.
libavformat file format detected.
[flv @ 0xcc09c0]Estimating duration from bitrate, this may be inaccurate
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [FLV1]  320x240  0bpp  25.000 fps  262.5 kbps (32.0 kbyte/s)
Clip info:
 duration: 195
 starttime: 0
 totalduration: 195
 width: 320
 height: 240
 videodatarate: 256
 audiodatarate: 61
 totaldatarate: 325
 framerate: 25
 bytelength: 7908316
 canseekontime: true
 sourcedata: B4A7DD2E6HH1294225369572405
 purl: 
 pmsg: 
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 8.0 kbit/1.13% (ratio: 1000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO PCM] File: prova.wav (WAVE)
PCM: Samplerate: 22050Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 22050Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Planar YV12 
A:   2.4 V:   2.4 A-V: -0.041 ct:  0.121   0/  0 53% 18% 11

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A: 194.9 V: 194.8 A-V:  0.098 ct:  0.180   0/  0 10% 24%  8

Playing lame.
File not found: 'lame'
Failed to open lame.


Playing prova.wav.
Audio only file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 22050 Hz, 2 ch, s16le, 705.6 kbit/100.00% (ratio: 88200->88200)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[AO PCM] File: prova.wav (WAVE)
PCM: Samplerate: 22050Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 22050Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   0.0 (00.0) of 194.0 (03:14.0) ??,?%                    

Playing prova.mp3.
Seek failed


Exiting... (End of file)

Last edited by Veleno; 2011-02-15 at 12:25.
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#7
try the first line first and after that is done, then the second one....
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 

The Following User Says Thank You to ossipena For This Useful Post:
Posts: 100 | Thanked: 543 times | Joined on Jun 2010 @ Kiev, Ukraine
#8
Veleno, there are two lines of code, not one.
Btw, add -vo null to disable video play during audio extraction:
Code:
mplayer -ao pcm:file=audio.wav -vo null video.avi
lame audio.wav audio.mp3
Explain:
mplayer - advanced media player
-ao (audio output) - select audio output
pcm - audio output will be redirected to WAV PCM file (defaults to audiodump.wav)
:file=audio.wav - override defaults and name file to audio.wav
-vo (video output) -select video output

lame - (LAME Ain't Mp3 Encoder) - mp3 encoder (not sure if installed by default, may be you'll need to install it via apt-get install lame)


And don't hesistate to use --help option of above commands and google.
 

The Following User Says Thank You to divan For This Useful Post:
Posts: 147 | Thanked: 150 times | Joined on Aug 2010 @ Finland
#9
Whenever I want some sound from a video (file or youtube), I just fire up some audio editing software (audacity, goldwave) and set the computers microphone to be "Stero Mix", which on my computer means the sound signal sent to speakers. Then I just hit record, let the video play, and finally crop the sound file & save it. I haven't got system sounds on, that could sometimes mess it

On the N900 you can use Recaller to the same effect; set it to record system sounds and play whatever it is you want to play. This way I recorded the cheat-sound from Mahjong-game for use as an incoming email alert.

The advantage of this method is that if you can play the media, you will be able to record it too without hunting for some format-specific editing software, though the disadvantage is quite obvious; you have to wait as long as it takes to play the sound you want at normal speed.
 
Posts: 194 | Thanked: 87 times | Joined on Jun 2010
#10
use recaller
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:32.