
Recherche avancée
Médias (3)
-
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
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
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 (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)
Sur d’autres sites (7854)
-
How to get a 7.1 PCMle encode in an MOV container to stay a single track while also rendering as 8 mono tracks in an NLE like an MXF container
26 février 2024, par varys_da_spidahI've been trying to convert Blu-Ray footage to the most efficient, yet least time consuming format for editing footage from them. For a while, I would make an MXF container and encode the h264 to DNxHD and the lossless compressed audio to pcm_s24le. I really liked how convenient it was to have my audio linked to my video, how it could be played as a single track in a media player, but then be inserted into my NLE as 6-8 separate mono tracks.


However, I found the DNxHD encodes to be unnecessary as they took up too much storage space and my NLE could perfectly handle the original h264 files in an MOV or MP4 container. But I noticed that switching from MXF to an MOV container meant that things that were jettisoned from the former were in the latter. Some of this was actually welcome, like the chapter markers, but I noticed that 7.1 audio (but not 5.1 for some reason) would now render in my NLE as a single 7.1 track.


I looked in MediaInfo and think I figured out that the issue is that the MOV container formats the channel layout while the MXF one doesn't. I'll paste the info to show what I mean


MOV FILE




- 

- ID : 2
- Format : PCM
- Format settings : Little / Signed
- Codec ID : in24
- Duration : 1 min 41 s
- Bit rate mode : Constant
- Bit rate : 9 216 kb/s
- Channel(s) : 8 channels
- Channel layout : L R C LFE Ls Rs Lb Rb
- Sampling rate : 48.0 kHz
- Bit depth : 24 bits
- Stream size : 111 MiB (34%)
- Title : English
- Language : English
- Default : Yes
- Alternate group : 1
- Menus : 3






































MXF FILE




- 

- ID : 3
- Format : PCM
- Format settings : Little
- Format settings, wrapping mode : Frame (AES)
- Codec ID : 0D01030102060300
- Duration : 1 min 13 s
- Bit rate mode : Constant
- Bit rate : 9 216 kb/s
- Channel(s) : 8 channels
- Sampling rate : 48.0 kHz
- Frame rate : 23.976 FPS (2002 SPF)
- Bit depth : 24 bits
- Stream size : 81.1 MiB (5%)
- Delay_SDTI : 0
- Locked : Yes


































Any ideas ?


I tried this code :


ffmpeg -i "INPUT.mkv" -c:v copy -r 23.976 -c:a pcm_s24le -filter_complex "[0:a:0]pan=mono|c0=c0[a0]; [0:a:1]pan=mono|c0=c0[a1]; [0:a:2]pan=mono|c0=c0[a2]; [0:a:3]pan=mono|c0=c0[a3]; [0:a:4]pan=mono|c0=c0[a4]; [0:a:5]pan=mono|c0=c0[a5]; [0:a:6]pan=mono|c0=c0[a6]; [0:a:7]pan=mono|c0=c0[a7]; [a0][a1][a2][a3][a4][a5][a6][a7]amerge=inputs=8" "OUTPUT.mov”


And got this error message :


Stream specifier ':a:4' in filtergraph description [0:a:0]pan=mono|c0=c0[a0]; [0:a:1]pan=mono|c0=c0[a1]; [0:a:2]pan=mono|c0=c0[a2]; [0:a:3]pan=mono|c0=c0[a3]; [0:a:4]pan=mono|c0=c0[a4]; [0:a:5]pan=mono|c0=c0[a5]; [0:a:6]pan=mono|c0=c0[a6]; [0:a:7]pan=mono|c0=c0[a7]; [a0][a1][a2][a3][a4][a5][a6][a7]amerge=inputs=8 matches no streams.


-
conflicting of headers between ffmpeg and s3
2 août 2021, par JulietteI have the code below in my server.js file for a web app that uses express for the backend and a built create react app that it serves.


require('rootpath')();
const path = require('path');
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
const cookieParser = require('cookie-parser');
const cors = require('cors');

app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use(cookieParser());

app.use(cors());


app.use(function(req, res, next) {
 res.header("Cross-Origin-Embedder-Policy", "require-corp");
 res.header("Cross-Origin-Opener-Policy", "same-origin");
 next();
});

// Have Node serve the files for our built React app
app.use(express.static(path.resolve(__dirname, 'build')));

// file api routes
app.use('/accounts', require('./accounts/accounts.controller'));

// file api routes
app.use('/files', require('./files/files.controller'));


