
Recherche avancée
Autres articles (45)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (10380)
-
ffmpeg encoding .mp4 fails in safari when hosted from s3. handbrake encoded video works first time
11 juin 2018, par Simon RogersThe mp4 videos I’ve encoded with ffmpeg work perfectly in Safari if stored locally, but break if hosted from s3. I have tried countless encoding settings to no avail.
However having just run a mov quickly through Handbrake and ticking ’optimise for web’ and encoding baseline @ 4.0, this has worked perfectly first time.
I don’t understand what could be going wrong with my ffmpeg encoding.
Things I have noticed about files from two separate encoders which work :
They both have
yuv420p(tv, bt709)
whereas ffmpeg is just sayingyuv420p
– this is the only thing I can identify from ffprobe that is consistently different.I have done a fresh install of ffmpeg to no avail :
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libvorbis --with-libvpx --with-opus --with-x265
This error appears in all the files I have encoded with ffmpeg :
Unsupported codec with id 0 for input stream 1
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
mp4box gives the following for the ffmpeg video, which doesn’t work :
Tempuras-iMac:tests tempura$ mp4box -info /Users/tempura/tests/mov-output-10-1400.mp4
* Movie Info *
Timescale 1000 - 1 track
Computed Duration 00:00:10.967 - Indicated Duration 00:00:10.967
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand isom - version 512
Compatible brands: isom iso2 avc1 mp41
Created: UNKNOWN DATE Modified: UNKNOWN DATE
File has no MPEG4 IOD/OD
iTunes Info:
Encoder Software: Lavf58.12.100
1 UDTA types: meta (1)
Track # 1 Info - TrackID 1 - TimeScale 15360
Media Duration 00:00:10.966 - Indicated Duration 00:00:10.966
Track has 1 edit lists: track duration is 00:00:10.967
Media Info: Language "English (eng)" - Type "vide:avc1" - 329 samples
Visual Track layout: x=0 y=0 width=1800 height=1200
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1800 x 1200
AVC Info: 1 SPS - 1 PPS - Profile Baseline @ Level 4
NAL Unit length bits: 32
Pixel Aspect Ratio 1:1 - Indicated track size 1800 x 1200
Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: 2BD106A8DFD73B92825D87D4D312B22F9CEC1986
PPS#1 hash: 656AE5F3BE854F3C8B889E72310662390F18EDBD
Self-synchronized
RFC6381 Codec Parameters: avc1.42C028
Average GOP length: 329 samplesAnd gives the following for two videos that do work.
First :
Tempuras-iMac:tests tempura$ mp4box -info /Users/tempura/tests/mov-output-05-1400.mp4
[iso file] Unknown box type tmcd
[iso file] Read Box type (0x00000000) has size 0 but is not at root/file level, skipping
* Movie Info *
Timescale 1000 - 2 tracks
Computed Duration 00:00:10.967 - Indicated Duration 00:00:10.967
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand isom - version 512
Compatible brands: isom iso2 avc1 mp41
Created: UNKNOWN DATE Modified: UNKNOWN DATE
File has no MPEG4 IOD/OD
iTunes Info:
Encoder Software: Lavf58.12.100
1 UDTA types: meta (1)
Track # 1 Info - TrackID 1 - TimeScale 15360
Media Duration 00:00:10.966 - Indicated Duration 00:00:10.966
Track has 1 edit lists: track duration is 00:00:10.967
Media Info: Language "English (eng)" - Type "vide:avc1" - 329 samples
Visual Track layout: x=0 y=0 width=1800 height=1200
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1800 x 1200
AVC Info: 1 SPS - 1 PPS - Profile Baseline @ Level 4
NAL Unit length bits: 32
Pixel Aspect Ratio 1:1 - Indicated track size 1800 x 1200
Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: 39D86732FD5F78B18F2E83C651FAE38EA0E30A6D
PPS#1 hash: 656AE5F3BE854F3C8B889E72310662390F18EDBD
Self-synchronized
RFC6381 Codec Parameters: avc1.42C028
Average GOP length: 329 samples
Track # 2 Info - TrackID 2 - TimeScale 15360
Media Duration 00:00:10.966 - Indicated Duration 00:00:10.966
Track has 1 edit lists: track duration is 00:00:10.967
Track is disabled
Media Info: Language "Undetermined (und)" - Type "tmcd:tmcd" - 1 samples
Unknown media type
RFC6381 Codec Parameters: tmcd
All samples are syncSecond :
Tempuras-iMac:tests tempura$ mp4box -info /Users/tempura/Documents/yes_2106.mp4
* Movie Info *
Timescale 30000 - 1 track
Computed Duration 00:00:10.966 - Indicated Duration 00:00:10.966
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand isom - version 1
Compatible brands: isom avc1 mp42
Created: GMT Fri Jun 1 11:24:54 2018
Modified: GMT Fri Jun 1 11:24:54 2018
File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: ISO Reserved Profile (0x15)
Audio PL: No audio capability required (0xff)
No streams included in root OD
Track # 1 Info - TrackID 1 - TimeScale 30
Media Duration 00:00:10.966 - Indicated Duration 00:00:10.966
Media Info: Language "Undetermined (und)" - Type "vide:avc1" - 329 samples
Visual Track layout: x=0 y=0 width=1800 height=1200
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1800 x 1200
AVC Info: 1 SPS - 1 PPS - Profile Baseline @ Level 4.2
NAL Unit length bits: 32
Pixel Aspect Ratio 1:1 - Indicated track size 1800 x 1200
Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: ED5CFE0A3F65F36ADCFA347C1273A29784E8AEAC
PPS#1 hash: 7ECF7597FDDAC5F8C82B54BFB40A1F9A8D8807FA
Self-synchronized
RFC6381 Codec Parameters: avc1.42C02A
Average GOP length: 329 samples -
Adding Text to Video with ffmpeg in Flutter
9 mars 2024, par AimanI am trying to add text to a video using ffmpeg package but it returns an error i.e. Return Code 1
Here's my code.


