Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (94)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (14080)

  • flutter-ffmpeg error on mixing audio and picture - Unable to find a suitable output format for 'ffmpeg

    18 juillet 2021, par tylyo

    I'm trying to mix an audio and a picture in order to have a video with the same length of the Audio and as content an image sequence of the source picture.

    


    I tried using the flutter-ffmpeg plugin with the command :

    


    ffmpeg command: ffmpeg -loop 1 -i '/data/user/0/com.attiliopatania.apshare/cache/file_picker/20210402_112326.jpg' -i '/data/user/0/com.attiliopatania.apshare/cache/file_picker/Voice001.m4a' -c:v mpeg4 -tune stillimage -c:a copy -shortest /data/user/0/com.attiliopatania.apshare/app_flutter/out.mp4


    


    some context :

    


    I did the same test with ffmpeg on my pc and it worked as expected. I liked it.

    


    I did some test and I tried to write a file on the same path where the out file should be and It worked as expected : file created

    


    Running the same command through flutter plugin I experienced an error I'm reporting below

    


    ...
I/flutter (14564): Finished splitting the commandline.
I/flutter (14564): Opening an input file: /data/user/0/com.attiliopatania.apshare/cache/file_picker/Voice001.m4a.
I/flutter (14564): [NULL @ 0x731deba400] Opening '/data/user/0/com.attiliopatania.apshare/cache/file_picker/Voice001.m4a' for reading
I/flutter (14564): [file @ 0x72f6059a40] Setting default whitelist 'file,crypto,data'
I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] ISO: File Type Major Brand: 3gp4
I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] Unknown dref type 0x206c7275 size 12
I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] Before avformat_find_stream_info() pos: 112552 bytes read:65747 seeks:1 nb_streams:1
I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] All info found
I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] After avformat_find_stream_info() pos: 403 bytes read:98515 seeks:2 frames:1
I/flutter (14564): Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/data/user/0/com.attiliopatania.apshare/cache/file_picker/Voice001.m4a':
I/flutter (14564):   Metadata:
I/flutter (14564):     major_brand     :
I/flutter (14564): 3gp4
I/flutter (14564):
I/flutter (14564):     minor_version   :
I/flutter (14564): 0
I/flutter (14564):
I/flutter (14564):     compatible_brands:
I/flutter (14564): isom3gp4
I/flutter (14564):
I/flutter (14564):     creation_time   :
I/flutter (14564): 2021-03-06T16:02:37.000000Z
I/flutter (14564):
I/flutter (14564):     com.android.version:
I/flutter (14564): 10
I/flutter (14564):
I/flutter (14564):   Duration:
I/flutter (14564): 00:00:04.97
I/flutter (14564): , start:
I/flutter (14564): 0.000000
I/flutter (14564): , bitrate:
I/flutter (14564): 181 kb/s
I/flutter (14564):
I/flutter (14564):     Stream #1:0
I/flutter (14564): (eng)
I/flutter (14564): , 1, 1/44100
I/flutter (14564): : Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s
I/flutter (14564):  (default)
I/flutter (14564):
I/flutter (14564): ffmpeg out 1
I/flutter (14564):     Metadata:
I/flutter (14564):       creation_time   :
I/flutter (14564): 2021-03-06T16:02:37.000000Z
I/flutter (14564):
I/flutter (14564):       handler_name    :
I/flutter (14564): SoundHandle
I/flutter (14564):
I/flutter (14564): Successfully opened the file.
I/flutter (14564): Parsing a group of options: output url ffmpeg.
I/flutter (14564): Successfully parsed a group of options.
I/flutter (14564): Opening an output file: ffmpeg.
I/flutter (14564): [NULL @ 0x7306b86c00] Unable to find a suitable output format for 'ffmpeg'
I/flutter (14564): ffmpeg: Invalid argument


    


  • ffmpeg Disable default subtitle

    23 juin 2021, par Marco999

    I have many mkv files where I need to choose the audio / subtitle streams and set the favorite as default :

    


    ffmpeg.exe -y -i originale_ridotto.mkv -map 0:0 -map 0:1 -map 0:2 -map 0:5 -disposition:a:1 -default-forced -disposition:a:0 +default+forced -disposition:s -default -c copy prova.mkv


    


    With this command I can choose the audio track that I like and make the first audio as default and work for audio but not work for subtitles

    


    I have tried :

    


    -disposition:s -default
-disposition:s:0 -default
-default_mode infer_no_subs


    


    but in all case the stream 5 (subtitle) is always default. I like to copy multiple subtitles and remove all default.

    


    Text
ID                                       : 4
ID in the original source medium         : 4613 (0x1205)
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 3 min 16 s
Bit rate                                 : 38.8 kb/s
Count of elements                        : 2306
Stream size                              : 25.0 MiB (4%)
Language                                 : Italian
Default                                  : Yes
Forced                                   : No
Original source medium                   : Blu-ray


    


    Thare is a way to disable all subtitles ?

    


    Thank you !!

    


  • Change the default audio and video codec loaded by avformat_alloc_output_context2

    8 juin 2021, par mythili3093

    I'm using ffmpeg library for live streaming via RTMP. I want to know how to give my choice of audio and video codec for the particular format in avformat_alloc_output_context2.

    


    In Detail :

    


    The following command works perfectly for me.

    


    ffmpeg -re -stream_loop -1 -i ~/Downloads/Microsoft_Surface.mp4 -vcodec copy -c:a aac -b:a 160k -ar 44100 -strict -2 -f flv -flvflags no_duration_filesize rtmp://192.168.1.7/live/surface


    


    In the output, I have set my audio codec to be aac and copied the video codec from input, which is H264.
I want to emulate this in the library, but don't know how to.

    


    avformat_alloc_output_context2(&_ctx, NULL, "flv", NULL);


    


    Above code sets oformat audio codec to ADPCM_SWF and video codec to FLV1. How to change that to AAC and H264 ?

    


    So far, used av_guess_format to construct AVOutputFormat. It accepts only format as input. And I don't know where to mention audio and video codec.

    


    AVOutputFormat* output_format = av_guess_format("flv", NULL, NULL);


    


    Also tried giving filename to avformat_alloc_output_context2 with the rest of the parameters NULL.

    


    AVOutputFormat* output_format = av_guess_format(NULL, "flv_acc_sample.flv", NULL);


    


    This file has AAC audio and H264 video. But still ffmpeg loads oformat with ADPCM_SWF audio and FLV1 video codecs.

    


    Searched stackoverflow for similar questions, but could not find the solution I was looking for.
Any hint/guidance is hugely appreciated. Thank you.