
Recherche avancée
Autres articles (106)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...)
Sur d’autres sites (8898)
-
ffmpeg : Combine/merge multiple mp4 videos not working, output only contains the first video
17 août 2021, par dtbakerHere is the command I am using to combine multiple videos :



ffmpeg -i 75_540_38HQ2.mp4 -i 76_70_20.mp4 -i 76_173_80.mp4 -i 81_186_35.mp4 -vcodec copy -acodec copy Mux1.mp4



The resulting
Mux1.mp4
does not contain all videos. Only the first video (75_540_38HQ2.mp4
). The file size of the source and resulting video is below (as you can see, resulting video is slightly larger than first vid) :



$ ls -lh
-rw-r—r— 1 dbaker dbaker 42M 2011-03-24 11:59 75_540_38HQ2.mp4
-rw-r—r— 1 dbaker dbaker 236M 2011-03-24 12:09 76_173_80.mp4
-rw-r—r— 1 dbaker dbaker 26M 2011-03-24 12:05 76_70_20.mp4
-rw-r—r— 1 dbaker dbaker 54M 2011-03-24 12:15 81_186_35.mp4
-rw-r—r— 1 dbaker dbaker 44M 2011-03-24 14:48 Mux1.mp4




Here is the output of the
ffmpeg
command. To me it looks ok, showing the multiple source inputs and the single output.



FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
 built on Mar 21 2011 18:05:32 with gcc 4.4.5
 configuration : —enable-gpl —enable-version3 —enable-nonfree —enable-postproc —enable-libfaac —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libtheora —enable-libvorbis —enable-libvpx —enable-libx264 —enable-libxvid —enable-x11grab
 libavutil 50.36. 0 / 50.36. 0
 libavcore 0.16. 1 / 0.16. 1
 libavcodec 52.108. 0 / 52.108. 0
 libavformat 52.93. 0 / 52.93. 0
 libavdevice 52. 2. 3 / 52. 2. 3
 libavfilter 1.74. 0 / 1.74. 0
 libswscale 0.12. 0 / 0.12. 0
 libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '75_540_38HQ2.mp4' :
 Metadata :
 major_brand : isom
 minor_version : 512
 compatible_brands : isomiso2avc1mp41
 creation_time : 1970-01-01 00:00:00
 encoder : Lavf52.93.0
 Duration : 00:00:29.99, start : 0.000000, bitrate : 11517 kb/s
 Stream #0.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 11575 kb/s, 29.94 fps, 29.97 tbr, 30k tbn, 59.94 tbc
 Metadata :
 creation_time : 1970-01-01 00:00:00
 Stream #0.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 127 kb/s
 Metadata :
 creation_time : 1970-01-01 00:00:00
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '76_70_20.mp4' :
 Metadata :
 major_brand : isom
 minor_version : 512
 compatible_brands : isomiso2avc1mp41
 creation_time : 1970-01-01 00:00:00
 encoder : Lavf52.93.0
 Duration : 00:00:19.98, start : 0.000000, bitrate : 10901 kb/s
 Stream #1.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 10804 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
 Metadata :
 creation_time : 1970-01-01 00:00:00
 Stream #1.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
 Metadata :
 creation_time : 1970-01-01 00:00:00
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '76_173_80.mp4' :
 Metadata :
 major_brand : isom
 minor_version : 512
 compatible_brands : isomiso2avc1mp41
 creation_time : 1970-01-01 00:00:00
 encoder : Lavf52.93.0
 Duration : 00:03:09.99, start : 0.000000, bitrate : 10393 kb/s
 Stream #2.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 10321 kb/s, 29.96 fps, 29.97 tbr, 30k tbn, 59.94 tbc
 Metadata :
 creation_time : 1970-01-01 00:00:00
 Stream #2.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
 Metadata :
 creation_time : 1970-01-01 00:00:00

Seems stream 0 codec frame rate differs from container frame rate : 119.88 (120000/1001) -> 30000.00 (30000/1)
Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '81_186_35.mp4' :
 Metadata :
 major_brand : isom
 minor_version : 512
 compatible_brands : isomiso2avc1mp41
 creation_time : 1970-01-01 00:00:00
 encoder : Lavf52.93.0
 Duration : 00:00:35.00, start : 0.000000, bitrate : 12700 kb/s
 Stream #3.0(eng) : Video : h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 12620 kb/s, 59.91 fps, 30k tbr, 60k tbn, 119.88 tbc
 Metadata :
 creation_time : 1970-01-01 00:00:00
 Stream #3.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
 Metadata :
 creation_time : 1970-01-01 00:00:00
