
Advanced search
Other articles (70)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 September 2013, byCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo; l’ajout d’une bannière l’ajout d’une image de fond;
-
Ecrire une actualité
21 June 2013, byPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 June 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
On other websites (11427)
-
FFMPEG Re-muxing .MKV to MP4\MV4 while retaining Dolby Digital Plus [closed]
30 December 2020, by David FI would be grateful if anyone could help me out here. I'm remuxing a large number of video files from .MKV to .MP4\M4V so they play on the Apple platform (including the TV App) without any issues. It has been a bit of a learning curve, but I’m so close now. It's important NOT to convert, but to remux.


I have achieved the ability to remux 4K HDR with Dolby Digital Plus in a .MKV to 4K HDR with Dolby Digtial 5.1. MP4. The issue is retaining the Dolby Digital Plus. This contains the ATMOS information for object based sound.


The media players on Apple reports Dolby Digital Plus for the .MKV and Dolby Digital 5.1 for .MP4


I'm using FFMPEG with the following command :-


ffmpeg -i original.mkv -c:v copy -c:a eac3 -tag:v hvc1 output.mp4


Output from MediaInfo (note .MKV contains only 1 video and 1 audio track)


Audio -----Original.mkv


- 

- ID : 2
- Format : E-AC-3 JOC
- Format/Info : Enhanced AC-3 with Joint
Object Coding
- Commercial name : Dolby Digital Plus with Dolby
Atmos
- Codec ID : **A_**EAC3
- Duration : 51 min 51 s
- Bit rate mode : Constant
















Audio ----- Remuxed .mp4


- 

- ID : 2
- Format : E-AC-3
- Format/Info : Enhanced AC-3
- Commercial name : Dolby Digital Plus
- Codec ID : ec-3
- Duration : 51 min 51 s
- Bit rate mode : Constant
















The remux operation finished in about 1 minute for a 8Gb 4k video file, so we I know there is no reencoding. My theory is the stream is still a E-AC-3 with Joint Object Control, but its marked as a E-AC-3.


I can see that .mp4 can take E-AC-3 Joint Object Control (JOC) with the demo files from Dolby labs.


I've also remuxed an MKV to MKV and able to see the same result. The JOC markings have been removed with FFMPEG


My ask is, does anyone have any knowledge of how to remux and keep Enhanced AC-3 with Joint Object Control with FFMPEG. Does FFMPEG support this?


Or know if just editing the Format, Format/Info, and Code ID is enough and the sound information in my .MP4\M4V is E-AC-3 JOC. If so can I just edit the media info, if so how?


I know Dolby Labs to allow free remuxing of Dolby Digital Plus/ Atmos with sample code and information they have uploaded onto Github for developers. I just wonder if FFMPEG supports it


Thanks in advanced.


David


-
FFmpeg render portrait oriented .mov files incorrectly
21 October 2020, by Polina F.When I try to convert a portrait oriented .mov file to mp4 file using the following commnad


ffmpeg -i "2.mov" -s 720x404 -ac 2 -threads 0 -c:v libx264 -pix_fmt yuv420p -vprofile high -level 4.1 -preset medium -crf 25 -maxrate:v 1000k -b:a 128k "r5.mp4"



the mp4 file that gets created looks stretched sideways
like in this example. Can't paste the .mov or the .mp4 files but the problem is clear.
What is the proper command to run to get a normal not stretched file?




the full log:


C:\ffmpeg> .\ffmpeg -i "1.mov" -s 720x404 -ac 2 -threads 0 -c:v libx264 -pix_fmt yuv420p -vprofile high -level 4.1 -preset medium -crf 25 -maxrate:v 1000k -b:a 128k "r7.mp4"
ffmpeg version N-79906-gc8c14d0 Copyright (c) 2000-2016 the FFmpeg developers
 built with gcc 5.3.0 (GCC)
 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
 libavutil 55. 24.100 / 55. 24.100
 libavcodec 57. 40.100 / 57. 40.100
 libavformat 57. 36.100 / 57. 36.100
 libavdevice 57. 0.101 / 57. 0.101
 libavfilter 6. 45.100 / 6. 45.100
 libswscale 4. 1.100 / 4. 1.100
 libswresample 2. 0.101 / 2. 0.101
 libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mov':
 Metadata:
 major_brand : qt
 minor_version : 0
 compatible_brands: qt
 creation_time : 2019-12-30 14:54:06
 com.apple.quicktime.make: Apple
 com.apple.quicktime.model: iPhone XR
 com.apple.quicktime.software: 13.1.2
 com.apple.quicktime.creationdate: 2019-12-30T08:54:06-0600
 Duration: 00:00:09.11, start: 0.000000, bitrate: 15792 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 15543 kb/s, 29.97 fps, 29.97 tbr, 600 tbn (default)
 Metadata:
 rotate : 90
 creation_time : 2019-12-30 14:54:06
 handler_name : Core Media Data Handler
 encoder : H.264
 Side data:
 displaymatrix: rotation of -90.00 degrees
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 195 kb/s (default)
 Metadata:
 creation_time : 2019-12-30 14:54:06
 handler_name : Core Media Data Handler
 Stream #0:2(und): Data: none (mebx / 0x7862656D), 20 kb/s (default)
 Metadata:
 creation_time : 2019-12-30 14:54:06
 handler_name : Core Media Data Handler
 Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
 Metadata:
 creation_time : 2019-12-30 14:54:06
 handler_name : Core Media Data Handler
 Stream #0:4(und): Data: none (mebx / 0x7862656D), 23 kb/s (default)
 Metadata:
 creation_time : 2019-12-30 14:54:06
 handler_name : Core Media Data Handler
