
Recherche avancée
Autres articles (14)
-
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 (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (5634)
-
How do I remux/transcode a progressive file in ffmpeg ?
3 décembre 2014, par Levi RobertsHere’s what I’m trying to do.
My primary objective is to remux or transcode a currently downloading media file for AppleTV and iOS compatible streaming.
I am doing this by looking at the media file and only transcoding when necessary, otherwise it will only alter the container the video/audio lives in. This will reduce overhead for files that are already compatible. The specific compatible output I am looking for is AppleTV3 and iOS.
I have a file that is progressive, meaning that it is downloading using another download manager or another app without the help of
nodejs
. This file may or may not have themoov
information available in the beginning of the file. It just so happens, that I believe my test file does.I have some code that is partially working and it would make sense to be able to get this code fully working. That said, I’m not dismissing alternative ways to do this.
My primary problem (I think) has to do with the
moov
header location or that it’s being set incorrectly. I’m hoping the fix is as simple as correcting my poorffmpeg
knowledge with command line parameters.I am piping the file to and from
ffmpeg
viaGrowingFile
andfs.createWriteStream
respectively.My code for doing so is :
var fs = require('fs');
var child = require('child_process');
var GrowingFile = require('growing-file');
var input_file = GrowingFile.open('./tmp/input.mp4');
var output_file = fs.createWriteStream('./tmp/output.m4v');
// I've tried various args and ffmpeg params here without success.
var args = ['-re', '-i', 'pipe:0', '-g', '52', '-ab', '64k', '-vcodec', 'libx264', '-vb', '448k', '-f', 'mp4', '-movflags', 'frag_keyframe+faststart', 'pipe:1'];
var trans_proc = child.spawn('ffmpeg', args, null);
input_file.pipe(trans_proc.stdin);
trans_proc.stdout.pipe(output_file);I am also temporarily trying to make these files work as intended via
ffmpeg
command line alone, without success. That command is :ffmpeg -i original.mp4 -vcodec copy -r 24 output.m4v
Snippet of
original.mp4
viamediainfo
:General
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 9.87 MiB
Duration : 43mn 14s
Overall bit rate mode : Variable
Overall bit rate : 31.9 Kbp
Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L2.1
Codec ID : avc1
Duration : 43mn 14s
Width : 480 pixels
Height : 268 pixels
Color space : YUV
Scan type : Progressive
Stream size : 67.5 MiB
Audio
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 43mn 14s
Bit rate mode : Variable
Bit rate : 96.0 KbpsWhat’s happening is that
output.m4v
has an incorrect duration of only the part of the file that’s already downloaded. The video reaches the end or a refresh happens to make the duration longer. This process repeats until theoriginal
file is done downloading. What I want is to be able to emulate/clone the duration of the input file to the output file . -
FFmpeg meaningful video thumbnails
18 avril 2015, par MaverickI know this question has been discussed already here. However, it did not solve the problem completely. I trying to retrieve meaning thumbnails from video and while executing the following command.
ffmpeg -ss 3 -i input.avi -vf "select=gt(scene\,0.4)" -frames:v 5 -vsync vfr -vf "fps=fps=1/600" out%02d.jpg
As a result, I am only able to get 1 image out of this video. I am not sure, what is going wrong over here.
Also, it would be great, if someone kindly give a quick explanation of this command parameters and filters. The command originally comes from here
FFMPEG console output :
ffmpeg version 2.6 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' --enable-nonfree --enable-vda
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, avi, from 'tagesschau.avi':
Metadata:
encoder : Lavf56.25.101
Duration: 00:00:20.03, start: 0.000000, bitrate: 4357 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 720x540 [SAR 1:1 DAR 4:3], 4190 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 44100 Hz, stereo, fltp, 160 kb/s
[swscaler @ 0x7fcb2a00f600] deprecated pixel format used, make sure you did set range correctly
[mjpeg @ 0x7fcb2a803c00] bitrate tolerance 4000000 too small for bitrate 200000, overriding
Output #0, image2, to 'out%02d.jpg':
Metadata:
encoder : Lavf56.25.101
Stream #0:0: Video: mjpeg, yuvj420p(pc), 720x540 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 0k fps, 0k tbn, 0k tbc
Metadata:
encoder : Lavc56.26.100 mjpeg
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=6.9 Lsize=N/A time=00:10:00.00 bitrate=N/A
video:44kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown -
lavc : Make AVPacket.duration int64, and deprecate convergence_duration
26 septembre 2015, par wm4lavc : Make AVPacket.duration int64, and deprecate convergence_duration
Note that convergence_duration had another meaning, one which was in
practice never used. The only real use for it was a 64 bit replacement
for the duration field. It’s better just to make duration 64 bits, and
to get rid of it.Signed-off-by : Vittorio Giovara <vittorio.giovara@gmail.com>
- [DBH] doc/APIchanges
- [DBH] libavcodec/audio_frame_queue.c
- [DBH] libavcodec/audio_frame_queue.h
- [DBH] libavcodec/avcodec.h
- [DBH] libavcodec/avpacket.c
- [DBH] libavcodec/parser.c
- [DBH] libavcodec/version.h
- [DBH] libavformat/framecrcenc.c
- [DBH] libavformat/matroskadec.c
- [DBH] libavformat/matroskaenc.c
- [DBH] libavformat/md5enc.c
- [DBH] libavformat/mov.c
- [DBH] libavformat/r3d.c
- [DBH] libavformat/utils.c