final videoPath = _controller.file.path;
 final outputName = videoPath.hashCode.toString();

 final output =
 File('${(await getTemporaryDirectory()).path}/$outputName.mp4');

 String command =
 "-y -i $videoPath -filter_complex '[0]scale=540:-1[s];[s]drawtext=fontfile=/storage/emulated/0/Download/SuperDessert.ttf:text='MY_TEXT':fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2' ${output.path}";

 final session = await FFmpegKit.execute(command);

 final returnCode = await session.getReturnCode();

 if (ReturnCode.isSuccess(returnCode)) {
 log("Success full text added");
 } else {
 log("Error adding text: ${await session.getFailStackTrace()}");
 }



I have tried changing the output directory, changed
fontfile
tofont


-
File Decryption in (AESMode.ctr) mode showing Exception Failed to decode data using encoding 'utf-8' in dart ?
20 novembre 2020, par JaiWhile decoding the video file using
aes-ctr
mode am getting error like below,

Unhandled Exception: FileSystemException: Failed to decode data using encoding 'utf-8'


Used ffmpeg for encrypting file :


ffmpeg -i samplevideo.mp4 -vcodec copy -acodec copy -encryption_scheme cenc-aes-ctr -encryption_key 76a6c65c5ea762046bd749a2e632ccbb -encryption_kid a7e61c373e219033c21091fa607bf3b8 enc_v1_file.mp4


Used Dart to decode video file :


Future<string> decryptFile(filePath) async {
 // filePath - Local encrypted file path
 var encodedKey = 'NzZhNmM2NWM1ZWE3NjIwNDZiZDc0OWEyZTYzMmNjYmI=';
 var encodedIv = 'YTdlNjFjMzczZTIxOTAzM2MyMTA5MWZhNjA3YmYzYjg=';
 var encryptedBase64EncodedString = new File(filePath).readAsStringSync();
 var decoded = base64.decode(encryptedBase64EncodedString); // Error in this line
 final key1 = enc.Key.fromBase64(encodedKey);
 final iv = enc.IV.fromBase64(encodedIv);
 final encrypter = enc.Encrypter(enc.AES(key1, mode: enc.AESMode.ctr));
 final decrypted = encrypter.decryptBytes(enc.Encrypted(decoded), iv: iv);
 final filename = '${p.basenameWithoutExtension(filePath)}.mp4';
 final directoryName = p.dirname(filePath);
 final newFilePath = p.join(directoryName, filename);
 var newFile = new File(newFilePath);
 await newFile.writeAsBytes(decrypted);
 return newFilePath;
}
</string>