// All other GET requests not handled before will return our React app
app.get('*', (req, res) => {
 res.sendFile(path.resolve(__dirname, 'build', 'index.html'));
});

// start server
const port = process.env.PORT || 2002;
app.listen(port, () => console.log('Server listening on port ' + port));



The issue here is that I need this segment of code for my ffmpeg file upload to occur otherwise it throws a SharedArrayBuffer error :


app.use(function(req, res, next) {
 res.header("Cross-Origin-Embedder-Policy", "require-corp");
 res.header("Cross-Origin-Opener-Policy", "same-origin");
 next();
 });



However, when I leave this code in, another part of my program breaks down which gets presigned urls from s3 and plays audio. The issue whenever I play audios from my s3 bucket there is this :


ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep



The s3 code is this :


function getTemporaryURL({ data }) {

 const customer_id = data['customer-id'];
 const sound_id = data['sound-id'];
 
 return new Promise((resolve, reject) => {
 //get presigned url

 var myBucket = process.env.NODE_APP_BUCKET_NAME;
 var myKey = "sounds/" + customer_id + "/" + sound_id + ".wav"; 
 const signedUrlExpireSeconds = 120;
 try {
 const url = s3.getSignedUrl('getObject', {
 Bucket: myBucket,
 Key: myKey,
 ResponseContentDisposition: 'attachment',
 Expires: signedUrlExpireSeconds
 });
 resolve(url)
 }
 catch {
 console.log('S3 Object does not exist');
 resolve('');
 }
 });
}



How can I modify my server.js to accommodate both of my needs ?


-
ffmpeg example progs fail on Ubuntu 18.04.5 but work on macOS 10.14.6
18 septembre 2020, par GR99Am trying to build ffmpeg 4.3 example progs downloaded from git source on both Ubuntu 18.04.5 and macOS Mojave 10.14.6. All built correctly on both systems. Compiled progs work on macOS but fail on Ubuntu. For example :


On Ubuntu when I run the muxing program with very basic info I get this :


dev@boots:~/code/new_ffmpeg/FFmpeg-master/doc/examples$ ./muxing test.mp4
[mpeg4 @ 0x5626024f8b40] [IMGUTILS @ 0x7ffdd2893080] Picture size 0x0 is invalid
[mpeg4 @ 0x5626024f8b40] Ignoring invalid width/height values
[mpeg4 @ 0x5626024f8b40] [IMGUTILS @ 0x7ffdd2893060] Picture size 0x0 is invalid
[mpeg4 @ 0x5626024f8b40] The encoder timebase is not set.
Could not open video codec: Invalid argument
dev@boots:~/code/new_ffmpeg/FFmpeg-master/doc/examples$ 



But when I run the same on macOS I get this :


Kinley:examples CC15$ ./muxing test.mp4
Output #0, mp4, to 'test.mp4':
 Stream #0:0: Video: mpeg4, yuv420p, 352x288, q=2-31, 400 kb/s, 25 tbn
 Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 64 kb/s
pts:0 pts_time:0 dts:0 dts_time:0 duration:0 duration_time:0 stream_index:0
pts:-1024 pts_time:-0.02322 dts:-1024 dts_time:-0.02322 duration:1024 duration_time:0.02322 stream_index:1
pts:512 pts_time:0.04 dts:512 dts_time:0.04 duration:0 duration_time:0 stream_index:0
pts:0 pts_time:0 dts:0 dts_time:0 duration:1024 duration_time:0.02322 stream_index:1
pts:1024 pts_time:0.02322 dts:1024 dts_time:0.02322 duration:1024 duration_time:0.02322 stream_index:1
pts:1024 pts_time:0.08 dts:1024 dts_time:0.08 duration:0 duration_time:0 stream_index:0



... many lines removed...


pts:127488 pts_time:9.96 dts:127488 dts_time:9.96 duration:0 duration_time:0 stream_index:0
pts:437248 pts_time:9.91492 dts:437248 dts_time:9.91492 duration:1024 duration_time:0.02322 stream_index:1
pts:438272 pts_time:9.93814 dts:438272 dts_time:9.93814 duration:1024 duration_time:0.02322 stream_index:1
pts:128000 pts_time:10 dts:128000 dts_time:10 duration:0 duration_time:0 stream_index:0
pts:439296 pts_time:9.96136 dts:439296 dts_time:9.96136 duration:1024 duration_time:0.02322 stream_index:1
pts:440320 pts_time:9.98458 dts:440320 dts_time:9.98458 duration:1024 duration_time:0.02322 stream_index:1
[aac @ 0x7f99d4009600] Qavg: 386.667
Kinley:examples CC15$ 