Output #0, mp4, to 'Mux1.mp4' :
 Metadata :
 major_brand : isom
 minor_version : 512
 compatible_brands : isomiso2avc1mp41
 creation_time : 1970-01-01 00:00:00
 encoder : Lavf52.93.0
 Stream #0.0(eng) : Video : libx264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], q=2-31, 11575 kb/s, 30k tbn, 29.97 tbc
 Metadata :
 creation_time : 1970-01-01 00:00:00
 Stream #0.1(eng) : Audio : libfaac, 48000 Hz, stereo, 128 kb/s
 Metadata :
 creation_time : 1970-01-01 00:00:00
Stream mapping :
 Stream #0.0 -> #0.0
 Stream #2.1 -> #0.1
Press [q] to stop encoding
frame= 883 fps=632 q=-1.0 Lsize= 44730kB time=29.40 bitrate=12465.1kbits/s 
video:41678kB audio:2969kB global headers:0kB muxing overhead 0.184548%




Am I doing something blindingly stupid here ?



The source videos came from a video camera, and are small snippets taken with
ffmpeg -i bigfile.mp4 -ss 20 -t 10 -vcodec copy etc..



Thanks heaps !!
Dave





Edit : couldn't solve it so I just use avidemux GUI tool. It seemed to append the MP4's just fine.



Must be a problem with MP4's or just the ones that come off a gopro camera.


-
mpegts proxy allowing multiple concurrent views of same source feed
5 juillet 2018, par Yass TI am having trouble finding a (preferably non-commercial) linux compatible project that would allow to "restream" one particular MPEGTS live source feed to multiple clients, without requesting it more than once from the source.
Imagine an mpegts live source feed coming from http://my_mpegts_provider (imagine we have the direct link, no m3u style playlist), I would like a program to be able to grab that source and proxy it to one AND more client devices (let’s say VLC players) when they are requesting it, even if not requested at the same time.
In other words, can we proxy the MPEGTS stream so only our proxy will be seen as the "client" (from the source provider point of view) when multiple devices (on the same network) connect to the SAME source on this side ?
I tried the node-ffmpeg-mpegts-proxy but it clearly showed two separate connections to the source when asking for the same "channel" with two different VLC clients (confirmed with netstat).
Thanks, and sorry in advance if my post is out of stackoverflow rules, I can’t think of a better place to gather some good opinions
-
Using ffmpeg to join segments from multiple videos
5 juillet 2018, par user2171832We are trying to set up a process to let a user join together segments from multiple videos. Our process is set up to use ffmpeg to make separate mp4 files for each segment and to then to join them using the ffmpeg concat demuxer process. In generating the segment mp4 files, we are trying to make them all the same in terms of codex, dimensions, etc. so the concatenation will be successful. Here’s an example of the call to create one of the segment mp4s.
ffmpeg -ss 0.5 -t 299.5 -i /tmp/vid1.mp4 -c:v libx264 -c:a aac -framerate 29.97 -b:v 540k -maxrate 540k -minrate 540k -bufsize 540k -vf scale=640:480,fade=t=out:st=294.5:d=5 /tmp/vid1_new.mp4
This process works in some cases, but in others the joined file will play the first segment properly, but the later segments the video will sometimes freeze, or the audio will get speeded up. Does anyone have any suggestions for how to make the above ffmpeg command more "bullet-proof" so all the files will be compatible ?
The command we use to concatenate files is :
/var/ffmpg/bin/ffmpeg -f concat -safe 0 -i /tmp/files.txt -c copy /tmp/combined.mp4
The
ffprobe
output for one file is :{
"format": {
"filename": "vid2.mp4",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "mov,mp4,m4a,3gp,3g2,mj2",
"format_long_name": "QuickTime / MOV",
"start_time": "0.000000",
"duration": "1004.944000",
"size": "109489681",
"bit_rate": "871608",
"probe_score": 100,
"tags": {
"major_brand": "isom",
"minor_version": "512",
"compatible_brands": "isomiso2avc1mp41",
"encoder": "Lavf54.63.103"
}
}
}The
ffprobe
output of the second file :{
"format": {
"filename": "vid1.mp4",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "mov,mp4,m4a,3gp,3g2,mj2",
"format_long_name": "QuickTime / MOV",
"start_time": "0.000000",
"duration": "1159.164000",
"size": "63903454",
"bit_rate": "441031",
"probe_score": 100,
"tags": {
"major_brand": "isom",
"minor_version": "512",
"compatible_brands": "isomiso2avc1mp41",
"encoder": "Lavf56.40.100"
}
}
}