Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • Generate fmp4 chunks for HLS with ffmpeg

    11 mai 2018, par genxstylez

    I am trying to generate fragmented MP4 as the chunks for HLS as introduced by apple last year.

    See link -> https://bitmovin.com/hls-news-wwdc-2016/

    Does ffmpeg supports this?

    Thanks!

  • how to store ffmpeg command output file direct to filesystem aws s3 ?

    11 mai 2018, par Jinal Somaiya
    File::put(storage_path('assets/video/car.txt'), $listing->car->name);
    exec('ffmpeg -i '.config('medialibrary.s3.domain').'/listing_video/intromain.mp4'.' -vf "drawtext=fontfile='.storage_path('assets/video/FutuMd.ttf').': textfile='.storage_path('assets/video/car.txt').': reload=1: x=680: y=500: fontsize=55: fontcolor=white: enable=\'between(t,4,6)\'" '.config('medialibrary.s3.domain').'/listing_video/intromainfinal.mp4 ');
    

    I tried above code but store file of 0 B size.

    Thank you.

  • Batch-converting multimedia-files on Command-Line using find and ffmpeg (Linux)

    11 mai 2018, par free_speech

    For converting more Audio-Files (Let's say, FLAC to MP3) in the same folder on Command-Line, I formerly used

    find ./ -name "*.flac" -exec ffmpeg -i "{}" -b:a 320k "{}".mp3 \;
    

    but the problem is that the resulting MP3-Files are named like Artist - Title.flac.mp3. This doesn't even surprise me, but what do I have to type if I want to avoid the ".flac.mp3"-Filenames? The converted Files should be named like Artist - Title.mp3, not this .flac.mp3 I didn't yet find a way to solve this problem ... Thanks.

  • ffmpeg cross fade 2 pictures in 1080p

    11 mai 2018, par user3574681

    I use this command to fade 2 pictures and it work perfect with 1024 × 768 test pictures.

    ffmpeg -loop 1 -i 1-test.jpg -loop 1 -i 2-test.jpg -filter_complex "[1:v][0:v]blend=all_expr='A*(if(gte(T,3),1,T/3))+B*(1-(if(gte(T,3),1,T/3)))'" -t 4 frames_%04d.png
    

    But with my original pictures in 1920 × 1080 this error shows up:

    [Parsed_blend_0 @ 0x97c8240] First input link top parameters (size 1920x1080, SAR 0:1) do not match the corresponding second input link bottom parameters (1920x1080, SAR 1:1) [Parsed_blend_0 @ 0x97c8240] Failed to configure output pad on Parsed_blend_0

    Why is this happening and how can I fix it? Thank you for helping!

  • Upload video file to amazon S3 after FFMPEG conversions - Laravel

    11 mai 2018, par Siddharth

    I'm trying to upload file to s3 using ffmpeg, and its creating a 0B file, what could be the reason behind this?

    My Code is as follows:

    exec('ffmpeg -i '.config('medialibrary.s3.domain').'/listing_video/intromain.mp4'.' -vf "drawtext=fontfile='.storage_path('assets/video/FutuMd.ttf').': text='.$listing->car->name.': x=680: y=500: fontsize=55: fontcolor=white: enable=\'between(t,4,6)\'" '.Storage::put('intromainfinal.mp4', '').'');