http://programmer-art.org/projects/arista-transcoder
It uses gstreamer engine to transcode your media files. Ubuntu provided version of arista (0.9.3+repack-0ubuntu5) contents a preset for Sony Walkman:
/usr/share/arista/presets/nwz-818.xml
which can be simply extended with any gstreamer based preset.
Lets say, I want to have 2-pass encoding with 400kbps bit-rate: Copy the device file nwz-818.xml for example to: nwz-82x.xml and extend it with this preset:
<preset>
<name>2passBaseline400kbps</name>
<container>ffmux_mp4</container>
<extension>mp4</extension>
<audio>
<name>faac</name>
<passes>
<pass>bitrate=128000 profile=LC</pass>
</passes>
<channels>1, 2</channels>
</audio>
<video>
<name>x264enc</name>
<passes>
<pass>pass=pass1 bitrate=400 me=umh subme=6 ref=3 cabac=false bframes=0 dct8x8=false trellis=1 threads=0</pass>
<pass>pass=pass2 bitrate=400 me=umh subme=6 ref=3 cabac=false bframes=0 dct8x8=false trellis=1 threads=0</pass>
</passes>
<width>320</width>
<height>1, 240</height>
<rate>1, 30</rate>
</video>
</preset>
All presets are enclosed in the <device> </device> section. All device files should be placed in /usr/share/arista/presets/ directory.
Encoder options in the presets are GStreamer based so the alvailable options for encoder modules are printed by command:
gst-inspect x264enc
gst-inspect faac
Finally, the usage of Arista is quite simple, use given GUI (arista-gtk) or non-GUI command:
arista-transcode -d nwz-82x -p 2passBaseline400kbps video.avi video.mp4
or:
arista-transcode -d nwz-82x -p Normal video.avi video.mp4
EOF
No comments:
Post a Comment