Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (82)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • 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 (9420)

  • ffmpeg don`t close rtsp connet

    20 juillet 2015, par Антон Михайлов

    I use ffmpeg + SDL-2 for playing rtsp stream from ip camera. For the test i user laptop(computer1) + VLC(stream rtsp) and computer(computer2) + mylib.

    After start playing, i see on computer1 network activity. Ok thant correctly. Im closing connection on computer2, call

    av_read_pause(format_context);
    avio_close(format_context->pb);

    av_read_pause(format_context);
    avio_close(format_context->pb);

    if (codec_context && codec_context != 0)
       avcodec_close(codec_context);

    avformat_close_input(&format_context);
    avformat_free_context(format_context);

    av_free(codec);
    avformat_network_deinit();

    and close my application, but i stell see on computer1 network activity. I thought it was a bug in my code. And start ffplay

    ffplay.exe rtsp://192.168.1.102:8554/stream/

    his have the same behavior. May be there are nuances when working with rtsp ?
    ffmpeg 2.7

    P.S. ffmpeg 2.0.2 don`t have this problem, but it can not work with more than 4 threads simultaneously, thats important for me.

  • ffmpeg don't close rtsp connect

    4 février 2016, par Антон Михайлов

    I use ffmpeg + SDL-2 for playing rtsp stream from ip camera. For the test i user laptop(computer1) + VLC(stream rtsp) and computer(computer2) + mylib.

    After start playing, i see on computer1 network activity. Ok thant correctly. Im closing connection on computer2, call

    av_read_pause(format_context);
    avio_close(format_context->pb);

    av_read_pause(format_context);
    avio_close(format_context->pb);

    if (codec_context && codec_context != 0)
       avcodec_close(codec_context);

    avformat_close_input(&format_context);
    avformat_free_context(format_context);

    av_free(codec);
    avformat_network_deinit();

    and close my application, but i stell see on computer1 network activity. I thought it was a bug in my code. And start ffplay

    ffplay.exe rtsp://192.168.1.102:8554/stream/

    his have the same behavior. May be there are nuances when working with rtsp ?
    ffmpeg 2.7

    P.S. ffmpeg 2.0.2 don`t have this problem, but it can not work with more than 4 threads simultaneously, thats important for me.

  • PowerShell and ffmpeg : No such file or directory

    8 juillet 2022, par Matt Wilson

    I'm trying to use the below command in a Python script, however I'm seeing that it's a PowerShell issue in that it can't seem to find the video file I'm pointing to.

    


    I have a video file on a cloud drive Z: at the following location (for reproducibility, change this to whatever path you want with a video file in it) :

    


    Z:\Udemy_And_Misc_Downloads\TensorFlow Developer Certificate in 2021 Zero to Mastery\3. Neural network regression with TensorFlow\18. Setting up TensorFlow modelling experiments part 2 (increasing complexity).mp4

    


    Notice the spaces and special characters in the filename in case that matters.

    


    What I'm trying to do is down-sample that video file to a smaller size with the following command :

    


    ffmpeg -i "Z:\Udemy_And_Misc_Downloads\TensorFlow Developer Certificate in 2021 Zero to Mastery\[TutsNode.com] - TensorFlow Developer Certificate in 2021 Zero to Mastery\3. Neural network regression with TensorFlow\18. Setting up TensorFlow modelling experiments part 2 (increasing complexity).mp4" -y -vcodec libx264 -acodec ac3 -threads 1 "Z:\Udemy_And_Misc_Downloads\TensorFlow Developer Certificate in 2021 Zero to Mastery\[TutsNode.com] - TensorFlow Developer Certificate in 2021 Zero to Mastery\3. Neural network regression with TensorFlow\18. Setting up TensorFlow modelling experiments part 2 (increasing complexity)DOWNSAMPLED.mp4"

    


    I know it's long as it's mostly consumed by the filenames, but the error I'm getting is :

    


    Z:\Udemy_And_Misc_Downloads\TensorFlow Developer Certificate in 2021 Zero to Mastery\[TutsNode.com] - TensorFlow  Developer Certificate in 2021 Zero to Mastery\3. Neural network regression with TensorFlow\18. Setting up TensorFlow  modelling experiments part 2 (increasing complexity).mp4: No such file or directory

    


    The path IS correct, as it's a direct copy paste from the folder's URL bar.

    


    The things I've tried include :

    


      

    • using quotes around filename
    • 


    • not using quotes around filename
    • 


    • prepending quoted filename with "r" (where I got message saying `did you mean file:r ?)
    • 


    • prepending quoted filename with "file:r"
    • 


    • used double slashes \ in filepaths
    • 


    


    Is there a powershell pro out there that can tell me why it can't "find" the file ?

    


    UPDATE
The command runs if I find a filename with :

    


    $oldvids = Get-ChildItem *.mp4, *mov, *wmv, *avi -Recurse
foreach ($oldvid in $oldvids) 
{
    $newvid = [io.path]::ChangeExtension($oldvid.FullName, '_.mp4')
    ffmpeg -i $oldvid.FullName -y -vcodec libx264 -acodec ac3 -threads 1 $newvid
}


    


    When I print the $oldvid.name and $oldvid.FullName, the paths/filenames look like this :

    


    Z:\Udemy_And_Misc_Downloads\TensorFlow Developer Certificate in 2021 Zero to Mastery\5. Computer Vision and Convolutional Neu
ral Networks in TensorFlow\35. Multi-class CNN's part 9 Making predictions with our model on custom images.mp4

35. Multi-class CNN's part 9 Making predictions with our model on custom images.mp4


    


    ...that first one being an exact copy of what I'm trying to use in my posted code. So what's the difference ??

    


    SECOND UPDATE
I think the issue lies in that the file is located on a drive other than C:. Just tested it by moving the file onto my computer and running the command, and it worked. So I guess, is there a way to tell PowerShell to use the Z: drive to find the file ?