Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (41)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP 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 (...)

Sur d’autres sites (8057)

  • swscale/aarch64/output : Implement neon assembly for yuv2planeX_10_c_template()

    2 juillet, par Logaprakash Ramajayam
    swscale/aarch64/output : Implement neon assembly for yuv2planeX_10_c_template()
    

    yuv2yuvX_8_2_0_512_accurate_c : 2213.4 ( 1.00x)
    yuv2yuvX_8_2_0_512_accurate_neon : 147.5 (15.01x)
    yuv2yuvX_8_2_0_512_approximate_c : 2203.9 ( 1.00x)
    yuv2yuvX_8_2_0_512_approximate_neon : 154.1 (14.30x)
    yuv2yuvX_8_2_16_512_accurate_c : 2147.2 ( 1.00x)
    yuv2yuvX_8_2_16_512_accurate_neon : 150.8 (14.24x)
    yuv2yuvX_8_2_16_512_approximate_c : 2149.7 ( 1.00x)
    yuv2yuvX_8_2_16_512_approximate_neon : 146.8 (14.64x)
    yuv2yuvX_8_2_32_512_accurate_c : 2078.9 ( 1.00x)
    yuv2yuvX_8_2_32_512_accurate_neon : 139.0 (14.95x)
    yuv2yuvX_8_2_32_512_approximate_c : 2083.7 ( 1.00x)
    yuv2yuvX_8_2_32_512_approximate_neon : 140.5 (14.84x)
    yuv2yuvX_8_2_48_512_accurate_c : 2010.7 ( 1.00x)
    yuv2yuvX_8_2_48_512_accurate_neon : 138.2 (14.55x)
    yuv2yuvX_8_2_48_512_approximate_c : 2012.6 ( 1.00x)
    yuv2yuvX_8_2_48_512_approximate_neon : 141.2 (14.26x)
    yuv2yuvX_10LE_16_0_512_accurate_c : 7874.1 ( 1.00x)
    yuv2yuvX_10LE_16_0_512_accurate_neon : 831.6 ( 9.47x)
    yuv2yuvX_10LE_16_0_512_approximate_c : 7918.1 ( 1.00x)
    yuv2yuvX_10LE_16_0_512_approximate_neon : 836.1 ( 9.47x)
    yuv2yuvX_10LE_16_16_512_accurate_c : 7630.9 ( 1.00x)
    yuv2yuvX_10LE_16_16_512_accurate_neon : 804.5 ( 9.49x)
    yuv2yuvX_10LE_16_16_512_approximate_c : 7724.7 ( 1.00x)
    yuv2yuvX_10LE_16_16_512_approximate_neon : 808.6 ( 9.55x)
    yuv2yuvX_10LE_16_32_512_accurate_c : 7436.4 ( 1.00x)
    yuv2yuvX_10LE_16_32_512_accurate_neon : 780.4 ( 9.53x)
    yuv2yuvX_10LE_16_32_512_approximate_c : 7366.7 ( 1.00x)
    yuv2yuvX_10LE_16_32_512_approximate_neon : 780.5 ( 9.44x)
    yuv2yuvX_10LE_16_48_512_accurate_c : 7099.9 ( 1.00x)
    yuv2yuvX_10LE_16_48_512_accurate_neon : 761.0 ( 9.33x)
    yuv2yuvX_10LE_16_48_512_approximate_c : 7097.6 ( 1.00x)
    yuv2yuvX_10LE_16_48_512_approximate_neon : 754.6 ( 9.41x)

    Benchmarked on :
    Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) CPU
    3417 Mhz, 12 Core(s), 12 Logical Processor(s)

    • [DH] libswscale/aarch64/output.S
    • [DH] libswscale/aarch64/swscale.c
    • [DH] tests/checkasm/sw_scale.c
  • Unrecognized option 'txt_format' in ffmpeg latest version

    26 novembre 2020, par RecklessSergio

    I am trying to convert subtitles from scenarist closed captions(scc) to webvtt(vtt)

    



    But I am getting some special characters, so going through ffmpeg documentation https://trac.ffmpeg.org/wiki/ExtractSubtitles
I got to know about the option -txt_format. But when I am using it, ffmpeg is throwing an error saying

    



    "Unrecognized option 'txt_format'.
Error splitting the argument list : Option not found"

    



    FFMPEG VERSION : 
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 9.1.1 (GCC) 20190716

    



    Below is the trace level log :

    



    

    

    ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.1.1 (GCC) 20190716
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
Reading option '-i' ... matched as input url with argument '223163.scc'.
Reading option 'test.vtt' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument trace.
Successfully parsed a group of options.
Parsing a group of options: input url 223163.scc.
Successfully parsed a group of options.
Opening an input file: 223163.scc.
[NULL @ 0000025d22799500] Opening '223163.scc' for reading
[file @ 0000025d2279a600] Setting default whitelist 'file,crypto'
Probing scc score:100 size:2048
[scc @ 0000025d22799500] Format scc probed with size=2048 and score=100
[scc @ 0000025d22799500] Before avformat_find_stream_info() pos: 38022 bytes read:38022 seeks:0 nb_streams:1
[scc @ 0000025d22799500] All info found
[scc @ 0000025d22799500] stream 0: start_time: -9223372036854776.000 duration: -9223372036854776.000
[scc @ 0000025d22799500] format: start_time: -9223372036854.775 duration: -9223372036854.775 bitrate=0 kb/s
[scc @ 0000025d22799500] After avformat_find_stream_info() pos: 38022 bytes read:38022 seeks:0 frames:0
Input #0, scc, from '223163.scc':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 0, 1/1000: Subtitle: eia_608
Successfully opened the file.
Parsing a group of options: output url test.vtt.
Successfully parsed a group of options.
Opening an output file: test.vtt.
File 'test.vtt' already exists. Overwrite ? [y/N] y
[file @ 0000025d227d1c40] Setting default whitelist 'file,crypto'
Successfully opened the file.
Output #0, webvtt, to 'test.vtt':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0, 0, 1/1000: Subtitle: webvtt
    Metadata:
      encoder         : Lavc58.35.100 webvtt
