
Recherche avancée
Autres articles (105)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...)
Sur d’autres sites (12961)
-
How to concat videos that have different colour spaces ?
17 avril 2023, par Ham789I writing a Python program that uses subprocess to automate ffmpeg. The program concatenates many videos together with the concat filter. The problem I have is that the colour of some of the videos is very washed out in the final output. I believe this is because the videos have different colour spaces. Some are B.709 and some are B.2020. The B.2020 videos are washed out.


I have tried converting the B.2020 videos to B.709 before concatenating by using the following command on each video but the outputs are still washed out :


ffmpeg -i input.mov -vf colorspace=all=bt709:iall=bt2020:fast=1 output.mov



It wasn't clear to me which way round the arguments should go so I also tried switching the
bt2020
andbt709
terms but they still look washed out but with more saturation.

Is this the right approach ? Am I missing some other arguments in order to convert the B.2020 videos to B.709 while preserving their colour ?


I have attached a side by side of the original and converted video.


The metadata of the videos I am trying to concat are :


Video 1


- 

- color_range=tv
- color_space=bt709
- color_transfer=bt709
- color_primaries=bt709










Video 2


- 

- color_range=tv
- color_space=bt2020nc
- color_transfer=arib-std-b67
- color_primaries=bt2020










-
How to use FFmpeg and GeForce Hardware to decode and encode 4K MKV movie to 1080p [closed]
27 janvier 2023, par slyfox1186I am struggling with the instruction provided to convert a 4k Movie to 1080p so I can run it easier on my plex server.


I have a Geforce 1080Ti and have enable cuda and all the necessary options when building ffmpeg.


I keep getting a weird error and I am stuck at the below point.


Here is my code that I am working on currently


REM @ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
COLOR 0A
TITLE CONVERT 4K TO 1080P USING GEFORCE HW

PUSHD "%~dp0"

SET "FF=C:\MAB\local64\bin-video\ffmpeg.exe"

FOR /R %%G IN (*.mkv) DO (
 "%FF%" -hide_banner -hwaccel cuda -y -i "%%~dpnG.mkv" -c:v h264_nvenc -preset slow -pix_fmts yuv420p10le -vf scale='1920:-1' -c:a copy "%%~dpnG(1080p).mkv"
 )

ECHO.
PAUSE
EXIT




below is the error output I get when running the above command


