Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (47)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (13619)

  • a command in a script doesn't work when the script is launched by cron

    5 mai 2023, par a k

    When I launch the script manually both as a not-root user (with sudo) and as the root, everything work correctly.
When Cron (Cron of the root) launches it, ffmpeg doesn't work (but the others lines of the script work correctly).

    


    #!/bin/bash
log=/var/log/log2/log2.txt

echo ______________ $(date) >> "$log"
echo -n whoami '         ' >> "$log" ; whoami >> "$log"
echo -n pwd '            ' >> "$log" ; pwd >> "$log"
echo "$""USER" = '        ' "$USER" >> "$log"
echo PATH '          ' $PATH >> "$log"
echo -n which ffmpeg '   ' >> "$log" ; which ffmpeg >> "$log"
echo -n whereis ffmpeg ' ' >> "$log" ; whereis ffmpeg >> "$log"

echo "" >> "$log"
echo ls -l "/bin/* | grep ffmpeg" '        ' >> "$log"
ls -l /bin/* | grep ffmpeg >> "$log"

echo "" >> "$log"
echo ls -l "/usr/bin/* | grep ffmpeg" ' '>> "$log"
ls -l /usr/bin/* | grep ffmpeg >> "$log"

echo "" >> "$log"
echo ls -l "/var/log | grep log2" ' '>> "$log"
ls -l /var/log | grep log2 >> "$log"

echo "" >> "$log"
echo ls -l "/var | grep log" ' '>> "$log"
ls -l /var | grep log >> "$log"

ffmpeg -y -f x11grab -s 1366x768 -i :0.0 /var/log/log2/test.mp4 2>/dev/null &
echo "$!"
sleep 5
kill "$!"
exit


    


    The script puts in the file /var/log/log2/log2.txt :

    


    whoami          root
pwd             /root
$USER =          
PATH            /usr/bin:/bin
which ffmpeg    /usr/bin/ffmpeg
whereis ffmpeg  ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz

ls -l /bin/* | grep ffmpeg         
-rwxr-xr-x 1 root   root      284976 mai   18  2022 /bin/ffmpeg

ls -l /usr/bin/* | grep ffmpeg  
-rwxr-xr-x 1 root   root      284976 mai   18  2022 /usr/bin/ffmpeg

ls -l /var/log | grep log2  
drwxrwxrwx  2 root              root               4096 mai    5 03:22 log2

ls -l /var | grep log  
drwxrwxr-x 16 root syslog   36864 mai    5 00:00 log


    


    I have tried to verify :

    


      

    • the permissions of the file ffmpeg
    • 


    • the permissions of the folder where ffmpeg writes to
    • 


    • the $PATH
    • 


    • the path of ffmpeg
    • 


    • the path of the file where ffmpeg should write to
    • 


    


  • vcodec copy does not work when start/duration is messed up in video file

    25 janvier 2014, par anishsane

    My Video file shows below meta-data with ffprobe/ffmpeg :

    Duration: 00:44:27.52, start: 1333.760000, bitrate: 335 kb/s
     Stream #0.0(und): Video: h264 (Main), yuv420p, 640x480, 25 tbr, 90k tbn, 50 tbc

    Note : The file does not contain audio.

    I am trying to convert this video file to other video file, using ffmpeg/avconv.

    This works : (but encodes h.264 video to mpeg4)

    ffmpeg -i input.mp4 output.mp4

    & it generates output file of proper duration (44:27 - 1333 seconds = 22:14)

    This does not work :

    ffmpeg -i input.mp4 -vcodec copy output.mp4

    Generates file without video.

    The output contains :

    $ avconv -i input.mp4 -vcodec copy output.mp4

    avconv version 0.8.9-6:0.8.9-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
     built on Nov  9 2013 19:09:46 with gcc 4.8.1
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
     Metadata:
       major_brand     : dash
       minor_version   : 0
       compatible_brands: iso6avc1mp41
       creation_time   : 2014-01-19 22:43:21
     Duration: 00:44:27.52, start: 1333.760000, bitrate: 335 kb/s
       Stream #0.0(und): Video: h264 (Main), yuv420p, 640x480, 25 tbr, 90k tbn, 50 tbc
       Metadata:
         creation_time   : 2014-01-19 22:43:21
    Output #0, mp4, to 'output.mp4':
     Metadata:
       major_brand     : dash
       minor_version   : 0
       compatible_brands: iso6avc1mp41
       creation_time   : 2014-01-19 22:43:21
       encoder         : Lavf53.21.1
       Stream #0.0(und): Video: ![0][0][0] / 0x0021, yuv420p, 640x480, q=2-31, 90k tbn, 90k tbc
       Metadata:
         creation_time   : 2014-01-19 22:43:21
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press ctrl-c to stop encoding
    frame=    0 fps=  0 q=-1.0 Lsize=       0kB time=10000000000.00 bitrate=   0.0kbits/s    
    video:0kB audio:0kB global headers:0kB muxing overhead inf%
  • cannot get screenshot from ffmpeg, but the url is work for vlc

    6 septembre 2021, par littlefish

    I am a newbie on FFmpeg, and it is a very powerful tool.
    
I am trying to do a snapshot every 30 seconds from the RTSP stream video, therefore I find a
public RTSP URL for testing.

    


    Here is the RTSP URL I try : rtsp://demo:demo@ipvmdemo.dyndns.org:5541/onvif-media/media.amp?profile=profile_1_h264&sessiontimeout=60&streamtype=unicast - [a]

    


    However, I can get the screen by using the VLC player.

    


    VLC player image

    


    But I try to do it on FFmpeg. It fails.&#xA;Do I do something wrong or anything I misunderstand ? ><
    &#xA;below is FFmpeg code. all are fail and get error.

    &#xA;

    ffmpeg -rtsp_transport tcp -y -i "rtsp://demo:demo@ipvmdemo.dyndns.org:5541/onvif-media/media.amp" -frames:v 1 test.jpg&#xA;&#xA;# try remove `rtsp_transport`&#xA;ffmpeg -y -i "rtsp://demo:demo@ipvmdemo.dyndns.org:5541/onvif-media/media.amp" -frames:v 1 test.jpg&#xA;

    &#xA;

    FFmpeg error

    &#xA;

    &#xA;

    p.s. my computer is windows. but I get the same error on ubuntu.

    &#xA;

    [a] - https://ipvm.com/forums/video-surveillance/topics/need-rtsp-url-to-test-with
    &#xA;this URL can be found from here.

    &#xA;