When I run the remuxing program on Ubuntu I get this :


dev@boots:~/code/new_ffmpeg/FFmpeg-master/doc/examples$ ./remuxing test1.mp4 gaga.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test1.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2mp41
 encoder : Lavf58.51.101
 Duration: 00:00:30.67, start: 0.000000, bitrate: 2468 kb/s
 Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2392 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
 Metadata:
 handler_name : Core Media Video
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)
 Metadata:
 handler_name : Core Media Audio
Segmentation fault (core dumped)
dev@boots:~/code/new_ffmpeg/FFmpeg-master/doc/examples$ 



When I run the same on macOS I get this :


Kinley:examples CT15$ ./remuxing test1.mp4 gaga.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test1.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.45.100
 Duration: 00:00:30.67, start: 0.000000, bitrate: 4145 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 4067 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
 Metadata:
 handler_name : Core Media Video
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)
 Metadata:
 handler_name : Core Media Audio
Output #0, mp4, to 'gaga.mp4':
 Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 4067 kb/s
 Stream #0:1: Audio: aac (LC), 44100 Hz, mono, fltp, 69 kb/s
in: pts:0 pts_time:0 dts:-2002 dts_time:-0.0667333 duration:1001 duration_time:0.0333667 stream_index:0
out: pts:0 pts_time:0 dts:-6006 dts_time:-0.0667333 duration:3003 duration_time:0.0333667 stream_index:0
in: pts:2002 pts_time:0.0667333 dts:-1001 dts_time:-0.0333667 duration:1001 duration_time:0.0333667 stream_index:0
out: pts:6006 pts_time:0.0667333 dts:-3003 dts_time:-0.0333667 duration:3003 duration_time:0.0333667 stream_index:0
in: pts:-1024 pts_time:-0.02322 dts:-1024 dts_time:-0.02322 duration:1024 duration_time:0.02322 stream_index:1
out: pts:-1024 pts_time:-0.02322 dts:-1024 dts_time:-0.02322 duration:1024 duration_time:0.02322 stream_index:1
in: pts:1001 pts_time:0.0333667 dts:0 dts_time:0 duration:1001 duration_time:0.0333667 stream_index:0
out: pts:3003 pts_time:0.0333667 dts:0 dts_time:0 duration:3003 duration_time:0.0333667 stream_index:0
in: pts:0 pts_time:0 dts:0 dts_time:0 duration:1024 duration_time:0.02322 stream_index:1



...many lines removed... and last 10 lines :


in: pts:1347584 pts_time:30.5575 dts:1347584 dts_time:30.5575 duration:1024 duration_time:0.02322 stream_index:1
out: pts:1347584 pts_time:30.5575 dts:1347584 dts_time:30.5575 duration:1024 duration_time:0.02322 stream_index:1
in: pts:917917 pts_time:30.5972 dts:916916 dts_time:30.5639 duration:1001 duration_time:0.0333667 stream_index:0
out: pts:2753751 pts_time:30.5972 dts:2750748 dts_time:30.5639 duration:3003 duration_time:0.0333667 stream_index:0
in: pts:1348608 pts_time:30.5807 dts:1348608 dts_time:30.5807 duration:1024 duration_time:0.02322 stream_index:1
out: pts:1348608 pts_time:30.5807 dts:1348608 dts_time:30.5807 duration:1024 duration_time:0.02322 stream_index:1
in: pts:1349632 pts_time:30.6039 dts:1349632 dts_time:30.6039 duration:1024 duration_time:0.02322 stream_index:1
out: pts:1349632 pts_time:30.6039 dts:1349632 dts_time:30.6039 duration:1024 duration_time:0.02322 stream_index:1
in: pts:1350656 pts_time:30.6271 dts:1350656 dts_time:30.6271 duration:1009 duration_time:0.0228798 stream_index:1
out: pts:1350656 pts_time:30.6271 dts:1350656 dts_time:30.6271 duration:1009 duration_time:0.0228798 stream_index:1
Kinley:examples CC15$



Why does this not run on Ubuntu 18.04.5 and work on the Mac ?


The file test1.mp4 is a known good file and other progs such as VLC can correctly play on both systems.


Can anyone please provide any advise on what I'm doing wrong ?