Guessed Channel Layout for Input Stream #0.1 : 5.1
Input #0, matroska,webm, from 'Mulan_2020.mkv':
 Metadata:
 title : mandtv.net
 encoder : libebml v1.4.0 + libmatroska v1.6.2
 creation_time : 2020-09-10T05:08:02.000000Z
 Duration: 01:55:08.70, start: 0.000000, bitrate: 16704 kb/s
 Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1608 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
 Metadata:
 BPS-eng : 15933746
 DURATION-eng : 01:55:08.652000000
 NUMBER_OF_FRAMES-eng: 165642
 NUMBER_OF_BYTES-eng: 13760089087
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1, fltp (default) (forced)
 Metadata:
 title : En
 BPS-eng : 768000
 DURATION-eng : 01:55:08.704000000
 NUMBER_OF_FRAMES-eng: 215897
 NUMBER_OF_BYTES-eng: 663235584
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:2(eng): Subtitle: subrip
 Metadata:
 title : English
 BPS-eng : 35
 DURATION-eng : 01:50:28.504000000
 NUMBER_OF_FRAMES-eng: 1150
 NUMBER_OF_BYTES-eng: 29135
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:3(ger): Subtitle: subrip
 Metadata:
 title : de
 BPS-eng : 2
 DURATION-eng : 00:03:07.062000000
 NUMBER_OF_FRAMES-eng: 2
 NUMBER_OF_BYTES-eng: 53
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:4(ger): Subtitle: subrip
 Metadata:
 title : de
 BPS-eng : 27
 DURATION-eng : 01:54:16.482000000
 NUMBER_OF_FRAMES-eng: 933
 NUMBER_OF_BYTES-eng: 23256
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:5(fre): Subtitle: subrip
 Metadata:
 title : fr
 BPS-eng : 0
 DURATION-eng : 01:40:51.510000000
 NUMBER_OF_FRAMES-eng: 21
 NUMBER_OF_BYTES-eng: 380
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:6(fre): Subtitle: subrip
 Metadata:
 title : fr
 BPS-eng : 29
 DURATION-eng : 01:54:19.902000000
 NUMBER_OF_FRAMES-eng: 806
 NUMBER_OF_BYTES-eng: 25098
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:7(spa): Subtitle: subrip
 Metadata:
 title : es
 BPS-eng : 2
 DURATION-eng : 00:03:21.201000000
 NUMBER_OF_FRAMES-eng: 3
 NUMBER_OF_BYTES-eng: 73
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:8(spa): Subtitle: subrip
 Metadata:
 title : es
 BPS-eng : 30
 DURATION-eng : 01:43:53.693000000
 NUMBER_OF_FRAMES-eng: 783
 NUMBER_OF_BYTES-eng: 24134
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:9(ita): Subtitle: subrip
 Metadata:
 title : it
 BPS-eng : 2
 DURATION-eng : 00:03:08.522000000
 NUMBER_OF_FRAMES-eng: 2
 NUMBER_OF_BYTES-eng: 67
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:10(ita): Subtitle: subrip
 Metadata:
 title : it
 BPS-eng : 27
 DURATION-eng : 01:54:16.649000000
 NUMBER_OF_FRAMES-eng: 784
 NUMBER_OF_BYTES-eng: 23506
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:11(por): Subtitle: subrip
 Metadata:
 title : pt
 BPS-eng : 27
 DURATION-eng : 01:54:16.649000000
 NUMBER_OF_FRAMES-eng: 784
 NUMBER_OF_BYTES-eng: 23202
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:12(por): Subtitle: subrip
 Metadata:
 title : pt
 BPS-eng : 2
 DURATION-eng : 00:03:08.522000000
 NUMBER_OF_FRAMES-eng: 2
 NUMBER_OF_BYTES-eng: 61
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:13(rus): Subtitle: subrip (default)
 Metadata:
 title : ru
 BPS-eng : 0
 DURATION-eng : 01:37:43.480000000
 NUMBER_OF_FRAMES-eng: 9
 NUMBER_OF_BYTES-eng: 420
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:14(rus): Subtitle: subrip
 Metadata:
 title : ru
 BPS-eng : 50
 DURATION-eng : 01:44:17.000000000
 NUMBER_OF_FRAMES-eng: 850
 NUMBER_OF_BYTES-eng: 39721
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:15(ukr): Subtitle: subrip
 Metadata:
 title : uk
 BPS-eng : 50
 DURATION-eng : 01:43:53.650000000
 NUMBER_OF_FRAMES-eng: 848
 NUMBER_OF_BYTES-eng: 39165
 _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
 Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_nvenc))
 Stream #0:1 -> #0:1 (copy)
 Stream #0:2 -> #0:2 (subrip (srt) -> ass (ssa))
Press [q] to stop, [?] for help
[h264_nvenc @ 000002306685ccc0] 10 bit encode not supported
[h264_nvenc @ 000002306685ccc0] Provided device doesn't support required NVENC features
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!



Can anyone spot what I'm missing ?


-
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
28 août 2020, par bbdangarI am using this library : com.arthenica:mobile-ffmpeg-full:4.4


Getting this error message while running the command :


final String command = "-y -i "+ inputPath +" -ar 22050 -hls_list_size 1000000 -hls_time 2 -s 640x360 " + outputPath;



here is the complete code :


private void convertVideo() {
 String inputPath = "/storage/emulated/0/Download/video.mp4";
 String outputPath = "/storage/emulated/0/Download/output.m3u8";
 final String command = "-y -i "+ inputPath +" -ar 22050 -hls_list_size 1000000 -hls_time 2 -s 640x360 " + outputPath;
 FFmpeg.executeAsync(command, new ExecuteCallback() {
 @Override
 public void apply(long executionId, int returnCode) {

 if (returnCode == RETURN_CODE_SUCCESS) {
 Log.i(TAG, "Command execution completed successfully.");
 } else if (returnCode == RETURN_CODE_CANCEL) {
 Log.i(TAG, "Command execution cancelled by user.");
 } else {
 Log.i(TAG, String.format("Command execution failed with rc=%d and the output below.", returnCode));
 Config.printLastCommandOutput(Log.INFO);
 }
 }
 });

 }



here is output log :


2020-08-28 07:05:59.355 10725-10820 W/mobile-ffmpeg: [graph 0 input from stream 0:0 @ 0xe2306c80] sws_param option is deprecated and ignored
2020-08-28 07:05:59.448 10725-10820 E/mobile-ffmpeg: [h264_v4l2m2m @ 0xcb442c00] can't configure encoder
2020-08-28 07:05:59.448 10725-10820 E/mobile-ffmpeg: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
2020-08-28 07:05:59.463 10725-10820 I/mobile-ffmpeg: Conversion failed!
2020-08-28 07:05:59.465 10725-10725 I/mobile-ffmpeg: ffmpeg version v4.4-dev-416 Copyright (c) 2000-2020 the FFmpeg developers