
Recherche avancée
Autres articles (35)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)
Sur d’autres sites (5194)
-
ffmpeg concat last image duration incorrect
27 novembre 2019, par SIDUHere is my png.txt file :
file '01.png'
duration 92
file '02.png'
duration 46
file '03.png'
duration 67
file '04.png'
duration 62
file '05.png'
duration 57
file '06.png'
duration 3
file '06.png'mp3 duration = 00:05:28 (total of above)
And here is the line :
ffmpeg -f concat -i png.txt -vsync vfr -i 20170817.mp3 -c:a aac -s 1280x720 -c:v libx264 -pix_fmt yuv420p -shortest 20170817.mp4
And here is the output :
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 8.1.0 (clang-802.0.42)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, concat, from 'png.txt':
Duration: 00:05:27.00, start: 0.000000, bitrate: 0 kb/s
Stream #0:0: Video: png, rgba(pc), 1280x720 [SAR 2835:2835 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Input #1, mp3, from '20170817.mp3':
Metadata:
encoder : Lavf57.71.100
Duration: 00:05:28.10, start: 0.069063, bitrate: 24 kb/s
Stream #1:0: Audio: mp3, 16000 Hz, mono, s16p, 24 kb/s
File '20170817.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (mp3 (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x7fbe83003000] using SAR=1/1
[libx264 @ 0x7fbe83003000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7fbe83003000] profile High, level 3.1
[libx264 @ 0x7fbe83003000] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '20170817.mp4':
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc57.89.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 16000 Hz, mono, fltp, 69 kb/s
Metadata:
encoder : Lavc57.89.100 aac
frame= 7 fps=4.2 q=-1.0 Lsize= 3349kB time=00:05:27.04 bitrate= 83.9kbits/s speed= 196x
video:465kB audio:2863kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.644585%
[libx264 @ 0x7fbe83003000] frame I:1 Avg QP: 7.93 size:159157
[libx264 @ 0x7fbe83003000] frame P:2 Avg QP:17.16 size: 61998
[libx264 @ 0x7fbe83003000] frame B:4 Avg QP:18.34 size: 48049
[libx264 @ 0x7fbe83003000] consecutive B-frames: 14.3% 28.6% 0.0% 57.1%
[libx264 @ 0x7fbe83003000] mb I I16..4: 48.6% 21.6% 29.8%
[libx264 @ 0x7fbe83003000] mb P I16..4: 4.4% 9.8% 19.7% P16..4: 11.6% 3.0% 2.6% 0.0% 0.0% skip:48.9%
[libx264 @ 0x7fbe83003000] mb B I16..4: 0.4% 0.5% 13.2% B16..8: 14.9% 3.9% 2.6% direct: 1.1% skip:63.4% L0:45.0% L1:52.1% BI: 3.0%
[libx264 @ 0x7fbe83003000] 8x8 transform intra:19.2% inter:38.3%
[libx264 @ 0x7fbe83003000] coded y,uvDC,uvAC intra: 52.3% 63.3% 62.4% inter: 8.6% 7.7% 6.9%
[libx264 @ 0x7fbe83003000] i16 v,h,dc,p: 88% 9% 3% 0%
[libx264 @ 0x7fbe83003000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 12% 45% 2% 2% 3% 2% 3% 4%
[libx264 @ 0x7fbe83003000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 26% 18% 5% 5% 5% 5% 6% 6%
[libx264 @ 0x7fbe83003000] i8c dc,h,v,p: 55% 18% 20% 8%
[libx264 @ 0x7fbe83003000] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fbe83003000] ref P L0: 93.3% 0.3% 3.7% 2.8%
[libx264 @ 0x7fbe83003000] ref B L0: 85.2% 14.8%
[libx264 @ 0x7fbe83003000] ref B L1: 87.8% 12.2%
[libx264 @ 0x7fbe83003000] kb/s:11.52
[aac @ 0x7fbe83004800] Qavg: 1971.172The problem is that the mp4 has 00:06:45 duration, and the music finished at 00:05:28
How do I chop the last silent bit off ?
I tried the following :
ffmpeg -ss 0 -i 20170817.mp4 -to 00:05:28 -c copy cut.mp4
Which is worse. Adds blank silent video at front, and chop the video at middle which yet to finish.
Please note the first 5 images are correct at right music positions, only last image duration error
-
How to encode specific metadata version in FFMPEG ?
11 février 2021, par Charlie BrittonI am batch converting lots of songs into shorter "Advert" songs for SHOUTcast and to be recognised as adverts by the server. The song must have
":Advert"
for both the title and the artist metadata tags. When I use the following command :


ffmpeg -i "$i" -c copy -vn -map_metadata -1 -metadata title=":Advert" -metadata artist=":Advert" -t 120 "adverts/ADVERT_$i"




I would expect it to output the song with only
":Advert"
as title and artist metadata but when I import it into the radio playout software (using ID3 1.x tagging) the metadata has not copied across and is therefore lost. Output from ffmpeg :


ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
 built with Apple LLVM version 9.0.0 (clang-900.0.37)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --disable-lzma --enable-vda
 libavutil 55. 17.103 / 55. 17.103
 libavcodec 57. 24.102 / 57. 24.102
 libavformat 57. 25.100 / 57. 25.100
 libavdevice 57. 0.101 / 57. 0.101
 libavfilter 6. 31.100 / 6. 31.100
 libavresample 3. 0. 0 / 3. 0. 0
 libswscale 4. 0.100 / 4. 0.100
 libswresample 2. 0.101 / 2. 0.101
 libpostproc 54. 0.100 / 54. 0.100
[mp3 @ 0x7feba6800000] Skipping 0 bytes of junk at 230934.
[mjpeg @ 0x7feba7000600] Changing bps to 8
Input #0, mp3, from 'Joakim Karud - Vibe With Me.mp3':
 Metadata:
 major_brand : dash
 minor_version : 0
 compatible_brands: iso6mp41
 encoder : Lavf56.40.101
 artist : Joakim Karud
 title : Vibe With Me
 Duration: 00:02:53.06, start: 0.025056, bitrate: 138 kb/s
 Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
 Metadata:
 encoder : Lavc56.60
 Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
 Metadata:
 comment : Cover (front)
Output #0, mp3, to 'adverts/ADVERT_Joakim Karud - Vibe With Me.mp3':
 Metadata:
 TIT2 : :Advert
 TPE1 : :Advert
 TSSE : Lavf57.25.100
 Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 1876kB time=00:02:00.00 bitrate= 128.1kbits/s speed=1.44e+03x
video:0kB audio:1876kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.024837%




I believe this is happening because the tag names are different (e.g. title should be
title
, but isTIT2
when output. Please could someone specify how I could ensure that the metadata is encoded in the ID3 1.x format so that it is readable by the radio playout software. Many thanks.

-
How to stream M4A files correctly ?
3 novembre 2017, par NineCattoRulesI would like to stream an M4A audio file but for some reason the player starts to play the song only after downloaded the entire file.
<audio controls="controls">
<source src="https://php-test-easybreazy.c9users.io/music/1021785690_1171244514_239291028.m4a" type="audio/mpeg">
Your browser does not support the audio element.
</source></audio>In my Ubuntu server I used FFMPEG to encode my audio file.
The only thing I can think of is a metadata/encode issue.
Why the player starts playing only after downloaded the entire file audio ?