Προς το περιεχόμενο

amr to ogg


DIMITRISG

Προτεινόμενες αναρτήσεις

Δεν καταφερα να το μετατρεψω :

>[dimitris@localhost Documents]$ ffmpeg -i Enreg000.amr Enreg01.ogg
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
 configuration: --prefix=/usr --enable-shared --libdir=/usr/lib --shlibdir=/usr/lib --incdir=/usr/include --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --enable-x11grab --enable-swscale --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-libx264                                                          
 libavutil     49.15. 0 / 49.15. 0                                                      
 libavcodec    52.20. 0 / 52.20. 0                                                      
 libavformat   52.31. 0 / 52.31. 0                                                      
 libavdevice   52. 1. 0 / 52. 1. 0                                                      
 libswscale     0. 7. 1 /  0. 7. 1                                                      
 libpostproc   51. 2. 0 / 51. 2. 0                                                      
 built on Mar 11 2009 11:16:16, gcc: 4.3.2                                              
Input #0, amr, from 'Enreg000.amr':                                                      
 Duration: N/A, bitrate: N/A                                                            
   Stream #0.0: Audio: samr / 0x726D6173, 8000 Hz, mono, s16                            
Output #0, ogg, to 'Enreg01.ogg':                                                        
   Stream #0.0: Audio: flac, 8000 Hz, mono, s16, 64 kb/s                                
Stream mapping:                                                                          
 Stream #0.0 -> #0.0                                                                    
Unsupported codec (id=73728) for input stream #0.0                                       
[dimitris@localhost Documents]$

 

Στον mplayer παιζει κανονικά :

>[dimitris@localhost Documents]$ mplayer Enreg000.amr
MPlayer SVN-1.rc2.23.r28791.2plf2009.1-4.3.2 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Enreg000.amr.
libavformat file format detected.
[lavf] Audio stream found, -aid 0
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 8000 Hz, 1 ch, s16le, 0.0 kbit/0.00% (ratio: 0->16000)
Selected audio codec: [ffamrnb] afm: ffmpeg (AMR Narrowband)
==========================================================================
[pulse] working around probably broken pause functionality,
       see http://www.pulseaudio.org/ticket/440
AO: [pulse] 8000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   2.0 (01.9) of 0.0 (unknown)  0.3%
Exiting... (Quit)
[dimitris@localhost Documents]$

 

---------- Το μήνυμα προστέθηκε στις 20:19 ----------

 

Μου βγαζει αυτο το λάθος :

>[dimitris@localhost Documents]$ mplayer Enreg01.ogg
MPlayer SVN-1.rc2.23.r28791.2plf2009.1-4.3.2 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Enreg01.ogg.
Seek failed


Exiting... (End of file)
[dimitris@localhost Documents]$

Συνδέστε για να σχολιάσετε
Κοινοποίηση σε άλλες σελίδες

Δεν μπορεσα με τα script μπερδευτικα

 

Βρηκα αυτον τον τρόπο :

 

[dimitris@localhost Documents]$ mplayer -ao pcm:file=Enreg001.ogg Enreg000.amr

MPlayer SVN-1.rc2.23.r28791.2plf2009.1-4.3.2 © 2000-2009 MPlayer Team

mplayer: could not connect to socket

mplayer: No such file or directory

Failed to open LIRC support. You will not be able to use your remote control.

 

Playing Enreg000.amr.

libavformat file format detected.

[lavf] Audio stream found, -aid 0

==========================================================================

Trying to force audio codec driver family libmad...

Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders

AUDIO: 8000 Hz, 1 ch, s16le, 0.0 kbit/0.00% (ratio: 0->16000)

Selected audio codec: [ffamrnb] afm: ffmpeg (AMR Narrowband)

==========================================================================

[AO PCM] File: Enreg001.ogg (WAVE)

PCM: Samplerate: 8000Hz Channels: Mono 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] 8000Hz 1ch s16le (2 bytes per sample)

Video: no video

Starting playback...

A:1464.8 (24:24.8) of 0.0 (unknown) 0.9%

 

Exiting... (End of file)

[dimitris@localhost Documents]$

 

Αλλα δεν το μετατρεπει σε ogg αλλά σε wav

[dimitris@localhost Documents]$ ls -l En*

-rwxr-xr-x 1 dimitris dimitris 1171846 2009-06-08 09:04 Enreg000.amr*

-rw-r--r-- 1 dimitris dimitris 23436844 2009-06-10 08:54 Enreg001.ogg

[dimitris@localhost Documents]$

 

 

Οπότε το μετετρεψα σε ogg με ffmpeg

 

[dimitris@localhost Documents]$ ffmpeg -i Enreg001.wav -acodec vorbis -aq 60 -ac 2 Enreg001.ogg

FFmpeg version 0.5, Copyright © 2000-2009 Fabrice Bellard, et al.

configuration: --prefix=/usr --enable-shared --libdir=/usr/lib --shlibdir=/usr/lib --incdir=/usr/include --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --enable-x11grab --enable-swscale --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-libx264

libavutil 49.15. 0 / 49.15. 0

libavcodec 52.20. 0 / 52.20. 0

libavformat 52.31. 0 / 52.31. 0

libavdevice 52. 1. 0 / 52. 1. 0

libswscale 0. 7. 1 / 0. 7. 1

libpostproc 51. 2. 0 / 51. 2. 0

built on Mar 11 2009 11:16:16, gcc: 4.3.2

Input #0, wav, from 'Enreg001.wav':

Duration: 00:24:24.80, bitrate: 128 kb/s

Stream #0.0: Audio: pcm_s16le, 8000 Hz, mono, s16, 128 kb/s

File 'Enreg001.ogg' already exists. Overwrite ? [y/N] y

Output #0, ogg, to 'Enreg001.ogg':

Stream #0.0: Audio: vorbis, 8000 Hz, stereo, s16, 64 kb/s

Stream mapping:

Stream #0.0 -> #0.0

Press [q] to stop encoding

size= 6342kB time=1464.70 bitrate= 35.5kbits/s

video:0kB audio:6007kB global headers:3kB muxing overhead 5.513103%

[dimitris@localhost Documents]$ ls -l En*-rwxr-xr-x 1 dimitris dimitris 1171846 2009-06-08 09:04 Enreg000.amr*

-rw-r--r-- 1 dimitris dimitris 6493767 2009-06-10 09:10 Enreg001.ogg

-rw-r--r-- 1 dimitris dimitris 23436844 2009-06-10 08:54 Enreg001.wav

[dimitris@localhost Documents]$

Συνδέστε για να σχολιάσετε
Κοινοποίηση σε άλλες σελίδες

Αρχειοθετημένο

Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.

  • Δημιουργία νέου...