Difference between revisions of "Converting Video For DIVX Devices"

From Hack Sphere Labs Wiki
Jump to: navigation, search
(divxconverter)
(mencode gui's)
Line 4: Line 4:
 
  sudo pacman -Sv mplayer
 
  sudo pacman -Sv mplayer
  
==mencode gui's==
+
==mencode==
 +
*http://en.gentoo-wiki.com/wiki/Mencoder
 +
 
 +
Quoted from Gentoo Wiki:
 +
 
 +
Before jumping into details, let's look at the basics for re-encoding a video file from a format MPlayer can play to an MPEG4. Here is a very simple example:
 +
 
 +
mencoder movie.wmv -o movie.avi -ovc lavc -oac lavc
 +
 
 +
Here's an explanation each option being passed:
 +
 
 +
* '''movie.wmv''' the filename of the original movie file you want to re-encode. It can be any file format that mplayer can play (mplayer can play almost anything).
 +
 
 +
* '''-o <filename>''' the filename to save the encoded file to. On older version of MPlayer, if you do not provide an argument, mencoder will output to "test.avi".
 +
 
 +
* '''-ovc <video codec>''' OVC stands for 'output video codec'. This is the library you want to use to encode the video.
 +
 
 +
* '''-oac <audio codec>''' OAC stands for 'output audio codec'. This is the library you want to encode the audio portion with.
 +
 
 +
 
 +
Believe it or not -- that's about all you need to know about re-encoding a file. The example above will encode the video to DivX (mpeg4) video and the audio track to mp2.
 +
 
 +
If you want to see how another file has been encoded, just run {{Codeline|midentify movie.avi}}. You can also run {{Codeline|file movie.avi}} on the new file for a more basic description. Or, if you have {{Package|media-video/transcode|direct=yes}} installed, you can use {{Codeline|tcprobe -i movie.avi}} as well.
 +
 
 
===mtvcgui===
 
===mtvcgui===
 +
*gui
 
  yaourt mtvcgui
 
  yaourt mtvcgui
 
*More for capture devices, no divx out of the box, looks like you can edit an ini (http://easycap.blogspot.com/p/mtvcgui.html)
 
*More for capture devices, no divx out of the box, looks like you can edit an ini (http://easycap.blogspot.com/p/mtvcgui.html)
  
 
===divxconverter===
 
===divxconverter===
 +
*gui
 
  yaourt divxconverter
 
  yaourt divxconverter
 
*run with
 
*run with
 
  python2 /usr/bin/divxc
 
  python2 /usr/bin/divxc
  
===More===
+
===More GUIs===
 
*http://www.mplayerhq.hu/design7/projects.html#mencoder_frontends
 
*http://www.mplayerhq.hu/design7/projects.html#mencoder_frontends
  

Revision as of 09:25, 25 March 2013

archlinux

pacman -S dvdrip libdv xvidcore
yaourt divx4linux
sudo pacman -Sv mplayer

mencode

Quoted from Gentoo Wiki:

Before jumping into details, let's look at the basics for re-encoding a video file from a format MPlayer can play to an MPEG4. Here is a very simple example:

mencoder movie.wmv -o movie.avi -ovc lavc -oac lavc

Here's an explanation each option being passed:

  • movie.wmv the filename of the original movie file you want to re-encode. It can be any file format that mplayer can play (mplayer can play almost anything).
  • -o <filename> the filename to save the encoded file to. On older version of MPlayer, if you do not provide an argument, mencoder will output to "test.avi".
  • -ovc <video codec> OVC stands for 'output video codec'. This is the library you want to use to encode the video.
  • -oac <audio codec> OAC stands for 'output audio codec'. This is the library you want to encode the audio portion with.


Believe it or not -- that's about all you need to know about re-encoding a file. The example above will encode the video to DivX (mpeg4) video and the audio track to mp2.

If you want to see how another file has been encoded, just run midentify movie.avi. You can also run file movie.avi on the new file for a more basic description. Or, if you have Template:Package installed, you can use tcprobe -i movie.avi as well.

mtvcgui

  • gui
yaourt mtvcgui

divxconverter

  • gui
yaourt divxconverter
  • run with
python2 /usr/bin/divxc

More GUIs

Testing

  • Works (Equinox took 2 min to load a listing of one file, then would play)
  • To high of bitrate (source file smaller then non source)
  • Just testing but for what I am doing I do not think I need some of the command line options
ffmpeg -i DEFCON\ 20\:\ Owned\ in\ 60\ Seconds\:\ From\ Network\ Guest\ to\ Windows\ Domain\ Admin.webm -f avi -vcodec mpeg4 -b 1500k -s 648x480 -ab 128k -vtag divx output.avi