Opened 9 years ago

Closed 9 years ago

#4223 closed defect (invalid)

FFmpeg [alsa @ 0x85bd960] ALSA buffer xrun SOLUCIONADO SOLVED

Reported by: José Guillermo González Pérez Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Perdonen si no les escribo en inglés a ustedes esque no sé inglés muy bien y no quiero complicarme a ustedes.

No sé si esté permitido pero les voy a decir que el MEJOR PROGRAMA de MULTIMEDIA en LINUX es FFMPEG y AVCONV qué excelentes programas han hecho y los felicito muy MUY BUENOS PROGRAMAS para convertir,para grabar,cortar,pegar,editar,imágenes. Bueno lo tiene todo muy completo MUCHAS GRACIAS POR ESE PROGRAMA.

Bueno ahora sí la orden para grabar en mi caso es la siguiente:

ffmpeg -f x11grab -s 1024x600 -i :0.0 -f alsa -i hw:0 -qscale 0 -frame_size 50 -y Escritorio/memo.wmv

SEA CUAL SEA EL FORMATO DE SALIDA me sale el error en .AVI sale en .WMV .MKV .MP4 no sé de hecho sale en todos los formatos que yo he probado para que graben.

Y el error que me arroja a cada momento es :

[alsa @ 0x85bd960] ALSA buffer xrun

Y cuando me sale eso en la consola es obvio que el AUDIO de mi MICRÓFONO no graba y se escuchan PITIDOS o se escucha mal y CORTADO.

Entonces cómo hago para solucionar ese error ¿QUÉ TENGO QUE COMPILAR?,¿QUÉ DEBO CAMBIAR?.

Gracias y esto es lo que me arroja la terminal COMPLETO:

anaperez@anaperez-Compaq-Mini-CQ10-600:~$

ffmpeg -f x11grab -s 1024x600 -i :0.0 -f alsa -i hw:0 -ac 1 -qscale 0 -frame_size 50 -y Escritorio/memo.wmv

ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers

built on Apr 26 2014 18:47:56 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)

libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 53. 5.103 / 53. 5.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100

[x11grab @ 0x8db9e80] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1024 height: 600
[x11grab @ 0x8db9e80] shared memory extension found
[x11grab @ 0x8db9e80] Estimating duration from bitrate, this may be inaccurate
Input #0, x11grab, from ':0.0':

Duration: N/A, start: 1420396665.176938, bitrate: 589234 kb/s

Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1024x600, 589234 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc

[alsa @ 0x8de3980] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'hw:0':

Duration: N/A, start: 1420396665.242909, bitrate: 1536 kb/s

Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s

Please use -q:a or -q:v, -qscale is ambiguous
Output #0, asf, to 'Escritorio/memo.wmv':

Metadata:

WM/EncodingSettings: Lavf54.63.104
Stream #0:0: Video: msmpeg4v3 (MP43 / 0x3334504D), yuv420p, 1024x600, q=2-31, 200 kb/s, 1k tbn, 29.97 tbc
Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, mono, fltp, 128 kb/s

Stream mapping:

Stream #0:0 -> #0:0 (rawvideo -> msmpeg4)
Stream #1:0 -> #0:1 (pcm_s16le -> wmav2)

Press [q] to stop, ? for help
[msmpeg4 @ 0x8deeae0] warning, clipping 1 dct coefficients to -127..127

Last message repeated 97 times

frame= 8 fps=0.0 q=0.0 size= 651kB time=00:00:00.26 bitrate=19964.1kbits/s warning, clipping 1 dct coefficients to -127..127
[msmpeg4 @ 0x8deeae0] warning, clipping 1 dct coefficients to -127..127

Last message repeated 18 times

[alsa @ 0x8de3980] ALSA buffer xrun.

frame= 18 fps= 17 q=0.0 size= 1098kB time=00:00:00.60 bitrate=14960.4kbits/s warning, clipping 1 dct coefficients to -127..127
[msmpeg4 @ 0x8deeae0] warning, clipping 1 dct coefficients to -127..127

Last message repeated 73 times

frame= 31 fps= 19 q=0.0 size= 1748kB time=00:00:01.05 bitrate=13569.7kbits/s ALSA buffer xrun.
[msmpeg4 @ 0x8deeae0] warning, clipping 1 dct coefficients to -127..127

Last message repeated 65 times

frame= 43 fps= 20 q=0.0 size= 2423kB time=00:00:01.72 bitrate=11484.7kbits/s warning, clipping 1 dct coefficients to -127..127
[msmpeg4 @ 0x8deeae0] warning, clipping 1 dct coefficients to -127..127

