
Recherche avancée
Autres articles (52)
-
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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
Sur d’autres sites (10404)
-
ffmbc : QuickTime to XDCAMHD422 MXF
13 novembre 2018, par Ze'evTrying to create an XDCAMHD422 MXF with video from a QuickTime and audio from a stereo WAV.
Audio is
pcm_s24le, 48000 Hz, 2 channels, s32
But output is mixed :
Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
Stream #0.2(und): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/sAnd shows alert :
Incompatible sample format 's32' for codec 'pcm_s16le', auto-selecting format 's16'
(For XDCAM, it’s necessary to split stereo into dual mono.)
Command :
ffmbc -i "$v" -i "$a" -tff -timecode 07:00:00:00 \
-map_audio_channel 1:0:0:0:1:0 \
-map_audio_channel 1:0:1:0:2:0 \
-acodec pcm_s24le -ar 48000 -ac 2 \
-target xdcamhd422 -vtag xd5c -y -t 1 "$o" \
-acodec pcm_s24le -newaudioOutput :
FFmbc version 0.7.2
Copyright (c) 2008-2014 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mov':
Metadata:
major_brand: qt
minor_version: 537199360
compatible_brands: qt
timecode: 00:00:00:00
Duration: 00:00:30.00, bitrate: 188317 kb/s
Stream #0.0(eng): Video: prores, yuv422p10le, 1920x1080p, 186502 kb/s, PAR 1:1 DAR 16:9, 25.00 fps
Metadata:
codec_name: Apple ProRes 422 (HQ)
Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream #0.2(eng): Data: unknown (tmcd)
Input #1, wav, from 'audio.wav':
Metadata:
encoded_by: Pro Tools
originator_reference: aaOpK7OBThOk
date: 2018-11-08
creation_time: 14:10:50
time_reference: 175680000
Duration: 00:00:30.00, bitrate: 2316 kb/s
Stream #1.0(und): Audio: pcm_s24le, 48000 Hz, 2 channels, s32, 2304 kb/s
[scale @ 0x7ff9f48009a0] w:1920 h:1080 fmt:yuv422p10le -> w:1920 h:1080 fmt:yuv422p flags:0x4 il:0
Incompatible sample format 's32' for codec 'pcm_s16le', auto-selecting format 's16'
Output #0, mxf, to 'mxftest3.mxf':
Metadata:
encoder: FFmbc 0.7
Stream #0.0(und): Video: mpeg2video, yuv422p, 1920x1080i tff [PAR 1:1 DAR 16:9], cbr, 50000 kb/s, 25.00 fps
Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
Stream #0.2(und): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1 [channel: 0 -> 0]
Stream #1.0 -> #0.2 [channel: 1 -> 0]
Press [q] to stop, [?] for help
frame= 25 fps= 8 q=2.0 Lsize= 7586kB time=00:00:01.00 bitrate=62145.0kbits/s
video:7309kB audio:236kB global headers:0kB muxing overhead 0.541060% -
ffmpeg get orientation inverted
16 novembre 2018, par FaabassI getting the resolution for a video, but ffmpeg/ffprobe is getting inverted.. Always the biggest number is the width.
I mean, it doesn’t matter if I’m getting the resolution of a vertical or horizontal video, I’m always getting for example 640x480 when it should be 480x640. Also I tried with the aspect ratio as 4:3 instead of 3:4
ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 original.mp4
So my question is how I can get the right resolution or at least the orientation I need to know if the video is horizontal or vertical.
See full response :
ffprobe -select_streams v:0 -show_entries stream=width,height -of csv=p=0 original.mp4
ffprobe version N-86781-gd8f1982639-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2017 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil 55. 67.100 / 55. 67.100
libavcodec 57.100.104 / 57.100.104
libavformat 57. 75.100 / 57. 75.100
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 95.100 / 6. 95.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x4ff7e60] sample aspect ratio already set to 1:1, ignoring 'pasp' atom (65536:65536)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'original.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2018-11-12T22:15:04.000000Z
com.android.version: 7.0
Duration: 00:01:10.30, start: 0.000000, bitrate: 9497 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m), 1280x720, 9365 kb/s, SAR 1:1 DAR 16:9, 23.97 fps, 24 tbr, 90k tbn, 180k tbc (default)
Metadata:
rotate : 270
creation_time : 2018-11-12T22:15:04.000000Z
handler_name : VideoHandle
Side data:
displaymatrix: rotation of 90.00 degrees
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2018-11-12T22:15:04.000000Z
handler_name : SoundHandle
1280,720 -
How to remove everything but video and stereo audio stream from video with ffmpeg ?
20 octobre 2019, par user3776738I’m trying to get a clean h264 video from a mkv file.With clean I mean that it has only a video stream plus stereo sound.
The inputfile can have multiple channels and subtitles and other unknown stuff, which I don’t need.
I’m using ffmpeg with this command :ffmpeg -i "input.mkv" -ac 2 -vf scale=trunc(oh*a/2)*2:480 -c:v libx264 "output.mp4"
This should give me a 480p video with stereo sound,which I require.
I tried multiple -map or dispositions commands with ffmpeg to remove the subtitles whithout any success.How can I remove everything but video and stereo stream with ffmpeg and get a 480p stereo sound video ?
Edit :
Output of ffmpeg - "input.mkv" -i "output.mp4" :ffmpeg -i "input.mkv" -i "output.mp4"
ffmpeg version N-91972-gbd10c1e9a8 Copyright (c) 2000-2018 the FFmpeg developer
built with gcc 8.2.1 (GCC) 20180813
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconf
g --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-li
freetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-am
wb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy -
enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-
ibwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 -
enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --e
able-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --e
able-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --
nable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --ena
le-avisynth
libavutil 56. 19.101 / 56. 19.101
libavcodec 58. 30.100 / 58. 30.100
libavformat 58. 18.101 / 58. 18.101
libavdevice 58. 4.103 / 58. 4.103
libavfilter 7. 32.100 / 7. 32.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
[hevc @ 00000000004a5940] Invalid default display window
Input #0, matroska,webm, from 'input.mkv':
Metadata:
title : Elysium (2013)
encoder : libebml v1.3.3 + libmatroska v1.4.4
creation_time : 2016-01-05T22:30:41.000000Z
Duration: 00:01:02.73, start: 0.166000, bitrate: 53638 kb/s
Chapter #0:0: start 0.000000, end 62.896000
Metadata:
title : 00:00:00.000
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv), 3840x1606, SAR 1:
DAR 1920:803, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
title : Elysium (2013) - Release for ULTRAHDCLUB
BPS : 51036975
BPS-eng : 51036975
DURATION : 00:01:02.604000000
DURATION-eng : 00:01:02.604000000
NUMBER_OF_FRAMES: 1501
NUMBER_OF_FRAMES-eng: 1501
NUMBER_OF_BYTES : 399389852
NUMBER_OF_BYTES-eng: 399389852
_STATISTICS_WRITING_APP: mkvmerge v8.7.0 ('All of the above') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.7.0 ('All of the above') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-01-05 22:30:41
_STATISTICS_WRITING_DATE_UTC-eng: 2016-01-05 22:30:41
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s16p (default)
Metadata:
title : DTS-HD MA 7.1 - Blu-ray CEE
BPS : 2706639
BPS-eng : 2706639
DURATION : 00:01:02.561000000
DURATION-eng : 00:01:02.561000000
NUMBER_OF_FRAMES: 5865
NUMBER_OF_FRAMES-eng: 5865
NUMBER_OF_BYTES : 21166260
NUMBER_OF_BYTES-eng: 21166260
_STATISTICS_WRITING_APP: mkvmerge v8.7.0 ('All of the above') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.7.0 ('All of the above') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-01-05 22:30:41
_STATISTICS_WRITING_DATE_UTC-eng: 2016-01-05 22:30:41
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Elysium (2013)
encoder : Lavf58.18.101
Duration: 00:01:02.73, start: 0.000000, bitrate: 1671 kb/s
Chapter #1:0: start 0.000000, end 62.730000
Metadata:
title : 00:00:00.000
Stream #1:0(eng): Video: h264 (High 10) (avc1 / 0x31637661), yuv420p10le, 1
46x480 [SAR 2030:2027 DAR 38773:16216], 1543 kb/s, SAR 15563:15540 DAR 1920:803
23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fl
p, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream #1:2(eng): Data: bin_data (text / 0x74786574), 0 kb/s
Metadata:
handler_name : SubtitleHandler
At least one output file must be specified