
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (46)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
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
Sur d’autres sites (6645)
-
FFMPEG "listfile.txt : Invalid data found when processing input" concat error
18 juillet 2019, par LéandreI have a txt file, where I have all my mp4 file to concat with ffmpeg. I saw the documentation of FFMPEG but I don’t see where I did something wrong.
Here is my txt file :
file '/home/leandre/PycharmProjects/video_test/1.mp4'
file '/home/leandre/PycharmProjects/video_test/2.mp4'
file '/home/leandre/PycharmProjects/video_test/3.mp4'
file '/home/leandre/PycharmProjects/video_test/4.mp4'
file '/home/leandre/PycharmProjects/video_test/5.mp4'
file '/home/leandre/PycharmProjects/video_test/6.mp4'
file '/home/leandre/PycharmProjects/video_test/7.mp4'
file '/home/leandre/PycharmProjects/video_test/8.mp4'
file '/home/leandre/PycharmProjects/video_test/9.mp4'
file '/home/leandre/PycharmProjects/video_test/10.mp4'And this is my ffmpeg command :
ffmpeg -f concat -safe 0 -i listfile.txt -c copy out_concat.mp4
And my error
listfile.txt: Invalid data found when processing input
-
Why ffmpeg launched on a google cloud function can throw "Error : Output stream error : Maximum call stack size exceeded" ?
15 décembre 2020, par Stepan ShilinI'm trying to process video files with ffmpeg running on google cloud functions. Video files are downloaded from a google file storage, processed in stream by fluent-ffmpeg and streamed to a new google storage file. It works on smaller files but throws an "Output stream error : Maximum call stack size exceeded" on larger files.



I tried running the code on a normal pc, and I haven't encountered this error, even with larger files.



These are the parameters I deploy the function with



gcloud functions deploy $FUNCTION_NAME --runtime nodejs8 --trigger-http --timeout=180 --memory 256




This is the code that processes video



function cutVideo({videoUrl, startTime, duration, dist}) {
 return ffmpeg(videoUrl)
 .outputOptions('-movflags frag_keyframe+empty_moov')
 .videoCodec('copy')
 .audioCodec('copy')
 .format('mp4')
 .setStartTime(startTime)
 .setDuration(duration);
}

const sectionStream = cutVideo({
 videoUrl,
 startTime,
 duration,
 dist: tempFilePath,
});

const outputStream = bucket.file(sectionPath)
.createWriteStream({
 metadata: {
 contentType: config.contentType,
 },
 public: true,
});




Actual error stack looks like this



Error: Output stream error: Maximum call stack size exceeded
 at Pumpify.<anonymous> (/srv/node_modules/fluent-ffmpeg/lib/processor.js:498:34)
 at emitOne (events.js:121:20)
 at Pumpify.emit (events.js:211:7)
 at Pumpify.Duplexify._destroy (/srv/node_modules/duplexify/index.js:191:15)
 at /srv/node_modules/duplexify/index.js:182:10
 at _combinedTickCallback (internal/process/next_tick.js:132:7)
 at process._tickDomainCallback (internal/process/next_tick.js:219:9)
 RangeError: Maximum call stack size exceeded
 at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:28:31)
 at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:37:30)
 at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:37:30)
 at value.map.v (/srv/node_modules/@google-cloud/projectify/build/src/index.js:30:32)
 at Array.map (<anonymous>)
 at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:30:23)
 at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:37:30)
 at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:37:30)
 at value.map.v (/srv/node_modules/@google-cloud/projectify/build/src/index.js:30:32)
 at Array.map (<anonymous>)
</anonymous></anonymous></anonymous>



What could cause this error on a google cloud function ?


-
"Non-monotonous DTS in output stream 0:0 This may result in incorrect timestamps in the output file." error
1er août 2019, par petaireI’m trying to go from .mkv to .mp4 through ffmpeg. Normally I would use
ffmpeg -i $1 -codec copy -strict -2 $2
But on this particular file, I get this error, like, A LOT :
Non-monotonous DTS in output stream 0:0; previous: 49189232, current: 49189232; changing to 49189233. This may result in incorrect timestamps in the output file.
I guess it has something to do with the DTS :
[mp4 @ 0x7f8b14001200] Invalid DTS: 14832 PTS: 13552 in output stream 0:0, replacing by guess
[mp4 @ 0x7f8b14001200] Invalid DTS: 15472 PTS: 12272 in output stream 0:0, replacing by guessI would not care if the result was ok, but the sound is out of sync, and the video is "stuttering". Feels like everything is out of sync.
I’ve tried a lot of things, including -async 1 -vsync 1 , but nothing seems to work.
Here’s some mediainfo :
Complete name : /Users/petaire/Desktop/CNEWS-2019-07-23_16-00-00h.mkv
Format : Matroska
Format version : Version 2
File size : 1.19 GiB
Movie name : Time-2019-07-23_16:00
Writing application : Tvheadend 4.3-1801~g7f952c2ed
Writing library : Tvheadend Matroska muxer
Original source form : TV
Comment : Time recording
IsTruncated : Yes
DATE_BROADCASTED : 2019-07-23 16:00:00
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan type, store method : Interleaved fields
Scan order : Top Field First
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 2
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 KHz
Frame rate : 31.250 fps (1536 SPF)
Compression mode : Lossy
Delay relative to video : -757ms
Language : French
Service kind : Complete Main
Default : Yes
Forced : No
Text
ID : 3
Format : DVB Subtitle
Codec ID : S_DVBSUB
Codec ID/Info : Picture based subtitle format used on DVBs
Language : French
Default : Yes
Forced : NoAny idea ?