martos

Members
  • Content Count

    124
  • Joined

  • Last visited


Reputation Activity

  1. Like
    martos reacted to martinayotte in Armbian for TV box rk3328   
    Rockchip default UART are at 1500000 baud.
  2. Like
    martos reacted to balbes150 in Armbian usable on RK TV-Boxes?   
    Assemble the image is not a problem. My goal is somewhat wider. Develop a comprehensive system (image, set of scripts, instructions, etc.) for the end user, which will allow the average user to easily run Linux on the TV box. A typical user should have an easy-to-play set of system startup steps. Downloaded. Unpacked. Recorded image (possibly performed a simple operation to copy additional files). Launched a TV box. Performed a simple operation (or simple steps) on an existing system. And get a ready working system.
     
    Everyone has their own criteria for a reasonable price. I have been working with different TV boxes and other electronic devices for a long time and I know well what to pay attention to in order not to regret the time spent (money). Let's try to count. The model you are referring to has serious (for me) cons.
    1. LAN 100 MB.
    2. Power supply 2A. This means that you will not be able to fully use all the features of the device. So have to spend money to buy a new PSU.
    3. Cooling system. Without it, to use all the features of iron is not possible. To power the fan will have to either use a USB port or an external power source.
    4. In the set there is no cable for firmware. More expenses.
    5. The quality of the components used and the Board (marking all elements that points to Maskrom and UART). This ensures that all models are identical and the manufacturer does not make a "team hodgepodge" of what was at hand.
    6. The manufacturer pays great attention to technical support and is ready to cooperate (this is important for me).
    7. The presence of the OTG port.
     
    Specifically about this model I can't write yet (I don't have it yet). If you unplugged the PSU, all parameters are reset. If the electricity flashes, the TV box will turn on itself, without your desire. By the way, for this reason I like the Vega S96 it has an additional battery (as in the BIOS on the PC) and is not afraid of power failure.
     
    Don't sacrifice.
    Producer already showed interest and offered to send me a sample. By the way, this indirectly suggests that the manufacturer is interested (and understands) the importance of expanding support for different systems in its products. So that customers who buy its products can use it much wider than just a TV box.
     
  3. Like
    martos got a reaction from balbes150 in Compile FFmpeg aml for S905w   
    so with : Armbian_5.44_S9xxx_Ubuntu_bionic_4.18.0-rc5_server_20180727.img.xz
    dtb.img with p281 dtb
     
    OK to compile i add some time -j4 and some time -j3
    because the swap don't work and the system freeze -j3 use less memory ( ihave only 1GB )
    if you have a trouble (freeze) to compile something :
    in th rep of the compil
    mc -e C.sh
    put the compil
    chmod 755 C.sh
    in console (not ssh, not in telnet ) lanch
    ./C.sh &
     
    i add "--enable-hardcoded-table" to have some cpu gain
     
    i don't put x265 (i must have an eyes on the errors after if you want it , add --enable-libx265 at the ffmpeg compile at the end )
     
    sudo apt-get update -qq && sudo apt-get -y install \
      autoconf \
      automake \
      build-essential \
      cmake \
      git-core \
      libass-dev \
      libfreetype6-dev \
      libsdl2-dev \
      libtool \
      libva-dev \
      libvdpau-dev \
      libvorbis-dev \
      libxcb1-dev \
      libxcb-shm0-dev \
      libxcb-xfixes0-dev \
      pkg-config \
      texinfo \
      wget \
      zlib1g-dev
     
    mkdir -p ~/ffmpeg_sources ~/bin
     
    cd ~/ffmpeg_sources && \
    wget https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.bz2 && \
    tar xjvf nasm-2.13.03.tar.bz2 && \
    cd nasm-2.13.03 && \
    ./autogen.sh && \
    PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && \
    make -j4 && \
    make install
    apt-get install mc
    apt-get install locate
     
    cd ~/ffmpeg_sources && \
    wget -O yasm-1.3.0.tar.gz https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz && \
    tar xzvf yasm-1.3.0.tar.gz && \
    cd yasm-1.3.0 && \
    ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && \
    make -j4 && \
    make install
     
    cd ~/ffmpeg_sources && \
    git -C x264 pull 2> /dev/null || git clone --depth 1 https://git.videolan.org/git/x264 && \
    cd x264 && \
    PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --enable-pic && \
    PATH="$HOME/bin:$PATH" make -j4 && \
    make install
     
    sudo apt-get install libx265-dev libnuma-dev
     
    cd ~/ffmpeg_sources && \
    git -C libvpx pull 2> /dev/null || git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git && \
    cd libvpx && \
    PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm && \
    PATH="$HOME/bin:$PATH" make -j4 && \
    make install
     
     
    cd ~/ffmpeg_sources && \
    git -C fdk-aac pull 2> /dev/null || git clone --depth 1 https://github.com/mstorsjo/fdk-aac && \
    cd fdk-aac && \
    autoreconf -fiv && \
    ./configure --prefix="$HOME/ffmpeg_build" --disable-shared && \
    make -j4 && \
    make install
     
    cd ~/ffmpeg_sources && \
    wget -O lame-3.100.tar.gz https://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz && \
    tar xzvf lame-3.100.tar.gz && \
    cd lame-3.100 && \
    PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --disable-shared --enable-nasm && \
    PATH="$HOME/bin:$PATH" make -j4 && \
    make install
     
    sudo apt-get install libopus-dev
     
    cd ~/ffmpeg_sources && \
    git -C aom pull 2> /dev/null || git clone --depth 1 https://aomedia.googlesource.com/aom && \
    mkdir aom_build && \
    cd aom_build && \
    PATH="$HOME/bin:$PATH" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED=off -DENABLE_NASM=on ../aom && \
    PATH="$HOME/bin:$PATH" make -j2 && \
    make install

    cd ~/ffmpeg_sources && \
    wget -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
    tar xjvf ffmpeg-snapshot.tar.bz2 && \
    cd ffmpeg && \
    PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
    --prefix="$HOME/ffmpeg_build" \
    --pkg-config-flags="--static" \
    --extra-cflags="-I$HOME/ffmpeg_build/include" \
    --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
    --extra-libs="-lpthread -lm" \
    --bindir="$HOME/bin" \
    --enable-hardcoded-tables \
    --enable-v4l2_m2m \
    --enable-gpl \
    --enable-libaom \
    --enable-libass \
    --enable-libfdk-aac \
    --enable-libfreetype \
    --enable-libmp3lame \
    --enable-libopus \
    --enable-libvorbis \
    --enable-libvpx \
    --enable-libx264 \
    --disable-libaom \
    --enable-nonfree && \
    PATH="$HOME/bin:$PATH" make -j3 && \
    make install && \
    hash -r
     
    i am waitind the end of the ffmpeg compile ...
    (  all compile take one hour )
  4. Like
    martos got a reaction from balbes150 in Compile FFmpeg aml for S905w   
    I boot !
    i start ffmpeg v4.01 compil
  5. Like
    martos got a reaction from balbes150 in Compile FFmpeg aml for S905w   
    with this command :
    /root/bin/ffmpeg -vcodec h264_aml -i /root/Sintel.2010.1080p.mkv -vcodec copy /tmp/test.mp4
    Works
    But to transcode :
    /root/bin/ffmpeg -vcodec h264_aml -i /root/Sintel.2010.1080p.mkv -vcodec h264 /tmp/test.mp4 -loglevel trace
    Successfully opened the file.
    detected 4 logical cores
    [graph 0 input from stream 0:0 @ 0x558ccb3e80] Setting 'video_size' to value '1920x818'
    [graph 0 input from stream 0:0 @ 0x558ccb3e80] Setting 'pix_fmt' to value '-1'
    [buffer @ 0x558d12f620] Unable to parse option value "-1" as pixel format
    [graph 0 input from stream 0:0 @ 0x558ccb3e80] Setting 'time_base' to value '1/1000'
    [graph 0 input from stream 0:0 @ 0x558ccb3e80] Setting 'pixel_aspect' to value '1/1'
    [graph 0 input from stream 0:0 @ 0x558ccb3e80] Setting 'sws_param' to value 'flags=2'
    [graph 0 input from stream 0:0 @ 0x558ccb3e80] Setting 'frame_rate' to value '24/1'
    [buffer @ 0x558d12f620] Unable to parse option value "-1" as pixel format
    [buffer @ 0x558d12f620] Error setting option pix_fmt to value -1.
    [graph 0 input from stream 0:0 @ 0x558ccb3e80] Error applying options to the filter.
     
    look for solution ( but i have a doubt on this old ffmpeg )