
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (56)
-
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. -
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 (3977)
-
ffmpeg ignores video stream bitrate input doubling the -b:v parameter that I set during encoding
27 juillet 2021, par QRrabbitMy question is, how do I force ffmpeg to encode a video at a specific kb/s ?
The problem is that my output is almost twice the size of the input 1.2Gb


This is my input (from ffprobe) :


Stream #0:0(eng): Video: prores (4444) (ap4h / 0x68347061), yuva444p12le(tv, bt709, progressive), 1920x1080, 316752 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
 Metadata:
 creation_time : 2021-07-26T23:59:52.000000Z
 handler_name : Apple Video Media Handler
 timecode : 00:00:00:00



My encoding command string :


ffmpeg -i input.mov -i watermark.png -filter_complex " \
[0][1]overlay=50:50:enable='between(t, 0, 100)'" -vcodec prores_ks -profile:v 4 \
-pix_fmt yuva444p12le -b:v 316752 -maxrate 316752 -minrate 316752 -r 29.97 \
-top 1 -color_range 1 -color_primaries bt709 -color_trc bt709 -colorspace bt709 \
-map_metadata 0 -c:a copy -timecode 00:00:00.00 -c:s copy -y output.mov



This is the output :


Stream #0:0: Video: prores (4444) (ap4h / 0x68347061), yuva444p12le(tv, bt709, progressive), 1920x1080, 591460 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 11988 tbn, 11988 tbc (default)
 Metadata:
 creation_time : 2021-07-26T23:59:52.000000Z
 handler_name : VideoHandler
 timecode : 00:00:00:00



Things I've tried :
-b:v 316752925 -maxrate 316752925 -minrate 316752925
-b:v 316752 -maxrate 316752 -minrate 316752
-maxrate 316752925 alone or in various combination with the above.


Any help is greatly appreciated,


-
Using FFMPEG to merge video frames back into a video with subtitle messes up the audio when seeking
26 juin 2023, par YoungDONI broke down a h265 video into frames and try to merge them back together with its original audio, subtitle and fonts. The resulting video has an issue where when I try to seek at some points in the video, the audio stops playing. And even when I don't seek, at a point the video hangs and the audio keeps playing. Seconds later, the video resumes, but now, video and audio are out of sync. This doesn't happen with the original video.


The reason I'm breaking the video into frames and merging them is because I want to upscale each frame. But I'm going to leave that part out because this issue occurs with the original unscaled frames.


Here's the details of the original video. Notice it has video, audio and two font streams.


.\ffmpeg.exe -i "input.mkv"

Input #0, matroska,webm, from 'input.mkv':
 Metadata:
 encoder : libebml v1.3.10 + libmatroska v1.5.2
 creation_time : 2021-01-07T00:20:19.000000Z
 Duration: 00:23:02.05, start: 0.000000, bitrate: 320 kb/s
 Stream #0:0: Video: hevc (Main), yuv420p(tv), 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
 Metadata:
 BPS-eng : 278671
 DURATION-eng : 00:23:02.006000000
 NUMBER_OF_FRAMES-eng: 33135
 NUMBER_OF_BYTES-eng: 48140731
 _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 ('No Deeper Escape') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(jpn): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp
 Metadata:
 BPS-eng : 36166
 DURATION-eng : 00:23:02.016000000
 NUMBER_OF_FRAMES-eng: 32391
 NUMBER_OF_BYTES-eng: 6247833
 _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 ('No Deeper Escape') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:2(eng): Subtitle: ass (default)
 Metadata:
 BPS-eng : 76
 DURATION-eng : 00:21:20.790000000
 NUMBER_OF_FRAMES-eng: 246
 NUMBER_OF_BYTES-eng: 12264
 _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 ('No Deeper Escape') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:3: Attachment: ttf
 Metadata:
 filename : Roboto-Medium.ttf
 mimetype : application/x-truetype-font
 Stream #0:4: Attachment: ttf
 Metadata:
 filename : Roboto-MediumItalic.ttf
 mimetype : application/x-truetype-font



Here's how I break it into frames


.\ffmpeg.exe -i "input.mkv" -qscale:v 1 -qmin 1 -qmax 1 -vsync 0 "InputFolder/frame%08d.png"



Here's how I merge the frames back to video with all the original streams except the video


.\ffmpeg.exe -r 23.98 -i "InputFolder\frame%08d.png" -i "input.mkv" -map 0:v:0 -map 1 -map -1:v -c:a copy -c:v libx265 -r 23.98 -pix_fmt yuv420p "output.mkv"



Here's the details of the resulting video :


.\ffmpeg.exe -i "output.mkv"

Input #0, matroska,webm, from 'output.mkv':
 Metadata:
 ENCODER : Lavf58.45.100
 Duration: 00:23:02.05, start: 0.000000, bitrate: 245 kb/s
 Stream #0:0: Video: hevc (Main), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
 Metadata:
 ENCODER : Lavc58.91.100 libx265
 DURATION : 00:23:01.777000000
 Stream #0:1(jpn): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)
 Metadata:
 BPS-eng : 36166
 DURATION-eng : 00:23:02.016000000
 NUMBER_OF_FRAMES-eng: 32391
 NUMBER_OF_BYTES-eng: 6247833
 _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 ('No Deeper Escape') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 DURATION : 00:23:02.046000000
 Stream #0:2(eng): Subtitle: ass (default)
 Metadata:
 BPS-eng : 76
 DURATION-eng : 00:21:20.790000000
 NUMBER_OF_FRAMES-eng: 246
 NUMBER_OF_BYTES-eng: 12264
 _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 ('No Deeper Escape') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 ENCODER : Lavc58.91.100 ssa
 DURATION : 00:21:21.580000000
 Stream #0:3: Attachment: ttf
 Metadata:
 filename : Roboto-Medium.ttf
 mimetype : application/x-truetype-font
 Stream #0:4: Attachment: ttf
 Metadata:
 filename : Roboto-MediumItalic.ttf
 mimetype : application/x-truetype-font



One thing to note is that I've done this successfully numerous times with h264 videos. No audio issues. Another thing to note which might be more relevant is that when I merge the frames with only the original audio stream (as opposed to all original streams except video), the audio issue does not occur.


.\ffmpeg.exe -r 23.98 -i "InputFolder\frame%08d.png" -i "input.mkv" -map 0:v:0 -map 1:a:0 -c:a copy -c:v libx265 -r 23.98 -pix_fmt yuv420p "output.mkv"

Produces no audio issues. But this isn't good for me because I want the subtitles and fonts from the original video.



If anyone needs me to upload the original video somewhere so they can reproduce it, let me know.


Edit : Also note that Merging the frames with the original audio AND subtitle stream, i.e without the fonts, the issue remains.


-
Convert video in background
27 novembre 2016, par RoiEXI found this question which is the same question I have, but with the small but important difference, that I’m using Windows so cronjobs are no thing.
I basically want to convert a video in PHP, but don’t want the PHP script to hang up until the conversion is finished and instead return immediately.My current code :
if ($videoext !== "mp4") {
exec ( "./ffmpeg.exe -i " . $inputFile. " " . $outputFile/*without extension*/ . ".mp4" );//convert to useable format
if (! in_array ( $videoext, $GLOBALS ['fileextensions'] )) {//Unsupported extension
unlink ( $inputFile);//delete if not useful
}
}I’m using PHP7 with XAMPP for windows
Any help is appreciatedEDIT : I know that pthreads exist, but I’m not sure if they do what I’d expect them to do and too stupid to get them working on my XAMPP installation