Recherche avancée

Médias (91)

Autres articles (82)

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

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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (5318)

  • Download RTSP recording content between two dates and times, or from start seconds to end seconds

    23 septembre 2022, par holt2

    I need to download from an RTSP link the content recorded on an IP camera from a start and end date and time. It would also be valid to be able to download it from X seconds of start of the recording to seconds of end.

    


    With this ffmpeg command I download the recording content from the RTSP link only from the beginning of the recording content, with the duration in seconds passed by the -t parameter :

    


    ffmpeg -rtsp_transport tcp -i  -r 30 -t <seconds> -y -vf scale=800:-1 -c:v libx264 -crf 20 -preset fast -c:a aac -strict experimental -b:a 192k -ac 2 /path/to/video/filename.mp4&#xA;</seconds>

    &#xA;

    I tried to download with ffmpeg the content using temporary media fragment URIs (https://www.w3.org/2008/WebVideo/Fragments/wiki/UA_Server_RTSP_Communication#.281.29_Temporal_Media_Fragment_URIs) but it doesn't do it correctly :

    &#xA;

    ffmpeg -rtsp_transport tcp -i #t=10,20 -r 30 -y -vf scale=800:-1 -c:v libx264 -crf 20 -preset fast -c:a aac -strict experimental -b:a 192k -ac 2 -ss 19:09:13 -t 5 /path/to/video/filename.mp4&#xA;

    &#xA;

    I have also tried with ffmpeg to use the -ss parameter to try to extract the recording from a specific hour, minute and second (https://trac.ffmpeg.org/wiki/Seeking) but when running it gets stuck, it does not advance :

    &#xA;

    ffmpeg -rtsp_transport tcp -i  -r 30 -y -vf scale=800:-1 -c:v libx264 -crf 20 -preset fast -c:a aac -strict experimental -b:a 192k -ac 2 -ss 19:09:13 -t <seconds> /path/to/video/filename.mp4&#xA;</seconds>

    &#xA;

    In case it's helpful, to get the RTSP link, I'm using the ONVIF protocol with a NodeJS library (https://github.com/agsh/onvif). I have also reviewed the ONVIF documentation available but have not found a way to download recorded content between start and end dates and times.

    &#xA;

    Do you know how to download from an RTSP link the content recorded on an IP camera from a start date and time and end date, or download it from X seconds of recording start to seconds of end ?

    &#xA;

    I am also open to use other tools or commands that can do this.

    &#xA;

  • How to upload a transcoded file to s3 and create a link to download it

    29 septembre 2022, par Dotun Longe

    I want to download a video after my module "creates" it by combining a picture and audio file. The output goes to my tmp folder. This works, but I don't know how to access it.

    &#xA;

    My method is to create another Paperclip attachment called "converted" and the module responsible for transcoding should also be responsible for uploading the converted video to a bucket, where I can then access it via @upload.converted.url.

    &#xA;

    I have no idea how to go about this, and my eyes hurt from searching. If you have a better way for me to be able to download the transcoded video without this option, I will be open to it.

    &#xA;

    # videocreatingproccessor.rb&#xA;&#xA;require &#x27;streamio-ffmpeg&#x27;&#xA;require &#x27;fileutils&#x27;&#xA;&#xA;module VideoCreatingProcessor&#xA;  def self.convert_to_video (path_to_audio_file, path_to_image_file)&#xA;    movie = FFMPEG::Movie.new(path_to_audio_file)&#xA;    options = {&#xA;      video_codec: "libx264",&#xA;      frame_rate: 60,&#xA;      resolution: "960x720",&#xA;      x264_vprofile: "high",&#xA;      x264_preset: "slow",&#xA;      pixel_format: "720p",&#xA;      audio_codec: "libfaac",&#xA;      audio_bitrate: 32,&#xA;      audio_sample_rate: 44100,&#xA;      audio_channels: 2,&#xA;      threads: 2,&#xA;    }&#xA;&#xA;    woptions = { watermark: path_to_image_file, resolution: "960x720", watermark_filter: { padding_x: 10, padding_y: 10 } }&#xA;&#xA;    movie.transcode("tmp/output.mp4",woptions ,options )&#xA;  end&#xA;end&#xA;

    &#xA;

    # uploads_controller.rb&#xA;&#xA;class UploadsController &lt; ApplicationController&#xA;  before_action :set_upload, only: [:show, :edit, :update, :destroy]&#xA;&#xA;  def index&#xA;    @uploads = Upload.all&#xA;  end&#xA;&#xA;  def paudioaddress&#xA;    "https:" &#x2B; @upload.audio.url&#xA;  end&#xA;&#xA;  def pimageaddress&#xA;    "https:" &#x2B; @upload.image.url&#xA;  end&#xA;&#xA;   def show&#xA;    require "video_creating_processor"&#xA;    newvideo = VideoCreatingProcessor.convert_to_video(paudioaddress, pimageaddress)&#xA;   end&#xA;&#xA;   # ....&#xA;end&#xA;

    &#xA;

  • FFMPEG M3U8 Download Is Shortened When Processed

    19 décembre 2022, par Devin Dixon

    I am downloading an m3u8 stream with FFMPEG as such :

    &#xA;

    timeout 60m ffmpeg -i [feed_url] -movflags isml&#x2B;frag_keyframe&#x2B;faststart -bsf:a aac_adtstoasc -vcodec copy -c copy [save_file].mp4&#xA;

    &#xA;

      &#xA;
    • The timeout will automatically end the stream after 60. minutes
    • &#xA;

    • The -movflags isml&#x2B;frag_keyframe&#x2B;faststart makes sure the moov atom is present for partial downloads and if the stream is cut off.
    • &#xA;

    &#xA;

    This works fine when I play it in Quicktime or Safari.The stream is then uploaded to another server and it gets processed with this ffmpeg command :

    &#xA;

    ffmpeg  -i [input_file] -y  -f mp4 -pix_fmt yuv420p -c:v libx264 -c:a aac -filter_complex "scale=&#x27;if(gt(iw,1920),1920,-1)&#x27;:&#x27;if(gt(ih,1080),1080,-1)&#x27;:force_original_aspect_ratio=decrease" -crf 20 -movflags faststart -max_muxing_queue_size 9999 -attempt_recovery 1 -max_recovery_attempts 3 -f mp4 [output_file]&#xA;

    &#xA;

    When the above command is run, sometimes this error occurs :

    &#xA;

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] Packet corrupt (stream = 0, dts = 53801910).=  64x     &#xA;[NULL @ 0xaaaafcd649b0] Invalid NAL unit size (1186 > 532).&#xA;[NULL @ 0xaaaafcd649b0] missing picture in access unit with size 542&#xA;/code/partners/tmp/video_634d29a2e1f6e.mp4: corrupt input packet in stream 0&#xA;[h264 @ 0xaaaafd1211f0] Invalid NAL unit size (1186 > 532).&#xA;[h264 @ 0xaaaafd1211f0] Error splitting the input into NAL units.&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x3802b2: partial file&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x380791: partial file&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x380c38: partial file&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x380f8d: partial file&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x38137a: partial file&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x381750: partial file&#xA;[mp4 @ 0xaaaafcd743d0] Starting second pass: moving the moov atom to the beginning of the file&#xA;frame= 8967 fps=923 q=-1.0 Lsize=    5683kB time=00:09:57.60 bitrate=  77.9kbits/s speed=61.5x    &#xA;video:5580kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.843884%&#xA;

    &#xA;

    When this error occurs, the video is cut short. If the full video is 60 minutes that error occurs at the 10 minute mark, the converted video will only be 10 minutes. What is that error and how can I get ffmpeg to stop cutting the output video short ?

    &#xA;