Recherche avancée

Médias (91)

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (10151)

  • FFmpegAudio object has no attribute _process

    28 janvier 2023, par Benjamin Tsoumagas

    I'm trying to make a Discord music bot that is remotely hosted and to do that I need ffmpeg to work. I was able to add it using my Dockerfile but upon trying to play music with the bot I get the following errors. For context, I am hosting on Fly.io and using python with the Nextcord library. Below is my relevant code and the error message. Please let me know if any more information is required.

    


    import nextcord, os, json, re, youtube_dl
from nextcord import Interaction, application_checks
from nextcord.ext import commands

youtube_dl.utils.bug_reports_message = lambda: ''

ytdl_format_options = {
    "format": "bestaudio/best",
    'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',
    'restrictfilenames': True,
    'noplaylist': True,
    'nocheckcertificate': True,
    'ignoreerrors': False,
    'logtostderr': False,
    'quiet': True,
    'no_warnings': True,
    'default_search': 'auto',
    'source_address': '0.0.0.0',
}

ffmpeg_options = {"options": "-vn"}

ytdl = youtube_dl.YoutubeDL(ytdl_format_options)

class YTDLSource(nextcord.PCMVolumeTransformer):
    def __init__(self, source, *, data, volume=0.5):
        super().__init__(source, volume)
        self.data = data
        self.title = data.get("title")
        self.url = data.get("url")

    @classmethod
    async def from_url(cls, url, *, loop=None, stream=False):
        loop = loop or asyncio.get_event_loop()
        data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download=not stream))

        if "entries" in data:
            data = data["entries"][0]
        
        filename = data["url"] if stream else ytdl.prepare_filename(data)
        return cls(nextcord.FFmpegAudio(filename, *ffmpeg_options), data=data)

async def ensure_voice(interaction: Interaction):
    if interaction.guild.voice_client is None:
        if interaction.user.voice:
            await interaction.user.voice.channel.connect()
        else:
            await interaction.send("You are not connected to a voice channel.")
            raise commands.CommandError("Author not connected to a voice channel.")
    elif interaction.guild.voice_client.is_playing():
        interaction.guild.voice_client.stop()

class Music(commands.Cog, name="Music"):
    """Commands for playing music in voice channels"""

    COG_EMOJI = "🎵"

    def __init__(self, bot):
        self.bot = bot
    
    @application_checks.application_command_before_invoke(ensure_voice)
    @nextcord.slash_command()
    async def play(self, interaction: Interaction, *, query):
        """Plays a file from the local filesystem"""

        source = nextcord.PCMVolumeTransformer(nextcord.FFmpegPCMAudio(query))
        interaction.guild.voice_client.play(source, after=lambda e: print(f"Player error: {e}") if e else None)

        await interaction.send(f"Now playing: {query}")

    @application_checks.application_command_before_invoke(ensure_voice)
    @nextcord.slash_command()
    async def yt(self, interaction: Interaction, *, url):
        """Plays from a URL (almost anything youtube_dl supports)"""

        async with interaction.channel.typing():
            player = await YTDLSource.from_url(url, loop=self.bot.loop)
            interaction.guild.voice_client.play(
                player, after=lambda e: print(f"Player error: {e}") if e else None
            )

        await interaction.send(f"Now playing: {player.title}")

    @application_checks.application_command_before_invoke(ensure_voice)
    @nextcord.slash_command()
    async def stream(self, interaction: Interaction, *, url):
        """Streams from a URL (same as yt, but doesn't predownload)"""

        async with interaction.channel.typing():
            player = await YTDLSource.from_url(url, loop=self.bot.loop, stream=True)
            interaction.voice_client.play(
                player, after=lambda e: print(f"Player error: {e}") if e else None
            )

        await interaction.send(f"Now playing: {player.title}")

