
Recherche avancée
Autres articles (28)
-
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 -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (3478)
-
ffmpeg opus -b:a 160k is it a fixed bit rate or variable bit rate
25 février 2021, par user2718593the manual says that with opus codec it is by default :


- 

- compression_level 10 (best=10)
- vbr on






so
ffmpeg -i "INPUT.flac" -c:a libopus -b:a 160k "encoded160.opus"


is it a vbr which average 160k in a certain range (+/-30k ??)
or
a fixed bitrate targeting 160k ?


-
Trying to create mp4 proxy from Sony RAW file using FFMPEG
16 avril 2021, par Daniel AkermanI'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


-
FFMPEG output rate constant at 30 fps
14 septembre 2015, par user2610280I need to keep the output fps of my video file to constant 30 fps. This is being used in a video recorder that is getting live input from a 3rd party server.
I tried using following commands :
ffmpeg -f rawvideo -pix_fmt yuv420p -s 200x600 -y -an -i pipe:0 -vcodec libx264 -filter:v 'setpts=N/(30*TB)' -crf 20 -g 30 test.mp4
ffmpeg -f rawvideo -pix_fmt yuv420p -s 200x600 -r 30 -y -an -i pipe:0 -vcodec libx264 -filter:v -r 30 -crf 20 -g 30 test.mp4
But in both the cases I get a video file of a shorter duration when there are less number of frames at the input.
What I mean to say is,
If I give a burst of 10 frames, then no frames for 10 seconds and again a burst of 10 frames no frames for 10 seconds and again a burst of 10 frames and again no frames for 10 seconds, as the input to above command ;
I get output with duration, 1second !I need it to be 30 seconds, since I have given the input of duration 30 seconds.
According the the ffmpeg manual, "-r" duplicates the frames when necessary to achieve 30 fps.
So, shouldn’t it be stretching the 10th frame for 10 seconds, till it gets a new frame.Are the fps parameters in the command used correctly ?