
Recherche avancée
Médias (16)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (59)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (8611)
-
Pydub AudioSegment.from_file() fails for mp3 audio file : Decoding failed. ffmpeg returned error code : 1,
27 mars 2021, par Nisuga JayawardanaCouldn't find any fix. Looks like a bug. How to fix this ?


# Grab the file from the request
 file_uploaded = request.FILES.get('sourceFile')
 file_path = uploads_base_path + file_uploaded.name
 
 # saving the uploaded file
 open(file_path, 'wb')

 extension = file_uploaded.name.split('.')[-1]
 with open(file_path, "rb") as wav_file:
 audio_segment = AudioSegment.from_file(wav_file, format=extension) <-------------Error

 # create .wav filename for the file
 wavFileName = uploads_base_path + 'out.wav'
 print(wavFileName)

 # convert audio file to .wav type
 audio_segment.export(wavFileName,"wav")



// Pydub Error

Decoding failed. ffmpeg returned error code : 1

Output from ffmpeg/avlib :

ffmpeg version N-101739-gcad3a5d715 Copyright (c) 2000-2021 the FFmpeg developers

built with gcc 9.3-win32 (GCC) 20200320

// FFMPEG Error

[cache @ 000001c52157fdc0] Inner protocol failed to seekback end : -40

Last message repeated 1 times

[mp3 @ 000001c52157f400] Failed to read frame size : Could not seek to 1026.

[cache @ 000001c52157fdc0] Statistics, cache hits:0 cache misses:0

cache:pipe:0 : Invalid argument

-
How to generate a video by looping an image and then concat with another very long video without re-encoding using ffmpeg ?
23 mars 2021, par Linghao ChenI have an image and a very long video (1.5h).
Now I want to generate a heading video about 5 seconds by looping the image, and then concatenate it with the long video. Since the video is long, I don't want to re-encode the videos.
I have tried to generate the heading video using


ffmpeg -loop 1 -i image.png -c:v libx264 -t 5 -pix_fmt yuv420p head.mp4



and then


ffmpeg -f concat -i list.txt -c:v copy concat.mp4



where the list.txt contains


file head.mp4
file longvideo.mp4



I have tried these operations on two machines.
On one machine, the concatenated video has no audio. Moreover, it stucks at 5-10 seconds and directly jump to 11s.
On the other machine, the video and audio are not synchronized.


To provide more information, I have checked the codecs of the two videos by


ffprobe -v error -select_streams v:0 -show_entries stream=codec_name \
 -of default=noprint_wrappers=1:nokey=1 xxxxx.mp4



Both of them are h264.


My question is, how to generate it correctly with ffmpeg ? If it is hard using ffmpeg, is there any method to do it fast ? As far as I know, Adobe Premiere and Final Cut Pro do not export as fast as I expect because they re-encode the videos.


-
How to concat MTS videos and apply filters without re-encoding using FFmpeg ?
20 mars 2021, par KarpI have a txt file with many MTS video files. I want to merge them all together using FFmpeg and get one big MTS file. But I want to apply fade-in and fade-out to the final video. Can I do it without re-encoding ? Because re-encoding takes a lot of time, but I need to do it fast.


Edit


Here is the output when I run


ffmpeg -i C:/Users/aleks/Downloads/IMPORTANT/MTS_videos/my.MTS



Output :


Input #0, mpegts, from 'C:/Users/aleks/Downloads/IMPORTANT/MTS_videos/my.MTS':
 Duration: 00:00:08.51, start: 1.433367, bitrate: 5275 kb/s
 Program 1
 Metadata:
 service_name : Service01
 service_provider: FFmpeg
 Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080, 59.94 fps, 59.94 tbr, 90k tbn, 120k tbc



Edit 2


ok, I think I figured it out. The problem was in audio codec, I added
-c:a mp3
and it seems to be working. However now I have the second problem. I have 3 videos. I apply fade in to the first one, fade out to the third one and nothing to the second one. I get them from one video by slicing using this command 3 times

ffmpeg -i 'C:/Users/aleks/Downloads/video.MTS' -ss 20 -t 5 -c copy 'C:/Users/aleks/Downloads/third.MTS'



But when I run it my video is 2 seconds long (it must be 5 seconds long). Can you help me with fixing this problem.


PS. i have seen similar question and there was a suggestion to add
-async 1
. It didn't help. And moving-t 5
to the position before-i
didn't help as well.

Also if I delete
-c copy
everything works fine. But I need to keep it because I don't want to re-encode.