def setup(bot):
    bot.add_cog(Music(bot))


    


    2023-01-28T23:16:15Z app[7d3b734a] yyz [info]Exception ignored in: <function at="at" 0x7fa78ea61fc0="0x7fa78ea61fc0">&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]Traceback (most recent call last):&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]  File "/usr/local/lib/python3.10/site-packages/nextcord/player.py", line 116, in __del__&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]    self.cleanup()&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]  File "/usr/local/lib/python3.10/site-packages/nextcord/player.py", line 235, in cleanup&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]    self._kill_process()&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]  File "/usr/local/lib/python3.10/site-packages/nextcord/player.py", line 191, in _kill_process&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]AttributeError: &#x27;FFmpegA&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]AttributeError: &#x27;FFmpegA&#xA;dio&#x27; object has no attribute &#x27;_process&#x27;&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]Ignoring exception in command :&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]Traceback (most recent call last):&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]  File "/usr/local/lib/python3.10/site-packages/nextcord/application_command.py", line 863, in invoke_callback_with_hooks&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]    await self(interaction, *args, **kwargs)&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]  File "/main/cogs/music.py", line 153, in yt&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]    player = await YTDLSource.from_url(url, loop=self.bot.loop)&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]  File "/main/cogs/music.py", line 71, in from_url    &#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]    return cls(nextcord.FFmpegAudio(filename, *ffmpeg_options), data=data)&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]&#xA;The above exception was the direct cause of the following exception:&#xA;&#xA;re given&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]The above exception was the direct cause of the following exception:&#xA;2023-01-28T23:16:15Z app[7d3b734a] yyz [info]nextcord.errors.ApplicationInvokeError: Command raised an exception: TypeError: FFmpegAudio.__init__() takes 2 positional arguments but 3 were given     &#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]Exception ignored in: <function at="at" 0x7fa78ea61fc0="0x7fa78ea61fc0">&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]Traceback (most recent call last):&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]  File "/usr/local/lib/python3.10/site-packages/nextcord/player.py", line 116, in __del__&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]    self.cleanup()&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]  File "/usr/local/lib/python3.10/site-packages/nextcord/player.py", line 235, in cleanup&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]    self._kill_process()&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]  File "/usr/local/lib/python3.10/site-packages/nextcord/player.py", line 191, in _kill_process&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]    proc = self._process&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]AttributeError: &#x27;FFmpegAudio&#x27; object has no attribute &#xA;&#x27;_process&#x27;&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]Ignoring exception in command :&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]Traceback (most recent call last):&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]  File "/usr/local/lib/python3.10/site-packages/nextcord/application_command.py", line 863, in invoke_callback_with_hooks&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]    await self(interaction, *args, **kwargs)&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]  File "/main/cogs/music.py", line 153, in yt&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]    player = await YTDLSource.from_url(url, loop=self.bot.loop)&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]  File "/main/cogs/music.py", line 71, in from_url    &#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]    return cls(nextcord.FFmpegAudio(filename, *ffmpeg_options), data=data)&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]TypeError: FFmpegAudio.__init__() takes 2 positional arguments but 3 were given&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]The above exception was the direct cause of the following exception:&#xA;2023-01-28T23:16:19Z app[7d3b734a] yyz [info]nextcord.errors.ApplicationInvokeError: Command raised an exception: TypeError: FFmpegAudio.__init__() takes 2 positional arguments but 3 were given&#xA;</function></function>

    &#xA;

    Similar posts have been made but their issues were typos in changing 'option' : '-vn' to 'options' : '-vn'. I've combed through for any other errors but I can't find any. I was hoping to see I made a similar mistake, but this is the template I was following from the Nextcord developers and I had no luck :

    &#xA;

  • ErrorCode 1 while merging 2 videos

    10 janvier 2023, par Stéphane de Luca

    I am trying to merge two videos but have an error code 1.

    &#xA;

    My command is as follows :

    &#xA;

      final command =&#xA;        &#x27;-y $commandPaths -filter_complex \&#x27;[0:0][1:0]concat=n=${paths.length}:v=1:a=0[out]\&#x27; -map \&#x27;[out]\&#x27; $outputPath&#x27;;&#xA;

    &#xA;

    I see the following error :

    &#xA;

    &#xA;

    I/flutter (17343) : Stream specifier ':0' in filtergraph description [0:0][1:0]concat=n=2:v=1:a=0[out] matches no streams.

    &#xA;

    &#xA;

    Not easy to understand what caused this as I am not familiar with the lib.

    &#xA;

    I saw in a so that someone had the issue caused by the tw videos not having the same size.

    &#xA;

    The logs are as follows :

    &#xA;

    I/flutter (17343): Duration: 2.9345&#xA;I/flutter (17343): /data/user/0/com.example.shokaze/cache/PXL_20230104_041034414.TS.mp4 exists?: true&#xA;I/flutter (17343): Duration: 3.0677&#xA;I/flutter (17343): /data/user/0/com.example.shokaze/cache/PXL_20230104_041054379.TS.mp4 exists?: true&#xA;I/flutter (17343): Output duration; 6.0022&#xA;&#xA;&#xA;I/flutter (17343): About to executing: -y -i /data/user/0/com.example.shokaze/cache/PXL_20230104_041034414.TS.mp4 -i /data/user/0/com.example.shokaze/cache/PXL_20230104_041054379.TS.mp4  -filter_complex &#x27;[0:0][1:0]concat=n=2:v=1:a=0[out]&#x27; -map &#x27;[out]&#x27; /data/user/0/com.example.shokaze/app_flutter/output.mp4&#xA;&#xA;&#xA;&#xA;I/flutter (17343): ffmpeg version n5.1.2&#xA;I/flutter (17343):  Copyright (c) 2000-2022 the FFmpeg developers&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)&#xA;I/flutter (17343): &#xA;I/flutter (17343):   configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang&#x2B;&#x2B; --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs=&#x27;-L/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat&#x27; --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disab&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libavutil      57. 28.100 / 57. 28.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libavcodec     59. 37.100 / 59. 37.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libavformat    59. 27.100 / 59. 27.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libavdevice    59.  7.100 / 59.  7.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libavfilter     8. 44.100 /  8. 44.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libswscale      6.  7.100 /  6.  7.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libswresample   4.  7.100 /  4.  7.100&#xA;I/flutter (17343): &#xA;I/flutter (17343): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/data/user/0/com.example.shokaze/cache/PXL_20230104_041034414.TS.mp4&#x27;:&#xA;I/flutter (17343): &#xA;I/flutter (17343):   Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):     major_brand     : &#xA;I/flutter (17343): isom&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     minor_version   : &#xA;I/flutter (17343): 131072&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     compatible_brands: &#xA;I/flutter (17343): isomiso2mp41&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:38.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     location        : &#xA;I/flutter (17343): &#x2B;48.8638&#x2B;2.4376/&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     location-eng    : &#xA;I/flutter (17343): &#x2B;48.8638&#x2B;2.4376/&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     com.android.capture.fps: &#xA;I/flutter (17343): 30.000000&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Duration: &#xA;I/flutter (17343): 00:00:02.93&#xA;I/flutter (17343): , start: &#xA;I/flutter (17343): 0.000000&#xA;I/flutter (17343): , bitrate: &#xA;I/flutter (17343): 19691 kb/s&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #0:0&#xA;I/flutter (17343): [0x1]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Data: none (mett / 0x7474656D), 53 kb/s&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:38.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): MetaHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #0:1&#xA;I/flutter (17343): [0x2]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:38.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): SoundHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       vendor_id       : &#xA;I/flutter (17343): [0][0][0][0]&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #0:2&#xA;I/flutter (17343): [0x3]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Video: hevc (hvc1 / 0x31637668), yuvj420p(pc, bt709), 1920x1080, 19436 kb/s&#xA;I/flutter (17343): , SAR 1:1 DAR 16:9&#xA;I/flutter (17343): , &#xA;I/flutter (17343): 29.99 fps, &#xA;I/flutter (17343): 30 tbr, &#xA;I/flutter (17343): 90k tbn&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:38.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): VideoHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       vendor_id       : &#xA;I/flutter (17343): [0][0][0][0]&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #0:3&#xA;I/flutter (17343): [0x4]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Data: none (mett / 0x7474656D)&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:38.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): MetaHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343): Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/data/user/0/com.example.shokaze/cache/PXL_20230104_041054379.TS.mp4&#x27;:&#xA;I/flutter (17343): &#xA;I/flutter (17343):   Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):     major_brand     : &#xA;I/flutter (17343): isom&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     minor_version   : &#xA;I/flutter (17343): 131072&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     compatible_brands: &#xA;I/flutter (17343): isomiso2mp41&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:58.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     location        : &#xA;I/flutter (17343): &#x2B;48.8638&#x2B;2.4376/&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     location-eng    : &#xA;I/flutter (17343): &#x2B;48.8638&#x2B;2.4376/&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     com.android.capture.fps: &#xA;I/flutter (17343): 30.000000&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Duration: &#xA;I/flutter (17343): 00:00:03.07&#xA;I/flutter (17343): , start: &#xA;I/flutter (17343): 0.000000&#xA;I/flutter (17343): , bitrate: &#xA;I/flutter (17343): 20104 kb/s&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #1:0&#xA;I/flutter (17343): [0x1]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Data: none (mett / 0x7474656D), 54 kb/s&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:58.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): MetaHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #1:1&#xA;I/flutter (17343): [0x2]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:58.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): SoundHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       vendor_id       : &#xA;I/flutter (17343): [0][0][0][0]&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #1:2&#xA;I/flutter (17343): [0x3]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Video: hevc (hvc1 / 0x31637668), yuvj420p(pc, bt709), 1920x1080, 19848 kb/s&#xA;I/flutter (17343): , SAR 1:1 DAR 16:9&#xA;I/flutter (17343): , &#xA;I/flutter (17343): 29.99 fps, &#xA;I/flutter (17343): 30 tbr, &#xA;I/flutter (17343): 90k tbn&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:58.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): VideoHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       vendor_id       : &#xA;I/flutter (17343): [0][0][0][0]&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Side data:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       &#xA;I/flutter (17343): displaymatrix: rotation of -90.00 degrees&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #1:3&#xA;I/flutter (17343): [0x4]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Data: none (mett / 0x7474656D)&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:58.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): MetaHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343): Stream specifier &#x27;:0&#x27; in filtergraph description [0:0][1:0]concat=n=2:v=1:a=0[out] matches no streams.&#xA;I/flutter (17343): &#xA;I/flutter (17343): executing: -y -i /data/user/0/com.example.shokaze/cache/PXL_20230104_041034414.TS.mp4 -i /data/user/0/com.example.shokaze/cache/PXL_20230104_041054379.TS.mp4  -filter_complex &#x27;[0:0][1:0]concat=n=2:v=1:a=0[out]&#x27; -map &#x27;[out]&#x27; /data/user/0/com.example.shokaze/app_flutter/output.mp4&#xA;I/flutter (17343): error 1&#xA;

    &#xA;

    Therefore I tried to add a resize in the command without success as follows :.

    &#xA;

        final command =&#xA;        &#x27;$commandPaths -filter_complex \&#x27;[0:v]scale=1920:1080[0:a] [1:v]scale=1920:1080[1:a] concat=n=${paths.length}:v=1:a=1[v][a]\&#x27; -map \&#x27;[v]\&#x27; -map \&#x27;[a]\&#x27; $outputPath&#x27;;&#xA;&#xA;

    &#xA;

    This time the logs say :

    &#xA;

    &#xA;

    I/flutter (17343) : [AVFilterGraph @ 0xb4000074ea6265f0] No output pad can be associated to link label '1:v'.

    &#xA;

    &#xA;

    The logs are as follows :

    &#xA;

    I/flutter (17343): Duration: 2.9345&#xA;I/flutter (17343): /data/user/0/com.example.shokaze/cache/PXL_20230104_041034414.TS.mp4 exists?: true&#xA;I/flutter (17343): Duration: 3.0677&#xA;I/flutter (17343): /data/user/0/com.example.shokaze/cache/PXL_20230104_041054379.TS.mp4 exists?: true&#xA;I/flutter (17343): Output duration; 6.0022&#xA;I/flutter (17343): About to executing: -i /data/user/0/com.example.shokaze/cache/PXL_20230104_041034414.TS.mp4 -i /data/user/0/com.example.shokaze/cache/PXL_20230104_041054379.TS.mp4  -filter_complex &#x27;[0:v]scale=1920:1080[0:a] [1:v]scale=1920:1080[1:a] concat=n=2:v=1:a=1[v][a]&#x27; -map &#x27;[v]&#x27; -map &#x27;[a]&#x27; /data/user/0/com.example.shokaze/app_flutter/output.mp4&#xA;I/flutter (17343): ffmpeg version n5.1.2&#xA;I/flutter (17343):  Copyright (c) 2000-2022 the FFmpeg developers&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)&#xA;I/flutter (17343): &#xA;I/flutter (17343):   configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang&#x2B;&#x2B; --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs=&#x27;-L/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat&#x27; --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disab&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libavutil      57. 28.100 / 57. 28.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libavcodec     59. 37.100 / 59. 37.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libavformat    59. 27.100 / 59. 27.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libavdevice    59.  7.100 / 59.  7.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libavfilter     8. 44.100 /  8. 44.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libswscale      6.  7.100 /  6.  7.100&#xA;I/flutter (17343): &#xA;I/flutter (17343):   libswresample   4.  7.100 /  4.  7.100&#xA;I/flutter (17343): &#xA;I/flutter (17343): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/data/user/0/com.example.shokaze/cache/PXL_20230104_041034414.TS.mp4&#x27;:&#xA;I/flutter (17343): &#xA;I/flutter (17343):   Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):     major_brand     : &#xA;I/flutter (17343): isom&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     minor_version   : &#xA;I/flutter (17343): 131072&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     compatible_brands: &#xA;I/flutter (17343): isomiso2mp41&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:38.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     location        : &#xA;I/flutter (17343): &#x2B;48.8638&#x2B;2.4376/&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     location-eng    : &#xA;I/flutter (17343): &#x2B;48.8638&#x2B;2.4376/&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     com.android.capture.fps: &#xA;I/flutter (17343): 30.000000&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Duration: &#xA;I/flutter (17343): 00:00:02.93&#xA;I/flutter (17343): , start: &#xA;I/flutter (17343): 0.000000&#xA;I/flutter (17343): , bitrate: &#xA;I/flutter (17343): 19691 kb/s&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #0:0&#xA;I/flutter (17343): [0x1]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Data: none (mett / 0x7474656D), 53 kb/s&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:38.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): MetaHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #0:1&#xA;I/flutter (17343): [0x2]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:38.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): SoundHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       vendor_id       : &#xA;I/flutter (17343): [0][0][0][0]&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #0:2&#xA;I/flutter (17343): [0x3]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Video: hevc (hvc1 / 0x31637668), yuvj420p(pc, bt709), 1920x1080, 19436 kb/s&#xA;I/flutter (17343): , SAR 1:1 DAR 16:9&#xA;I/flutter (17343): , &#xA;I/flutter (17343): 29.99 fps, &#xA;I/flutter (17343): 30 tbr, &#xA;I/flutter (17343): 90k tbn&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:38.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): VideoHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       vendor_id       : &#xA;I/flutter (17343): [0][0][0][0]&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #0:3&#xA;I/flutter (17343): [0x4]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Data: none (mett / 0x7474656D)&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:38.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): MetaHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343): Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/data/user/0/com.example.shokaze/cache/PXL_20230104_041054379.TS.mp4&#x27;:&#xA;I/flutter (17343): &#xA;I/flutter (17343):   Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):     major_brand     : &#xA;I/flutter (17343): isom&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     minor_version   : &#xA;I/flutter (17343): 131072&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     compatible_brands: &#xA;I/flutter (17343): isomiso2mp41&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:58.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     location        : &#xA;I/flutter (17343): &#x2B;48.8638&#x2B;2.4376/&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     location-eng    : &#xA;I/flutter (17343): &#x2B;48.8638&#x2B;2.4376/&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     com.android.capture.fps: &#xA;I/flutter (17343): 30.000000&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Duration: &#xA;I/flutter (17343): 00:00:03.07&#xA;I/flutter (17343): , start: &#xA;I/flutter (17343): 0.000000&#xA;I/flutter (17343): , bitrate: &#xA;I/flutter (17343): 20104 kb/s&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #1:0&#xA;I/flutter (17343): [0x1]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Data: none (mett / 0x7474656D), 54 kb/s&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:58.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): MetaHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #1:1&#xA;I/flutter (17343): [0x2]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:58.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): SoundHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       vendor_id       : &#xA;I/flutter (17343): [0][0][0][0]&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #1:2&#xA;I/flutter (17343): [0x3]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Video: hevc (hvc1 / 0x31637668), yuvj420p(pc, bt709), 1920x1080, 19848 kb/s&#xA;I/flutter (17343): , SAR 1:1 DAR 16:9&#xA;I/flutter (17343): , &#xA;I/flutter (17343): 29.99 fps, &#xA;I/flutter (17343): 30 tbr, &#xA;I/flutter (17343): 90k tbn&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:58.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): VideoHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       vendor_id       : &#xA;I/flutter (17343): [0][0][0][0]&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Side data:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       &#xA;I/flutter (17343): displaymatrix: rotation of -90.00 degrees&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):   Stream #1:3&#xA;I/flutter (17343): [0x4]&#xA;I/flutter (17343): (eng)&#xA;I/flutter (17343): : Data: none (mett / 0x7474656D)&#xA;I/flutter (17343):  (default)&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):     Metadata:&#xA;I/flutter (17343): &#xA;I/flutter (17343):       creation_time   : &#xA;I/flutter (17343): 2023-01-04T04:10:58.000000Z&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343):       handler_name    : &#xA;I/flutter (17343): MetaHandle&#xA;I/flutter (17343): &#xA;I/flutter (17343): &#xA;I/flutter (17343): [AVFilterGraph @ 0xb4000074ea6265f0] No output pad can be associated to link label &#x27;1:v&#x27;.&#xA;I/flutter (17343): &#xA;I/flutter (17343): Error initializing complex filters.&#xA;I/flutter (17343): &#xA;I/flutter (17343): Invalid argument&#xA;I/flutter (17343): &#xA;I/flutter (17343): Conversion failed!&#xA;I/flutter (17343): &#xA;I/flutter (17343): executing: -i /data/user/0/com.example.shokaze/cache/PXL_20230104_041034414.TS.mp4 -i /data/user/0/com.example.shokaze/cache/PXL_20230104_041054379.TS.mp4  -filter_complex &#x27;[0:v]scale=1920:1080[0:a] [1:v]scale=1920:1080[1:a] concat=n=2:v=1:a=1[v][a]&#x27; -map &#x27;[v]&#x27; -map &#x27;[a]&#x27; /data/user/0/com.example.shokaze/app_flutter/output.mp4&#xA;I/flutter (17343): error 1&#xA;

    &#xA;

  • Error finding watermark path using ffmpeg in asp.net application

    27 août 2013, par irfanmcsd

    I am using .net ffmpeg wrapper to post watermark on videos. Posting watermark works fine if i execute ffmpeg command directly but failed to find suitable watermark png file location if command executed via asp.net application.

    here is sample ffmpeg command

    string RootPath = HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath);
    _mhandler.FFMPEGPath = RootPath + "/ffmpeg_aug_2013/bin/ffmpeg.exe";
    _mhandler.InputPath = RootPath + "/contents/original";
    _mhandler.OutputPath = RootPath + "/contents/mp4";
    _mhandler.BackgroundProcessing = false;
    _mhandler.FileName = "wildlife.wmv";
    _mhandler.OutputFileName = "wildlife_ddd";
    string presetpath = RootPath + "/ffmpeg_aug_2013/presets/libx264-ipod640.ffpreset";
    _mhandler.OutputExtension = ".mp4";
    _mhandler.Parameters = "-s 640x380 -b:v 500k -bufsize 500k -b:a 128k -ar 44100 -c:v libx264 -vf \"movie = watermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]\"";
    _mhandler.Parameters = _mhandler.Parameters + " -fpre \"" + presetpath + "\"";
    VideoInfo info =  _mhandler.Process();

    i tried direct code too

    string _out = "";
    Process _process = new Process();
    _process.StartInfo.UseShellExecute = false;
    _process.StartInfo.RedirectStandardInput = true;
    //_process.StartInfo.RedirectStandardOutput = true;
    _process.StartInfo.RedirectStandardError = true;
    _process.StartInfo.CreateNoWindow = true;
    _process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    _process.StartInfo.FileName = _ffmpegpath;
    _process.StartInfo.Arguments = cmd;
    if (_process.Start())
    {            
       _process.WaitForExit(ExitProcess);
       _out = _process.StandardError.ReadToEnd();
       if (!_process.HasExited)
         _process.Kill();

       return _out;
    }

    ffmpeg error output as

    FFMPEG Output:ffmpeg version N-55753-g88909be Copyright (c) 2000-2013
    the FFmpeg developers built on Aug 24 2013 21:40:51 with gcc 4.7.3
    (GCC) configuration : —enable-gpl —enable-version3
    —disable-w32threads —enable-avisynth —enable-bzlib —enable-fontconfig —enable-frei0r —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libcaca —enable-libfreetype —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-librtmp —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvo-aacenc —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libx264 —enable-libxavs —enable-libxvid —enable-zlib libavutil 52. 42.100 / 52. 42.100 libavcodec 55. 29.100 / 55. 29.100 libavformat 55. 14.102 / 55. 14.102 libavdevice 55. 3.100
    / 55. 3.100 libavfilter 3. 82.102 / 3. 82.102 libswscale 2. 5.100 / 2.
    5.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 [asf @ 024c9960] Stream #0 : not enough frames to estimate rate ; consider increasing probesize Guessed Channel Layout for Input Stream

    0.0 : stereo Input #0, asf, from 'F :\own\mhp_new/contents/original\wildlife.wmv' : Metadata :

    SfOriginalFPS : 299700 WMFSDKVersion : 11.0.6001.7000 WMFSDKNeeded :
    0.0.0.0000 comment : Footage : Small World Productions, Inc ; Tourism New Zealand | Producer : Gary F. Spradling | Music : Steve Ball title :
    Wildlife in HD copyright : © 2008 Microsoft Corporation IsVBR : 0
    DeviceConformanceTemplate : AP@L3 Duration : 00:00:30.09, start :
    0.000000, bitrate : 6977 kb/s Stream #0:0(eng) : Audio : wmav2 (a1[0][0] / 0x0161), 44100 Hz, stereo, fltp, 192 kb/s Stream

    0:1(eng) : Video : vc1 (Advanced) (WVC1 / 0x31435657), yuv420p, 1280x720, 5942 kb/s, 29.97 tbr, 1k tbn, 1k tbc [image2 @ 024c76e0]

    Could find no file with path 'watermark.png' and index in the range
    0-4 [Parsed_movie_0 @ 024c0540] Failed to avformat_open_input
    'watermark.png' [AVFilterGraph @ 024ca100] Error initializing filter
    'movie' with args 'watermark.png' Error opening filters ! Error Code= 0

    Error on point ( Could find no file with path 'watermark.png' ) shows watermark.png file not found.
    I place watermark.png file in the following locations but still can't found

    i : application root

    ii : root where actual aspx page located

    iii : ffmpeg root

    iv : ffmpeg/bin/

    I also used complete path but still can't detected.

    Note : if i use same ffmpeg command in php and place watermark.png on location where actual php page exist watermark properly detected and command executed properly, but same approach not working in asp.net

    Can any one help me where should i place watermark.png file so that script can access it.