Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (79)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Liste des distributions compatibles

    26 avril 2011, par

    Le tableau ci-dessous correspond à la liste des distributions Linux compatible avec le script d’installation automatique de MediaSPIP. Nom de la distributionNom de la versionNuméro de version Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    Si vous souhaitez nous aider à améliorer cette liste, vous pouvez nous fournir un accès à une machine dont la distribution n’est pas citée ci-dessus ou nous envoyer le (...)

Sur d’autres sites (8789)

  • FFmpeg conversion failed with "Subtitle encoding failed" and "canvas_size is too small" [closed]

    21 avril, par Hillol Talukdar

    I'm converting video files using FFmpeg, but the process fails and shows some errors that I don't fully understand the cause of. How can I avoid the error and fix the issue ? Below is the command I used and the output I received.

    


    FFmpeg Command :

    


    ffmpeg -y -hide_banner -i saf:12.VOB -map 0:3 -c:s:0 dvdsub -map 0:2 -map 0:1 -f mp4 -vcodec copy -map_metadata 0:g -acodec aac -async 1 saf:13.mp4


    


    ErrorMessage :

    


    Input #0, mpeg, from 'saf:12.VOB':
  Duration: 00:00:21.99, start: 0.280633, bitrate: 7147 kb/s
  Stream #0:0[0x1bf]: Data: dvd_nav_packet
  Stream #0:1[0x1e0]: Video: mpeg2video, yuv420p(tv, top first), 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn
    Side data:
      cpb: bitrate max/min/avg: 7816000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:2[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s
  Stream #0:3[0x20]: Subtitle: dvd_subtitle
  Stream #0:4[0x21]: Subtitle: dvd_subtitle

Stream mapping:
  Stream #0:3 -> #0:0 (dvd_subtitle (dvdsub) -> dvd_subtitle (dvdsub))
  Stream #0:2 -> #0:1 (pcm_dvd (native) -> aac (native))
  Stream #0:1 -> #0:2 (copy)

Press [q] to stop, [?] for help

Output #0, mp4, to 'saf:13.mp4':
  Metadata:
    encoder         : Lavf60.3.100
  Stream #0:0: Subtitle: dvd_subtitle (mp4s / 0x7334706D), 720x480
    Metadata:
      encoder         : Lavc60.3.100 dvdsub
  Stream #0:1: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc60.3.100 aac
  Stream #0:2: Video: mpeg2video (mp4v / 0x7634706D), yuv420p(tv, top first), 720x480 [SAR 32:27 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn
    Side data:
      cpb: bitrate max/min/avg: 7816000/0/0 buffer size: 1835008 vbv_delay: N/A

frame=   15 fps=0.0 q=-1.0 size=       0kB time=00:00:00.73 bitrate=   0.5kbits/s speed= 212x    
frame=  577 fps=0.0 q=-1.0 size=    5120kB time=00:00:19.18 bitrate=2186.2kbits/s speed=38.1x    

[dvdsub @ 0xb400006ffb03dde0] canvas_size(0:0) is too small(719:479) for render
[sost#0:0/dvdsub @ 0xb400006feaec5730] Subtitle encoding failed
[aac @ 0xb400006ffb02f500] Qavg: 36253.348
[aac @ 0xb400006ffb02f500] 2 frames left in the queue on closing

Conversion failed!


    


  • fftools/cmdutils : fix error message for "ffmpeg -init_hw_device list"

    26 mars, par Jun Zhao
    fftools/cmdutils : fix error message for "ffmpeg -init_hw_device list"
    

    When running 'ffmpeg -init_hw_device list' to display available hardware
    devices, it incorrectly shows an error message :
    "Failed to set value 'list' for option 'init_hw_device' : Immediate exit requested"

    This is a regression introduced by commit a50f90f1c23. The command is
    actually working as intended - it should exit after listing devices, but
    shouldn't display an error message.

    Signed-off-by : Jun Zhao <barryjzhao@tencent.com>

    • [DH] fftools/cmdutils.c
  • FFmpeg drawtext filter error : "Cannot find a valid font for the family Sans"

    7 septembre 2024, par fatdrogen

    I'm trying to add text overlay to a video using FFmpeg's drawtext filter in my iOS app, but I'm encountering the following error :

    &#xA;

    error : Cannot load default config file

    &#xA;

    ERROR : Cannot find a valid font for the family Sans

    &#xA;

    ERROR : Error initializing filter 'drawtext'

    &#xA;

    ERROR : with args 'text=write some thing :'

    &#xA;

    Here's the relevant part of my FFmpeg command :

    &#xA;

    Copydrawtext=text='write some thing '

    &#xA;

    Questions :

    &#xA;

    What's causing this error, and how can I resolve it ?&#xA;Is there a way to specify a font that's guaranteed to be available on iOS devices ?&#xA;Are there any alternative approaches to adding text overlay in FFmpeg that might avoid this issue ?

    &#xA;

    Environment :

    &#xA;

    Platform : iOS&#xA;FFmpeg : Using MobileFFmpeg library&#xA;Swift

    &#xA;

    Any help or guidance would be greatly appreciated !

    &#xA;

    func makeGIFData(asset: AVAsset,  startTime: Double, endTime: Double, rotation: Double, overlayText: String) async throws -> Data {&#xA;    let fileName = "\(ProcessInfo.processInfo.globallyUniqueString)_input.mp4"&#xA;    let fileURL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent(fileName)&#xA;    &#xA;    // Export the asset to a temporary file&#xA;    guard let exporter = try? await AVAssetExportSession(asset: asset, presetName: AVAssetExportPresetHighestQuality) else {&#xA;        throw NSError(domain: "GIFConversionError", code: -1, userInfo: [NSLocalizedDescriptionKey: "Failed to create AVAssetExportSession"])&#xA;    }&#xA;    &#xA;    exporter.outputURL = fileURL&#xA;    exporter.outputFileType = .mp4&#xA;    exporter.timeRange = CMTimeRange(start: CMTime(seconds: startTime, preferredTimescale: 600), end: CMTime(seconds: endTime, preferredTimescale: 600))&#xA;    &#xA;    do {&#xA;        try await exporter.export()&#xA;    } catch {&#xA;        throw NSError(domain: "GIFConversionError", code: -2, userInfo: [NSLocalizedDescriptionKey: "Failed to export video: \(error.localizedDescription)"])&#xA;    }&#xA;    &#xA;    let outfileName = "\(ProcessInfo.processInfo.globallyUniqueString)_outfile.gif"&#xA;    let outfileURL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent(outfileName)&#xA;    &#xA;    // Get video dimensions&#xA;    guard let track = try? await asset.loadTracks(withMediaType: .video).first,&#xA;          let videoSize = try? await track.load(.naturalSize) else {&#xA;        throw NSError(domain: "GIFConversionError", code: -4, userInfo: [NSLocalizedDescriptionKey: "Failed to get video dimensions"])&#xA;    }&#xA;    &#xA;    // Prepare FFmpeg command&#xA;    var command = "-i \(fileURL.path) -vf "&#xA;    &#xA;    &#xA;    // Add text overlay&#xA;    let escapedText = overlayText.replacingOccurrences(of: ":", with: "\\:").replacingOccurrences(of: "&#x27;", with: "\\&#x27;")&#xA;    let fontColor = textColor.toHexString()&#xA;    &#xA;    // Use a more universally available font, or provide multiple options&#xA;    filters &#x2B;= ",drawtext=text=&#x27;write some thing &#x27;:"&#xA;    &#xA;    // Add palette generation and application&#xA;    filters &#x2B;= ",split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse"&#xA;    &#xA;    // Add filters to command&#xA;    command &#x2B;= "\"\(filters)\""&#xA;    &#xA;    // Finalize command&#xA;    command &#x2B;= " -loop 0 \(outfileURL.path)"&#xA;    &#xA;    print("FFmpeg command: \(command)")&#xA;    &#xA;    let startTime = CFAbsoluteTimeGetCurrent()&#xA;    &#xA;    let result = MobileFFmpeg.execute(command)&#xA;    &#xA;    if result != RETURN_CODE_SUCCESS {&#xA;        throw NSError(domain: "GIFConversionError", code: Int(result), userInfo: [NSLocalizedDescriptionKey: "FFmpeg conversion failed"])&#xA;    }&#xA;    &#xA;    let timeElapsed = CFAbsoluteTimeGetCurrent() - startTime&#xA;    print("Time elapsed: \(timeElapsed) s.")&#xA;    &#xA;    // Read the generated GIF file&#xA;    guard let gifData = try? Data(contentsOf: outfileURL) else {&#xA;        throw NSError(domain: "GIFConversionError", code: -3, userInfo: [NSLocalizedDescriptionKey: "Failed to read generated GIF file"])&#xA;    }&#xA;    &#xA;    print("Animated GIF data created successfully. Size: \(gifData.count) bytes")&#xA;    &#xA;    // Clean up temporary files&#xA;    try? FileManager.default.removeItem(at: fileURL)&#xA;    try? FileManager.default.removeItem(at: outfileURL)&#xA;    &#xA;    return gifData&#xA;}&#xA;&#x27;&#x27;&#x27;&#xA;

    &#xA;