Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (64)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (9156)

  • dash.js : four channels audio streaming

    19 juillet 2016, par Carlos Chacon

    Does dash.js supports 4 channels in the audio stream ?

    I’m using mp4 container : video : h254 and audio : AAC.

    For the case that the AAC audio stream is 2 channels it works fine, both video and audio play correctly. But 4 channels does NOT work.

    I’m using FFMPEG to create the files and WOWZA to setup the DASH streaming.

    For the case that the AAC audio stream is 4 channels I get the following error :

    Video can't be played because the file is corrupt.

    Command line to generate the 2-channels file :

    ffmpeg -i video_in.mp4 -i audio_in_4ch.wav -c:v copy -c:a aac -ac 2 output_2channels.mp4

    Command line to generate the 4-channels file :

    ffmpeg -i video_in.mp4 -i audio_in_4ch.wav -c:v copy -c:a aac -ac 4 output_4channels.mp4

    This is the fmmpeg -i information printed for each file :

    2 Channels output file details :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output_2channels.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.37.101
     Duration: 00:00:17.59, start: 0.000000, bitrate: 901 kb/s
       Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1024x512 [SAR 1:1 DAR 2:1], 894 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 129 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    4 Channels output file details :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output_4channels.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.37.101
     Duration: 00:00:17.59, start: 0.000000, bitrate: 1038 kb/s
       Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1024x512 [SAR 1:1 DAR 2:1], 894 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 4.0, fltp, 265 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    4 Channels output file mdp file :

    <?xml version="1.0" encoding="UTF-8"?>
    <mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" publishtime="2016-07-19T05:56:28Z" mediapresentationduration="PT17.585S" minbuffertime="PT1.5S">
    <programinformation>
       
    </programinformation>
    <location>http://192.168.0.103:1935/vod/_definst_/mp4:output_4channels.mp4/manifest_w882219731.mpd</location>
    <period start="PT0.0S">
       <baseurl>http://192.168.0.103:1935/vod/_definst_/mp4:output_4channels.mp4/</baseurl>
       <adaptationset mimetype="video/mp4" width="1024" height="512" par="1024:512" framerate="30000/1001" segmentalignment="true" startwithsap="1" subsegmentalignment="true" subsegmentstartswithsap="1">
           <segmenttemplate presentationtimeoffset="0" timescale="90000" media="chunk_ctvideo_rid$RepresentationID$_cs$Time$_w882219731_mpd.m4s" initialization="chunk_ctvideo_rid$RepresentationID$_cinit_w882219731_mpd.m4s">
               <segmenttimeline>
                   <s t="0" d="1582650"></s>
               </segmenttimeline>
           </segmenttemplate>
           <representation codecs="avc1.42c01e" sar="1:1" bandwidth="894760"></representation>
       </adaptationset>
       <adaptationset mimetype="audio/mp4" lang="eng" segmentalignment="true" startwithsap="1" subsegmentalignment="true" subsegmentstartswithsap="1">
           <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>
           <segmenttemplate presentationtimeoffset="0" timescale="48000" media="chunk_ctaudio_rid$RepresentationID$_cs$Time$_w882219731_mpd.m4s" initialization="chunk_ctaudio_rid$RepresentationID$_cinit_w882219731_mpd.m4s">
               <segmenttimeline>
                   <s t="0" d="844080"></s>
               </segmenttimeline>
           </segmenttemplate>
           <representation codecs="mp4a.40.2" audiosamplingrate="48000" bandwidth="265851">
           </representation>
       </adaptationset>
    </period>
    </mpd>

    HTML Player Code :

    <code class="echappe-js">&lt;script src=&quot;http://cdn.dashjs.org/latest/dash.all.min.js&quot;&gt;&lt;/script&gt;

  • Avoiding ffmpeg audio drift for live dash output

    22 mai 2021, par mdale

    Have people experienced playback drift with ffmpeg based dash segment generation ? For example :

    &#xA;

    ffmpeg -threads 2 -re -fflags &#x2B;genpts -stream_loop -1 -i AVSyncTest.mp4 \&#xA;-af "aresample=async=1:min_hard_comp=0.100000:first_pts=0" \&#xA;-c:v:0 libx264 \&#xA;-pix_fmt:0 yuv420p \&#xA;-preset:0 medium \&#xA;-a53cc:0 1 \&#xA;-nal-hrd:0 cbr \&#xA;-x264opts:0 scenecut=-1:rc_lookahead=0 -b:v:0 5000k -bufsize:0 500k \&#xA;-force_key_frames:0 "expr:gte(t,n_forced*2)" \&#xA;-bf:0 8 \&#xA;-r 30 \&#xA;-c:a:0 aac  -ar 48000 \&#xA;-b:a:1 96k  \&#xA;-f tee -map 0:v \&#xA;-map 0:a "[f=dash:media_seg_name=&#x27;chunk-stream_\$RepresentationID\$-\$Number%05d\$.mp4&#x27;:init_seg_name=&#x27;init-stream_\$RepresentationID\$.mp4&#x27;:seg_duration=2:utc_timing_url=https\\\://time.akamai.com\\?iso:remove_at_exit=0:use_timeline=0:http_user_agent=ffmpeg_encoder.0:streaming=1:index_correction=1:timeout=1:dash_segment_type=mp4:method=PUT:http_persistent=1:adaptation_sets=&#x27;id=0,streams=v\:0 id=1,streams=a&#x27; ]http://localhost:5000/out.mpd "&#xA;

    &#xA;

    After a bit of playback it starts audio starts to drift. Analysis of the moof (with tools like mp4box) shows 1024 sample size with 93 Moofs with Moof->traf->default_sample_duration=1024 at 48000 sample rate giving segment duration of 1.984 seconds with every 3rd segment or so with 92 Moofs with duration of 1.962 … While each segment starts aligned ( if you reset playback you get alignment) it drifts against continuous playback.

    &#xA;

    Other examples like Akamai’s public stream. show 94 Moofs or 2.005 duration with every 3rd segment or so at the 1.984 duration. (what one would want)

    &#xA;

    Akamai’s (presumably ffmepg based) stream is averaging out to the 2s target where the above ffmpeg command is not …

    &#xA;

  • ffmpeg DASH - Include the stream's width and height (WxH) in the outputted filenames

    20 juillet 2022, par Jarad

    Given this :

    &#xA;

    ffmpeg -i test.mp4 -c:a aac -c:v libx264 ^&#xA;-map v:0 -s:0 960x540 -b:v:0 800k ^&#xA;-map v:0 -s:1 320x170 -b:v:0 300k ^&#xA;-map 0:a ^&#xA;-f dash dash/master.mpd&#xA;

    &#xA;

    Produces this :

    &#xA;

    chunk-stream0-00001.m4s&#xA;chunk-stream0-00002.m4s&#xA;...&#xA;chunk-stream0-00044.m4s&#xA;chunk-stream0-00045.m4s&#xA;chunk-stream1-00001.m4s&#xA;chunk-stream1-00002.m4s&#xA;...&#xA;chunk-stream1-00044.m4s&#xA;chunk-stream1-00045.m4s&#xA;chunk-stream2-00001.m4s&#xA;chunk-stream2-00002.m4s&#xA;...&#xA;chunk-stream2-00074.m4s&#xA;chunk-stream2-00075.m4s&#xA;init-stream0.m4s&#xA;init-stream1.m4s&#xA;init-stream2.m4s&#xA;master.mpd&#xA;

    &#xA;

    Inspection shows : ffprobe master.mpd

    &#xA;

    Input #0, dash, from &#x27;master.mpd&#x27;:&#xA;  Duration: 00:06:11.00, start: -0.021333, bitrate: 0 kb/s&#xA;  Program 0&#xA;  Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 960x540 [SAR 1:1 DAR 16:9], 152 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;    Metadata:&#xA;      variant_bitrate : 300000&#xA;      id              : 0&#xA;  Stream #0:1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 320x170 [SAR 17:18 DAR 16:9], 21 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;    Metadata:&#xA;      variant_bitrate : 28227&#xA;      id              : 1&#xA;  Stream #0:2(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 110 kb/s (default)&#xA;    Metadata:&#xA;      variant_bitrate : 128000&#xA;      id              : 2&#xA;

    &#xA;

    I want output instead like this :

    &#xA;

    chunk-stream0-960x540-00001.m4s&#xA;chunk-stream0-960x540-00002.m4s&#xA;...&#xA;chunk-stream0-960x540-00044.m4s&#xA;chunk-stream0-960x540-00045.m4s&#xA;chunk-stream1-320x170-00001.m4s&#xA;chunk-stream1-320x170-00002.m4s&#xA;...&#xA;chunk-stream1-320x170-00044.m4s&#xA;chunk-stream1-320x170-00045.m4s&#xA;chunk-stream2-???????-00001.m4s&#xA;chunk-stream2-???????-00002.m4s&#xA;...&#xA;chunk-stream2-???????-00074.m4s&#xA;chunk-stream2-???????-00075.m4s&#xA;init-stream0-960x540.m4s&#xA;init-stream1-320x170.m4s&#xA;init-stream2-???????.m4s&#xA;master.mpd&#xA;

    &#xA;

    where ??????? could be just audio or 48000hz or whatever.

    &#xA;

    The Question

    &#xA;

    Is there a way to include the stream's width and height (its size) in the outputted filenames from the command-line interface ? If no, how could it be accomplished using a shell script for example.

    &#xA;