
Recherche avancée
Autres articles (85)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (4772)
-
Applying same filter_complex many times before output [duplicate]
19 août 2019, par FabiánThis question already has an answer here :
It’s not a duplicate. This is about using
filter_complex
, not -vf.In my video there’s an object that has shades of yellow (more orange-like) and a solid yellow as background.
I need to output all frames into a png sequence, using a color key filter to replace the yellow from the background :
ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.125:0[ckout]" -map "[ckout]" colorkey-%d.png
This removes the specific color, but leaves some pints behind, and some items are yellow-themed, so blending value is a no-no for this scenario.
I need to get rid of 4 specific yellow-colors from the frames :
0xfff31b
,0xfae56b
,0xfaec46
and0xeee2a0
, and I plan to run the same filter for specific colors before getting the final result.So first I tried this :
ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.4:0[ckout1];[0:v]colorkey=0xfae56b:0.4:0[ckout2];[0:v]colorkey=0xfaec46:0.4:0[ckout3];[0:v]colorkey=0xeee2a0:0.4:0[ckout4]" -map "[ckout4]" colorkeyrefined-%d.png
Then this :
ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xfae56b:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xfaec46:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xeee2a0:0.4:0[ckout]" -map "[ckout]" colorkeyrefined-%d.png
But both display the same error :
Filter colorkey has an unconnected output.
Is there a way to apply the colorkey feature 4 times (with the mentioned values) in one go ?
-
Capturing stream that has multiple frames
28 mai 2021, par cheese5505I'm trying to capture a stream that has multiple "frames" (not sure that's what you would call it but it has multiple 5 second streams inside of it) with FFmpeg and saving to file. When I put it into Quicktime player and play it works fine, however when I put it into FFmpeg and review the final file it seems that the audio and video are out of sync and the video frequently stops. I think this may be because it is stopping to switch to the new 5 second video but i'm not sure. This is the command I am using :



ffmpeg \
 -v 9 \
 -loglevel 99 \
 -y \
 -re \
 -hwaccel auto \
 -threads 4 \
 -user-agent "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" \
 -i "url here" \
 -ac 2 \
 -strict -2 \
 -c:a aac \
 test.mov




In the FFmpeg log this frequently happens :



frame= 242 fps=102 q=29.0 size= 252kB time=00:00:06.33 bitrate= 325.9kbits/
frame= 279 fps= 96 q=29.0 size= 252kB time=00:00:07.57 bitrate= 272.8kbits/
frame= 301 fps= 87 q=29.0 size= 252kB time=00:00:08.30 bitrate= 248.7kbits/
frame= 319 fps= 79 q=29.0 size= 252kB time=00:00:08.90 bitrate= 231.9kbits/
frame= 338 fps= 74 q=29.0 size= 252kB time=00:00:09.54 bitrate= 216.5kbits/
frame= 354 fps= 70 q=29.0 size= 252kB time=00:00:10.07 bitrate= 205.0kbits/
skipping 5 segments ahead, expired from playlists
[https @ 0x7f9d81e10380] No trailing CRLF found in HTTP header.
frame= 355 fps= 51 q=29.0 size= 252kB time=00:00:10.11 bitrate= 204.3kbits/
[hls,applehttp @ 0x7f9d83001000] No longer receiving playlist 6
[hls,applehttp @ 0x7f9d83001000] No longer receiving playlist 7
[hls,applehttp @ 0x7f9d83001000] No longer receiving playlist 8
skipping 3 segments ahead, expired from playlists
[https @ 0x7f9d81f006a0] No trailing CRLF found in HTTP header.




Any ideas how I could smooth out the final file would be greatly appreciated.


-
Capturing stream that has multiple frames
22 mai 2016, par cheese5505I’m trying to capture a stream that has multiple "frames" (not sure that’s what you would call it but it has multiple 5 second streams inside of it) with FFmpeg and saving to file. When I put it into Quicktime player and play it works fine, however when I put it into FFmpeg and review the final file it seems that the audio and video are out of sync and the video frequently stops. I think this may be because it is stopping to switch to the new 5 second video but i’m not sure. This is the command I am using :
ffmpeg \
-v 9 \
-loglevel 99 \
-y \
-re \
-hwaccel auto \
-threads 4 \
-user-agent "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" \
-i "url here" \
-ac 2 \
-strict -2 \
-c:a aac \
test.movIn the FFmpeg log this frequently happens :
frame= 242 fps=102 q=29.0 size= 252kB time=00:00:06.33 bitrate= 325.9kbits/
frame= 279 fps= 96 q=29.0 size= 252kB time=00:00:07.57 bitrate= 272.8kbits/
frame= 301 fps= 87 q=29.0 size= 252kB time=00:00:08.30 bitrate= 248.7kbits/
frame= 319 fps= 79 q=29.0 size= 252kB time=00:00:08.90 bitrate= 231.9kbits/
frame= 338 fps= 74 q=29.0 size= 252kB time=00:00:09.54 bitrate= 216.5kbits/
frame= 354 fps= 70 q=29.0 size= 252kB time=00:00:10.07 bitrate= 205.0kbits/
skipping 5 segments ahead, expired from playlists
[https @ 0x7f9d81e10380] No trailing CRLF found in HTTP header.
frame= 355 fps= 51 q=29.0 size= 252kB time=00:00:10.11 bitrate= 204.3kbits/
[hls,applehttp @ 0x7f9d83001000] No longer receiving playlist 6
[hls,applehttp @ 0x7f9d83001000] No longer receiving playlist 7
[hls,applehttp @ 0x7f9d83001000] No longer receiving playlist 8
skipping 3 segments ahead, expired from playlists
[https @ 0x7f9d81f006a0] No trailing CRLF found in HTTP header.Any ideas how I could smooth out the final file would be greatly appreciated.