Recherche avancée

Médias (9)

Mot : - Tags -/soundtrack

Autres articles (77)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (11034)

  • HTTP Header for Duration of a MP4 for HTML 5 video

    9 mars 2014, par Mustafa

    I am trying to stream MP4 video as it is encoded from a webserver. I believe I used the appropriate flags, but it is not working correctly. When I download the video from my stream and open it with VLC, it properly shows the duration. Since a socket is not seekable, I assume it writes the metadata to end ? My Chrome browser always shows 8 seconds duration. The first 8 seconds plays at the normal speed, but afterwards the pause button turns into play button and the video plays very fast, probably as fast as it is recieved. However the audio is played at normal speed. I tried document.getElementById('myVid').duration = 20000 but it is a readonly field.

    I wonder, is there anyway to explicitly state the duration in HTTP headers or in any other way ? I cannot find any documentation about it.

    ffmpeg -i - -vcodec libx264 -acodec libvo_aacenc -ar 44100 -ac 2 -ab 128000 -f mp4 -movflags frag_keyframe+faststart pipe:1 -fflags +genpts -re -profile baseline -level 30 -preset fast

    To close-voters, that thinks it is not programming related, I use it in my own server I coded, and I need to set the duration programatically via JavaScript or setting the HTTP header. I believe it may be related to both ffmpeg or http headers, that's why I posted it here.

    app.get("/video/*", function(req,res){
       res.writeHead(200, {
           'Content-Type': 'video/mp4',
       });
       var dir = req.url.split("/").splice(2).join("/");
       var buf = new Buffer(dir, 'base64');
       var src = buf.toString();

       var Transcoder = require('stream-transcoder');
       var stream = fs.createReadStream(src);
       // I added my own flags to this module, they are at below:
       new Transcoder(stream)
           .videoCodec('libx264')
           .audioCodec("libvo_aacenc")
           .sampleRate(44100)
           .channels(2)
           .audioBitrate(128 * 1000)
           .format('mp4')
           .on('finish', function() {
               console.log("finished");
           })
           .stream().pipe(res);
    });

    exec function in that stream-transcoder module,

       a.push("-fflags");
       a.push("+genpts");
       a.push("-re");
       a.push("-profile");
       a.push("baseline");
       a.push("-level");
       a.push("30");
       a.push("-preset");
       a.push("fast");
       a.push("-strict");
       a.push("experimental");
       a.push("-frag_duration");
       a.push("" + 2 * (1000 * 1000));
       var child = spawn('ffmpeg', a, {
           cwd: os.tmpdir()
       });
  • ffmpeg and python usage

    23 février 2014, par user2063350

    I have an ffmpeg setup on my pc, which streams mp3 with this code :

    ffmpeg -f dshow -i audio="Input device" -c:a libmp3lame -f mpegts udp://192.168.1.2:7777

    Also i have a server and I want my python script to run 24/7 on server and start/stop writing stream to mp3 file every time pc get's turned on/off. I need new file every time pc turns on (use time and date for filename for example) to bypass overwriting. Using python's subprocess module and ffmpeg I can save file on my server like this :

    subprocess.call('ffmpeg -y -i udp://192.168.1.2:7777 -acodec copy output.mp3')

    But I need condition, when to start recording(listen if 7777 port is reciving data or something like that), is it even possible to implement such thing, using python ?
    P.S. Sorry for my bad English.

  • stream vlc playlist trhough ffmpeg to rtmp live streaming [on hold]

    24 février 2014, par TamilArivu

    i am just tried to stream my playlist mp4 file to my live stream. i am using play my playlist via vlc and also stream via vlc. i am using the following code

    vlc --playlist-autostart --loop  --playlist-tree http://xxxxx.com/test --sout '#transcode{vcodec=h264,vb=300,fps=25,scale=1,acodec=mp4a,ab=64,channels=2}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://xxxxx.com/xxx/xxx1}'

    the above code play the playlist file but the streaming is not work . when i am run this code in my ubuntu command prompt it's return the following error

    VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
    [0x678d58] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
    [0x678d58] main interface error: no suitable interface module
    [0x678d58] main interface error: no suitable interface module
    [0x648108] main libvlc error: interface "globalhotkeys,none" initialization failed
    [0x648108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    [0x678d58] qt4 interface error: Could not connect to X server
    [0x678d58] skins2 interface error: cannot initialize OSFactory
    [0x678d58] [cli] lua interface: Listening on host "*console".
    VLC media player 2.0.8 Twoflower
    Command Line Interface initialized. Type `help' for help.
    > Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
    Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
    Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
    Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
    x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
    x264 [info]: profile High, level 3.1
    x264 [info]: final ratefactor: 35.88
    x264 [info]: using SAR=109/160
    x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
    x264 [info]: profile High, level 3.1
    [flv @ 0x7f6d09133500] Codec for stream 0 does not use global headers but container format requires global headers
    [flv @ 0x7f6d09133500] Codec for stream 1 does not use global headers but container format requires global headers
    [flv @ 0x7f6d09133500] Packets are not in the proper order with respect to DTS
    [0x7f6d08003808] avformat mux error: could not write frame (pts: 240002, dts: 40001) (pkt pts: 240, dts: 40)

    how can i solve this problem