
Recherche avancée
Médias (2)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (68)
-
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 (...) -
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 (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (7578)
-
ffmpeg does not compress video (produces empty file)
1er septembre 2019, par kalmanIsAGameChangerI am trying to compress a video with ffmpeg.
My operating system : Ubuntu 16.04
My ffmpeg version (retrieved through
ffmpeg -version
) :ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609FYI, The information about the video can be retrieved with :
ffprobe -show_streams -i "video.mp4"
and I get :
ffprobe version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2007-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a2019a_video_2.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: mp41mp42isom
creation_time : 2019-08-28 15:28:45
Duration: 00:03:12.49, start: 0.000000, bitrate: 10884 kb/s
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 12 kb/s (default)
Metadata:
creation_time : 2019-08-28 15:28:45
handler_name : Core Media Audio
Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 10862 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 120k tbc (default)
Metadata:
creation_time : 2019-08-28 15:28:45
handler_name : Core Media Video
[STREAM]
index=0
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/48000
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/48000
start_pts=0
start_time=0.000000
duration_ts=9242624
duration=192.554667
bit_rate=12469
max_bit_rate=128000
bits_per_raw_sample=N/A
nb_frames=9026
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
TAG:creation_time=2019-08-28 15:28:45
TAG:language=eng
TAG:handler_name=Core Media Audio
[/STREAM]
[STREAM]
index=1
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=1/120000
codec_tag_string=avc1
codec_tag=0x31637661
width=1280
height=720
coded_width=1280
coded_height=720
has_b_frames=0
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=32
color_range=tv
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
timecode=N/A
refs=2
is_avc=1
nal_length_size=4
id=N/A
r_frame_rate=60000/1001
avg_frame_rate=60000/1001
time_base=1/60000
start_pts=0
start_time=0.000000
duration_ts=11549538
duration=192.492300
bit_rate=10862370
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=11538
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
TAG:creation_time=2019-08-28 15:28:45
TAG:language=und
TAG:handler_name=Core Media Video
[/STREAM]However, when I try to compress it through the following command :
ffmpeg -y -i video.mp4 -vcodec h264 -crf 10 output.mp4
the process just finishes super fast without any error but I get an empty file called output.mp4 (its dimension is 0KB).
EDIT : Actually there is something which appears in the console (Even if it is not an error). The following :
The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
I also tried with the following commands (changing codec etc.)
ffmpeg -i video.mp4 output.mp4
ffmpeg -y -i video.mp4 -vcodec copy -crf 10 output.mp4
ffmpeg -i video.mp4 -vcodec libx264 -crf 10 output.mp4
ffmpeg -i video.mp4 -vcodec libx265 -crf 10 output.mp4
But I have always the same problem.
-
Error using PyDub : pcm_s8 codec not supported in WAVE format
29 mai 2020, par thf9527Tried to read in a WAVE file.



Pydub has been working perfectly for the past few months, until I have encountered a specific WAVE file format where I could not import into Python (but it has no issue while playing on windows media player and other players).



from pydub import AudioSegment

file = r"NICE_Dev.wav"
print(utils.mediainfo(file))
try:
 data = AudioSegment.from_file(file)

except Exception as e:
 print(e)




The error message is :



ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 8.3.1 (GCC) 20190414
 configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --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. 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
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'NICE_Dev.wav':
 Duration: 00:25:55.39, bitrate: 64 kb/s
 Stream #0:0: Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (pcm_mulaw (native) -> pcm_s8 (native))
Press [q] to stop, [?] for help
[wav @ 00000265db3c1bc0] pcm_s8 codec not supported in WAVE format
Could not write header for output file #0 (incorrect codec parameters ?): Function not implemented
Error initializing output stream 0:0 -- 
Conversion failed!




I believe it is due to the encoding pcm_s8, but I could not figure out how to solve this issue, the details of the audio file using "utils.mediainfo" is :



{'index': '0', 'codec_name': 'pcm_mulaw', 'codec_long_name': 'PCM mu-law / 
G.711 mu-law', 'profile': 'unknown', 'codec_type': 'audio', 'codec_time_base': 
'1/8000', 'codec_tag_string': '[7][0][0][0]', 'codec_tag': '0x0007', 
'sample_fmt': 's16', 'sample_rate': '8000', 'channels': '1', 'channel_layout': 
'unknown', 'bits_per_sample': '8', 'id': 'N/A', 'r_frame_rate': '0/0', 
'avg_frame_rate': '0/0', 'time_base': '1/8000', 'start_pts': 'N/A', 
'start_time': 'N/A', 'duration_ts': '12443128', 'duration': '1555.391000', 
'bit_rate': '64000', 'max_bit_rate': 'N/A', 'bits_per_raw_sample': 'N/A', 
'nb_frames': 'N/A', 'nb_read_frames': 'N/A', 'nb_read_packets': 'N/A', 
'DISPOSITION': {'default': '0', 'dub': '0', 'original': '0', 'comment': '0', 
'lyrics': '0', 'karaoke': '0', 'forced': '0', 'hearing_impaired': '0', 
'visual_impaired': '0', 'clean_effects': '0', 'attached_pic': '0', 
'timed_thumbnails': '0'}, 'filename': 'NICE_Dev.wav', 'nb_streams': '1', 
'nb_programs': '0', 'format_name': 'wav', 'format_long_name': 'WAV / WAVE 
(Waveform Audio)', 'size': '12443174', 'probe_score': '99'}



-
Output file #0 does not contain any stream , Webm VP9 live streaming
30 août 2019, par SalemThe source video I use is H264 m3u8 live stream and this is the command I tried
ffmpeg -re -i "http://sorce.com/live.m3u8" -c:v libvpx-vp9 -s 480x360 -keyint_min 60\
-g 60 -speed 5 -tile-columns 4 -frame-parallel 1 -threads 8 -static-thresh 0 \
-max-intra-rate 300 -deadline realtime -lag-in-frames 0 -error-resilient 1 \
-b:v 300k -c:a libvorbis -b:a 64k -ar 44100 -f webm_chunk -audio_chunk_duration 2000 \
-header "/var/www/example.com/live/glass_360.hdr" -chunk_start_index 1 \
/var/www/example.com/live/glass_360_%d.chkI pickup this code from wkiki.webmproject.org
this is command full logffmpeg version N-94564-gaac382e Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/root/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfribidi --enable-nonfree
libavutil 56. 33.100 / 56. 33.100
libavcodec 58. 55.100 / 58. 55.100
libavformat 58. 30.100 / 58. 30.100
libavdevice 58. 9.100 / 58. 9.100
libavfilter 7. 58.100 / 7. 58.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, mpegts, from 'http://sorce.com/live.m3u8':
Duration: N/A, start: 3860.014278, 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), 1600x900 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 121 kb/s
Output #0, webm_chunk, to '/var/www/example.com/live/glass_360_%d.chk':
Output file #0 does not contain any streammost of the time I got this error message
[libvorbis @ 0x5617bae0c240] encoder setup failed Error initializing
output stream 0:1 -- Error while opening encoder for output stream
#0:1 - maybe incorrect parameters such as bit_rate, rate, width or heightHere is FFMPEG command output
Input #0, mpegts, from 'http://sorce.com/live.m3u8':
Duration: N/A, start: 1369.000978, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 127 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> vp9 (libvpx-vp9))
Stream #0:1 -> #0:1 (aac (native) -> vorbis (libvorbis))I already add video map before video and audio coding argue but I got same error
-map 0:v:0 -c:v libvpx-vp9 and -map 0:a:0 -c:a libvorbis
I tried new broadcast command it works first after I disable the audio
VP9_DASH_PARAMS="-tile-columns 4 -frame-parallel 1 -speed 6" && \
ffmpeg -y -re -i http://sorce.com/live.m3u8 -c:v libvpx-vp9 -s 480x360 -b:v 150k \
-keyint_min 150 -g 150 ${VP9_DASH_PARAMS} -an -f webm -dash 1 \
video_1280x720_500k.webm && sleep 1 && ffmpeg -f webm_dash_manifest \
-i video_1280x720_500k.webm -c copy -f webm_dash_manifest - \ adaptation_sets "id=0" manifest.mpdSource
this command didn’t createmanifest.mpd
it created onlyvideo_1280x720_500k.webm
==Edit==
I write new command (exactly as web wiki said )and everything works perfectly now
VP9_LIVE_PARAMS=" -tile-columns 4 -frame-parallel 1 -threads 4 -static-thresh 0 -max-intra-rate 300 -deadline good -speed 5 -slices 0 -row-mt 1 -lag-in-frames 0 -error-resilient 1" ; \
ffmpeg -loglevel 0 -re -i http://sorce.com/live.m3u8 \
-map 0:v -pix_fmt yuv420p -c:v libvpx-vp9 -s 480x360 -r 23.976 -keyint_min 60 -g 60 ${VP9_LIVE_PARAMS} -b:v 300k \
-f webm_chunk -header "/var/www/example.com/live/glass_360.hdr" -chunk_start_index 1 \
/var/www/example.com/live/glass_360_%d.chk \
-map 0:a -c:a libvorbis -b:a 64k \
-f webm_chunk -audio_chunk_duration 2000 -header /var/www/example.com/live/glass_171.hdr \
-chunk_start_index 1 /var/www/example.com/live/glass_171_%d.chkthis is command to generate .mpd file
ffmpeg -y -f webm_dash_manifest -live 1 \
-i /var/www/example.com/live/glass_360.hdr \
-f webm_dash_manifest -live 1 \
-i /var/www/example.com/live/glass_171.hdr \
-c copy -map 0 -map 1 \
-f webm_dash_manifest -live 1 \
-adaptation_sets "id=0,streams=0 id=1,streams=1" \
-chunk_start_index 1 -chunk_duration_ms 2000 \
-time_shift_buffer_depth 7200 -minimum_update_period 7200 \
/var/www/example.com/live/glass_live_manifest.mpdand this is
webtest.html
file<code class="echappe-js"><script src='http://stackoverflow.com/feeds/tag/dash.all.min.js'></script>