Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (56)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (8975)

  • want ffmpeg to capture only system sounds (no microphone) [closed]

    11 avril 2021, par josh joyer

    How to make ffmpeg to capture only system sounds (no microphone) ?
https://cdtjyku.blogspot.com/2019/04/ffmpeg-how-to-merge-gdigrab-and-audio.html
In above link reads that command

    


    ffmpeg -f f32le -ac 2 -ar 44.1k -i \.pipesystemAudioPipe


    


    should provide with only system audio sounds.
It might well work on linux but how to do that on windows ?

    


  • ffmpeg nvdec not available when adding subtitles to mp4

    17 février 2019, par whatdoineed2do

    I have a mp4 video that I want to BURN-IN subtitles (from a .ass file and via -vf ass=/tmp/conf-notes.ass) with ffmpeg on a machine with a GTX1060 card however ffmpeg reports that it fails to create the NVDEC decoder.

    [h264 @ 0xcb9380] Error creating a NVDEC decoder: 1
    [h264 @ 0xcb9380] Failed setup for format cuda: hwaccel initialisation returned error.

    The output file is generated ok but during the creation the CPU is used heavily (I assume for decode) - if I drop the -vf ass=/tmp/conf-notes.ass and perform an mp4->mp4 reencode there are no problems.

    I want to know what I am missing from my command to allow the GPU to perform the decode when an .ass file is added to the chain.

    $ ffmpeg -hwaccel cuvid -i 2019-01-conferance.mp4 -vf ass=/tmp/conf-notes.ass -c:a copy -preset llhq -rc vbr_hq -vb 2M -minrate 500k -maxrate 12M -c:v h264_nvenc export.mp4
    ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 8 (GCC)
     configuration: --arch=x86_64 --bindir=/usr/bin --datadir=/usr/share/ffmpeg --disable-debug --disable-static --disable-stripping --enable-alsa --enable-avfilter --enable-avresample --enable-bzlib --enable-decklink --enable-doc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gpl --enable-iconv --enable-libass --enable-libbluray --enable-libcdio --enable-libdc1394 --enable-libdrm --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libkvazaar --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-librtmp --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-libxcb-shape --enable-libxml2 --enable-libxvid --enable-libzvbi --enable-lv2 --enable-lzma --enable-libndi_newtek --enable-nonfree --enable-openal --enable-opencl --enable-opengl --enable-postproc --enable-pthreads --enable-sdl2 --enable-shared --enable-version3 --enable-xlib --enable-zlib --extra-cflags=-I/usr/include/cuda --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --prefix=/usr --shlibdir=/usr/lib64 --enable-cuda --enable-cuvid --enable-libnpp --enable-nvdec --enable-nvenc --enable-runtime-cpudetect
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2019-01-conferance.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2019-01-12T00:00:06.000000Z
     Duration: 00:00:24.07, start: 0.000000, bitrate: 11542 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 11350 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
       Metadata:
         creation_time   : 2019-01-12T00:00:07.000000Z
         handler_name    : Mainconcept MP4 Video Media Handler
         encoder         : AVC Coding
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
       Metadata:
         creation_time   : 2019-01-12T00:00:07.000000Z
         handler_name    : Mainconcept MP4 Sound Media Handler
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [h264 @ 0xcb9380] Error creating a NVDEC decoder: 1
    [h264 @ 0xcb9380] Failed setup for format cuda: hwaccel initialisation returned error.
    [Parsed_ass_0 @ 0x1241c00] Shaper: FriBidi 1.0.2 (SIMPLE) HarfBuzz-ng 1.7.5 (COMPLEX)
    [Parsed_ass_0 @ 0x1241c00] Using font provider fontconfig
    [Parsed_ass_0 @ 0x1241c00] Added subtitle file: '/tmp/conf-notes.ass' (2 styles, 101 events)

    The .ass file has been generated from a .srt file via ffmpeg -i foo.srt foo.ass

  • Trying to create mp4 proxy from Sony RAW file using FFMPEG

    16 avril 2021, par Daniel Akerman

    I'm trying to create a viewable mp4 proxy file (MPEG-4 AVC with AAC LC audio) from a Sony RAW SQ mxf file.

    


    I was able to create an mp4 with a single track of audio but no video by using this :

    


    ffmpeg -i Raw.mxf -c:v libx264 -c:a aac -strict experimental Raw-test.mp4


    


    I have a Mac, using ffmpeg version 4.3.2

    


    This is the file I'm trying to convert:
