
Recherche avancée
Autres articles (98)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (5172)
-
avutil/mathematics : speed up av_gcd by using Stein’s binary GCD algorithm
11 octobre 2015, par Ganesh Ajjanagaddeavutil/mathematics : speed up av_gcd by using Stein’s binary GCD algorithm
This uses Stein’s binary GCD algorithm :
https://en.wikipedia.org/wiki/Binary_GCD_algorithm
to get a roughly 4x speedup over Euclidean GCD on standard architectures
with a compiler intrinsic for ctzll, and a roughly 2x speedup otherwise.
At the moment, the compiler intrinsic is used on GCC and Clang due to
its easy availability.Quick note regarding overflow : yes, subtractions on int64_t can, but the
llabs takes care of that. The llabs is also guaranteed to be safe, with
no annoying INT64_MIN business since INT64_MIN being a power of 2, is
shifted down before being sent to llabs.The binary GCD needs ff_ctzll, an extension of ff_ctz for long long (int64_t). On
GCC, this is provided by a built-in. On Microsoft, there is a
BitScanForward64 analog of BitScanForward that should work ; but I can’t confirm.
Apparently it is not available on 32 bit builds ; so this may or may not
work correctly. On Intel, per the documentation there is only an
intrinsic for _bit_scan_forward and people have posted on forums
regarding _bit_scan_forward64, but often their documentation is
woeful. Again, I don’t have it, so I can’t test.As such, to be safe, for now only the GCC/Clang intrinsic is added, the rest
use a compiled version based on the De-Bruijn method of Leiserson et al :
http://supertech.csail.mit.edu/papers/debruijn.pdf.Tested with FATE, sample benchmark (x86-64, GCC 5.2.0, Haswell)
with a START_TIMER and STOP_TIMER in libavutil/rationsl.c, followed by a
make fate.aac-am00_88.err :
builtin :
714 decicycles in av_gcd, 4095 runs, 1 skipsde-bruijn :
1440 decicycles in av_gcd, 4096 runs, 0 skipsprevious :
2889 decicycles in av_gcd, 4096 runs, 0 skipsSigned-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
RTSP stream to HLS Stream using FFMPEG, Getting Error with newer FFMPEG
8 novembre 2017, par shaunI am trying to take an RTSP stream and convert it to an HLS sTream.
If I use ffmpeg version N-76684-g1fe82ab
This command Works just fine.c:\temp\ffmpeg.exe -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
However, if I use a newer compiled version of FFMPEG ffmpeg version N-83779-gfe57bf7cd6
using the same exact command as above I get the error :Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument.
What am I doing wrong ? I would like to use the newer FFMPEG, but it appears that something broke between them.....
complete console output of N-83779
C:\inetpub\wwwroot\hls>ffmpeg.exe -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
ffmpeg version N-83779-gfe57bf7cd6 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.3 (GCC)
configuration: --prefix=/usr/local/x86_64-w64-mingw32 --enable-gpl --enable-nonfree --enable-libx264 --enable-libfdk_aac --enable-static --enable-runtime-cpudetect --enable-w32th
reads --disable-shared --disable-ffplay --disable-ffserver --arch=x86_64 --extra-cflags=-I/local/x86_64-w64-mingw32/include --extra-ldflags='-L/local/x86_64-w64-mingw32/lib -static
'
libavutil 55. 48.100 / 55. 48.100
libavcodec 57. 82.102 / 57. 82.102
libavformat 57. 66.103 / 57. 66.103
libavdevice 57. 3.100 / 57. 3.100
libavfilter 6. 74.100 / 6. 74.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
[udp @ 023e9d40] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 039af180] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
Invalid UE golomb code
[h264 @ 023eaca0] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[rtsp @ 023e7220] Failed to open codec in avformat_find_stream_info
Invalid UE golomb code
[NULL @ 023eaca0] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[NULL @ 023eaca0] non-existing PPS 0 referenced
Invalid UE golomb code
[h264 @ 023eaca0] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[NULL @ 023eaca0] non-existing PPS 0 referenced
Last message repeated 20 times
[rtsp @ 023e7220] Stream #0: not enough frames to estimate rate; consider increasing probesize
[rtsp @ 023e7220] Could not find codec parameters for stream 0 (Video: h264 (High), none(progressive)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://192.168.249.233:8554/Stream':
Metadata:
title : Session streamed by Stream
comment : Stream
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), none(progressive), 90k tbr, 90k tbn, 180k tbc
[hls @ 039d5140] dimensions not set
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Last message repeated 1 times
Tried -analyzeduration 10M -probesize 10M did not help.
ffmpeg -analyzeduration 10M -probesize 10M -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
ffmpeg version N-83779-gfe57bf7cd6 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.3 (GCC)
configuration: --prefix=/usr/local/x86_64-w64-mingw32 --enable-gpl --enable-nonfree --enable-libx264 --enable-libfdk_aac --enable-static --enable-runtime-cpudetect --enable-w32threads --disable-shared --disable-ffplay --disable-ffserver --arch=x86_64 --extra-cflags=-I/local/x86_64-w64-mingw32/include --extra-ldflags='-L/local/x86_64-w64-mingw32/lib -static'
libavutil 55. 48.100 / 55. 48.100
libavcodec 57. 82.102 / 57. 82.102
libavformat 57. 66.103 / 57. 66.103
libavdevice 57. 3.100 / 57. 3.100
libavfilter 6. 74.100 / 6. 74.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
[udp @ 0238a140] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0421f1a0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
Invalid UE golomb code
[h264 @ 0238af20] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[rtsp @ 02387960] Failed to open codec in avformat_find_stream_info
Invalid UE golomb code
[NULL @ 0238af20] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[NULL @ 0238af20] non-existing PPS 0 referenced
Invalid UE golomb code
[h264 @ 0238af20] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[NULL @ 0238af20] non-existing PPS 0 referenced
Last message repeated 24 times
[rtsp @ 02387960] Stream #0: not enough frames to estimate rate; consider increasing probesize
[rtsp @ 02387960] Could not find codec parameters for stream 0 (Video: h264 (High), none(progressive)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://192.168.249.233:8554/FirstVuHD':
Metadata:
title : Session streamed by Stream
comment : Stream
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), none(progressive), 90k tbr, 90k tbn, 180k tbc
[hls @ 04edf8a0] dimensions not set
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Last message repeated 1 times
Working older version of FFMPEG output
c:/temp/ffmpeg -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 6.100 / 55. 6.100
libavcodec 57. 15.100 / 57. 15.100
libavformat 57. 14.100 / 57. 14.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 15.100 / 6. 15.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[h264 @ 0000000000506d20] log2_max_frame_num_minus4 out of range (0-12): -1
Last message repeated 5 times
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 75 packets
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 86 packets
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 57 packets
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 6 packets
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 1093 packets
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 10 packets
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 2 packets
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 20 packets
Input #0, rtsp, from 'rtsp://192.168.249.233:8554/Stream':
Metadata:
title : Session streamed by Stream
comment : Stream
Duration: N/A, start: 0.033367, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p, 1920x1080, 29.97 tbr, 90k tbn, 180k tbc
Output #0, hls, to 'c:\inetpub\wwwroot\hls\streaming.m3u8':
Metadata:
title : Session streamed by Stream
comment : Stream
encoder : Lavf57.14.100
Stream #0:0: Video: h264, yuv420p, 1920x1080, q=2-31, 29.97 tbr, 90k tbn, 90k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[NULL @ 0000000000506d20] RTP: missed 211 packets
frame= 398 fps= 71 q=-1.0 size=N/A time=00:00:16.68 bitrate=N/A -
Use ffmpeg Windows batch script on OS X
3 novembre 2015, par andiskI got an ffmpeg batch script written by someone. The script takes all video clips of a specific folder, cuts off first and last frame, converts the clips to ProRes and saves them in a new folder. I got it running under Windows (just have to double-click the *.bat file and it does what it’s supposed to do).
But now I need that same script running on a mac. I’ve installed ffmpeg over homebrew. Then I tried to make a Automator-Service, but with no success. Best thing would be if I could just right click on the folder with the videos, go to services and click on convert. I’m not really into coding and scripting, but the people who should use the script are happy when they find the power switch of the computer..
Can anyone help me with this ?
Cheers andiskEdit : Here’s the code
`@echo off
mkdir tmp
mkdir converted
set pathtofind=%~dp0
echo Searching for files in %pathtofind%%1\
setlocal enableextensions
setlocal ENABLEDELAYEDEXPANSION
for %%f in (%pathtofind%%1\*) do (
echo Handling file %%f
ffmpeg -y -loglevel quiet -i %%f tmp\%%d.png
set count=0
for %%x in (tmp\*) do set /a count +=1
echo Deleting frames 1 and !count!
del tmp\1.png
del tmp\!count!.png
echo Saving %%~nf.mov
ffmpeg -y -loglevel verbose -f image2 -r 24 -i tmp\%%d.png -vcodec prores -profile:v 1 -r 24 converted\%%~nf.mov
del /q tmp\*.*
echo ---------------------------
)
rd tmp`