
Recherche avancée
Autres articles (33)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
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. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (5091)
-
Plex DVR File Rename on FFMPEG Encoding
11 juillet 2021, par Brent JohnsonI'm currently using a bash shell script to encode all of my Plex DVR recordings to H.264 using FFMPEG. I'm using this little for loop I found online to encode all of the files in a single directory :


for i in *.ts;
 do echo "$i" && ffmpeg -i "$i" -vf yadif -c:v libx264 -preset veryslow -crf 22 -y "/mnt/d/Video/DVR Stash/Seinfeld/${i%.*}.mp4";
done



This has served its purposes well but in the process I would like to rename the file to my preferred naming convention so that the original filename
Seinfeld (1989) - S01E01 - Pilot.ts
is renamed toSeinfeld S01 E01 Pilot.mp4
in the encoded file. While I am already using a regular expression to change the.ts
extension to.mp4
, but I'm no expert with regex, especially in the bash shell so any help would be appreciated.

For anyone that's interested in my Plex setup, I'm using an old machine running Linux Mint as my dedicated DVR and actually accessing it over the network with my daily driver which is a gaming machine, so more processing power for video encodes. While that one is a Windows machine, I'm using the Ubuntu bash under WSL2 to run my script, as I prefer it over the Windows command prompt or Powershell (my day job is a web developer on a company issued Mac). So here's a sample of my code for anyone that might consider doing something similar.


if [[ -d "/mnt/sambashare/Seinfeld (1989)" ]]
then
 cd "/mnt/sambashare/Seinfeld (1989)"
 echo "Seinfeld"
 for dir in */; do
 echo "$dir/"
 cd "$dir"
 for i in *.ts;
 do echo "$i" && ffmpeg -i "$i" -vf yadif -c:v libx264 -preset veryslow -crf 22 -y "/mnt/d/Video/DVR Stash/Seinfeld/${i%.*}.mp4";
 done
 cd ..
 done
fi



While I've considered doing a for loop for all shows, for now I am doing each show like this individually as there are a few shows I have custom encoding settings for


-
Pipe FFMPEG MPEG-DASH livestream to AWS S3
17 août 2019, par AlexanderSo I’m currently trying to livestream the rendering of a GPU-heavy video (renders about 1fps), encode it to a 30fps MPEG-DASH livestream and output this to AWS S3 so Shaka Player can display the live rendering.
The first issue is that the livestream keeps looping, it doesn’t stop after the rendering for loop is done.
I use a python script to pipe the output of the rendering to FFMPEG, and pipe the output of FFMPEG to the aws s3 cli like this :
p1 = Popen(['ffmpeg', '-y', '-hwaccel', 'cuvid', '-f', 'image2pipe', '-r', '24', '-i', '-', '-c:v', 'h264_nvenc', '-b:v', '5M', '-f', 'dash', '-movflags', 'frag_keyframe+empty_moov', '-'], stdin=PIPE)#, shell=True) #'-method', 'PUT', 'https://example.s3.amazonaws.com/test1/test1.mpd'], stdin=PIPE)
p2 = Popen(['aws', 's3', 'cp', '-', 's3://example/test1/test1.mpd'], stdin=p1.stdout)
#The following commented aws s3 sync command uploads successfully to S3
#but the issue here is that it stops after the syncing is done and its hacky
#p1 = Popen(['ffmpeg', '-y', '-vsync', '0', '-hwaccel', 'cuvid', '-f', 'image2pipe', '-r', '24', '-i', '-', '-c:v', 'h264_nvenc', '-b:v', '5M', '-f', 'dash', '-movflags', 'frag_keyframe+empty_moov', 'test2.mpd'], stdin=PIPE)#, shell=True) #'-method', 'PUT', 'https://teststream.s3.amazonaws.com/test1/test1.mpd'], stdin=PIPE)
#p2 = Popen(['aws', 's3', 'sync', '.', 's3://teststream/test1', '--exclude', '"*"', '--include', '"*.m4s"', '--include', '"*.mpd"'], stdin=PIPE)
#pseudocode
for ci,(content,contentName) in enumerate(content_loader):
im = renderframe(content)
im.save(p1.stdin, 'PNG')
p1.stdin.close()
p1.wait()
p2.stdin.close()
p2.wait() -
Quality problem when converting JPEG to GIF using FFmpeg
25 octobre 2018, par yymsI created a GIF using FFmpeg as shown below.
However, there is a problem with GIF quality. As you can see in the attachment, there are square particles on the GIF surface. I want to improve this.- Is it possible to solve this problem with the FFmpeg default option without using the palette option ?
Can I erase the repeating rectangle pattern shown in the GIF ?
- "-f", "image2", "-i", "load_path", "-vf", "scale=720x450", "-y", "save_path"
<img src="local/cache-vignettes/L300xH180/I2Stygif-c60c60e-d4d96.png?1541836614" width='300' height='180' />