File spec:
General
Complete name                            : Raw.mxf
Format                                   : MXF
Format version                           : 1.3
Format profile                           : OP-1a
Format settings                          : Closed / Complete
File size                                : 2.33 GiB
Duration                                 : 20 s 200 ms
Overall bit rate                         : 990 Mb/s
Encoded date                             : 2019-06-23 19:48:44.000
Writing application                      : Sony AXS 2.0.0.0.1
Writing library                          : Sony SC Platform 8.2.0.0.1

Video
ID                                       : 2
Format                                   : Sony RAW SQ
Format settings, wrapping mode           : Frame (D-10)
Codec ID                                 : 0E060D0302010100-0E06040102040201
Duration                                 : 20 s 200 ms
Bit rate                                 : 986 Mb/s
Width                                    : 4 096 pixels
Original width                           : 4 128 pixels
Height                                   : 2 160 pixels
Original height                          : 2 192 pixels
Display aspect ratio                     : 1.896
Frame rate                               : 25.000 FPS
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 4.457
Stream size                              : 2.32 GiB (100%)

Audio #1
ID                                       : 3
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 20 s 200 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 25.000 FPS (1920 SPF)
Bit depth                                : 24 bits
Stream size                              : 2.77 MiB (0%)
Locked                                   : Yes

Audio #2
ID                                       : 4
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 20 s 200 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 25.000 FPS (1920 SPF)
Bit depth                                : 24 bits
Stream size                              : 2.77 MiB (0%)
Locked                                   : Yes

Audio #3
ID                                       : 5
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 20 s 200 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 25.000 FPS (1920 SPF)
Bit depth                                : 24 bits
Stream size                              : 2.77 MiB (0%)
Locked                                   : Yes

Audio #4
ID                                       : 6
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 20 s 200 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 25.000 FPS (1920 SPF)
Bit depth                                : 24 bits
Stream size                              : 2.77 MiB (0%)
Locked                                   : Yes

Other #1
ID                                       : 1-Material
Type                                     : Time code
Format                                   : MXF TC
Frame rate                               : 25.000 FPS
Time code of first frame                 : 20:50:05:08
Time code settings                       : Material Package
Time code, striped                       : Yes

Other #2
ID                                       : 1-Source
Type                                     : Time code
Format                                   : MXF TC
Frame rate                               : 25.000 FPS
Time code of first frame                 : 20:50:05:08
Time code settings                       : Source Package
Time code, striped                       : Yes

Other #3
ID                                       : 7
Format                                   : Acquisition Metadata
Muxing mode                              : Ancillary data / RDD 18
Duration                                 : 20 s 200 ms
Frame rate                               : 25.000 FPS
CaptureGammaEquation_FirstFrame          : SceneLinear
MacroSetting_FirstFrame                  : Off
OpticalExtenderMagnification_FirstFrame  : 100%
LensAttributes_FirstFrame                : Unknown
AutoExposureMode_FirstFrame              : Manual
NeutralDensityFilterWheelSetting_FirstFr : Clear
ImageSensorDimensionEffectiveWidth_First : 24.003 mm
ImageSensorDimensionEffectiveHeight_Firs : 12.658 mm
CaptureFrameRate_FirstFrame              : 25.000 fps
ImageSensorReadoutMode_FirstFrame        : Progressive frame
ShutterSpeed_Angle_FirstFrame            : 180.0°
ShutterSpeed_Time_FirstFrame             : 1/50 s
CameraMasterGainAdjustment_FirstFrame    : 0.00 dB
ISOSensitivity_FirstFrame                : 1250
ElectricalExtenderMagnification_FirstFra : 100%
AutoWhiteBalanceMode_FirstFrame          : Preset
WhiteBalance_FirstFrame                  : 3200 K
CameraMasterBlackLevel_FirstFrame        : 3.0%
CameraAttributes_FirstFrame              : F55 101044
ExposureIndexofPhotoMeter_FirstFrame     : 1250
GammaForCDL_FirstFrame                   : Undefined
ASC_CDL_V12_FirstFrame                   : sR=1.0 sG=1.0 sB=1.0 oR=0.0 oG=0.0 oB=0.0 pR=1.0 pG=1.0 pB=1.0 sat=1.0
EffectiveMarkerCoverage_FirstFrame       : 4096x4096
EffectiveMarkerAspectRatio_FirstFrame    : 4096x2160
CameraProcessDiscriminationCode_FirstFra : 201
RawBlackCodeValue_FirstFrame             : 512
RawGrayCodeValue_FirstFrame              : 1504
RawWhiteCodeValue_FirstFrame             : 5472
MonitoringDescriptions_FirstFrame        : SonyProf2:LC-709typA
MonitoringBaseCurve_FirstFrame           : 0E06040101010408

