Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (50)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

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

  • How to download .m3u8 in once time

    11 octobre 2024, par Nabi K.A.Z.

    I have a .m3u8 file on remote host, with contain fixed numbers of chunk .ts file name, and not stream :

    



    #EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:9.736,
media_0.ts
#EXTINF:9.96,
media_1.ts
#EXTINF:10.0,
media_2.ts
#EXTINF:10.0,
media_3.ts
#EXTINF:10.0,
media_4.ts
#EXTINF:10.2,
media_5.ts
#EXTINF:10.0,


    



    When I use this command :

    



    # ffmpeg -i "http://example.com/chunklist.m3u8" file.mp4

frame=  582 fps=9.4 q=28.0 size=    1536kB time=00:00:23.21 bitrate= 542.1kbits/s dup=2 drop=4 speed=0.375x


    



    It works. But It get frame by frame video and very long time needed. (It takes time almost to playback the video.)

    



    But since the path of all the .ts files are known. (http://example.com/media_0.ts, http://example.com/media_1.ts, ...) There must be a way to get and merge them all at the same time.

    



    But How in ffmpeg directly ?!

    



    EDIT (try a solution) :

    



    For one solution, I know how can concatenation files with ffmpeg.

    



    ffmpeg -i "concat:0.ts|1.ts|2.ts|3.ts|4.ts|5.ts" -c copy output.mp4


    



    This ffmpeg command was great, and works in less 1 sec time !

    



    So try to download all .ts files with CURL with this command :

    



    curl \
http://example.com/media_0.ts -o 0.ts \
http://example.com/media_1.ts -o 1.ts \
http://example.com/media_2.ts -o 2.ts \
http://example.com/media_3.ts -o 3.ts \
http://example.com/media_4.ts -o 4.ts \
http://example.com/media_5.ts -o 5.ts


    



    But you can see result :

    



      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  687k  100  687k    0     0  75108      0  0:00:09  0:00:09 --:--:-- 74111
100  652k  100  652k    0     0  59404      0  0:00:11  0:00:11 --:--:-- 53400
100  673k  100  673k    0     0  48675      0  0:00:14  0:00:14 --:--:-- 55781
100  657k  100  657k    0     0  63573      0  0:00:10  0:00:10 --:--:-- 62494
100  671k  100  671k    0     0  39019      0  0:00:17  0:00:17 --:--:-- 40863
100  692k  100  692k    0     0  63480      0  0:00:11  0:00:11 --:--:-- 80049


    



    See, total download time was 72 sec, while the total duration of all parts is 59 sec ! that this time is very long !

    



    So sorry, download all parts and then concat that, was not good solution.

    



    EDIT 2

    



    I try for another .m3u8 file on the another server with difference URL :

    



    Download and concat together :

    



    ffmpeg -i "concat:\
http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_0.ts|\
http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_1.ts|\
http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_2.ts|\
http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_3.ts|\
http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_4.ts|\
http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_5.ts\
" -c copy -y output.ts


    



    Another command with input.txt URLs file.

    



    ffmpeg -f "concat" -i "input.txt" -c copy -y output.ts


    



    input.txt file :

    



    file 'http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_0.ts'
file 'http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_1.ts'
file 'http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_2.ts'
file 'http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_3.ts'
file 'http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_4.ts'
file 'http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_5.ts'


    



    Or this command some time if needed :

    



    ffmpeg -f "concat" -safe "0" -protocol_whitelist "file,http,https,tcp,tls" -i "input.txt" -c copy -y output.ts


    



    Finally, for that download speed was good, MAYBE my server target has limited bandwidth. :-(

    


  • FFMPEG past video part repeating

    15 mars 2021, par Tahsin Arafat

    For example :
I have a video.mp4 of 1 minute.
I want output as :
First 3 second will play, 4th second will be skipped and 1st second will be played instead of 4th second. Then, 5th-7th second will play, 8th second will be skipped and 5th second will be played instead of 8th second....This Infinity Loop(until total video duration ends)
And Audio volume Will be 200% boosted.
I want to know the command using ffmpeg. Please Help me doing it.

    


  • ffmpeg /dev/video1 : No space left on device

    4 avril 2017, par chaitanya kiran

    While converting and redirecting USB camera stream to a multicast ip I’m facing below error.

    ffmpeg -f v4l2 -i /dev/video1 -s 720x480 -pix_fmt yuv420p -c:v mpeg2video -aspect 4:3 -r 30 -g 15 -ar 0 -streamid 0:48 -bf 2 -b:v 100k -bufsize 400k -maxrate 3825k -f rtp_mpegts rtp ://239.0.2.2:5001

    ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 5.4.1 (Debian 5.4.1-5) 20170205
    configuration : —enable-gpl —enable-version3 —enable-static —disable-debug —disable-ffplay —disable-indev=sndio —disable-outdev=sndio —cc=gcc-5 —enable-fontconfig —enable-frei0r —enable-gnutls —enable-gray —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-librtmp —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libvidstab —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxvid —enable-libzimg
    libavutil 55. 34.101 / 55. 34.101
    libavcodec 57. 64.101 / 57. 64.101
    libavformat 57. 56.101 / 57. 56.101
    libavdevice 57. 1.100 / 57. 1.100
    libavfilter 6. 65.100 / 6. 65.100
    libswscale 4. 2.100 / 4. 2.100
    libswresample 2. 3.100 / 2. 3.100
    libpostproc 54. 1.100 / 54. 1.100

    [video4linux2,v4l2 @ 0xb982f80] ioctl(VIDIOC_STREAMON) : No space left on device
    /dev/video1 : No space left on device

    Below are top and free -m command outputs

    top

    top - 20:10:13 up 16 min, 4 users, load average : 0.49, 0.37, 0.28
    Tasks : 257 total, 1 running, 256 sleeping, 0 stopped, 0 zombie
    %Cpu(s) : 3.4 us, 0.2 sy, 0.0 ni, 95.9 id, 0.5 wa, 0.0 hi, 0.0 si, 0.0 st
    KiB Mem : 13457292 total, 12299768 free, 650672 used, 506852 buff/cache
    KiB Swap : 3670012 total, 3670012 free, 0 used. 12710776 avail Mem

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    4095 root 20 0 333376 153296 138660 S 25.9 1.1 1:09.41 ffmpeg
    1551 root 20 0 84804 40076 17756 S 0.7 0.3 0:24.00 Xorg.bin
    2574 user 20 0 66900 27436 21268 S 0.7 0.2 0:11.30 gnome-terminal-
    4373 root 20 0 7800 3852 3196 R 0.7 0.0 0:00.03 top
    610 root 20 0 0 0 0 S 0.3 0.0 0:00.03 kworker/4:2
    3762 user 20 0 816928 217120 75100 S 0.3 1.6 0:56.34 firefox
    4240 root 20 0 0 0 0 S 0.3 0.0 0:02.24 kworker/0:2
    1 root 20 0 27464 7508 5044 S 0.0 0.1 0:01.95 systemd
    2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
    3 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
    5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
    7 root 20 0 0 0 0 S 0.0 0.0 0:01.29 rcu_sched

    free -m

             total        used        free      shared  buff/cache   available

    Mem : 13141 621 12025 2 495 12426
    Swap : 3583 0 3583

    cat /proc/meminfo |grep -i vmalloc

    VmallocTotal : 524288 kB
    VmallocUsed : 204736 kB
    VmallocChunk : 316560 kB

    P.S: : There is already an instance of ffmpeg running on the machine on /dev/video0.

    Any help in resolving issue would be greatly appreciated