Recherche avancée

Médias (0)

Mot : - Tags -/tags

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (107)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (6259)

  • Rescalling or dynamic scalling images in Ffmpeg in a video

    23 janvier 2021, par najam ulhassan

    I tried to create a video using multiple images having different scales or sizes or (height*widths) using Mobile-FFmpeg #
    
I am using this code script to get the required result :

    


    val filterStringBuilder1 = StringBuilder()<br />&#xA;filterStringBuilder1.append(listOfImages)<br />&#xA;filterStringBuilder1.append("-filter_complex ")<br />&#xA;filterStringBuilder1.append(<br />&#xA;            "[0:v]scale=100:140:force_original_aspect_ratio=decrease,pad=100:140:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=out:st=4:d=1[v0];" &#x2B;<br />&#xA;            "[1:v]scale=180:120:force_original_aspect_ratio=decrease,pad=180:120:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v1];" &#x2B;<br />&#xA;            "[2:v]scale=120:180:force_original_aspect_ratio=decrease,pad=120:180:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v2];" &#x2B;<br />&#xA;            "[v0][v1][v2]concat=n=3:v=1:a=0,format=yuv420p[v]")<br />&#xA;    filterStringBuilder1.append(" -map")<br />&#xA;    filterStringBuilder1.append(" [v] ")<br />&#xA;    filterStringBuilder1.append("-aspect 16:9 ")<br />&#xA;    filterStringBuilder1.append(finalVideo.absolutePath)<br />&#xA;    FFmpeg.execute(filterStringBuilder1.toString())<br />&#xA;

    &#xA;
    &#xA;But finding following logcat error :

    &#xA;

     E/mobile-ffmpeg: [Parsed_concat_14 @ 0x748fc98bc0] <br />&#xA; E/mobile-ffmpeg: Input link in1:v0 parameters (size 180x120, SAR 1:1) do not match the corresponding <br />output link in0:v0 parameters (100x140, SAR 1:1)<br />&#xA; E/mobile-ffmpeg: [Parsed_concat_14 @ 0x748fc98bc0] <br />&#xA; E/mobile-ffmpeg: Failed to configure output pad on Parsed_concat_14<br />&#xA; E/mobile-ffmpeg: Error reinitializing filters!<br />&#xA; E/mobile-ffmpeg: Failed to inject frame into filter network: Invalid argument<br />&#xA; E/mobile-ffmpeg: Error while processing the decoded data for stream #2:0<br />&#xA;

    &#xA;

  • Create dynamic audio broadcast stream (node, ffmpeg, ..?)

    24 mars 2021, par TheCrunkiee

    I have coded a videoboard. Like a soundboard but with video. You go to one URL that's just a black screen and another one which has a list of different videos (sender). When you click one of these videos it plays on the black screen (receiver). If you play 2 different videos at the same time both videos are shown next to each other on the receiver. That's working fine for several months now. It just creates multiple html video-elements with multiple source-tags (x265 mp4 and vp9 webm).

    &#xA;

    I recently made a discord bot which takes the webm, extracts the opus stream and plays its sound in the voice channel where the bot is connected. This has one disadvantage : It can only play one sound at a time. It happens a lot that there are multiple videos/sounds playing at the same time so this a bit of a bummer.

    &#xA;

    So I thought I should create a audiostream on the server which hosts the videoboard and just connect the bot to that stream. But I have no clue how to do this. All I know is that it's very likely going to involve ffmpeg.

    &#xA;

    What would be the best option here ? What I think I would need is basically an infinite silence stream and the possibility to add a audio file onto that stream at any point which will play simultaneously with other audio files that were added before and have not ended payback yet. How is that possible ? Somehow with m3u8 playlist-files or via rtsp protocol ?

    &#xA;

    Thanks :)

    &#xA;

  • FFMPEG unable to loop overlay input image for dynamic image overlay

    15 septembre 2017, par Mahi

    I am trying to loop an image in images/logo.png(for ex).

    I am using php laravel to create dynamic images and overwriting it into images/logo.png.

    My ffmpeg code

    ffmpeg -y -listen 1 -i rtmp://192.168.33.11:1935/live/mp4test  -loop 1  -f image2 -i image/logo.png -filter_complex "[0:v]scale=1024:-1,setpts=PTS-STARTPTS[stream];[1:v]scale=120:-1,setpts=PTS-STARTPTS[logo] ; [stream][logo]overlay=W-w-10:H-h-10,format=yuv420p[out]" -map "[out]" -map 0:a:0 -hls_time 10 -hls_list_size 6 -start_number 1 stream.m3u8

    This code works fine if I generate dynamic image using

    until test ; do convert -size 200x100 xc:White -gravity Center  -weight 700 -pointsize 12  -annotate 0 "<code>date" /usr/local/nginx/html/stream/test_stream/datex.png ; mv /usr/local/nginx/html/stream/test_stream/datex.png /usr/local/nginx/html/stream/test_stream/image/logo.png ; sleep 1 ; done

    This script just generates a image with current time stamp and moves it into images/ as logo.png . And this works absolutely fine.

    But when I using my laravel application generate a file move it into images/ ffmpeg starts dropping all the frames.

    Please suggest me a solution.