
Recherche avancée
Autres articles (49)
-
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 (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (5677)
-
webm video - it can not be copy to cut a correct time part for ffmpeg command(without re-encode) [closed]
15 mars 2024, par DanielHsuCommand Goal :


- 

- fast copy video's part
- no re-encode with libvpx






Linux command below :
ffmpeg -ss 00:01:00 -to 00:02:00 -i input.webm -c copy output.webm


command's process details :


ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration:
--enable-libvpx libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 
9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 Input #0, matroska,webm, from 'input.webm': Metadata:
 title : FFmpeg
 ENCODER : Lavf58.29.100 Duration: 00:06:04.43, start: 0.000000, bitrate: 2487 kb/s Stream #0:0: Video: vp8, yuv420p(tv, bt470bg/unknown/unknown, progressive), 1280x720, SAR 1:1 DAR 16:9, 1k tbr, 1k tbn (default)
 Metadata:
 DURATION : 00:06:04.432000000 Output #0, webm, to 'output.webm': Metadata:
 title : FFmpeg
 encoder : Lavf60.16.100 Stream #0:0: Video: vp8, yuv420p(tv, bt470bg/unknown/unknown, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1k tbr, 1k tbn (default)
 Metadata:
 DURATION : 00:06:04.432000000 Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [out#0/webm @ 0x5609ee9bb840] video:35912kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.069370% size= 35937kB time=00:00:59.96 bitrate=4909.2kbits/s speed= 211x



command usage's result :
output.webm always start from input.webm's 00:00:00 to end input.webm's 00:01:00
(it should be start from input.webm's 00:01:00 to end input.webm's 00:02:00 )


input.webm format details from mediainfo tool :




General Count : 331 Count of stream
of this kind : 1 Kind of stream

 : General Kind of stream : General Stream
identifier : 0 Count of video streams

 : 1 Video_Format_List : VP8
Video_Format_WithHint_List : VP8 Codecs Video

 : VP8 Complete name :
pure_film/65ea641a4075c92236151349_video.webm Folder name

 : pure_film File name extension :
65ea641a4075c92236151349_video.webm File name

 : 65ea641a4075c92236151349_video File extension

 : webm Format : WebM Format

 : WebM Format/Url :
http://www.webmproject.org/ Format/Extensions usually used :
webm Commercial name : WebM Format version

 : Version 2 Internet media type : video/webm File
size : 113301943 File size

 : 108 MiB File size : 108 MiB File size
 : 108 MiB File size : 108 MiB File size
 : 108.1 MiB Duration : 364432 Duration
 : 6 min 4 s Duration : 6 min 4 s 432
ms Duration : 6 min 4 s Duration

 : 00:06:04.432 Duration : 00:06:04.432
Overall bit rate : 2487201 Overall bit rate

 : 2 487 kb/s Stream size : 4801069 Stream
size : 4.58 MiB (4%) Stream size

 : 5 MiB Stream size : 4.6 MiB Stream size
 : 4.58 MiB Stream size : 4.579 MiB Stream
size : 4.58 MiB (4%) Proportion of this
stream : 0.04237 IsStreamable

 : Yes Title : FFmpeg Movie name

 : FFmpeg File last modification date : UTC 2024-03-08
01:41:47 File last modification date (local) : 2024-03-08
09:41:47 Writing application : Lavf58.29.100
Writing application : Lavf58.29.100 Writing
library : Lavf58.29.100 Writing library

 : Lavf58.29.100

Video Count : 377 Count of stream
of this kind : 1 Kind of stream

 : Video Kind of stream : Video Stream
identifier : 0 StreamOrder

 : 0 ID : 1 ID

 : 1 Unique ID : 1 Format

 : VP8 Format : VP8 Format/Url

 : http://www.webmproject.org/ Commercial name

 : VP8 Codec ID : V_VP8 Codec ID/Url

 : http://www.webmproject.org/ Duration

 : 364432.000000 Duration : 6 min 4 s
Duration : 6 min 4 s 432 ms Duration

 : 6 min 4 s Duration : 00:06:04.432
Duration : 00:06:04.432 Bit rate

 : 2381808 Bit rate : 2 382 kb/s Width
 : 1280 Width : 1 280 pixels Height
 : 720 Height : 720 pixels Pixel
aspect ratio : 1.000 Display aspect ratio

 : 1.778 Display aspect ratio : 16:9 Frame rate
mode : VFR Frame rate mode

 : Variable Color space : YUV Compression
mode : Lossy Compression mode

 : Lossy Delay : 0 Delay

 : 00:00:00.000 Delay, origin : Container
Delay, origin : Container Stream size

 : 108500874 Stream size : 103 MiB (96%)
Stream size : 103 MiB Stream size

 : 103 MiB Stream size : 103 MiB Stream
size : 103.5 MiB Stream size

 : 103 MiB (96%) Proportion of this stream : 0.95763
Default : Yes Default

 : Yes Forced : No Forced

 : No colour_description_present : Yes
colour_description_present_Source : Container Color range

 : Limited colour_range_Source : Container Matrix
coefficients : BT.470 System B/G
matrix_coefficients_Source : Container



How to make the output.webm be in correct time range(00:01:00 00:02:00) ????


-
FFMPEG in Node.js : Conversion Failed
11 juillet 2024, par cuneyttylerI have a small node.js web app. I use like this in a get request :


app.get('/api/voice/:gender/:voice/:pitch', function(req, res){
 if(req.params.pitch == "1" || req.params.pitch == "1.0") {
 const file = "./voices/" + req.params.gender.toLowerCase() + "/" + req.params.voice + ".mp3"
 res.download(file);
 return
 }

 const inputFile = "./voices/" + req.params.gender.toLowerCase() + "/" + req.params.voice + ".mp3"
 const output_file = "./Audio/Temp/" + req.params.voice + ".mp3"
 ffmpeg()
 .input(inputFile)
 .audioCodec('pcm_s16le') // Set the audio codec to PCM with 16-bit depth
 .audioFrequency(44100) // Set the sample rate
 .on('error', function(err) {
 console.error('Error while converting:', err);
 })
 .on('end', function() {
 // res.download(output_file)
 })
 .save(output_file);

 });



It gives
Conversion Failed
error :

[2024-07-11T18:11:22.880Z] Error while converting: Error: ffmpeg exited with code 1: Conversion failed!

 at ChildProcess.<anonymous> (d:\Dev\Anima\Client\node_modules\fluent-ffmpeg\lib\processor.js:180:22)
 at ChildProcess.emit (d:\Dev\Anima\Client\lib\events.js:519:28)
 at ChildProcess._handle.onexit (d:\Dev\Anima\Client\lib\internal\child_process.js:294:12)
 at Process.callbackTrampoline (node:internal/async_hooks:130:17) {stack: 'Error: ffmpeg exited with code 1: Conversion …Trampoline (node:internal/async_hooks:130:17)', message: 'ffmpeg exited with code 1: Conversion failed!
'}
</anonymous>


When I use same code in a node.js desktop(.exe) app, it successfully runs. When I use it in an express.js app, it fails. Error message is not clear. What is the issue ?


-
lavc/vvc : Check slice structure
10 janvier, par Frank Plowmanlavc/vvc : Check slice structure
The criteria for slice structure validity is similar to that of
subpicture structure validity that we saw not too long ago [1].
The relationship between tiles and slices must satisfy the following
properties :* Exhaustivity. All tiles in a picture must belong to a slice. The
tiles cover the picture, so this implies the slices must cover the
picture.
* Mutual exclusivity. No tile may belong to more than one slice, i.e.
slices may not overlap.In most cases these properties are guaranteed by the syntax. There is
one noticable exception however : when pps_tile_idx_delta_present_flag is
equal to one, each slice is associated with a syntax element
pps_tile_idx_delta_val[i] which "specifies the difference between the
tile index of the tile containing the first CTU in the ( i + 1 )-th
rectangular slice and the tile index of the tile containing the first
CTU in the i-th rectangular slice" [2]. When these syntax elements are
present, the i-th slice can begin anywhere and the usual guarantees
provided by the syntax are lost.The patch detects slice structures which violate either of the two
properties above, and are therefore invalid, while building the
slice map. Should the slice map be determined to be invalid, an
AVERROR_INVALIDDATA is returned. This prevents issues including
segmentation faults when trying to decode, invalid bitstreams.[1] : https://ffmpeg.org//pipermail/ffmpeg-devel/2024-October/334470.html
[2] : H.266 (V3) Section 7.4.3.5, Picture parameter set RBSP semanticsSigned-off-by : Frank Plowman <post@frankplowman.com>