
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 (55)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
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 (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (7660)
-
shell script : ffmpeg can't either read arguments or filenames, if spaces in path- or filename
9 juillet 2014, par NicolasI’m currently working on a bash shell script on OS X to get a custom tailored Pashua GUI/automatization package, using ffmpeg in the back, to transcode videos, label them, zip them, upload them, organize them and so on. Everything is working like a charm so far.
My problem now is that I can’t make ffmpeg take files or paths that have spaces in them IF I use variables in variables. But that (I think) is a must in order to get ffmpeg to transcode multiple files at once depending on the formats and checkboxes the user ticks on.
I made a little example snippet so you can see my dilemma.
No spaces in path or filename / works great :
#!/bin/bash
infile='/Users/nicolas/Desktop/MASTER_[DE]_Test_140626.mov'
gen_outfile () {
outfile="${1/MASTER/TRANSCODE}"
ffmpeg_cl="-s $2 -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p -c:a aac -b:a 240k -strict -2 $outfile"
}
gen_outfile "$infile" 1920x1080
./ffmpeg_stat -i "$infile" $ffmpeg_clThe output is as expected and the file is called "TRANSCODE_[DE]_Test_140626.mov"
Filename variable with spaces - directly fed to ffmpeg :
This works as well but isn’t really usable for me because I need to have the option of variable numbers of output files and arguments generated dynamically.
#!/bin/bash
infile_full='/Users/nicolas/Google Drive/encode-o-mat/MASTER_[DE] Test 140626.mov'
gen_outfile () {
outfile="${1/MASTER/TRANSCODE}"
ffmpeg_cl="-s $2 -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p -c:a aac -b:a 240k -strict -2"
}
gen_outfile "$infile_full" 1920x1080
./ffmpeg_stat -i "$infile_full" $ffmpeg_cl "$outfile"The output is as expected and the file is called "TRANSCODE_[DE] Test 140626.mov".
But this way is just not an option.This here does not work ! Filename is split up and incomplete :
#!/bin/bash
infile_full='/Users/nicolas/Google Drive/encode-o-mat/MASTER_[DE] Test 140626.mov'
gen_outfile () {
outfile="${1/MASTER/TRANSCODE}"
ffmpeg_cl="-s $2 -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p -c:a aac -b:a 240k -strict -2 $outfile"
}
gen_outfile "$infile_full" 1920x1080
./ffmpeg_stat -i "$infile_full" $ffmpeg_clFfmpeg gives this error : "Unable to find a suitable output format for ’/Users/nicolas/Google’".
Of course.This doesn’t work as well ! Quoting and such :
./ffmpeg_stat -i "$infile_full" "$ffmpeg_cl"
If I put the $ffmpeg_cl variable in various quotes ffmpeg doesn’t understand the arguments anymore ! This is one example output :
"Unrecognized option ’s 1920x1080 -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p -c:a aac -b:a 240k -strict -2 /Users/nicolas/Google Drive/encode-o-mat/TRANSCODE_[DE] Test 140626.mov’.
Error splitting the argument list : Option not found
Conversion failed !"It’s really important that the script can handle path- and filenames with spaces because I can’t change the environment in which that tool is supposed to run. All ideas and solutions are more than welcome !
-
Revision e4c5f7e2b6 : Delay decreasing reference count in frame-parallel decoding. The current decodi
10 juin 2014, par hkuangChanged Paths :
Modify /vp9/decoder/vp9_decoder.c
Modify /vp9/vp9_dx_iface.c
Delay decreasing reference count in frame-parallel decoding.The current decoding scheme will decrease the reference count
of the output frame when finish decoding. Then the application
could copy the frame from the decoder buffer to application buffer.
In frame-parallel decoding, a decoded frame will not be outputted
until several frames later which depends on thread numbers. So
the decoded frame’s reference count should be decreased only
after application finish copying the frame out. But due to the
limitation of vpx_codec_get_frame, decoder could not know when
application finish decoding. So use a index last_show_frame to
release the last output frame’s reference count.Change-Id : I403ee0d01148ac1182e5a2d87cf7dcc302b51e63
-
Limit number of output files in ffmpeg (rorating filenames)
22 août 2016, par VanDahlenI want to convert an MJPEG Stream to JPEG Files by using ffmpeg :
ffmpeg -i foo.mjpg -vcodec mjpeg -f image2 image%d.jpg
This works fine, but I want to have "rotating" filenames, that means setting a max. number of output files. When this limit is reached, it shall start with "image1.jpg" again : image1.jpg .. imageN.jpg .. image1.jpg etc.
I was hoping a specifiger like "%02d" would limit the numbers from 1..99, but this doesn’t seem t o work.I have found the "-vframes"-Parameter, but this is the abolsute number of frames to be output.
Is there any option to make the filenames rotate ?Thanks
VanDahlen