Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (25)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • 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

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (4505)

  • FFMPEG - the video is out of sync with the audio

    5 août 2020, par mitsuki

    I tried to covert ISO file to m3u8, but the video is out of sync with the audio.

    


    I guess this is one of the reason.
First VOB file has only audio.
From second VOB file, there are audio and video.
When I play the m3u8, audio from first VOB and video from second VOB will start.
That's why probably the video is out of sync with audio.

    


    How do I skip First VOB file which has only audio.

    


    By the way, I am using this script.
I am looking forward to your advice.

    


    docker run —rm -it
    
-v $(pwd)/input :/config
    
jrottenberg/ffmpeg
    
-hide_banner
    
-y -i /config/input545.iso
    
-vf scale=w=640:h=360:force_original_aspect_ratio=decrease
    
-c:a aac
    
-ar 48000
    
-c:v h264
    
-profile:v main
    
-crf 20
    
-sc_threshold 0
    
-g 48 -keyint_min 48
    
-hls_time 6
    
-hls_playlist_type vod
    
-b:v 800k
    
-maxrate 856k
    
-bufsize 1200k
    
-b:a 96k
    
-max_muxing_queue_size 5000
    
-analyzeduration 60M
    
-probesize 60M
    
-max_interleave_delta 0
    
-hls_segment_filename /config/360p_%03d.ts /config/360p.m3u8

    


    Thank you.

    


  • Linux - ffmpeg 3.4.6 vs. 4.2.1 - bash script with Tee (record & stream) runs in older version just fine - what needs to change for new version ?

    22 juillet 2020, par pomptondrive

    Thanks for reading my post. I have a bash script that I tested and it ran just fine ; although I was putting the script into identical hardware as the test computer, I forgot that the target computer would have a newer version of ffmpeg. It should be simple. I'm splitting the signal, recording, and streaming via UDP. Here's the script, that runs just fine with ffmpeg 3.4.6 :

    


    ffmpeg -f v4l2 -i /dev/video0 -t 00:30:00 -vf "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf:text='%{localtime\:%T}':x=20:y=20:fontcolor=white" \
-profile:v high -pix_fmt yuvj420p -level:v 4.1 -preset ultrafast -tune \
zerolatency -vcodec libx264 -r 15 -b:v 512k -s 960x720 -f mpegts -flush_packets 0 \
-f tee -map 0:v "/media/dkm/video_usb/videos/video_$(date +%Y-%m-%d_%H.%M.%S).mkv|[f=mpegts]udp://192.168.0.19:5000?pkt_size=1316"


    


    I could try to downgrade, but that doesn't seem right, since that computer is running Linux Mint 19.2 and the original test computer was Ubuntu 18.4 LTS. Is there something basic that I need to change for v. 4.2.1 ?

    


    I'm hoping that this is a quick fix, since it runs in the old version, but I've learned not to get my hopes up for such things. Any help would be appreciated. I've perused the documentation, but I wasn't able to see anything salient. Thanks in advance !

    


  • ffmpeg : adding an audio file to a video at specified delays

    15 juillet 2020, par JarsOfJam-Scheduler

    I have an array that may contain multiple occurrences of these terms : 'video, forest'. An audio file is added to the video file when the current element of this array I iterate is 'forest'. Otherwise, not. 'video and forest' elements will increment (of 5 seconds) the delay at which an audio file will be added. Example : the array contains "video, video, forest, video, forest". The first audio file will be added at delay=15000ms. The last one, at 25000ms. Computation details : 0 (initialization) + 5000 (video) + 5000 (video) + 5000 (forest) + 5000 (video) + 5000 (forest). 5000 + 5000 + 5000 = 15000. 5000*5 = 25000.

    


    I use ffmpeg to implement this program. The problem is that only one audio file is added, at the beginning of my video file. So the delays are not actually taken into account I think.

    


    Note that the video file also contains a music. The audio files that I try to add must be present in the video file in addition to this music. The first line of the following code adds the music to the video. The next lines try to add the audio files at good delays.

    


    subprocess.call(
    ['C:/Users/XYZ/Downloads/ffmpeg/bin/ffmpeg.exe', '-i', 'XYZ/my_XYZ_video.webm', '-stream_loop', '-1', '-i', 'tmp_music/original_music.wav',
     '-c:v', 'copy', '-shortest', '-fflags', '+shortest', '-max_interleave_delta', '100M',
     'XYZ/my_XYZ_video_with_music.webm']
    , cwd='C:/Users/XYZ/Desktop/XYZ/')

chosen_songs = ['video', 'forest', 'forest', 'video']

time_for_ffmpeg = 0
for chosen_song in chosen_songs:
    if chosen_song == 'video':
        print('video')
        print(time_for_ffmpeg)
        time_for_ffmpeg += 2000    

    elif chosen_song == 'forest':
        print('forest')
        print(time_for_ffmpeg)
        subprocess.call(
            ['C:/Users/XYZ/Downloads/ffmpeg/bin/ffmpeg.exe', '-i', 'XYZ/my_XYZ_video_with_music.webm', '-i', 'tmp_music/forest.mp3',
             '-filter_complex',
             '[1]adelay=' + str(time_for_ffmpeg) + '|' + str(time_for_ffmpeg) + '[a1];[0][a1]amix', '-c:v', 'copy',
             'XYZ/my_XYZ_video_with_music_with_songs.webm']
            , cwd='C:/Users/XYZ/Desktop/XYZ/')
        time_for_ffmpeg += 5000
    


    


    My question

    


    Why can't I add the audio files corresponding to the forest the specified delays (implemented by the variable time_for_ffmpeg`) ? How could I fix my code ?