
Recherche avancée
Autres articles (65)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (7767)
-
Error while trying to create dashcast stream using libx265
16 décembre 2015, par RahulI’m trying to create a h265 encoded stream from webcam using the follwoing command.
DashCast -vf video4linux2 -v4l2f mjpeg -v /dev/video0 -conf dashcast.conf -live-media
The content if dashcast.conf is
[v1]
type=video
codec=libx265
bitrate=1000000
framerate=25
width=640
height=480But I’m getting this error.
Options:
video source: /dev/video0
video format: video4linux2
v4l2 format: mjpeg
video crop: 0x0
audio source:
Configurations:
id:v1 res:640x480 vbr:1000000
[mjpeg @ 0xb194e0] Changeing bps to 8
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 50349.327770, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
AVCTX give frame duration of 1/1000000 - keeping requested rate -1, but this may result in unexpected behaviour.
[swscaler @ 0xb91ea0] deprecated pixel format used, make sure you did set range correctly
Press q or Q to exit...
[dashcast] Live system dropped a video frame
[dashcast] Live system dropped a video frame
x265 [info]: HEVC encoder version 1.85dcc9d3a928c400b
x265 [info]: build info [Linux][GCC 4.8.4][64 bit] 8bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 4 threads
x265 [info]: frame threads / pool features : 1 / wpp(8 rows)
[dashcast] Live system dropped a video frame
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut : 25 / 250 / 40
x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 3 / 0 / 0
x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : ABR-1000 kbps / 0.60
x265 [info]: tools: rd=3 psy-rd=0.30 signhide tmvp strong-intra-smoothing
x265 [info]: tools: deblock sao
Cannot parse HEVC/H265 SPS/PPS
Bad Parameter: dc_gpac_video_write_config
Bad Parameter: gf_isom_start_segment
Cannot open output video file.
Generating MPD at 2015-11-24T19:17:46.040Z
StartTime: 2015-11-24T19:17:46.040Z - startNumber 1 - last number 1
Keyboard thread exit
[dashcast] Live system dropped a video frame
[dashcast] Live system dropped a video frameWhat could be the problem ? Changing codec to libx264 in the conf file works fine.
-
Seeking with FFMPEG at the end of an RTSP stream
30 juillet 2019, par kealistI am using ffmpeg to play RTSP streams in an application. I have been running into a problem that once I reach the end of an RTSP stream, I am no longer able to see back to anywhere in the stream.
The program I am writing is using LGPL shared libraries, but I can see the same behavior using ffplay using GPL version.
ffplay.exe "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"
While the video is playing, I can seek forward or backwards using the keyboard shortcuts for ffplay (left / right arrow key). Once the stream reaches the end, it is not possible and the stream is paused or playing, seeking no longer works. I see errors in the shared lib, but in ffplay, I do not see errors unless I use the
s
key (which may make sense that I cannot seek). In other streams, I have seen an issue where the stream is longer than the reported length, and once the extra video is buffered/downloaded, it is not possible to seek. Any guidance on what is going on here ?Using
ffplay.exe
(also verified with newer build) :C:\Users\kealist\Downloads\ffmpeg-20180526-63c4a4b-win64-static\bin>ffplay "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"
ffplay version N-91158-g63c4a4b0d6 Copyright (c) 2003-2018 the FFmpeg developers
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 19.104 / 58. 19.104
libavformat 58. 17.100 / 58. 17.100
libavdevice 58. 4.100 / 58. 4.100
libavfilter 7. 24.100 / 7. 24.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
[udp @ 0000023ce71807c0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0000023ce7174ac0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0000023ce71a6f40] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0000023ce7174bc0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[rtsp @ 0000023ce717d900] UDP timeout, retrying with TCP 0B f=0/0
Input #0, rtsp, from 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov':
Metadata:
title : BigBuckBunny_115k.mov
Duration: 00:09:56.48, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: aac (LC), 12000 Hz, stereo, fltp
Stream #0:1: Video: h264 (Constrained Baseline), yuv420p(progressive), 240x160, 24 fps, 24 tbr, 90k tbn, 48 tbc
rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov: error while seeking
rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov: error while seeking
596.27 A-V:-32.424 fd=1290 aq= 0KB vq= 0KB sq= 0B f=1/1With
-v trace
I can see that there is a Seek message, but no seeking actually occurs whether it is paused or playing.video: delay=0.000 A-V=0.173265
Seek to 37% ( 0:03:38) of total duration ( 0:09:56) B f=1/1
Seek to 83% ( 0:08:14) of total duration ( 0:09:56) B f=1/1
Seek to 57% ( 0:05:42) of total duration ( 0:09:56) B f=1/1
Seek to 78% ( 0:07:41) of total duration ( 0:09:56) B f=1/1
Seek to 85% ( 0:08:24) of total duration ( 0:09:56) B f=1/1
Seek to 92% ( 0:09:06) of total duration ( 0:09:56) B f=1/1
Last message repeated 1 times
Seek to 92% ( 0:09:08) of total duration ( 0:09:56) B f=1/1
Last message repeated 1 times
597.08 A-V:-34.561 fd= 312 aq= 0KB vq= 0KB sq= 0B f=1/1Is there a way to mitigate this without reloading the stream ?
-
yt-dlp get audio only link -> ffmpeg piped audio -> ffplay
5 juin 2022, par james28909Ok, i have a perl script that i am trying to figure out why it is throwing an io error. First i use yt-dlg to get the link of only the audio - this works as expected and i can navigate to the link in a browser just fine. then i open a ffmpeg pipe in perl and then try to read the output from ffmpeg and eventually, if i can get this working, i will process the ffmpeg output then send to a named pipe.


the problem comes from the ffmpeg when i am processing the data from the link obtained with yt-dlp, and i think it has to do with my while loop but i am not sure what. i have a named pipe called "input". i summon ffmpeg with the following :


#/usr/bin/perl
use strict;
use warnings;

my $file = /path/to/named/pipe
my $read_len = 1024;

open (my $SOURCE_AUDIO, '-|', "ffmpeg -y -i \'$link\' -map 0 -c copy -ac 2 -f opus -ar 48000 pipe:1");
binmode($SOURCE_AUDIO);

# process the ffmpeg output.i have a function i want to implement here, 
# but i need to be able to parse ffmpeg output in set read lengths

while( read($SOURCE_AUDIO, my $buf, $read_len)){
print $file $buf;
};



but before the end of the playback, somewhere around the end of the audio stream ffmpeg throws errors like this :


[tls @ 0x5d0de00] Error in the pull function..2kbits/s speed=1.21x
[tls @ 0x5d0de00] IO error: Connection reset by peer
[tls @ 0x5d0de00] The specified session has been invalidated for some reason.
 Last message repeated 1 times
https://rr3---sn-(truncated): Input/output error
size= 1021kB time=00:01:18.36 bitrate= 106.7kbits/s speed=1.21x
video:0kB audio:1012kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.808163%



i am not sure what is causing it to end early, or what is causing it to be terminated. i can download the file and re-encode it (if needed) and then play it flawlessly with ffplay, but i cannot, for the life of me, parse ffmpeg output and write it to a named pipe. any help sure would be appreciated. thanks


P.S. i am using latest updated windows 11 and WSL's built in perl :


This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux-gnu-thread-multi
(with 50 registered patches, see perl -V for more detail)

Copyright 1987-2019, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.