
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (80)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (9435)
-
nginx-rtmp with gcsfuse ffmpeg permissions
8 août 2021, par fitzmodeI'm using
nginx-rtmp-module
in a Docker to recordrtmp
streams into aGoogle Cloud Storage
bucked mounted withgcsfuse
.

While I'm able to record the stream into
.flv
, usingexec_record_done
to convert the files to.mp4
results in a.mp4
with 0 byte size. Attaching a shell to the Docker container and executing theffmpeg
command produces the.mp4
file that works as expected. I suspect this may be an issue with a discrepancy between thenginx
user permissions andffmpeg
user permissions.

user nginx;

worker_processes auto;
rtmp_auto_push on;

events {
 # use epoll;
}

rtmp {
 log_format stream '$remote_addr $app $name $command $bytes_received $session_time';
 access_log on;
 server {
 listen 1935;
 listen [::]:1935 ipv6only=on; 
 application live {

 live on;
 record all;
 record_path /opt/static/videos;
 record_max_size 100000K;
 record_suffix %Y%m%d%H%M%S.flv; #Colon permitted in Linux Filesystem.
 
 
 exec_record_done ffmpeg -i $path -codec copy /opt/static/videos/$basename.mp4; 
 
 }

 }
}



Here is my
Dockerfile


# Production image, copy all the files and run next
FROM ubuntu:18.04
ENV NGINX_USER nginx
RUN useradd -r -u 1001 ${NGINX_USER}
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
# USER root
# Versions of Nginx and nginx-rtmp-module to use
ENV NGINX_VERSION=nginx-1.18.0
ENV NGINX_RTMP_MODULE_VERSION=1.2.1
ENV DEBIAN_FRONTEND=noninteractive
# ENV VOD_MODULE_VERSION=399e1a0ecb5b0007df3a627fa8b03628fc922d5e
ENV VOD_MODULE_VERSION=master



