Convertir rmvb a avi [ubuntu]

RMVB (Real Media Variable Bitrate).

sudo apt-get install mplayer mencoder librte librte-dev
mencoder -oac mp3lame -lameopts cbr=128 -ovc xvid -xvidencopts bitrate=1200 video_input.rmvb -o video_output.avi

Relacionado: Como convertir .avi a .rmvb

25 Responses to “Convertir rmvb a avi [ubuntu]”


  1. 1 jose562 November 10, 2008 at 05:55

    Muchas, muchas, muchisimas gracias, voy a probarlo, no sabes el tiempo que llevaba buscando esto :D

  2. 2 Paulo December 2, 2008 at 20:42

    no me funciona,
    File not found: ‘p-Sawtw05.rmvb’
    Failed to open p-Sawtw05.rmvb.
    Cannot open file/device.

    ese es el error q me sale… q hacer??? garcias!

  3. 3 Paulo December 2, 2008 at 20:49

    ahora sale esto: :S

    MEncoder 2:1.0~rc2-0ubuntu17 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Celeron(R) CPU 560 @ 2.13GHz (Family: 6, Model: 22, Stepping: 1)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection.
    success: format: 0 data: 0×0 – 0×13296f10
    REAL file format detected.
    Stream description: Audio Stream
    Stream mimetype: audio/x-pn-realaudio
    [real] Audio stream found, -aid 0
    Stream description: Video Stream
    Stream mimetype: video/x-pn-realvideo
    [real] Video stream found, -vid 1
    Stream mimetype: logical-fileinfo
    VIDEO: [RV40] 592×320 24bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:11 fourcc:0×30345652 size:592×320 fps:30.00 ftime:=0.0333
    ==========================================================================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 44100 Hz, 2 ch, s16le, 64.1 kbit/4.54% (ratio: 8010->176400)
    Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
    ==========================================================================
    xvid: using library version 1.1.2 (build xvid-1.1.2)
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    ==========================================================================
    Opening video decoder: [realvid] RealVideo decoder
    Error: /usr/lib/codecs/drvc.so: cannot open shared object file: No such file or directory
    Win32 LoadLibrary failed to load: drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
    Error loading dll
    ERROR: Could not open required DirectShow codec drvc.so.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvid] RealVideo decoder
    Win32 LoadLibrary failed to load: drvc.dll, /usr/lib/win32/drvc.dll, /usr/local/lib/win32/drvc.dll
    Error loading dll
    ERROR: Could not open required DirectShow codec drvc.dll.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvid] RealVideo decoder
    Error: /usr/lib/codecs/drv4.so.6.0: cannot open shared object file: No such file or directory
    Win32 LoadLibrary failed to load: drv4.so.6.0, /usr/lib/win32/drv4.so.6.0, /usr/local/lib/win32/drv4.so.6.0
    Error loading dll
    ERROR: Could not open required DirectShow codec drv4.so.6.0.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvid] RealVideo decoder
    Win32 LoadLibrary failed to load: drv43260.dll, /usr/lib/win32/drv43260.dll, /usr/local/lib/win32/drv43260.dll
    Error loading dll
    ERROR: Could not open required DirectShow codec drv43260.dll.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvid] RealVideo decoder
    Error: /usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
    Win32 LoadLibrary failed to load: drvc.bundle/Contents/MacOS/drvc, /usr/lib/win32/drvc.bundle/Contents/MacOS/drvc, /usr/local/lib/win32/drvc.bundle/Contents/MacOS/drvc
    Error loading dll
    ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Cannot find codec matching selected -vo and video format 0×30345652.
    Read DOCS/HTML/en/codecs.html!

  4. 4 Nico December 3, 2008 at 00:31

    Paulo prueba de esta manera.
    mencoder FILE1.rm -ovc lavc -oac pcm -o FILE2.avi

  5. 5 Belkis Martin April 28, 2009 at 00:29

    Gracias gracias gracias!!

  6. 10 sweetdream May 22, 2009 at 10:40

    nico, seria una maravilla si nos ayudas a encontra runa manera para pasar de .avi a .rmvb… tambn he buskado mucho, de hecho intente con un programa de windwos ejecuntando con wine pero no pude…

  7. 11 Nico May 23, 2009 at 18:55

    Bueno creo haberlo resuelto (no tu problema con las screenlets sweetdream!) sino el de convertir .avi a rmvb.

    http://phyx.wordpress.com/2009/05/23/como-convertir-avi-a-rmvb-ubuntu/

  8. 12 TheSeptimus June 1, 2009 at 13:40

    ¿es que nadie usa mencoder aquí? :S

  9. 13 Richard June 17, 2009 at 02:44

    Capo: tengo unas peli en rmvb y las quiero ver en el DVD, como ostia hago. gracias

  10. 14 Alejandro July 23, 2009 at 02:16

    Hola amigo, necesito saber como convertir de RMVB a DVD. Muy bueno el blog y adelante. Saludos cordiales.

    • 15 Nico July 23, 2009 at 09:38

      Entonces estariamos hablando de convertir rmvb a un xvid/.avi no? (solo un ejemplo) puede que el comando no funcione!!!!.

      mencoder file.rmvb -oac mp3lame -lameopts preset=128 \ -ovc lavc -lavcopts vcodec=xvid -ofps 25 -of avi -o file.avi

      De esa manera podriamos grabarlo a un CD o DVD y reproducirlo en la mayoría de los reproductores de DVD compatibles con xvid/divx.

      Verè como se puede hacer paso por paso aunque el comando es semejante al de este post.Slds.

      • 16 Pedr0 July 23, 2009 at 12:08

        DvD no es formato en este caso creo que como bien comentas aqui solo hace falta quemar el .avi-xvid a un dvd y listo o estoy en un error?

  11. 17 Hound August 2, 2009 at 05:31

    En ubuntu 9.04 no me apareció “librte” sino “librte1″, probé a instalar la segunda y al parecer todo funcionó bien, aún no convierto ninguna película completa, pero si unos minutos de una.

    Gracias.

  12. 18 Netom August 13, 2009 at 08:40

    En Ubuntu Jaunty amd64 no aparece “librte” ni nada parecido.
    Cuando ejecuto el comando “mencoder” con los parámetros necesarios para convertir de .rmvb a .avi aparecen varios errores; entre otros:

    Error: /usr/lib/codecs/drvc.so: cannot open shared object file:…

    Investigando un poco encontré una liga que me permitió descargar algunos codecs.

    http://www.mplayerhq.hu/design7/dload.html#binary_codecs

    Descargué el paquete que dice “Linux AMD64 20071007″ y copié los archivos al directorio “/usr/lib/codecs/” (usando sudo).

    La conversión ahora funciona… o al menos logré convertir un 5% de una película completa.

    • 19 Netom August 13, 2009 at 09:02

      Una manera más fácil de instalar los codecs es:

      sudo apt-get install non-free-codecs

      (Es necesario tener habilitados los repositorios de Medibuntu)

  13. 20 Ortrag September 2, 2009 at 06:23

    Hola a mi me salen estos errores ya intente el los comandos que pusieron anteriormente soy nuevo en esto de linux me podrian ayudar?

    ortrag@OrtragBig:~$ mencoder hang.rmvb -ovc lavc -oac pcm -o FILE2.avi
    MEncoder 2:1.0~rc2-0ubuntu19 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Core(TM)2 CPU T5200 @ 1.60GHz (Family: 6, Model: 15, Stepping: 6)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection.
    success: format: 0 data: 0×0 – 0×1467c56d
    REAL file format detected.
    Stream description: Audio Stream
    Stream mimetype: audio/x-pn-realaudio
    [real] Audio stream found, -aid 0
    Stream description: Video Stream
    Stream mimetype: video/x-pn-realvideo
    [real] Video stream found, -vid 1
    Stream mimetype: logical-fileinfo
    VIDEO: [RV40] 672×272 24bpp 23.000 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:11 fourcc:0×30345652 size:672×272 fps:23.00 ftime:=0.0435
    ==========================================================================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 44100 Hz, 2 ch, s16le, 64.1 kbit/4.54% (ratio: 8010->176400)
    Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
    ==========================================================================
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    ==========================================================================
    Opening video decoder: [realvid] RealVideo decoder
    Error: /usr/lib/codecs/drvc.so: cannot open shared object file: No such file or directory
    Win32 LoadLibrary failed to load: drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
    Error loading dll
    ERROR: Could not open required DirectShow codec drvc.so.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvid] RealVideo decoder
    Win32 LoadLibrary failed to load: drvc.dll, /usr/lib/win32/drvc.dll, /usr/local/lib/win32/drvc.dll
    Error loading dll
    ERROR: Could not open required DirectShow codec drvc.dll.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvid] RealVideo decoder
    Error: /usr/lib/codecs/drv4.so.6.0: cannot open shared object file: No such file or directory
    Win32 LoadLibrary failed to load: drv4.so.6.0, /usr/lib/win32/drv4.so.6.0, /usr/local/lib/win32/drv4.so.6.0
    Error loading dll
    ERROR: Could not open required DirectShow codec drv4.so.6.0.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvid] RealVideo decoder
    Win32 LoadLibrary failed to load: drv43260.dll, /usr/lib/win32/drv43260.dll, /usr/local/lib/win32/drv43260.dll
    Error loading dll
    ERROR: Could not open required DirectShow codec drv43260.dll.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Opening video decoder: [realvid] RealVideo decoder
    Error: /usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
    Win32 LoadLibrary failed to load: drvc.bundle/Contents/MacOS/drvc, /usr/lib/win32/drvc.bundle/Contents/MacOS/drvc, /usr/local/lib/win32/drvc.bundle/Contents/MacOS/drvc
    Error loading dll
    ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
    Read the RealVideo section of the DOCS!
    VDecoder init failed :(
    Cannot find codec matching selected -vo and video format 0×30345652.
    Read DOCS/HTML/en/codecs.html!

  14. 21 Ortrag September 2, 2009 at 06:58

    Ya pude codificar necesitaba instalar los non free codecs. Disculpen

  15. 22 profe September 5, 2009 at 02:10

    Si quieren convertir de .rmvb a .avi, y con la misma calidad, el script debe ser un poco exigente.
    El que les paso tiene algunas cosillas para lograr una mejor estabilidad en los players, tanto de mesa, como los de soft en pc.

    mencoder.exe “C:\Users\adm\Desktop\Psychoville-S01E01.rmvb” -ss 00:00:00 -noskip -oac mp3lame -lameopts mode=3:cbr:vol=7:padding=1 -ovc xvid -xvidencopts max_bframes=2:me_quality=6:trellis:hq_ac:vhq=2:bvhq=1:qpel:closed_gop:chroma_opt:profile=dxnhtpal:bitrate=1150 -ofps 25 -o “C:\psico4.avi”
    pause

  16. 23 profe September 10, 2009 at 04:38

    Corrijo porque el posteo anterior no salio completo, jeje… saquen la barrita /
    Vá todo en una sola línea.

    mencoder “C:\Borat.rmvb” -oac mp3lame -lameopts mode=3:cbr:vol=7:padding=1 -sws 9 -ovc xvid -xvidencopts max_bframes=2:me_quality=6:trellis:hq_ac:vhq=2:bvhq=1:qpel: / closed_gop:chroma_opt:profile=dxnhtpal:bitrate=1150 -ofps 24000/1001 / -o “C:\borat.avi”
    pause

  17. 24 cristian November 1, 2009 at 22:36

    ey men me sirve y todo pero sabes, el dvd de sobremesa solo me reconoce las pelis que transformo a avi, que anteriormente eran rmbv y tenian:
    - 640 x 256
    - 24 frames per second
    Pero al querer tranformar peliculas como esta:
    - 852 x 480
    - 26 frames per second
    con el mismo comando que usa en las anteriores no me sirve, osea las tranforma y todo, pero el dvd me dice: “frecuencia de video no soportada”
    que cambios tengo que hacer al comando para que se adecue a esa peli en particular, tendria que cambiar esto: -ovc xvid -xvidencopts bitrate=1200, pero que valor? digo, para que mantenga la proporcion del video, es decir; si la peli es de 640×256 y en el comando bitrate=1200 queda bien, que valor cambio con el otro tipo de pelicula, la de 854×480?…….disminuyo el valor o lo aumento?….la verdad no se….

    • 25 Nico November 1, 2009 at 23:19

      Hola cristian: Aspect ratio (854:480) para la mayoria de los dvds movies.Ok, prueba: 600, 1000, etc..

      Aqui te pongo algunas lecturas:

      -oac: output audio codec
      mp3lame: library used for audio encoding
      -lameopts: options used along with lame
      preset: values for audio bitrate, you can set 64, 128, 224, etc
      -ovc: ouput video codec
      lavc: library used for video encoding
      -lavcopts: options used along with lavc
      vcodec: video codec, you can use mpeg1video, mpeg4, etc
      vbitrate: video bitrate, you can set 600, 1000, 1200, etc
      -ofps: outpt frame per second ( fps)
      -of: output file container type
      -o: output filename

      Interesante tu pregunta!.En estos momentos no tengo tiempo para probar pero cuentame como te va despues de cambiar (1200).

      Slds y gracias por comentar.


Leave a Reply