Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (62)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

  • 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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (5002)

  • 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;

  • 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 :

    &#xA;

    # $1 - youtube URL&#xA;# $2 - start position in hh:mm:ss.msms format (ms=miliseconds)&#xA;# $3 - final position in hh:mm:ss.msms format (ms=miliseconds)&#xA;# $4 - output file name (optional)&#xA;function youtubedl_snippet()(&#xA;  local url_stream=$(youtube-dl -f best --get-url $1)&#xA;  local output_name=$(youtube-dl --get-title $1)&#xA;&#xA;  ffmpeg -ss $2 -to $3 -i $url_stream -c:v copy -c:a copy ${4:-"$output_name.mp4"}&#xA;)&#xA;

    &#xA;

    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 :

    &#xA;

    # $1 - youtube URL&#xA;# $2 - start position in hh:mm:ss.msms format (ms=miliseconds)&#xA;# $3 - final position in hh:mm:ss.msms format (ms=miliseconds)&#xA;# $4 - output file name (optional)&#xA;# $5 - output video codec type (optional, for instance: libx264)&#xA;# $6 - output audio codec type (optional, for instance: aac)&#xA;function youtubedl_snippet2()(&#xA;  local url_streams=$(youtube-dl --get-url $1)&#xA;  local output_name=$(youtube-dl --get-title $1)&#xA;&#xA;  local url_array=(${(f)url_streams}) # expand urls by lines url_array[1] -> video stream url_array[2] -> audio stream&#xA;&#xA;  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"}&#xA;)&#xA;

    &#xA;

    What I suppose that is going on here :

    &#xA;

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

    3. I am setting both audio and video to the same intervals.
    4. &#xA;

    5. I mapped the first stream to video, and the second to audio
    6. &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

    enter image description here

    &#xA;

    On the other hand,

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

  • Decoding RIMM streaming file format

    10 septembre 2011, par Thomas

    I want to decode the video (visual) frames within a Blackberry RIMM file. So far I have a parser, and some corresponding container documentation from RIM. 

    The video codec is H264 and is explicitly set on the device using one of the video.encodings properties. However, FFMPEG is not able to decode the frames and this is driving me nuts.

    Edit 1 : The issues seems to be lack of SPS and PPS in the frames, and artificially inserting them have proven unsuccessful so far (all grey image). Blackberry 9700 sends

    0x00 0x00 0x ?? 0x ?? 0xType

    where Type is according to table 7-1 in the H264 spec (I and P frames). We believe the 0x ?? 0x ?? represent the size of the frame, however the size does not always correspond to the size found by the parser (the parser seems to be working correctly).

    I have a windows decoder codec from blackberry, called mc_demux_mp2_ds.ax, and can play some MPEG-4 files captured the same way, but it is a binary for windows. And the H264 files will not play either way. I am aware of previous attempts. The capture url for javax.microedition.media.Manager is

    encoding=video-3gpp_width=176_height=144_video_codec=H264_audio_codec=AAC

    and I am writing to an output stream. Some example files here.

    Edit 2 :Turns out that about 3-4 of the 12-15 available video capture modes are flat out failing and refusing to output data, even in the simplest of test applications. So any working solution should implement MPEG-4, H264 and H263 in both AMR and AAC, in so getting fallback alternatives when one sound codec and/or resolution fails. Reboots, hangs and what not litters the Blackberry video implementation and vary from firmware to firmware ; total suckage.