Stream mapping:
  Stream #0:0 -> #0:0 (eia_608 (cc_dec) -> webvtt (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
No more output streams to write to, finishing.
size=      19kB time=00:18:28.36 bitrate=   0.1kbits/s speed=2.26e+04x
video:0kB audio:0kB subtitle:10kB other streams:0kB global headers:0kB muxing overhead: 88.647011%
Input file #0 (223163.scc):
  Input stream #0:0 (subtitle): 411 packets read (19101 bytes); 349 frames decoded;
  Total: 411 packets (19101 bytes) demuxed
Output file #0 (test.vtt):
  Output stream #0:0 (subtitle): 349 frames encoded; 349 packets muxed (10244 bytes);
  Total: 349 packets (10244 bytes) muxed
349 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0000025d22799c80] Statistics: 0 seeks, 2 writeouts
[AVIOContext @ 0000025d227a2880] Statistics: 38022 bytes read, 0 seeks

    


    


    



  • How to solve issue with ffmpeg being stuck at 'Opening an input file'

    20 mai 2021, par zv989

    I am using a capture card to capture HDMI audio from another machine.

    



    On my host, output of arecord -l is as follow :

    



    **** List of CAPTURE Hardware Devices ****
Home directory not accessible: Permission denied
card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: capture [ezcap U3 capture], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


    



    The command that I use is :

    



    sudo ffmpeg -f alsa -i hw:CARD=capture,DEV=0 -t 30 test.wav -loglevel debug


    



    When I ran the command, the log seems to freeze at 'Opening an input file' as below :

    



    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
Splitting the commandline.

Reading option '-f' ... matched as option 'f' (force format) with argument 'alsa'.

Reading option '-i' ... matched as input url with argument 'hw:CARD=capture,DEV=0'.

Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '30'.

Reading option 'test.wav' ... matched as output url.

Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.

Finished splitting the commandline.

Parsing a group of options: global .

Applying option loglevel (set logging level) with argument debug.

Successfully parsed a group of options.

Parsing a group of options: input url hw:CARD=capture,DEV=0.

Applying option f (force format) with argument alsa.

Successfully parsed a group of options.

Opening an input file: hw:CARD=capture,DEV=0.


    



    It will just stuck there forever, until I press Ctrl+C, then the log continues as follow :

    



    [alsa @ 0x55c9f0eee8c0] interrupted
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:CARD=capture,DEV=0':
  Duration: N/A, bitrate: 1536 kb/s
    Stream #0:0, 0, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Successfully opened the file.
Parsing a group of options: output url test.wav.
Applying option t (record or transcode "duration" seconds of audio/video) with argument 30.
Successfully parsed a group of options.
Opening an output file: test.wav.
File 'test.wav' already exists. Overwrite ? [y/N] y
[file @ 0x55c9f0f03280] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Finishing stream 0:0 without any data written to it.
detected 4 logical cores
[graph_0_in_0_0 @ 0x55c9f0f05dc0] Setting 'time_base' to value '1/48000'
[graph_0_in_0_0 @ 0x55c9f0f05dc0] Setting 'sample_rate' to value '48000'
[graph_0_in_0_0 @ 0x55c9f0f05dc0] Setting 'sample_fmt' to value 's16'
[graph_0_in_0_0 @ 0x55c9f0f05dc0] Setting 'channel_layout' to value '0x3'
[graph_0_in_0_0 @ 0x55c9f0f05dc0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[format_out_0_0 @ 0x55c9f0f060c0] Setting 'sample_fmts' to value 's16'
[AVFilterGraph @ 0x55c9f0f04be0] query_formats: 5 queried, 12 merged, 0 already done, 0 delayed
Output #0, wav, to 'test.wav':
  Metadata:
    ISFT            : Lavf57.83.100
    Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      encoder         : Lavc57.107.100 pcm_s16le
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (hw:CARD=capture,DEV=0):
  Input stream #0:0 (audio): 0 packets read (0 bytes); 0 frames decoded (0 samples);
  Total: 0 packets (0 bytes) demuxed
Output file #0 (test.wav):
  Output stream #0:0 (audio): 0 frames encoded (0 samples); 0 packets muxed (0 bytes);
  Total: 0 packets (0 bytes) muxed
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x55c9f0f033e0] Statistics: 3 seeks, 3 writeouts
Exiting normally, received signal 2.


    



    What is wrong with the command ?