Hola Estoy intentado pasar unos vídeos de youtube a divx para poder verlos en el móvil. He conseguido pasarlos a mpeg4 (Divx) y que el fourcc sea DX50 para que me los reconozca, pero el sonido no me lo reconoce ni el totem ni el móvil, en cambio en mplayer se oye perfectamente: Yo ejecuto esto:
mencoder -of avi -oac lavc -ovc lavc -lavcopts acodec=mp2:abitrate=24:vcodec=mpeg4:vbitrate=192 -ffourcc DX50 -af channels=1:resample=22050:1:2 -ofps 12 /input.flv -o /output.avi Y mplayer -identify me devuelve esto: MPlayer 1.0rc2-4.2.1-DFSG-free (C) 2000-2007 MPlayer Team CPU: AMD Athlon(tm) MP processor (Family: 6, Model: 6, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled with runtime CPU detection. 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 Desktop/th5.avi. AVI file format detected. ID_VIDEO_ID=0 [aviheader] Video stream found, -vid 0 ID_AUDIO_ID=1 [aviheader] Audio stream found, -aid 1 VIDEO: [DX50] 320x239 24bpp 12.000 fps 190.3 kbps (23.2 kbyte/s) Clip info: Software: MEncoder dev-SVN-rUNKNOWN-4.1.2 ID_CLIP_INFO_NAME0=Software ID_CLIP_INFO_VALUE0=MEncoder dev-SVN-rUNKNOWN-4.1.2 ID_CLIP_INFO_N=1 ID_FILENAME=Desktop/th5.avi ID_DEMUXER=avi ID_VIDEO_FORMAT=DX50 ID_VIDEO_BITRATE=190280 ID_VIDEO_WIDTH=320 ID_VIDEO_HEIGHT=239 ID_VIDEO_FPS=12.000 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_FORMAT=80 ID_AUDIO_BITRATE=152 ID_AUDIO_RATE=0 ID_AUDIO_NCH=0 ID_LENGTH=291.75 open: No such file or directory [MGA] Couldn't open: /dev/mga_vid open: No such file or directory [MGA] Couldn't open: /dev/mga_vid [VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5. [VO_3DFX] Unable to open /dev/3dfx. ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== ID_VIDEO_CODEC=ffodivx ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 22050 Hz, 2 ch, s16le, 24.0 kbit/3.40% (ratio: 3000->88200) ID_AUDIO_BITRATE=24000 ID_AUDIO_RATE=22050 ID_AUDIO_NCH=2 Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) ID_AUDIO_CODEC=mp3 Starting playback... VDec: vo config request - 320 x 239 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.34:1 - prescaling to correct movie aspect. ID_VIDEO_ASPECT=1.3389 VO: [xv] 320x239 => 320x239 Planar YV12 A:4036.7 V: 28.3 A-V:4008.385 ct: 2.833 341/341 2% 0% 1.2% 2 0 Exiting... (Quit) Y un video que si se ve y se oye en totem y en el movil perfectamente: MPlayer 1.0rc2-4.2.1-DFSG-free (C) 2000-2007 MPlayer Team CPU: AMD Athlon(tm) MP processor (Family: 6, Model: 6, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled with runtime CPU detection. 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 web-server/toconvert/Demo1.avi. AVI file format detected. ID_VIDEO_ID=0 [aviheader] Video stream found, -vid 0 ID_AUDIO_ID=1 [aviheader] Audio stream found, -aid 1 AVI: ODML: Building ODML index (2 superindexchunks). VIDEO: [DX50] 208x114 12bpp 14.985 fps 176.1 kbps (21.5 kbyte/s) ID_FILENAME=web-server/toconvert/Demo1.avi ID_DEMUXER=avi ID_VIDEO_FORMAT=DX50 ID_VIDEO_BITRATE=176112 ID_VIDEO_WIDTH=208 ID_VIDEO_HEIGHT=114 ID_VIDEO_FPS=14.985 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_FORMAT=85 ID_AUDIO_BITRATE=24000 ID_AUDIO_RATE=0 ID_AUDIO_NCH=0 ID_LENGTH=20.02 open: No such file or directory [MGA] Couldn't open: /dev/mga_vid open: No such file or directory [MGA] Couldn't open: /dev/mga_vid [VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5. [VO_3DFX] Unable to open /dev/3dfx. ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== ID_VIDEO_CODEC=ffodivx ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 22050 Hz, 2 ch, s16le, 24.0 kbit/3.40% (ratio: 3000->88200) ID_AUDIO_BITRATE=24000 ID_AUDIO_RATE=22050 ID_AUDIO_NCH=2 Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) ID_AUDIO_CODEC=mp3 Starting playback... VDec: vo config request - 208 x 114 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.82:1 - prescaling to correct movie aspect. ID_VIDEO_ASPECT=1.8246 VO: [xv] 208x114 => 208x114 Planar YV12 A: 20.0 V: 20.0 A-V: 0.002 ct: 0.000 300/300 1% 0% 1.5% 1 0 Exiting... (End of file) Yo solo veo diferencia en ID_AUDIO_FORMAT, que uno es 80 y otro 85 pero no se a que se refiere eso... y no como se puede cambiar. -- Usuario Linux #437264 Maquina Linux #354674 - - - http://pushthebutton.es