Other #4
Type                                     : Time code
Format                                   : SMPTE TC
Muxing mode                              : SDTI
Frame rate                               : 25.000 FPS
Time code of first frame                 : 20:50:05:08


    


    I'm not sure which camera it is from, I only have the information extracted by MediaInfo that I included.

    


    The FFMEG log is:
$ ffmpeg -i /Users/Aker84150/Downloads/Raw.mxf -c:v libx264 -c:a aac -strict experimental /Users/Aker84150/Downloads/Raw-test.mp4ffmpeg version 4.3.2 Copyright (c) 2000-2021 the FFmpeg developers  built with Apple clang version 11.0.0 (clang-1100.0.33.17)  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.2_4 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox  libavutil      56. 51.100 / 56. 51.100  libavcodec     58. 91.100 / 58. 91.100  libavformat    58. 45.100 / 58. 45.100  libavdevice    58. 10.100 / 58. 10.100  libavfilter     7. 85.100 /  7. 85.100  libavresample   4.  0.  0 /  4.  0.  0  libswscale      5.  7.100 /  5.  7.100  libswresample   3.  7.100 /  3.  7.100  libpostproc    55.  7.100 / 55.  7.100[mxf @ 0x7f808f008800] could not resolve sub descriptor strong ref[mxf @ 0x7f808f008800] source track 2: stream 0, no descriptor found[mxf @ 0x7f808f008800] could not resolve sub descriptor strong ref    Last message repeated 4 times[mxf @ 0x7f808f008800] Could not find codec parameters for stream 0 (Video: none, none): unknown codecConsider increasing the value for the 'analyzeduration' and 'probesize' optionsGuessed Channel Layout for Input Stream #0.1 : monoGuessed Channel Layout for Input Stream #0.2 : monoGuessed Channel Layout for Input Stream #0.3 : monoGuessed Channel Layout for Input Stream #0.4 : monoInput #0, mxf, from '/Users/Aker84150/Downloads/Raw.mxf':  Metadata:    operational_pattern_ul: 060e2b34.04010101.0d010201.01010900    product_uid     : cede1604-8280-11de-8a39-08004678031c    uid             : e8f36160-95ef-11e9-83ab-08004632275a    generation_uid  : e8f3616a-95ef-11e9-b502-08004632275a    company_name    : Sony    product_name    : AXS     product_version : 2.0    application_platform: Sony SC Platform    modification_date: 2019-06-23T19:48:44.000000Z    material_package_umid: 0x060A2B340101010501010D43130000009CDA54D3578605DC080046020132275A    timecode        : 20:50:05:08  Duration: 00:00:20.20, start: 0.000000, bitrate: 990426 kb/s    Stream #0:0: Video: none, none, 25 tbr, 25 tbn, 25 tbc    Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A    Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A    Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A    Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A    Stream #0:5: Data: none    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A      data_type       : vbi_vanc_smpte_436MStream mapping:  Stream #0:1 -> #0:0 (pcm_s24le (native) -> aac (native))Press [q] to stop, [?] for helpOutput #0, mp4, to '/Users/Aker84150/Downloads/Raw-test.mp4':  Metadata:    operational_pattern_ul: 060e2b34.04010101.0d010201.01010900    product_uid     : cede1604-8280-11de-8a39-08004678031c    uid             : e8f36160-95ef-11e9-83ab-08004632275a    generation_uid  : e8f3616a-95ef-11e9-b502-08004632275a    company_name    : Sony    product_name    : AXS     product_version : 2.0    application_platform: Sony SC Platform    modification_date: 2019-06-23T19:48:44.000000Z    material_package_umid: 0x060A2B340101010501010D43130000009CDA54D3578605DC080046020132275A    timecode        : 20:50:05:08    encoder         : Lavf58.45.100    Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp (24 bit), 69 kb/s    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A      encoder         : Lavc58.91.100 aacsize=     176kB time=00:00:20.20 bitrate=  71.3kbits/s speed=66.6x    video:0kB audio:171kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.619946%[aac @ 0x7f808f89a800] Qavg: 121.639


    


    Thanks