# Install dependencies
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:jonathonf/ffmpeg-4 && \
 apt-get install -y gcc mono-mcs zlib1g-dev libpcre3-dev ca-certificates openssl libssl-dev gnupg lsb-release wget ffmpeg && \
 rm -rf /var/lib/apt/lists/*

# Download and decompress Nginx
RUN mkdir -p /tmp/build/nginx && \
 cd /tmp/build/nginx && \
 wget -O ${NGINX_VERSION}.tar.gz https://nginx.org/download/${NGINX_VERSION}.tar.gz && \
 tar -zxf ${NGINX_VERSION}.tar.gz

# Download and decompress VOD module
# RUN mkdir -p /tmp/build/nginx-vod-module && \
# cd /tmp/build/nginx-vod-module && \
# wget -O nginx-vod-module-${VOD_MODULE_VERSION}.tar.gz https://github.com/kaltura/nginx-vod-module/archive/${VOD_MODULE_VERSION}.tar.gz && \
# tar -zxf nginx-vod-module-${VOD_MODULE_VERSION}.tar.gz && \
# cd nginx-vod-module-${VOD_MODULE_VERSION}

# Download and decompress RTMP module
RUN mkdir -p /tmp/build/nginx-rtmp-module && \
 cd /tmp/build/nginx-rtmp-module && \
 wget -O nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION}.tar.gz https://github.com/arut/nginx-rtmp-module/archive/v${NGINX_RTMP_MODULE_VERSION}.tar.gz && \
 tar -zxf nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION}.tar.gz && \
 cd nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION}




# Build and install Nginx
# The default puts everything under /usr/local/nginx, so it's needed to change
# it explicitly. Not just for order but to have it in the PATH
RUN cd /tmp/build/nginx/${NGINX_VERSION} && \
 ./configure \
 --sbin-path=/usr/local/sbin/nginx \
 --conf-path=/etc/nginx/nginx.conf \
 --error-log-path=/var/log/nginx/error.log \
 --pid-path=/var/run/nginx/nginx.pid \
 --lock-path=/var/lock/nginx/nginx.lock \
 --http-log-path=/var/log/nginx/access.log \
 --http-client-body-temp-path=/tmp/nginx-client-body \
 --with-http_ssl_module \
 --with-threads \
 --add-module=/tmp/build/nginx-rtmp-module/nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION} && \
 make -j $(getconf _NPROCESSORS_ONLN) && \
 make install && \
 mkdir /var/lock/nginx && \
 rm -rf /tmp/build

#install server
# Forward logs to Docker
RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
 ln -sf /dev/stderr /var/log/nginx/error.log


RUN lsb_release -c -s > /tmp/lsb_release
RUN GCSFUSE_REPO=$(cat /tmp/lsb_release); echo "deb http://packages.cloud.google.com/apt gcsfuse-$GCSFUSE_REPO main" | tee /etc/apt/sources.list.d/gcsfuse.list
RUN wget -O - https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -

RUN apt-get update
RUN apt-get install -y gcsfuse



# COPY ./nginx.conf /etc/nginx/nginx.conf
# COPY ./mime.types /etc/nginx/mime.types

# Set up user


RUN mkdir -p /opt/static/videos
RUN chmod 777 -R /opt/static/videos
RUN chown -R ${NGINX_USER}:${NGINX_USER} /opt/static/videos
# RUN 

EXPOSE 1935 80


# USER nginx

CMD nginx && gcsfuse -o allow_other --uid=1001 --debug_gcs --foreground xxxxx.appspot.com /opt/static/videos 



How can I ensure
ffmpeg
has the correct user permssions to read and write to the mounted folder ?

-
Understand your visitors by seeing where they click, hover, type and scroll, and replay their actions in a video
18 mai 2017, par InnoCraft — PluginsHi, this is Mike from InnoCraft, the company of the makers of Piwik Analytics which is used by over 1 million websites and apps in over 150 countries.
I’m very proud to introduce you to our Heatmap & Session Recording feature which lets you analyze your visitors’ behaviour on a whole new level that was not possible before.
With Heatmaps you can see where people think something is clickable but it is not, how far down the page do they scroll, whether they see your important buttons and Call To Actions, or even whether you can re-position your page layout to put the important content in more visible places. Both the mouse movements and all clicks are recorded and viewable on these new beautiful heatmap visualisations.
With Session Recordings, you get to see a video showing exactly what a visitor did on your pages, including all mouse movements, scrolls, text typed in the keyboard, and more. Using these recordings you can improve the usability on your website, replace costly (and less effective) eye tracking sessions, and you can now see exactly what problems your visitors experience or how they behave on your website. This gives new insights and ability to understand what your users think.
-> Read the rest of the story on the Heatmaps & Session Recordings Marketplace page.
What does the new Heatmaps reports look like ?
Here is below just a little preview of the new Heatmaps reports.
1) Mouse move and Click Heatmaps
2) A Scroll Heatmap
What does the new Session Recording look like ?
You can replay videos of exactly what your users did on your websites including mouse moves, scrolls, typing in forms, and more.
1) Listing all recorded video sessions
2) Playing a recorded video session
Where do I get Heatmaps & Session Recording for Piwik ?
The new premium plugin is available on the Piwik Marketplace :
This is a premium plugin for Piwik and comes with our 14 day money back guarantee and 1-click installation & updates (all product updates come for free).
You can also signup for a free Piwik Cloud-hosted trial to discover the power of Heatmaps & Session Recordings !
-
Android mp4 remove rotation and rotate the video stream
4 mars 2015, par Mathijs SegersI’m having some issues trying to remove the rotation value of Android video’s.
For some reason convertion tools in the cloud cannot seem to handle android’s rotation value correctly. f/e I have a portrait video recorded in 1080x1920 (so the file’s headers tell me it’s actually 1920x1080 with rotation : 90).So now I’m trying to convert these video’s to an actual 1080x1920 format when they have this rotation value but i’m kind of stuck, probably using the wrong search terms on SO and Google.
In the hope of making things clear I’ve actually added some ffmpeg libs to android following these steps, of course with some changes to parameters. I’m building this on a Mac and this all works fine now.
http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/Now the following, I have no real clue how these libs work and how to use them or which I actually need or if I even need them at all.
Is there anyone who can point me in the right direction of solving my issue ? Basicly the video’s are on my android filesystem and I can access them fully, before uploading I want to check the values and remove and rotate the video’s if needed.