NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
miip
Jan 10, 2012Aspirant
How-to: cross-compile ffmpeg for readynas sparc
Since I really needed ffmpeg I cross-compiled it myself. I didn't do a proper deb, I just used the upstream sources and hacked until it worked. You may follow these instructions to achieve the same: ...
Kyrt
Apr 17, 2012Aspirant
Just to say, I also recently cross-compiled ffmpeg for my sparc ReadyNas Duo. If someone is looking for a snapshot version that compiles and runs on 4.1.7, I used version 0.10.2. I ran:
./configure --arch=sparc --enable-cross-compile --cross-prefix=sparc-linux- --cpu=v8 --target-os=linux
make
I also made the CPU edit in the configure script referred to above in order to support the v8 processer, though the line numbers were of course different. In addition, I also added "disable vis" in the same place (this is a v9 instruction set):
case $cpu in
niagara|v8|v7)
cpuflags="-mcpu=$cpu"
disable vis
;;
sparc64)
cpuflags="-mcpu=v9"
;;
esac
There is no need to symlink the cross-compiler tools, the configure script should pick them up automatically with the above arguments. You can check the architecture of the built binary following "make" using "file".
I have now set up a cron job to automatically remux MKVs to MP4s (well, M4V actually) so they can be streamed to my PS3:
ffmpeg -loglevel error -i foo.mkv -vcodec copy -acodec copy foo.m4v
Seems to work! I find MP4 the best format for HD videos without subtitles, as contrary to popular belief they -do- now support AC3 audio tracks, so no re-encoding required.
(To go off on a tangent:, the "niagara"" section was already in the configure script in 0,10.2, though I was surprised to see "disable vis" here since I thought niagara did support v9 instruction sets. Probably something to do with the compiler.)
./configure --arch=sparc --enable-cross-compile --cross-prefix=sparc-linux- --cpu=v8 --target-os=linux
make
I also made the CPU edit in the configure script referred to above in order to support the v8 processer, though the line numbers were of course different. In addition, I also added "disable vis" in the same place (this is a v9 instruction set):
case $cpu in
niagara|v8|v7)
cpuflags="-mcpu=$cpu"
disable vis
;;
sparc64)
cpuflags="-mcpu=v9"
;;
esac
There is no need to symlink the cross-compiler tools, the configure script should pick them up automatically with the above arguments. You can check the architecture of the built binary following "make" using "file".
I have now set up a cron job to automatically remux MKVs to MP4s (well, M4V actually) so they can be streamed to my PS3:
ffmpeg -loglevel error -i foo.mkv -vcodec copy -acodec copy foo.m4v
Seems to work! I find MP4 the best format for HD videos without subtitles, as contrary to popular belief they -do- now support AC3 audio tracks, so no re-encoding required.
(To go off on a tangent:, the "niagara"" section was already in the configure script in 0,10.2, though I was surprised to see "disable vis" here since I thought niagara did support v9 instruction sets. Probably something to do with the compiler.)
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!