Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (42)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

Sur d’autres sites (5448)

  • Creating an infinite MP4 with FFMPEG (not looping)

    28 décembre 2017, par ESala

    I know that mp4 streaming is a no-no, this project is just for playing with video :)

    I have an infinite h264 stream provided by a Raspberry Pi camera, and I want to wrap it in an infinite mp4 so I can watch it in a browser.

    (source) raspivid -t 0 -w 1640 -h 1232 -fps 20 -b 500000 -vf -hf -o -

    (ffmpeg) ffmpeg -r 20 -i - -vcodec copy -movflags "frag_keyframe+empty_moov" -f mp4 pipe:1

    What I do is that I pipe (source) into (ffmpeg) and then (ffmpeg) to my program which buffers, uploads to a server, authenticates, etc.

    This works fine, and I am able to watch the stream from a browser.

    PROBLEM : the problem is that (ffmpeg) stops outputting data after 6 minutes.

    When the video reaches 6:00, the (ffmpeg) command just stops writing data to itsstdout.

    I tried changing the framerate, bitrate, resolution, etc but nothing makes a difference, it always stops at 6:00.

    I checked the (source) command and it is still writing to its own stdout.

    QUESTION : Is there something that I am missing ? why does it stop writing to stdout after just 6 minutes ? is the command missing some flag to allow an infinite mp4 ?

    EDIT : added the output of -report below.

    ffmpeg started on 2017-12-26 at 19:59:13
    Report written to "ffmpeg-20171226-195913.log"
    Command line:
    ffmpeg -report -r 20 -i - -vcodec copy -movflags frag_keyframe+empty_moov -f mp4 pipe:1
    ffmpeg version git-2017-12-10-eaff5fc Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516
     configuration: --arch=armel --target-os=linux --enable-gpl --enable-nonfree
     libavutil      56.  5.100 / 56.  5.100
     libavcodec     58.  6.103 / 58.  6.103
     libavformat    58.  3.100 / 58.  3.100
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7.  7.100 /  7.  7.100
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Splitting the commandline.
    Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
    Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '20'.
    Reading option '-i' ... matched as input url with argument '-'.
    Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'.
    Reading option '-movflags' ... matched as AVOption 'movflags' with argument 'frag_keyframe+empty_moov'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'mp4'.
    Reading option 'pipe:1' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option report (generate a report) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url -.
    Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 20.
    Successfully parsed a group of options.
    Opening an input file: -.
    [NULL @ 0x2e7d450] Opening 'pipe:' for reading
    [pipe @ 0x2e7db70] Setting default whitelist 'crypto'
    [h264 @ 0x2e7d450] Format h264 probed with size=2048 and score=51
    [h264 @ 0x2e7d450] Before avformat_find_stream_info() pos: 0 bytes read:4096 seeks:0 nb_streams:1
    [AVBSFContext @ 0x2e8f3e0] nal_unit_type: 7, nal_ref_idc: 1
    [AVBSFContext @ 0x2e8f3e0] nal_unit_type: 8, nal_ref_idc: 1
    [AVBSFContext @ 0x2e8f3e0] nal_unit_type: 5, nal_ref_idc: 1
    [h264 @ 0x2e7fa60] nal_unit_type: 7, nal_ref_idc: 1
    [h264 @ 0x2e7fa60] nal_unit_type: 8, nal_ref_idc: 1
    [h264 @ 0x2e7fa60] nal_unit_type: 5, nal_ref_idc: 1
    [h264 @ 0x2e7fa60] Format yuv420p chosen by get_format().
    [h264 @ 0x2e7fa60] Reinit context to 1648x1232, pix_fmt: yuv420p
    [h264 @ 0x2e7fa60] nal_unit_type: 1, nal_ref_idc: 1
    [h264 @ 0x2e7fa60] nal_unit_type: 1, nal_ref_idc: 1
    [h264 @ 0x2e7fa60] nal_unit_type: 1, nal_ref_idc: 1
    [h264 @ 0x2e7fa60] nal_unit_type: 1, nal_ref_idc: 1
    [h264 @ 0x2e7fa60] nal_unit_type: 1, nal_ref_idc: 1
    [h264 @ 0x2e7fa60] nal_unit_type: 1, nal_ref_idc: 1
    [h264 @ 0x2e7d450] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
    [h264 @ 0x2e7d450] After avformat_find_stream_info() pos: 395264 bytes read:397312 seeks:0 frames:127
    Input #0, h264, from 'pipe:':
     Duration: N/A, bitrate: N/A
       Stream #0:0, 127, 1/1200000: Video: h264 (High), yuv420p(progressive), 1640x1232, 25 fps, 25 tbr, 1200k tbn, 50 tbc
    Successfully opened the file.
    Parsing a group of options: output url pipe:1.
    Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy.
    Applying option f (force format) with argument mp4.
    Successfully parsed a group of options.
    Opening an output file: pipe:1.
    [pipe @ 0x2e8ef70] Setting default whitelist 'crypto'
    Successfully opened the file.
    [mp4 @ 0x2e80680] Empty MOOV enabled; disabling automatic bitstream filtering
    Output #0, mp4, to 'pipe:1':
     Metadata:
       encoder         : Lavf58.3.100
       Stream #0:0, 0, 1/10240: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1640x1232, q=2-31, 25 fps, 25 tbr, 10240 tbn, 20 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [mp4 @ 0x2e80680] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
    frame=  140 fps=0.0 q=-1.0 size=     352kB time=00:00:06.95 bitrate= 415.4kbits/s speed=11.8x    
    frame=  152 fps=128 q=-1.0 size=     352kB time=00:00:07.55 bitrate= 382.4kbits/s speed=6.35x    
    frame=  164 fps= 94 q=-1.0 size=     352kB time=00:00:08.15 bitrate= 354.3kbits/s speed=4.69x    
    frame=  174 fps= 78 q=-1.0 size=     352kB time=00:00:08.65 bitrate= 333.8kbits/s speed=3.86x    
    .....
    frame= 7342 fps= 20 q=-1.0 size=   22381kB time=00:06:07.05 bitrate= 499.5kbits/s speed=1.02x    
    frame= 7354 fps= 20 q=-1.0 size=   22381kB time=00:06:07.65 bitrate= 498.7kbits/s speed=1.02x    
    frame= 7366 fps= 20 q=-1.0 size=   22381kB time=00:06:08.25 bitrate= 497.9kbits/s speed=1.02x

    As you can see, it stoped working at 6:08 on this run. Then it sat idle for a couple minutes and I had to kill the process.

  • ffmpeg trying to remove the first few seconds of video

    4 janvier 2018, par zeroasterisk

    I’m trying to remove a few seconds off the front of a video stream (audio already excluded), and I’m getting strange results : I would think that for every second I increase -ss by, the resulting file would be a second shorter... that doesn’t seem to be the case.

    original     ==> 01:04:52.84
    -ss 19       ==> 01:04:42.84 (diff = 10) [command history shown below]
    -ss 20       ==> 01:04:32.84 (diff = 20) [command history shown below]
    -ss 21       ==> 01:04:32.84 (diff = 20)
    -ss 25       ==> 01:04:32.84 (diff = 20)
    -ss 0:0:25.0 ==> 01:04:32.84 (diff = 20)
    -ss 0:0:25.5 ==> 01:04:32.84 (diff = 20) [command history shown below]

    Command : ffmpeg -ss # -i temp.mp4 -y -vcodec copy  temp_croppedFromStart.mp4

    Here’s the command history for 19 & 20

    # ffmpeg -ss 19 -i temp.mp4 -y -vcodec copy  temp_croppedFromStart.mp4; ffmpeg -i temp.mp4 2>&1 | grep Duration; ffmpeg -i temp_croppedFromStart.mp4 2>&1 | grep Duration
    ffmpeg version N-31809-g9acffed, Copyright (c) 2000-2011 the FFmpeg developers
     built on Aug 10 2011 21:25:11 with gcc 4.4.5
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
     libavutil    51. 11. 1 / 51. 11. 1
     libavcodec   53. 10. 0 / 53. 10. 0
     libavformat  53.  6. 0 / 53.  6. 0
     libavdevice  53.  2. 0 / 53.  2. 0
     libavfilter   2. 28. 1 /  2. 28. 1
     libswscale    2.  0. 0 /  2.  0. 0
     libpostproc  51.  2. 0 / 51.  2. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'temp.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.6.0
     Duration: 01:04:52.84, start: 0.000000, bitrate: 553 kb/s
       Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 960x640, 552 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
    Output #0, mp4, to 'temp_croppedFromStart.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.6.0
       Stream #0.0(und): Video: libx264, yuv420p, 960x640, q=2-31, 552 kb/s, 25 tbn, 25 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
    Stream mapping:
     Stream #0.0 -> #0.0
    Press [q] to stop, [?] for help
    frame=97071 fps=42523 q=-1.0 Lsize=  262684kB time=01:04:33.84 bitrate= 555.5kbits/s
    video:261923kB audio:0kB global headers:0kB muxing overhead 0.290418%
     Duration: 01:04:52.84, start: 0.000000, bitrate: 553 kb/s
     Duration: 01:04:42.84, start: 0.000000, bitrate: 554 kb/s


    # ffmpeg -ss 20 -i temp.mp4 -y -vcodec copy  temp_croppedFromStart.mp4; ffmpeg -i temp.mp4 2>&1 | grep Duration; ffmpeg -i temp_croppedFromStart.mp4 2>&1 | grep Duration
    ffmpeg version N-31809-g9acffed, Copyright (c) 2000-2011 the FFmpeg developers
     built on Aug 10 2011 21:25:11 with gcc 4.4.5
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
     libavutil    51. 11. 1 / 51. 11. 1
     libavcodec   53. 10. 0 / 53. 10. 0
     libavformat  53.  6. 0 / 53.  6. 0
     libavdevice  53.  2. 0 / 53.  2. 0
     libavfilter   2. 28. 1 /  2. 28. 1
     libswscale    2.  0. 0 /  2.  0. 0
     libpostproc  51.  2. 0 / 51.  2. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'temp.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.6.0
     Duration: 01:04:52.84, start: 0.000000, bitrate: 553 kb/s
       Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 960x640, 552 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
    Output #0, mp4, to 'temp_croppedFromStart.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.6.0
       Stream #0.0(und): Video: libx264, yuv420p, 960x640, q=2-31, 552 kb/s, 25 tbn, 25 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
    Stream mapping:
     Stream #0.0 -> #0.0
    Press [q] to stop, [?] for help
    frame=96821 fps=47168 q=-1.0 Lsize=  262003kB time=01:04:32.84 bitrate= 554.2kbits/s
    video:261244kB audio:0kB global headers:0kB muxing overhead 0.290410%
     Duration: 01:04:52.84, start: 0.000000, bitrate: 553 kb/s
     Duration: 01:04:32.84, start: 0.000000, bitrate: 554 kb/s

    # ffmpeg -ss 0:0:25.5 -i temp.mp4 -y -vcodec copy  temp_croppedFromStart.mp4; ffmpeg -i temp.mp4 2>&1 | grep Duration; ffmpeg -i temp_croppedFromStart.mp4 2>&1 | grep Duration
    ffmpeg version N-31809-g9acffed, Copyright (c) 2000-2011 the FFmpeg developers
     built on Aug 10 2011 21:25:11 with gcc 4.4.5
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
     libavutil    51. 11. 1 / 51. 11. 1
     libavcodec   53. 10. 0 / 53. 10. 0
     libavformat  53.  6. 0 / 53.  6. 0
     libavdevice  53.  2. 0 / 53.  2. 0
     libavfilter   2. 28. 1 /  2. 28. 1
     libswscale    2.  0. 0 /  2.  0. 0
     libpostproc  51.  2. 0 / 51.  2. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'temp.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.6.0
     Duration: 01:04:52.84, start: 0.000000, bitrate: 553 kb/s
       Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 960x640, 552 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
    Output #0, mp4, to 'temp_croppedFromStart.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.6.0
       Stream #0.0(und): Video: libx264, yuv420p, 960x640, q=2-31, 552 kb/s, 25 tbn, 25 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
    Stream mapping:
     Stream #0.0 -> #0.0
    Press [q] to stop, [?] for help
    frame=96821 fps=45920 q=-1.0 Lsize=  262003kB time=01:04:27.32 bitrate= 555.0kbits/s
    video:261244kB audio:0kB global headers:0kB muxing overhead 0.290424%
     Duration: 01:04:52.84, start: 0.000000, bitrate: 553 kb/s
     Duration: 01:04:32.84, start: 0.000000, bitrate: 554 kb/s
  • ffmpeg generate thumbnails on GPU

    22 juin 2018, par Oleksandr Kyrpa

    I try to generate thumbnails with acceleration on GPU, so compile ffmpeg 3.4.1 and run command :

    ./ffmpeg  -i ~/Videos/1080.mp4 -vf "hwupload_cuda,thumbnail_cuda=100,scale_cuda=107:60,hwdownload,format=yuv420p" -vframes 1 -y ~/Videos/thumbs/thumb%03d.jpg

    But I get wrong output picture (the color of thumbnail is green) :

    enter image description here

    Correct image must be black.
    How to make first image with correct color ?

    enter image description here

    log : -loglevel verbose

    ffmpeg version N-89707-g89b84cb Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
     configuration: --cpu=native --enable-pthreads --extra-version=hd --enable-gnutls --enable-vaapi --enable-vdpau --enable-nonfree --enable-gpl --enable-swscale --enable-libx264 --enable-version3 --enable-nvenc --enable-libnpp --enable-cuda --enable-cuvid --enable-cuda-sdk --enable-filter=scale_cuda --enable-filter=thumbnail_cuda --extra-cflags=-I/usr/local/cuda-8.0/include --extra-ldflags=-L/usr/local/cuda-8.0/lib64
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  3.100 / 58.  3.100
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7. 11.100 /  7. 11.100
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    [h264 @ 0x392ed40] Reinit context to 1920x1088, pix_fmt: yuv420p
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/alex/Videos/1080.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2012-05-30T20:01:34.000000Z
     Duration: 00:01:14.21, start: 0.000000, bitrate: 5476 kb/s
       Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088), 5321 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 152 kb/s (default)
       Metadata:
         creation_time   : 2012-05-30T20:01:34.000000Z
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
    Press [q] to stop, [?] for help
    [h264 @ 0x3a38280] Reinit context to 1920x1088, pix_fmt: yuv420p
    [Parsed_thumbnail_cuda_1 @ 0x4e3d8c0] batch size: 100 frames
    [graph 0 input from stream 0:0 @ 0x4e8b640] w:1920 h:1080 pixfmt:yuv420p tb:1/60000 fr:30000/1001 sar:0/1 sws_param:flags=2
    [auto_scaler_0 @ 0x4e8ca00] w:iw h:ih flags:'bicubic' interl:0
    [format @ 0x4e8b540] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_format_4' and the filter 'format'
    [Parsed_scale_cuda_2 @ 0x4e89380] w:1920 h:1080 -> w:107 h:60
    [swscaler @ 0x4ebf0c0] deprecated pixel format used, make sure you did set range correctly
    [auto_scaler_0 @ 0x4e8ca00] w:107 h:60 fmt:yuv420p sar:0/1 -> w:107 h:60 fmt:yuvj420p sar:0/1 flags:0x4
    Output #0, image2, to '/home/alex/Videos/thumbs/thumb%03d.jpg':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       encoder         : Lavf58.3.100
       Stream #0:0(und): Video: mjpeg, 1 reference frame, yuvj420p(pc, left), 107x60, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
         encoder         : Lavc58.9.100 mjpeg
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    [Parsed_thumbnail_cuda_1 @ 0x4e3d8c0] frame id #76 (pts_time=2.535867) selected from a set of 100 images
    No more output streams to write to, finishing.
    frame=    1 fps=0.9 q=3.1 Lsize=N/A time=00:00:02.56 bitrate=N/A speed=2.26x    
    video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Input file #0 (/home/alex/Videos/1080.mp4):
     Input stream #0:0 (video): 115 packets read (134655 bytes); 101 frames decoded;
     Input stream #0:1 (audio): 1 packets read (9 bytes);
     Total: 116 packets (134664 bytes) demuxed
    Output file #0 (/home/alex/Videos/thumbs/thumb%03d.jpg):
     Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (1864 bytes);
     Total: 1 packets (1864 bytes) muxed

    UPDATE, working !
    Add format=nv12 before hwupload

    -vf "format=nv12,hwupload_cuda,thumbnail_cuda,scale_cuda=1280:72‌​0,hwdownload,format=‌​nv12"