[libx264 @ 0569cc00] VBV maxrate specified, but no bufsize, ignored
[libx264 @ 0569cc00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0569cc00] profile High, level 4.1
[libx264 @ 0569cc00] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 055f0460] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
 Last message repeated 1 times
Output #0, mp4, to 'r7.mp4':
 Metadata:
 major_brand : qt
 minor_version : 0
 compatible_brands: qt
 com.apple.quicktime.creationdate: 2019-12-30T08:54:06-0600
 com.apple.quicktime.make: Apple
 com.apple.quicktime.model: iPhone XR
 com.apple.quicktime.software: 13.1.2
 encoder : Lavf57.36.100
 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x404, q=2-31, 29.97 fps, 30k tbn (default)
 Metadata:
 handler_name : Core Media Data Handler
 creation_time : 2019-12-30 14:54:06
 encoder : Lavc57.40.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 1000000/0/0 buffer size: 0 vbv_delay: -1
 Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)
 Metadata:
 creation_time : 2019-12-30 14:54:06
 handler_name : Core Media Data Handler
 encoder : Lavc57.40.100 aac
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
 Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame= 273 fps= 43 q=-1.0 Lsize= 973kB time=00:00:09.17 bitrate= 869.4kbits/s speed=1.45x
video:817kB audio:145kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.136555%
[libx264 @ 0569cc00] frame I:2 Avg QP:26.36 size: 19820
[libx264 @ 0569cc00] frame P:69 Avg QP:26.68 size: 7276
[libx264 @ 0569cc00] frame B:202 Avg QP:30.73 size: 1459
[libx264 @ 0569cc00] consecutive B-frames: 1.1% 0.7% 0.0% 98.2%
[libx264 @ 0569cc00] mb I I16..4: 6.9% 60.8% 32.3%
[libx264 @ 0569cc00] mb P I16..4: 1.5% 6.2% 2.2% P16..4: 48.0% 20.5% 8.1% 0.0% 0.0% skip:13.5%
[libx264 @ 0569cc00] mb B I16..4: 0.1% 0.2% 0.1% B16..8: 46.6% 4.8% 0.7% direct: 0.9% skip:46.6% L0:40.1% L1:53.0% BI: 6.9%
[libx264 @ 0569cc00] 8x8 transform intra:62.7% inter:75.7%
[libx264 @ 0569cc00] coded y,uvDC,uvAC intra: 68.9% 61.3% 22.1% inter: 13.2% 11.1% 0.7%
[libx264 @ 0569cc00] i16 v,h,dc,p: 6% 52% 6% 36%
[libx264 @ 0569cc00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 33% 13% 4% 6% 3% 15% 4% 12%
[libx264 @ 0569cc00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 38% 12% 3% 5% 3% 12% 2% 8%
[libx264 @ 0569cc00] i8c dc,h,v,p: 48% 39% 9% 4%
[libx264 @ 0569cc00] Weighted P-Frames: Y:8.7% UV:7.2%
[libx264 @ 0569cc00] ref P L0: 57.7% 25.2% 12.1% 4.8% 0.2%
[libx264 @ 0569cc00] ref B L0: 94.9% 3.7% 1.4%
[libx264 @ 0569cc00] ref B L1: 97.6% 2.4%
[libx264 @ 0569cc00] kb/s:734.59
[aac @ 0569abc0] Qavg: 1236.647



-
ffmpeg: Concatenating videos with different formats with as little quality loss as possible
12 June 2020, by linesdI have sets of video segments with different formats that need to be concatenated and uploaded to a database as a single video. I need to do this with as little quality loss as possible. For example, one set is:



video_1.mov - 796 frames, 432Mb,
video_2.mp4 - 913 frames, 58Mb,
video_3.mov - 625 frames, 345Mb




This should be concatenated into one file:

output.mov - 2334 frames, ?Mb



So far I am doing this:



- 

- Convert the
.mp4
to.mov
with lossless encoding:





ffmpeg -i video_2.mp4 -c:v libx264 -preset veryslow -crf 0 -c:a copy video_2.mov



an error is produced during this step:



[h264 @ 0x558298795760] error while decoding MB 110 37, bytestream -69483.1kbits/s speed=0.227x 
[h264 @ 0x558298795760] concealing 3659 DC, 3659 AC, 3659 MV errors in P frame




This still outputs
video_2.mov - frames 913, 112Mb



- 

- Use concat demuxer to combine the videos:





ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mov



where
mylist.txt
is:


file 'video_1.mov'
file 'video_2.mov'
file 'video_3.mov'




However, the concat demuxer command gives the error:



[concat @ 0x561cbae96900] Could not find codec parameters for stream 2 (Unknown: none): unknown codec.Consider increasing the value for the 'analyzeduration' and 'probesize' options




Followed by many lines of:



[mov @ 0x555b5dca4f00] Non-monotonous DTS in output stream 0:1; previous: 1527575, current: 1168413; changing to 1527576. This may result in incorrect timestamps in the output file.




The result of these steps is a
output.mov
which is the correct size of432+345+112=889Mb
but only has1421
frames equal to the frames fromvideo_1.mov - 796 frames
andvideo_3.mov - 625 frames
. When I play the concatenated version,output.mov
, it freezes for the duration of thevideo_2.mov
segment and then continues as normal forvideo_3.mov
.


Any help with this would be hugely appreciated.



EDIT:





Running
ffmpeg -n -i video_1.mov -i video_2.mp4 -i video_3.mov
per the comments produced:


`ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
 configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
 libavutil 55. 78.100 / 55. 78.100
 libavcodec 57.107.100 / 57.107.100
 libavformat 57. 83.100 / 57. 83.100
 libavdevice 57. 10.100 / 57. 10.100
 libavfilter 6.107.100 / 6.107.100
 libavresample 3. 7. 0 / 3. 7. 0
 libswscale 4. 8.100 / 4. 8.100
 libswresample 2. 9.100 / 2. 9.100
 libpostproc 54. 7.100 / 54. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_1.mov':
 Metadata:
 major_brand : qt 
 minor_version : 0
 compatible_brands: qt 
 creation_time : 2019-11-16T09:57:04.000000Z
 keywords : iMovie
 description : 
 title : 
 com.apple.quicktime.description: 
 com.apple.quicktime.displayname: 
 com.apple.quicktime.keywords: iMovie
 com.apple.quicktime.title:
 Duration: 00:00:31.84, start: 0.000000, bitrate: 108530 kb/s
 Stream #0:0(eng): Audio: pcm_s16be (lpcm / 0x6D63706C), 48000 Hz, stereo, s16, 1536 kb/s (default)
 Metadata:
 creation_time : 2019-11-16T09:57:04.000000Z
 handler_name : Core Media Data Handler
 Stream #0:1(und): Video: prores (apcn / 0x6E637061), yuv422p10le(bt709, progressive), 1920x1080, 106992 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
 Metadata:
 creation_time : 2019-11-16T09:57:04.000000Z
 handler_name : Core Media Data Handler
 encoder : Apple ProRes 422
 timecode : 00:00:00:00
 Stream #0:2(und): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
 Metadata:
 creation_time : 2019-11-16T09:57:04.000000Z
 handler_name : Core Media Data Handler
 timecode : 00:00:00:00
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'video_2.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 1
 compatible_brands: mp41mp42isom
 creation_time : 2019-11-16T09:55:40.000000Z
 Duration: 00:00:30.71, start: 0.000000, bitrate: 15320 kb/s
 Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 165 kb/s (default)
 Metadata:
 creation_time : 2019-11-16T09:55:40.000000Z
 handler_name : Core Media Audio
 Stream #1:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 15277 kb/s, 29.98 fps, 29.97 tbr, 90k tbn, 60 tbc (default)
 Metadata:
 creation_time : 2019-11-16T09:55:40.000000Z
 handler_name : Core Media Video
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'video_3.mov':
 Metadata:
 major_brand : qt 
 minor_version : 0
 compatible_brands: qt 
 creation_time : 2019-11-16T09:57:19.000000Z
 keywords : iMovie
 description : 
 title : 
 com.apple.quicktime.description: 
 com.apple.quicktime.displayname: 
 com.apple.quicktime.keywords: iMovie
 com.apple.quicktime.title:
 Duration: 00:00:25.00, start: 0.000000, bitrate: 110329 kb/s
 Stream #2:0(eng): Audio: pcm_s16be (lpcm / 0x6D63706C), 48000 Hz, stereo, s16, 1536 kb/s (default)
 Metadata:
 creation_time : 2019-11-16T09:57:19.000000Z
 handler_name : Core Media Data Handler
 Stream #2:1(und): Video: prores (apcn / 0x6E637061), yuv422p10le(bt709, progressive), 1920x1080, 108790 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
 Metadata:
 creation_time : 2019-11-16T09:57:19.000000Z
 handler_name : Core Media Data Handler
 encoder : Apple ProRes 422
 timecode : 00:00:00:00
 Stream #2:2(und): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
 Metadata:
 creation_time : 2019-11-16T09:57:19.000000Z
 handler_name : Core Media Data Handler
 timecode : 00:00:00:00



- Convert the