
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 (22)
-
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 (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (5086)
-
ffmpeg does not follow vframes
15 décembre 2020, par oo92I'm trying to take screenshots of Twitch streams through the API using ffmpeg. I want to take 500 screens per category but I am getting an average of 50 screenshots. This is what I have :


username = streams_now[i]['channel']['name']
id = streams_now[i]['id']
game = streams_now[i]['game']
game = game.translate(str.maketrans({':':'-', ' ':'-', "'":'', '!':'', '&':'_', '.':'', '+':'_'}))
streaming = streamlink.streams('http://twitch.tv/' + username)
stream = streaming["best"].url
dir_path = current_dir + '/logorec-dataset/' + game
os.mkdir(dir_path)

subprocess.call('ffmpeg -i ' + stream + f' -ss 20 -threads 2 -vframes 500 -r 1 -f image2 -strftime 1 {dir_path}/%Y%m%d%H%M%S_' + str(id) +'_'+ '.jpg&', shell=True)




-
Concatenation and Transcoding of MPEG-TS files FFMPEG
20 décembre 2020, par SquawkBirdiesI have a DVR which records over-the-air TV and saves the recordings in the MPEG-TS format, splitting each episode across multiple files, each 500 MB in size.



To simplify archiving, I have been trying to write a shell script to automate the process of concatenating the files together and transcoding them into a more common video format, like h.264.



Here are the steps I have performed so far :



- 

- I wanted to make sure that the files I was getting were valid in the first place. To test this, each section was transcoded in Handbrake before being merged using ffmpeg's concat command. This worked, but was manual and added an annoying black frame between each section.
- I wrote a shell script to find all the sections of an episode in a folder and put the file names into a text file that the concat demuxer could parse.
- Tested this command :











ffmpeg -hide_banner -f concat -i video_files_tmp.txt -c:v libx264 -pix_fmt yuv420p -c:a aac $2$OUTPUT_FILE_NAME








During the transcode, this would throw many warnings and errors, such as "PES packet size mismatch". At some point, it would warn that more than 1,000 frame were skipped. When the output was played, it would skip frames and result in a file where the video froze partway through but the audio continued playing. I tried adding -vsync 0 to the output as well.



- 

- Then, tried splitting the concatenation and transcode into two steps :







ffmpeg -hide_banner -f concat -i video_files_tmp.txt -c copy output_tmp.ts
ffmpeg -hide_banner -i output_tmp.ts -c:v libx265 -pix_fmt yuv420p -c:a aac $2$OUTPUT_FILE_NAME








This did basically the same thing as before.



- 

- Tried using the libx265 encoder instead. Same result.
- Then, I tried just playing the concatenated MPEG-TS file directly, which also would freeze at some point during the playback.







I was wondering about what ffmpeg flags or options to set to get this working, or other options I could try ? Thanks !


-
exec() with SuPHP and SafeMode Off (php.ini local) show wrong path and fail execution
29 juillet 2013, par abkrimTry this
<?php
if (exec('/usr/bin/ffmpeg -i 47.mp4 -acodec aac -ab 128kb -vcodec mpeg4 -b 1220kb -mbd 1 -s 320x180 final_video.mov"'))
{ echo "Success"; }
else { echo "No good"; }
?>But on shell see—>
sh: /usr/local/php/bin/ffmpeg: No such file or directory
Server it's Apache+SuPHP with a local php.ini file for disable SafeMode
I don't understand why show sh : /usr/local/php/bin/ffmpeg : No such file or directory instead real path put on php script.