Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (63)

  • 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 (6575)

  • ffmpeg - how to handle video and audio URL's streams separately ?

    13 mai 2022, par Rubem Pacelli

    I am trying to create a zsh function that uses youtube-dl and ffmpeg to download a portion of a YouTube video. I did achieve this goal with the following function :

    


    # $1 - youtube URL
# $2 - start position in hh:mm:ss.msms format (ms=miliseconds)
# $3 - final position in hh:mm:ss.msms format (ms=miliseconds)
# $4 - output file name (optional)
function youtubedl_snippet()(
  local url_stream=$(youtube-dl -f best --get-url $1)
  local output_name=$(youtube-dl --get-title $1)

  ffmpeg -ss $2 -to $3 -i $url_stream -c:v copy -c:a copy ${4:-"$output_name.mp4"}
)


    


    The command youtube-dl -f best --get-url $1 return a single URL with the best possible quality. In order to understand better how ffmpeg works, I tried to create another function with the same goal but with a different approach :

    


    # $1 - youtube URL
# $2 - start position in hh:mm:ss.msms format (ms=miliseconds)
# $3 - final position in hh:mm:ss.msms format (ms=miliseconds)
# $4 - output file name (optional)
# $5 - output video codec type (optional, for instance: libx264)
# $6 - output audio codec type (optional, for instance: aac)
function youtubedl_snippet2()(
  local url_streams=$(youtube-dl --get-url $1)
  local output_name=$(youtube-dl --get-title $1)

  local url_array=(${(f)url_streams}) # expand urls by lines url_array[1] -> video stream url_array[2] -> audio stream

  ffmpeg -ss $2 -to $3 -i ${url_array[1]} -ss $2 -to $3 -i ${url_array[2]} -map 0:v -map 1:a -c:v ${5:-copy} -c:a ${6:-copy} ${4:-"$output_name.mp4"}
)


    


    What I suppose that is going on here :

    


      

    1. url_streams is a line-separated URL. url_array[1] is the video URL and url_array[2] is the audio URL.
    2. 


    3. I am setting both audio and video to the same intervals.
    4. 


    5. I mapped the first stream to video, and the second to audio
    6. 


    7. If $5 and $6 does not give different codecs, ffmpeg just copy from the original source.
    8. 


    


    Well, it seems that everything is ok. But when I try

    


    start=$SECONDS; youtubedl_snippet2 'https://www.youtube.com/watch?v=g-_hVXzkn0o' 00:00:05.00 00:00:15.00; echo "it takes $(( SECONDS - start )) seconds"


    


    It will take 368 seconds. Moreover, I cannot open it in my android (only audio works)

    


    enter image description here

    


    On the other hand,

    


    start=$SECONDS; youtubedl_snippet 'https://www.youtube.com/watch?v=g-_hVXzkn0o' 00:00:05.00 00:00:15.00; echo "it takes $(( SECONDS - start )) seconds"


    


    takes only 40 seconds, and the video can be played on Android.

    


    Here is the youtubedl_snippet log file. And here is the youtubedl_snippet2 log file.

    


  • Extracting subtitles of a mkv file using ffmpeg while downloading

    19 août 2020, par Tim Untersberger

    I am trying to stream a mkv file to a webpage, which is being downloaded using WebTorrent. The video file has ASS/SSA embedded subtitles. I am using electron to display the video, which uses chromium without proprietary codec support, so I have to use the following html :

    


    <video controls="controls">&#xA;  <source src="video.mkv" type="video/webm">&#xA;<video></video>&#xA;</source></video>

    &#xA;

    Since chrome supports webm and they use the same container, I can watch the video with audio. Webm doesn't support embedded subtitles, so the subtitles of the video get ignored.

    &#xA;

    I am extracting the subtitles using the following command :

    &#xA;

    ffmpeg -i video.mkv -map 0:2 sub.vtt&#xA;

    &#xA;

    This works fine, but requires the file to be downloaded completely. Is it possible to extract the subtitles while the file is being downloaded, so that I can begin streaming the video together with the subtitles as soon as possible ?

    &#xA;

  • Alternatives to Facebook 360 Encoder for Spatial + Headlock Encoding ?

    31 juillet 2023, par Robert N

    Unfortunately FB 360 Encoder is no longer being worked on with no alternatives that I can find & right now I cannot get it to work on mac.

    &#xA;

    I am looking to combine two stems as per the tutorial here - 1 spatial audio (16channel) with 1 headlock audio (stereo) for a 180 stereo (side by side) video in the highest quality allowed for a Meta Quest 2 headset.

    &#xA;

    FFMPEG recipes are preferred but paid alternatives are welcome. So far the best I could find for encoding was "use the old software" but even if it worked, I do not trust out of date/dead software for production : Facebook 360 Encoder Error - FFmpeg libavdevice.57.dylib (not a mach-o file)

    &#xA;