
Recherche avancée
Autres articles (14)
-
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 (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (3784)
-
Merge pull request #1626 from Arkni/dev-dependency
1er novembre 2015, par staabmMerge pull request #1626 from Arkni/dev-dependency
Package.json : Upgrade dev-dependencies to latest versions
-
AccessViolationException in ffmpeg (called from .NET with FFmpeg.AutoGen)
13 septembre 2022, par zgabiI'm trying to "download"/stream an RTSP stream with FFmpeg.Autogen. I receive an AccessViolationException before the actual stream begins.


I tried multiple FFmpeg and FFmpeg.AutoGen version (for example the latest stable FFMpeg version 5.1.1 from gyan.dev site and the latest FFmpeg.Autogen : 5.1.1). I also tried version 4.x (of course both ffmpeg and FFmpeg.AutoGen)


This code works with a lot of Hikvision camera streams, I get the Access Violation with an expensive InfiRay thermal camera. (But anyway if it sends some corrupt data, ffmpeg should not crash.)


My code is (this is only the initialization, since the problem occures there) :


av_log_set_level(AV_LOG_DEBUG);

AVFormatContext* cf = null;

try
{
 cf = avformat_alloc_context();
 if (cf == null)
 {
 throw new Exception("Could not allocate the format context");
 }

 int probeSize = 32768 * 2;
 cf->probesize = probeSize;

 AVDictionary* options = null;
 string probeSizeStr = probeSize.ToString();
 av_dict_set(&options, "analyzeduration", probeSizeStr, 0);
 av_dict_set(&options, "probesize", probeSizeStr, 0);
 av_dict_set(&options, "rtsp_transport", "tcp", 0);

 string url =
 "rtsp://horizontetest:horizontetest@122.5.39.146:7828/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif";
 int ret = avformat_open_input(&cf, url, null, &options);
 if (ret != 0)
 {
 throw new Exception("Could not open the input");
 }

 ret = avformat_find_stream_info(cf, &options);
 Console.WriteLine(probeSizeStr);
 if (ret < 0)
 {
 throw new Exception("Could not find stream info");
 }

 if (cf->streams == null)
 {
 throw new Exception("Could not find stream");
 }
}
finally
{
 if (cf != null)
 {
 avformat_close_input(&cf);
 }
}



Access Violation occures in the avformat_find_stream_info call.


-
FFMPEG [h264_nvenc @ 0x56151389fe00] Cannot get the preset configuration : invalid version (15)
22 avril 2018, par Nethemei have issue with ffmpeg as usual :D. I have FFMPEG compiled (version N-90807-g00099ef0d0) with NVIDIA support (latest CUDA and latest NV Headers) :
ffmpeg version N-90807-g00099ef0d0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --enable-libnpp --enable-cuda --enable-cuvid --enable-nvenc --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --enable-gpl --enable-libx264 --disable-x86asm --enable-libx265 --enable-libfdk-aac --enable-nonfree --enable-x86asm
libavutil 56. 15.100 / 56. 15.100
libavcodec 58. 19.100 / 58. 19.100
libavformat 58. 13.100 / 58. 13.100
libavdevice 58. 4.100 / 58. 4.100
libavfilter 7. 19.100 / 7. 19.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'When I try to run basic transcoding on GPU using command :
ffmpeg -i 'udp://@239.100.0.1:331?fifo_size=100000000' -map i:0x100 -g 20 -vcodec h264_nvenc -map i:0x101 -ab 128k -ar 48k -acodec aac -f mpegts udp://@239.0.0.1:1234?overrun_nonfatal_optin=
I got this error :
Input #0, mpegts, from 'udp://@239.100.0.1:331?fifo_size=100000000':
Duration: N/A, start: 106.414400, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x55a5edc45880] co located POCs unavailable
[h264_nvenc @ 0x55a5edc45380] Cannot get the preset configuration: invalid version (15)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x55a5edc46d40] Qavg: 227.785
[aac @ 0x55a5edc46d40] 2 frames left in the queue on closingI have same version of FFMPEG compiled by the same way on another testing machine and there it is working. I tried to recompile/reinstall ffmpeg with the latest version, but result is the same.
Does someone know what could be wrong on my instance ?
Thanks.