Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (46)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (5601)

  • ffmpeg not setting GOP size for x264

    5 juillet 2012, par Chris Robinson

    Can someone please explain to me why the following settings :

    ffmpeg -i test.avi -vcodec libx264 -g 2 -keyint_min 1 -sc_threshold 100000000 -bf 1 test.mp4

    produces the following output :

    ffmpeg version N-41668-g564bb24 Copyright (c) 2000-2012 the FFmpeg developers
    built on Jun 17 2012 20:18:05 with gcc 4.6.3
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --ena  libavutil      51. 58.100 / 51. 58.100
     libavcodec     54. 25.100 / 54. 25.100
     libavformat    54.  6.101 / 54.  6.101
     libavdevice    54.  0.100 / 54.  0.100
     libavfilter     2. 81.100 /  2. 81.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    Input #0, avi, from 'test.avi':
     Metadata:
       encoder         : Lavf54.6.101
     Duration: 00:00:01.70, start: 0.000000, bitrate: 4258 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 30k tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 128 kb/s
    [buffer @ 0000000004115600] w:1280 h:720 pixfmt:yuv420p tb:1001/30000 fr:30000/1001 sar:1/1 sws_param:flags=2
    [ffmpeg_buffersink @ 00000000041157a0] No opaque field provided
    [libx264 @ 000000000411f120] using SAR=1/1
    [libx264 @ 000000000411f120] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
    [libx264 @ 000000000411f120] profile High, level 3.1
    [libx264 @ 000000000411f120] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=36 lookahead_threads=6 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 keOutput #0, mp4, to 'test.mp4':
     Metadata:
       encoder         : Lavf54.6.101
       Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 30k tbn, 29.97 tbc
       Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 -> libx264)
     Stream #0:1 -> #0:1 (mp3 -> libvo_aacenc)
    Press [q] to stop, [?] for help
    [libvo_aacenc @ 0000000001ebe240] Que input is backward in time
    Last message repeated 8 times
    frame=   35 fps=0.0 q=-1.0 Lsize=     466kB time=00:00:01.10 bitrate=3466.6kbits/s dup=1 drop=0    

    video:436kB audio:28kB global headers:0kB muxing overhead 0.558509%
    [libx264 @ 000000000411f120] frame I:1     Avg QP:24.93  size: 92398
    [libx264 @ 000000000411f120] frame P:28    Avg QP:26.82  size: 12010
    [libx264 @ 000000000411f120] frame B:6     Avg QP:30.37  size:  2764
    [libx264 @ 000000000411f120] consecutive B-frames: 74.3%  5.7%  8.6% 11.4%
    [libx264 @ 000000000411f120] mb I  I16..4: 41.5% 40.1% 18.4%
    [libx264 @ 000000000411f120] mb P  I16..4:  3.9%  1.4%  0.6%  P16..4: 14.3%  4.7%  3.2%  0.0%  0.0%    skip:72.0%
    [libx264 @ 000000000411f120] mb B  I16..4:  1.1%  0.4%  0.1%  B16..8: 14.2%  2.8%  0.6%  direct: 1.1%  skip:79.8%  L0:49.8% L1:39.5% BI:10.8%
    [libx264 @ 000000000411f120] 8x8 transform intra:29.9% inter:76.4%
    [libx264 @ 000000000411f120] coded y,uvDC,uvAC intra: 31.1% 34.4% 18.7% inter: 10.2% 6.3% 3.0%
    [libx264 @ 000000000411f120] i16 v,h,dc,p: 62% 34%  3%  0%
    [libx264 @ 000000000411f120] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 23% 38%  4%  4%  3%  3%  2%  5%
    [libx264 @ 000000000411f120] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 35% 16%  1%  2%  2%  1%  1%  1%
    [libx264 @ 000000000411f120] i8c dc,h,v,p: 52% 20% 24%  3%
    [libx264 @ 000000000411f120] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 000000000411f120] ref P L0: 70.5% 10.1% 12.1%  7.3%
    [libx264 @ 000000000411f120] ref B L0: 81.1% 16.9%  2.0%
    [libx264 @ 000000000411f120] ref B L1: 89.7% 10.3%
    [libx264 @ 000000000411f120] kb/s:3050.18

    Why am I not getting an I-Frame every second frame ? Is there something else I can set to do enforce this ? If not, can you suggest how to do this using the mpeg4 codec. It's vital that I can extract what type of frame has been encoded during the encoding process and that I can set a specific GOP structure.

  • Passing python's file like object to ffmpeg via subprocess

    3 juillet 2012, par tejinderss

    I have a django FileField, which i use to store wav files on the Amazon s3 server. I have set up the celery task to read that file and convert it to mp3 and store it to another FileField. Problem i am facing is that i am unable to pass the input file to ffmpeg as the file is not the physical file on the hard disk drive. To circumvent that, i used stdin to feed the input stream of the file with the django's filefield. Here is the example :

    output_file = NamedTemporaryFile(suffix='.mp3')
    subprocess.call(['ffmpeg', '-y', '-i', '-', output_file.name], stdin=recording_wav)

    where recording_wav file is : , which is actually stored on the amazon s3 server.
    The error for the above subprocess call is :

    AttributeError: 'cStringIO.StringO' object has no attribute 'fileno'

    How can i do this ? Thanks in advance for the help.

    Edit :

    Full traceback :

    [2012-07-03 04:09:50,336: ERROR/MainProcess] Task api.tasks.convert_audio[b7ab4192-2bff-4ea4-9421-b664c8d6ae2e] raised exception: AttributeError("'cStringIO.StringO' object has no attribute 'fileno'",)
    Traceback (most recent call last):
     File "/home/tejinder/envs/tmai/local/lib/python2.7/site-packages/celery/execute/trace.py", line 181, in trace_task
       R = retval = fun(*args, **kwargs)
     File "/home/tejinder/projects/tmai/../tmai/apps/api/tasks.py", line 56, in convert_audio
       subprocess.Popen(['ffmpeg', '-y', '-i', '-', output_file.name], stdin=recording_wav)
     File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
       errread, errwrite) = self._get_handles(stdin, stdout, stderr)
     File "/usr/lib/python2.7/subprocess.py", line 1043, in _get_handles
       p2cread = stdin.fileno()
     File "/home/tejinder/envs/tmai/local/lib/python2.7/site-packages/django/core/files/utils.py", line 12, in <lambda>
       fileno = property(lambda self: self.file.fileno)
     File "/home/tejinder/envs/tmai/local/lib/python2.7/site-packages/django/core/files/utils.py", line 12, in <lambda>
       fileno = property(lambda self: self.file.fileno)
    AttributeError: &#39;cStringIO.StringO&#39; object has no attribute &#39;fileno&#39;
    </lambda></lambda>
  • ffmpeg merge multiple (N) mono audio channels of a MXF video to multiple (M) stereo channels of MP4 video

    14 février 2020, par Laura

    I have an MXF file with 16 audio mono streams and I need to recode it in a mp4 file with 2<=n<=16 channels merging input streams, e.g. input channels 1 and 2 on output channel 1 and 9 and 10 on output channel 2. This job will be done with ffmpeg. I read the documentation and found the amerge and amix filters that would be nice, but they output one channel only. Is there any solution for this problem ?

    Thanks,
    Laura

    Find below the output of ffprobe on mxf file :


    "streams" :[

    "index":0,
    "codec_name" :"mpeg2video",
    "codec_long_name" :"MPEG-2 video",
    "profile" :"4:2:2",
    "codec_type" :"video",
    "codec_time_base" :"1/25",
    "codec_tag_string" :"[0][0][0][0]",
    "codec_tag" :"0x0000",
    "width":1920,
    "height":1080,
    "coded_width":0,
    "coded_height":0,
    "has_b_frames":1,
    "sample_aspect_ratio" :"1:1",
    "display_aspect_ratio" :"16:9",
    "pix_fmt" :"yuv422p",
    "level":2,
    "color_range" :"tv",
    "color_space" :"bt709",
    "color_transfer" :"bt709",
    "color_primaries" :"bt709",
    "chroma_location" :"topleft",
    "field_order" :"tt",
    "refs":1,
    "r_frame_rate" :"25/1",
    "avg_frame_rate" :"25/1",
    "time_base" :"1/25",
    "start_pts":0,
    "start_time" :"0.000000",
    "duration_ts":448,
    "duration" :"17.920000",
    "bit_rate" :"50000000",
    "disposition" :
    "default":0,
    "dub":0,
    "original":0,
    "comment":0,
    "lyrics":0,
    "karaoke":0,
    "forced":0,
    "hearing_impaired":0,
    "visual_impaired":0,
    "clean_effects":0,
    "attached_pic":0,
    "timed_thumbnails":0
    ,
    "tags" :
    "file_package_umid" :"0x060A2B340101010501010D2313000000968F75C6B5B34D649967EEDD0076B989"

    ,

    "index":1,
    "codec_name" :"pcm_s24le",
    "codec_long_name" :"PCM signed 24-bit little-endian",
    "codec_type" :"audio",
    "codec_time_base" :"1/48000",
    "codec_tag_string" :"[0][0][0][0]",
    "codec_tag" :"0x0000",
    "sample_fmt" :"s32",
    "sample_rate" :"48000",
    "channels":1,
    "bits_per_sample":24,
    "r_frame_rate" :"0/0",
    "avg_frame_rate" :"0/0",
    "time_base" :"1/48000",
    "start_pts":0,
    "start_time" :"0.000000",
    "duration_ts":860160,
    "duration" :"17.920000",
    "bit_rate" :"1152000",
    "bits_per_raw_sample" :"24",
    "disposition" :
    "default":0,
    "dub":0,
    "original":0,
    "comment":0,
    "lyrics":0,
    "karaoke":0,
    "forced":0,
    "hearing_impaired":0,
    "visual_impaired":0,
    "clean_effects":0,
    "attached_pic":0,
    "timed_thumbnails":0
    ,
    "tags" :
    "file_package_umid" :"0x060A2B340101010501010D2313000000968F75C6B5B34D649967EEDD0076B989"

    ,

    "index":2,
    "codec_name" :"pcm_s24le",
    "codec_long_name" :"PCM signed 24-bit little-endian",
    "codec_type" :"audio",
    "codec_time_base" :"1/48000",
    "codec_tag_string" :"[0][0][0][0]",
    "codec_tag" :"0x0000",
    "sample_fmt" :"s32",
    "sample_rate" :"48000",
    "channels":1,
    "bits_per_sample":24,
    "r_frame_rate" :"0/0",
    "avg_frame_rate" :"0/0",
    "time_base" :"1/48000",
    "start_pts":0,
    "start_time" :"0.000000",
    "duration_ts":860160,
    "duration" :"17.920000",
    "bit_rate" :"1152000",
    "bits_per_raw_sample" :"24",
    "disposition" :
    "default":0,
    "dub":0,
    "original":0,
    "comment":0,
    "lyrics":0,
    "karaoke":0,
    "forced":0,
    "hearing_impaired":0,
    "visual_impaired":0,
    "clean_effects":0,
    "attached_pic":0,
    "timed_thumbnails":0
    ,
    "tags" :
    "file_package_umid" :"0x060A2B340101010501010D2313000000968F75C6B5B34D649967EEDD0076B989"

    ,

    "index":3,
    "codec_name" :"pcm_s24le",
    "codec_long_name" :"PCM signed 24-bit little-endian",
    "codec_type" :"audio",
    "codec_time_base" :"1/48000",
    "codec_tag_string" :"[0][0][0][0]",
    "codec_tag" :"0x0000",
    "sample_fmt" :"s32",
    "sample_rate" :"48000",
    "channels":1,
    "bits_per_sample":24,
    "r_frame_rate" :"0/0",
    "avg_frame_rate" :"0/0",
    "time_base" :"1/48000",
    "start_pts":0,
    "start_time" :"0.000000",
    "duration_ts":860160,
    "duration" :"17.920000",
    "bit_rate" :"1152000",
    "bits_per_raw_sample" :"24",
    "disposition" :
    "default":0,
    "dub":0,
    "original":0,
    "comment":0,
    "lyrics":0,
    "karaoke":0,
    "forced":0,
    "hearing_impaired":0,
    "visual_impaired":0,
    "clean_effects":0,
    "attached_pic":0,
    "timed_thumbnails":0
    ,
    "tags" :
    "file_package_umid" :"0x060A2B340101010501010D2313000000968F75C6B5B34D649967EEDD0076B989"

    ,

    "index":4,
    "codec_name" :"pcm_s24le",
    "codec_long_name" :"PCM signed 24-bit little-endian",
    "codec_type" :"audio",
    "codec_time_base" :"1/48000",
    "codec_tag_string" :"[0][0][0][0]",
    "codec_tag" :"0x0000",
    "sample_fmt" :"s32",
    "sample_rate" :"48000",
    "channels":1,
    "bits_per_sample":24,
    "r_frame_rate" :"0/0",
    "avg_frame_rate" :"0/0",
    "time_base" :"1/48000",
    "start_pts":0,
    "start_time" :"0.000000",
    "duration_ts":860160,
    "duration" :"17.920000",
    "bit_rate" :"1152000",
    "bits_per_raw_sample" :"24",
    "disposition" :
    "default":0,
    "dub":0,
    "original":0,
    "comment":0,
    "lyrics":0,
    "karaoke":0,
    "forced":0,
    "hearing_impaired":0,
    "visual_impaired":0,
    "clean_effects":0,
    "attached_pic":0,
    "timed_thumbnails":0
    ,
    "tags" :
    "file_package_umid" :"0x060A2B340101010501010D2313000000968F75C6B5B34D649967EEDD0076B989"

    ,

    "index":5,
    "codec_name" :"pcm_s24le",
    "codec_long_name" :"PCM signed 24-bit little-endian",
    "codec_type" :"audio",
    "codec_time_base" :"1/48000",
    "codec_tag_string" :"[0][0][0][0]",
    "codec_tag" :"0x0000",
    "sample_fmt" :"s32",
    "sample_rate" :"48000",
    "channels":1,
    "bits_per_sample":24,
    "r_frame_rate" :"0/0",
    "avg_frame_rate" :"0/0",
    "time_base" :"1/48000",
    "start_pts":0,
    "start_time" :"0.000000",
    "duration_ts":860160,
    "duration" :"17.920000",
    "bit_rate" :"1152000",
    "bits_per_raw_sample" :"24",
    "disposition" :
    "default":0,
    "dub":0,
    "original":0,
    "comment":0,
    "lyrics":0,
    "karaoke":0,
    "forced":0,
    "hearing_impaired":0,
    "visual_impaired":0,
    "clean_effects":0,
    "attached_pic":0,
    "timed_thumbnails":0
    ,
    "tags" :
    "file_package_umid" :"0x060A2B340101010501010D2313000000968F75C6B5B34D649967EEDD0076B989"

    ,

    "index":6,
    "codec_name" :"pcm_s24le",
    "codec_long_name" :"PCM signed 24-bit little-endian",
    "codec_type" :"audio",
    "codec_time_base" :"1/48000",
    "codec_tag_string" :"[0][0][0][0]",
    "codec_tag" :"0x0000",
    "sample_fmt" :"s32",
    "sample_rate" :"48000",
    "channels":1,
    "bits_per_sample":24,
    "r_frame_rate" :"0/0",
    "avg_frame_rate" :"0/0",
    "time_base" :"1/48000",
    "start_pts":0,
    "start_time" :"0.000000",
    "duration_ts":860160,
    "duration" :"17.920000",
    "bit_rate" :"1152000",
    "bits_per_raw_sample" :"24",
    "disposition" :
    "default":0,
    "dub":0,
    "original":0,
    "comment":0,
    "lyrics":0,
    "karaoke":0,
    "forced":0,
    "hearing_impaired":0,
    "visual_impaired":0,
    "clean_effects":0,
    "attached_pic":0,
    "timed_thumbnails":0
    ,
    "tags" :
    "file_package_umid" :"0x060A2B340101010501010D2313000000968F75C6B5B34D649967EEDD0076B989"

    ,

    "index":7,
    "codec_name" :"pcm_s24le",
    "codec_long_name" :"PCM signed 24-bit little-endian",
    "codec_type" :"audio",
    "codec_time_base" :"1/48000",
    "codec_tag_string" :"[0][0][0][0]",
    "codec_tag" :"0x0000",
    "sample_fmt" :"s32",
    "sample_rate" :"48000",
    "channels":1,
    "bits_per_sample":24,
    "r_frame_rate" :"0/0",
    "avg_frame_rate" :"0/0",
    "time_base" :"1/48000",
    "start_pts":0,
    "start_time" :"0.000000",
    "duration_ts":860160,
    "duration" :"17.920000",
    "bit_rate" :"1152000",
    "bits_per_raw_sample" :"24",
    "disposition" :
    "default":0,
    "dub":0,
    "original":0,
    "comment":0,
    "lyrics":0,
    "karaoke":0,
    "forced":0,
    "hearing_impaired":0,
    "visual_impaired":0,
    "clean_effects":0,
    "attached_pic":0,
    "timed_thumbnails":0
    ,
    "tags" :
    "file_package_umid" :"0x060A2B340101010501010D2313000000968F75C6B5B34D649967EEDD0076B989"

    ,

    "index":8,
    "codec_name" :"pcm_s24le",
    "codec_long_name" :"PCM signed 24-bit little-endian",
    "codec_type" :"audio",
    "codec_time_base" :"1/48000",
    "codec_tag_string" :"[0][0][0][0]",
    "codec_tag" :"0x0000",
    "sample_fmt" :"s32",
    "sample_rate" :"48000",
    "channels":1,
    "bits_per_sample":24,
    "r_frame_rate" :"0/0",
    "avg_frame_rate" :"0/0",
    "time_base" :"1/48000",
    "start_pts":0,
    "start_time" :"0.000000",
    "duration_ts":860160,
    "duration" :"17.920000",
    "bit_rate" :"1152000",
    "bits_per_raw_sample" :"24",
    "disposition" :
    "default":0,
    "dub":0,
    "original":0,
    "comment":0,
    "lyrics":0,
    "karaoke":0,
    "forced":0,
    "hearing_impaired":0,
    "visual_impaired":0,
    "clean_effects":0,
    "attached_pic":0,
    "timed_thumbnails":0
    ,
    "tags" :
    "file_package_umid" :"0x060A2B340101010501010D2313000000968F75C6B5B34D649967EEDD0076B989"


    ],
    "format" :
    "filename" :"/media-caches/video-essence/VIDEO/MXF-XDCAM_HD422@50Mbps1080i25_16Ch/941.mxf",
    "nb_streams":9,
    "nb_programs":0,
    "format_name" :"mxf",
    "format_long_name" :"MXF (Material eXchange Format)",
    "start_time" :"0.000000",
    "duration" :"17.920000",
    "size" :"135028296",
    "bit_rate" :"60280489",
    "probe_score":100,
    "tags" :
    "uid" :"0a9ef41a-36b4-4066-a8a3-b95f62299b6c",
    "generation_uid" :"e134647e-fea1-4673-91c1-afa277d13c00",
    "company_name" :"Sony",
    "product_name" :"MPC",
    "product_version" :"v1.0",
    "application_platform" :"Sony MXF Development Kit (Win32)",
    "product_uid" :"060e2b34-0401-0103-0e06-0120027f0200",
    "modification_date" :"2012-09-17T11:56:20.000000Z",
    "material_package_umid" :"0x060A2B340101010501010D231300000081C32F48A63347D4890F55D3ADC25B99",
    "timecode" :"00:35:30:08"