Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (87)

Sur d’autres sites (15906)

  • ffmpeg-Error "Buffer queue overflow, dropping." when merging two videos with delay

    20 septembre 2016, par Stefan Urbansky

    I want to merge two videos (as example the iphone video from https://peach.blender.org/trailer-page/). The videos are placed on an background image with the overlay filter and the second video starts 3 seconds later.

    And I need that the audio is mixed.

    Here is my code :

    ffmpeg \
       -loop 1 -i background.png  \
       -itsoffset 0  -i trailer_iphone.m4v \
       -itsoffset 3  -i trailer_iphone.m4v \
       \
       -y \
       -t 36 \
       -filter_complex "
           [2:a] adelay=3000 [2delayed];
           [1:a][2delayed] amerge=inputs=2 [audio];
           [0][1:v] overlay=10:10:enable='between(t,0,33)' [lv1];
           [lv1][2:v] overlay=10:300:enable='between(t,0,36)' [video]
       " \
       \
       -threads 0 \
       -map "[video]" -map "[audio]" \
       -vcodec libx264 -acodec aac \
       merged-video.mp4

    I get the error message :

    [Parsed_overlay_3 @ 0x7fe892502ac0] [framesync @ 0x7fe892502b88] Buffer queue overflow, dropping.

    And the merged video has many dropped frames.

    I know that are some other posting with this error message. But the suggested solutions doesn’t work for me.

    How can I fix the problem ?

  • How to make HLS start from the begining

    15 juillet 2016, par Ariel Argañaraz

    I need some help with HLS streaming, I’m trying to create a playlist for streaming,

    I’m using ffmpeg to generate the files and the .m3u8 files. And for playing i’m using a web page with videojs player

    The idea is to simulate a live streaming using files already created.

    The problem is that in some version of iphone works and in another does not work.
    The problem is that when I start play the video in the Safari browser of my phone it freezes for a while and then download and play the last segment.

    for example if the video is split in 4 differents .ts files.
    It starts playing from the 4th .ts file and then stop.

    The problem is that I have 2 iphone mobile phone, one of them works perfectly but the other one not

    The not working cell phone is a iphone 6 (version 9.2.1)

    Here is my m3u8 file. Note that I’m using the #EXT-X-PLAYLIST-TYPE:EVENT and I remove the #EXT-X-ENDLIST from the botton. So it should be played as an live streaming.

    It works for another phones, it begins from the 0 second when I set the #EXT-X-START:TIME-OFFSET=0

    but in this version (9.2.1) the video freezes and then jumps to the last segment (webinar-3.ts) plays that segment and finally stop.

    #EXTM3U
    #EXT-X-VERSION:4
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-ALLOW-CACHE:NO
    #EXT-X-PLAYLIST-TYPE:EVENT
    #EXT-X-START:TIME-OFFSET=0
    #EXT-X-TARGETDURATION:6
    #EXTINF:5.046444,
    webinar-0.ts
    #EXTINF:5,
    webinar-1.ts
    #EXTINF:5,
    webinar-2.ts
    #EXTINF:5,
    webinar-3.ts

    Have anybody got an idea of what i’m doing wrong or how to get a m3u8 config that works for this iphone version ?

  • poster adjustment after getting it from video

    30 juin 2016, par Jass

    I am capturing poster from this video https://www.youtube.com/watch?v=wg-kEWsL6Xc using following code. Video can be any, I am just giving example.

    shell_exec('ffmpeg -y  -itsoffset -4  -i "'.base_path().'/assets/videos/'.$file_name.'.mp4" -vcodec mjpeg -vframes 1 -an -f rawvideo -filter:v scale=1170:ih*1170/iw "'.base_path().'/assets/videos/thumbnail/'.$file_name.'.jpg"')

    Width = 1170px,

    Height= 300px (as it is background image so it does not matter)

    But I am facing adjustment problem. Following are my current views

    First : Head is cutting, here I am using css property background : url(’completepath’) center no-repeat ;
    enter image description here

    Second : Showing black portion on top of head. This is the original image that I am getting from ffmpeg code.

    enter image description here

    My Question : But I need image like in you tube, you can notice that in all videos we can see top portion of humans without being cutting even black portion is well adjusted.

    Currently I am downloading and testing with youtube videos but in actual job seekers will make their own videos using android/iphone or any camera and will upload on our site.

    so how i can overcome this issue means show image with proper human face and body ?

    thanks in advance.