
Recherche avancée
Autres articles (20)
-
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (5105)
-
Can't update app in store because of target api23 (no downgrade possible)
4 mai 2016, par Thkrulong story short :
- I have an app in the store, uploaded with target(!) api23
- Now I have to use the metaio SDK (Augmented reality) to implement a feature
- this SDK is not maintained anymore (company got bought & closed by apple)
- metaio SDK crashes when using a target api23
- ...because of text relocations in the ffmpeg lib, in libavcodec.so, see also :
- libavcodec.so : has text relocations
- http://rg4.net/archives/1973.html
- https://github.com/wseemann/FFmpegMediaPlayer/issues/64
Problem :
- apps uploaded with target api23 once, can’t be updated with lower target api
- metaio can’t handle api23, due to a text relocations bug
Idea so far :
- replace the old libavcodec.so (arm & x86) by a newer version,
but I can’t find any compiled version...
PS : sure it’s dump to use a deprecated sdk and it has to be replaced sometime in the future, but for now I have to use it, as there’s a huge content and backend part that is used in the project.
PPS : worst case idea is to upload the same app but with a different ID, api22 and AR features in the GooglePlay...and having two nearly identical apps... <_<
Thanks a lot for every help ! :)
-
Révision 17405 : Petit changement dans l’appel des 2 fonctions infos_plugin et infos_paquet charg...
14 mars 2011, par esj@rezo.netPar exemple pour avoir le tableau des arbres des syntaxe abstraites de tous les plugins d’un dépot, faire : $ar = file_get_contents(’archives.xml’) ; preg_match_all(’@< ;plugin> ;.* ?< ;/plugin> ;@s’, $ar, $m) ; $f = charger_fonction(’infos_plugin’, ’plugins’) ; $m = $m[0] ; (...)
-
Websocket connection in Docker
22 avril 2024, par Akhil VargheseI have a Node.js app that takes an RTSP URL as input and provide a jsmpeg websocket stream as output. The focus of app is to generate a web compatible stream from an RTSP stream, and I have acheived this using a package rtsp-relay.
The app is working fine in locally.
But after dockerizing the app, I am not receiving the output stream. The stream is getting terminated.




The Dockerfile is :
I am building the ffmpeg from source in docker.



# Install necessary packages
RUN apt-get update && \
 DEBIAN_FRONTEND=noninteractive apt-get install -yq \
 autoconf \
 automake \
 build-essential \
 cmake \
 git \
 libass-dev \
 libfreetype6-dev \
 libgnutls28-dev \
 libmp3lame-dev \
 libsdl2-dev \
 libtool \
 libva-dev \
 libvdpau-dev \
 libvorbis-dev \
 libxcb1-dev \
 libxcb-shm0-dev \
 libxcb-xfixes0-dev \
 meson \
 ninja-build \
 pkg-config \
 texinfo \
 wget \
 yasm \
 zlib1g-dev \
 libunistring-dev \
 libaom-dev \
 libdav1d-dev \
 libnuma-dev \
 libopus-dev && \
 rm -rf /var/lib/apt/lists/*

# Create directories
RUN mkdir -p /ffmpeg_sources /ffmpeg_build /bin
RUN apt-get update
RUN apt-get install -y nasm
RUN apt-get install -y yasm

# Build and install NASM
WORKDIR /ffmpeg_sources
RUN wget https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/nasm-2.16.01.tar.bz2 && \
 tar xjvf nasm-2.16.01.tar.bz2 && \
 cd nasm-2.16.01 && \
 ./autogen.sh && \
 ./configure --prefix="/ffmpeg_build" --bindir="/bin" && \
 make && \
 make install

# Build and install x264
RUN apt-get update
RUN apt-get install -y libx264-dev


# Build and install x265
RUN apt-get install -y libx265-dev libnuma-dev

# Build and install libvpx
RUN git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git && \
 cd libvpx && \
 ./configure --prefix="/ffmpeg_build" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm && \
 make && \
 make install

# Build and install fdk-aac
RUN git clone --depth 1 https://github.com/mstorsjo/fdk-aac && \
 cd fdk-aac && \
 autoreconf -fiv && \
 ./configure --prefix="/ffmpeg_build" --disable-shared && \
 make && \
 make install

# Build and install opus
RUN git clone --depth 1 https://github.com/xiph/opus.git && \
 cd opus && \
 ./autogen.sh && \
 ./configure --prefix="/ffmpeg_build" --disable-shared && \
 make && \
 make install

# Build and install SVT-AV1
RUN git clone --depth=1 https://gitlab.com/AOMediaCodec/SVT-AV1.git && \
 cd SVT-AV1 && \
 cd Build && \
 cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release && \
 make && \
 make install


# Build and install dav1d
RUN git clone --depth 1 https://code.videolan.org/videolan/dav1d.git && \
 mkdir -p dav1d/build && \
 cd dav1d/build && \
 meson setup -Denable_tools=false -Denable_tests=false --default-library=static .. --prefix "/ffmpeg_build" --libdir="/ffmpeg_build/lib" && \
 ninja && \
 ninja install

# Build and install ffmpeg
RUN wget -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
 tar xjvf ffmpeg-snapshot.tar.bz2 && \
 cd ffmpeg && \
 ./configure \
 --prefix="/ffmpeg_build" \
 --pkg-config-flags="--static" \
 --extra-cflags="-I/ffmpeg_build/include" \
 --extra-ldflags="-L/ffmpeg_build/lib" \
 --extra-libs="-lpthread -lm" \
 --ld="g++" \
 --bindir="/bin" \
 --enable-gpl \
 --enable-gnutls \
 --enable-libaom \
 --enable-libass \
 --enable-libfdk-aac \
 --enable-libfreetype \
 --enable-libmp3lame \
 --enable-libopus \
 --enable-libsvtav1 \
 --enable-libdav1d \
 --enable-libvorbis \
 --enable-libvpx \
 --enable-libx264 \
 --enable-libx265 \
 --enable-nonfree \
 --extra-ldflags="-lm -lstdc++ -L/ffmpeg_build/lib -Wl,-rpath,/ffmpeg_build/lib" \
 --extra-cflags="-I/ffmpeg_build/include" \
 --extra-libs="-lpthread -lm -lstdc++" && \
 make && \
 make install && \
 hash -r

# Update PATH
ENV PATH="/ffmpeg_build/bin:${PATH}"

# Cleanup
RUN rm -rf /ffmpeg_sources

# Source profile
RUN echo "source /root/.profile" >> ~/.bashrc



WORKDIR /usr/src/app
RUN apt-get update
RUN apt-get install -y nodejs
RUN apt-get install -y npm
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 2000
CMD ["npm", "start"]



While checking the network rules in the Docker image with the command : iptables -L
I am getting the following response :



I am able to access every API of the dockerized app, and I receive the responses and logs. but I'm not receiving the jsmpeg stream through the websocket connection.


I'm uncertain about the exact problem or how to resolve it.If you have encountered a similar issue before, and have a solution, I would greatly appreciate your assistance.