Last message repeated 18 times

[alsa @ 0x8de3980] ALSA buffer xrun.

[msmpeg4 @ 0x8deeae0] warning, clipping 1 dct coefficients to -127..127

Last message repeated 32 times

frame= 55 fps= 21 q=0.0 size= 2688kB time=00:00:01.83 bitrate=12000.9kbits/s warning, clipping 1 dct coefficients to -127..127
[msmpeg4 @ 0x8deeae0] warning, clipping 1 dct coefficients to -127..127

Last message repeated 11 times

warning, clipping 1 dct coefficients to -127..127
[msmpeg4 @ 0x8deeae0] warning, clipping 1 dct coefficients to -127..127

Last message repeated 11 times

frame= 57 fps= 21 q=0.0 Lsize= 3070kB time=00:00:02.54 bitrate=9899.8kbits/s dup=23 drop=0
END

Estoy usando LUBUNTU 14.04

Y de casualidad tengo instalado el LUBUNTU 12.10 y me funciona TODO PERFECTO no me sale ese error DE [alsa @ 0x85bd960] ALSA buffer xrun

Espero que me puedan ayudar y gracias MUCHÍSIMAS GRACIAS POR ESE PROGRAMAZO QUE HICIERON FFMPEG Y AVCONV y lamento la situación que esos dos proyectos están pasando.

Change History (7)

comment:1 by Clément Bœsch, 9 years ago

Resolution: needs_more_info
Status: newclosed

Désolé, on ne comprend que l'anglais ici. Ce serait bien de tester avec git/master aussi, 1.2 est trop vieux.

Last edited 9 years ago by Clément Bœsch (previous) (diff)

comment:2 by James, 9 years ago

Priority: importantnormal

ffmpeg 1.2.4 es un poco viejo. Considera instalar ffmpeg desde este PPA https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media ya que ofrece la última versión, y prueba si eso ayuda.
Otra opción es que compiles ffmpeg git master por tu cuenta.

De todos modos, es probable que el problema sea ALSA y no ffmpeg.


ffmepg 1.2.4 is old by now. Consider installing ffmpeg using this PPA instead: https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media which contains the latest version, and see if that helps.
Alternatively, compile ffmpeg git master from source yourself.

Nonetheless, the problem may be ALSA and not ffmpeg.

comment:3 by José Guillermo González Pérez, 9 years ago

Estoy instalando y actualizando el FFMPEG gracias por la ayuda pero sí se me hace que el problema es de ALSA y no FFMPEG o AVCONV aunque seguiré intentado haber qué.

comment:4 by José Guillermo González Pérez, 9 years ago

Priority: normalimportant
Resolution: needs_more_info
Status: closedreopened
Summary: FFmpeg [alsa @ 0x85bd960] ALSA buffer xrun when i record my desktop or webcamFFmpeg [alsa @ 0x85bd960] ALSA buffer xrun SOLUCIONADO SOLVED

in reply to:  description comment:5 by José Guillermo González Pérez, 9 years ago

Status: reopenedopen

Replying to joseguillermo753:

SOLUCIONADO (SOLVED)
MIREN LA COSA FUE INTENTAR Y BAJARLE EL RADIO OSEA EL -R Y ME GRABA BIEN y ya no sale LO DE "ALSA BUFFER XRUN".

MIREN ES MUY FÁCIL Y ME GRABA PERFECTO Y EL AUDIO IGUAL SIN CORTES NI NADA :) :

EL 11 LO PUEDEN BAJAR OSEA PONERLE EJEMPLO 9 U 8 O 7 O 6 ...........

Lo descubrí viendo que en WINDOWS TODOS los videos DE PRUEBA me grababan o se veían LENTO como a 11 FPS o menos.

Y Problema solucionado Y LA ACTUALIZACIÓN OSEA ACTUALIZARLO ESTUVO DE PERLAS EXCELENTE Y FELIZ AHORA SÍ PUEDO HACER VIDEO TUTORIALES EXCELENTES ;) GRACIAS.

ffmpeg -f x11grab -r 11 -s 1024x600 -i :0.0 -f alsa -i hw:0 -acodec mp2 -q:v 0 "Escritorio/Video?.avi"

Last edited 9 years ago by José Guillermo González Pérez (previous) (diff)

comment:6 by José Guillermo González Pérez, 9 years ago

Last edited 9 years ago by José Guillermo González Pérez (previous) (diff)

comment:7 by Michael Niedermayer, 9 years ago

Priority: importantnormal
Resolution: invalid
Status: openclosed

This bug tracker is english only, also i assume the issue has been solved

Note: See TracTickets for help on using tickets.