Proof of concept for transcoding on RPI. The modify base on omxplayer by adding encoder component & processing output stream/file.
./omxplayer input output
input: url streaming, file output:
--- Original README of omxplayer from here ---
omxplayer(1) -- Raspberry Pi command line OMX player
OMXPlayer is a commandline OMX player for the Raspberry Pi. It was developed as a testbed for the XBMC Raspberry PI implementation and is quite handy to use standalone.
git clone https://github.com/popcornmix/omxplayer.git
HELP AND DOCS
omxplayer's built-in help and the man page are all generated from this README.md file during make. You may need to change the Makefile if you modify the structure of README.md!
Run this script which will install build dependency packages, including g++ 4.7, and update firmware
make ffmpeg make
sudo make install
You need the content of your sdcard somewhere mounted or copied. There might be development headers to install on the running Pi system for the crosscompiling.
Edit Makefile.include and change the settings according your locations.
make ffmpeg make make dist