
Recherche avancée
Autres articles (97)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (11623)
-
Strange results when converting rgb yuv using ffmpeg in python
20 avril 2020, par user3569998I have JPG images and I am trying to do the following :



- 

- resize the input and save the result into PNG
- convert PNG images to YUV (for instance yuv444p10le) in AVI container
- convert AVI back to PNG image.









I am using python 3 and ffmpeg Linux version installed on Colab



I printed the difference between resized_png and restored_png. I have values of 255 which doesn't make sense at all.



[[[ 0 255 1]
 [ 0 0 1]
 [ 0 255 1]
 ...
 [ 1 0 0]
 [ 1 0 0]
 [ 2 0 1]]

 [[ 0 255 1]
 [ 0 255 1]
 [ 1 0 0]
 ...
 [ 1 0 0]
 [ 1 0 0]
 [ 1 0 0]]

 [[ 0 0 1]
 [ 0 0 1]
 [ 0 0 1]
 ...
 [ 1 255 0]
 [ 1 255 1]
 [ 1 0 0]]

 ...

 [[255 0 0]
 [255 0 1]
 [255 0 1]
 ...
 [ 0 0 0]
 [ 0 0 1]
 [255 0 1]]

 [[255 0 1]
 [255 0 1]
 [255 0 1]
 ...
 [ 0 0 1]
 [ 0 0 1]
 [ 0 0 0]]

 [[255 0 1]
 [255 0 1]
 [255 0 1]
 ...
 [255 1 0]
 [255 0 0]
 [255 0 1]]]




input_image = '/content/drive/My Drive/Colab Notebooks/adv_dnn/datasets/im2.jpg'
output_resized = '/content/drive/My Drive/Colab Notebooks/adv_dnn/datasets/im2.png'
folder_path = '/content/drive/My Drive/Colab Notebooks/adv_dnn/datasets/'

#do resize
# code = subprocess.call('cd /usr/bin/ffmpeg', shell=True)
# print(code)
cmd_resize = ['ffmpeg', '-y', '-i', input_image,'-vf', 'scale=224:224', output_resized]
process = subprocess.Popen(cmd_resize, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = process.communicate()
print(out)
print(err)

fmt = ['yuv420p', 'yuv420p10le', 'yuv444p', 'yuv444p10le']
for f in fmt:
 cmd2YUV = ['ffmpeg', '-y', '-i', output_resized, '-c:v', 'libx264', '-preset', 'placebo',\
 '-qp', '0', '-x264-params', "keyint=15:no-deblock=1", '-pix_fmt', f, \
 '-sws_flags', 'spline+accurate_rnd+full_chroma_int', \
 '-vf', "colorspace=bt709:iall=bt601-6-625:fast=1", '-color_range', '1', '-colorspace', '1', 
 '-color_primaries', '1', '-color_trc', '1', folder_path+'im2_'+f+'.avi']
 process = subprocess.Popen(cmd2YUV, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 out, err = process.communicate()
 print(out)
 print(err)

 cmd2PNG = ['ffmpeg', '-y', '-i', folder_path+'im2_'+f+'.avi', '-compression_level', '10', '-pred', 'mixed', \
 '-pix_fmt', 'rgb24', '-sws_flags', '+accurate_rnd+full_chroma_int', \
 folder_path+'im2_'+f+'.png']
 process = subprocess.Popen(cmd2PNG, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 out, err = process.communicate()
 print(out)
 print(err)

im1=pilim.open('/content/drive/My Drive/Colab Notebooks/adv_dnn/datasets/im2.png')
im2=pilim.open('/content/drive/My Drive/Colab Notebooks/adv_dnn/datasets/im2_yuv444p10le.png')
im1_2d = np.asarray(im1)
im2_2d = np.asarray(im2)
print(im2_2d-im1_2d)



-
FFmpeg '-bframebias' option gone ? [closed]
18 mars 2013, par RRNRecently I updated ffmpeg to version 1.1, when I run a command containing
bframebias
, it showed an error :Unrecognized option 'bframebias'.
Error splitting the argument list: Option not foundThis command used to work fine. So the option
bframebias
is removed or it is replaced by another option ?C:\Users\Raymond\Downloads\ffmpeg-1.1-win32-static\bin>ffmpeg -i C:\Users\Raymon
d\Desktop\IntroductiontoITILREAD2.wmv -vcodec libx264 -r 25 -b:v 1500k -profile:
v main -level 41 -bf 3 -direct-pred auto -b_strategy 1 -weightb 1 -bidir_refine
1 -b-pyramid none -bframebias 0 -8x8dct 0 -partitions i8x8,i4x4,p8x8,p4x4,b8x8 -
maxrate 24000k -bufsize 24000k -bt 1.0 -qcomp 0.60 -me_range 16 -sc_threshold 40
-me_method hex -subq 7 -cmp chroma -qmax 69 -qmin 10 -i_qfactor 0.71 -b_qfactor
0.77 -trellis 0 -refs 2 -mixed-refs 0 -coder 1 -fast-pskip 1 -flags +loop -debl
ock 0:0 -rc-lookahead 40 -mbtree 1 -psy 1 -slices 0 -slice-max-size 0 -preset fa
st -acodec libvo_aacenc -profile:a aac_low -ar 48000 -ab 128000 -ac 2 -s 720x576
-aspect 16:9 -f matroska C:\Users\Raymond\Desktop\OUTPUT.mkv
ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 8 2013 16:10:57 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Unrecognized option 'bframebias'.
Error splitting the argument list: Option not found -
ffmpeg : capture rtsp stream continously without stoping
21 décembre 2019, par Santhosh YedidiI am trying to capture an rtsp stream
ffmpeg -rtsp_transport tcp -i "rtsp://...." -acodec copy -vcodec copy file.ts
But this will only record for few seconds and stop
ffmpeg version n4.1.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181127
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[rtsp @ 0x564a002b4e80] max delay reached. need to consume packet
[rtsp @ 0x564a002b4e80] RTP: missed 3 packets
[h264 @ 0x564a002b8a80] out of range intra chroma pred mode
[h264 @ 0x564a002b8a80] error while decoding MB 8 43
[h264 @ 0x564a002b8a80] concealing 1401 DC, 1401 AC, 1401 MV errors in I frame
Input #0, rtsp, from 'rtsp://...':
Metadata:
title : RTSP Session/2.0
Duration: N/A, start: 0.463333, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, progressive), 1280x960, 15 fps, 100 tbr, 90k tbn, 30 tbc
Output #0, mpegts, to 'file.ts':
Metadata:
title : RTSP Session/2.0
encoder : Lavf58.20.100
Stream #0:0: Video: h264 (Main), yuvj420p(pc, progressive), 1280x960, q=2-31, 15 fps, 100 tbr, 90k tbn, 90k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 380 fps= 16 q=-1.0 Lsize= 6962kB time=00:00:24.86 bitrate=2293.5kbits/s speed=1.06x
video:6416kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.512586%How to keep the recording continous