
Recherche avancée
Autres articles (36)
-
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 -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...)
Sur d’autres sites (8253)
-
ffmeg : audio drifts in merged TS file for separate audio and video TS files
13 septembre 2021, par Ronnie Markschbasic situation


I have two lists of TS files (each list is specified in an m3u8 file).
The TS files in the first list have only video.
The TS files in the second list have only audio.


I combine the TS files from the first list to get the video only file result_video.ts of duration A (see code for this used below).
I combine the TS files from the second list to get the audio only file result_audio.ts of duration B (see code for this used below).
The problem is that
A * 76.28% = B
whereas I expected both files to have the same length.
I then combine result_video.ts and result_audio.ts and get a result.ts file where the audio drifts from the video heavily and where the audio has gaps at the points where the chunks have been merged.

Question : how to ensure that the audio is not too slow ? or : how to combine the TS files properly.


code for obtaining the two result files


ffmpeg -safe 0 -f concat -i filelist_video.txt -c copy result_video.ts
ffmpeg -safe 0 -f concat -i filelist_audio.txt -c copy result_audio.ts



code for obtaining the final result


ffmpeg.exe -i .\video_merge_0.ts -i .\audio_merge_0.ts -c copy result.ts



test using only one TS file


I copied the first of the audio input TS files to another TS file.
Doing that produced the output below with a muxing overhead of
22.44%
, which is suspiciously close to1-76.28%
.

ffmpeg.exe -i audio_chunk1.ts -c copy audio_chunk1_tmp.ts



I get the info :


Output #0, mpegts, to 'audio_chunk1.ts':
 Metadata:
 encoder : Lavf58.45.100
 Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 125 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 118kB time=00:00:05.99 bitrate= 161.1kbits/s speed=3.48e+03x
video:0kB audio:96kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 22.444508%



using hls


The following now produces files
audio_chunk1_tmp.ts
,audio_chunk1_tmp0.ts
, ...audio_chunk1_tmp2.ts
. So for some reason, the single file already gets split. However, ffmpeg shows that the duration of the result is 5.99s for the 5.87s input (which may be ok).

ffmpeg.exe -i audio_chunk1.ts -f hls audio_chunk1_tmp.ts



-
fluent-ffmpeg aspect ratio with crop
9 juillet 2023, par DürraniI am having trouble changing the aspect ratio between 16:9, 1:1 and 9:16 using fluent-ffmpeg
When I try to change from 16:9 to 9:16, I kinda receive a squeezed video but actually I want the extra part should be removed.



I tried this with many combinations :



FFmpeg()
 .input(video)
 .size("608x?")
 .aspect("9:16")
 .output(tempFile)
 .run();



My input 16:9 video 1920x1080




.



My Expected result 9:16 video 608x1080





-
FFmpeg does not successfully send http request to server
20 octobre 2019, par e-lyI’m trying to output data from ffmpeg to my webserver, but it simply does not work when I use my domain. It works as expected when I use localhost but not when I use my domain.
I’ve tried multiple things such as changing from a subdomain to a subdirectory using nginx, and like I said— it works when I use localhost but not when I use my domain. When I ran
-v trace
the logs told me that the connection was successful but the server did not receive anything, yet when I visited the same url in my browser I got a response.ffmpeg command :
'-v', 'trace',
'-f', 'x11grab',
'-s', '720x480',
'-r', '30',
'-i', ':100',
'-an',
'-c:v', 'mpeg1video',
'-q:v', '12',
'-bf', '0',
'-f', 'mpegts',
'http://stream.domain.com/'Nginx rule :
server {
listen 80;
server_name stream.domain.com;
location / {
proxy_pass http://localhost:9000/;
}
}Nodejs code :
app.post('/', (req, res) => {
console.log('Post received', req.url, req.ip)
res.sendStatus(200)
})I expect the console of the node process to let me know that a post has been received (for debugging purposes)
Instead, nothing is received.
However usinghttp://localhost:9000/
instead ofhttp://stream.domain.com/
works as expected