
Advanced search
Medias (1)
-
The Great Big Beautiful Tomorrow
28 October 2011, by
Updated: October 2011
Language: English
Type: Text
Other articles (62)
-
Publier sur MédiaSpip
13 June 2013Puis-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 -
Soumettre améliorations et plugins supplémentaires
10 April 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Les formats acceptés
28 January 2010, byLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
On other websites (9629)
-
Using ffmpeg to build a streaming server to stream static media files (broadcast behaviour)
15 February 2018, by MiDaaI’ve read some online articles and SO questions, most of them are about streaming MY video to SERVER like youtube or switch.
This is about a project of interest, here are what it should do.
- Work on a Linux server
- Serve media(preferably multiple format like mp4 mkv) files to client through rtp protocol maybe?
- Server could set a specific time to start the streaming or end it
- Server could pause and resume the streaming(?)
- Multiple clients connect and play the stream at same time(sounds like a basic feature)
After some research, I found that ffmpeg is a great open-source candidate for such a project but as a newbie in this area, I’m having a tough time understanding how this whole thing work.
As this(ffmpeg doc) states, it looks like just a one liner command. But I don’t find anything fit my feature listed above.
Can ffmpeg be used to achieve those? If not appriciate any suggesstion on where I should be looking at.
EDIT:
- Target devices: iPad,iPhone, Android phones should be able to watch the stream using a web browser(assume a modern browser)
-
How do I convert a .wav file to 16bit 44.1kz using ffmpeg or other utility [closed]
26 May 2023, by Seth EdwardsA preface:
I am building an environment for a my own streaming box. Since building the UI. I turned to the now obsolete MSNTV box to find its UI sound effects.


I found the dump on GitHub. I downloaded and located where the sounds where located.


I listened to them one by one. I noticed that they are wave files. But they sound like they were low quality and may have been compressed before being turned into a wave file.


I was using the Apple Files app on an iPhone 6s running iOS 15.7.1.


They play back fine.


I try importing them into GarageBand for iOS and it gives me an error saying that it only allows 16bit 44.1khz files. This confirmed my suspicion of it being low quality.


I then tried playing them on a Dell Chromebook 3100 running ChromeOS. Chrome’s player would also not play the files.


I need to find out how to convert them to 16bit 44.1khz wave files.


My guess is that since the MSNTV had a small amount of storage space that they compressed the audio.


I tried converting the files to mp3. And they are Noticeably worse.


Does anyone know how to convert these files so they can be played back normally.


In the end I plan to use these files and play them using the pygame library.


I have tried changing the metadata


Converting to mp3


-
ffmpeg concat demuxer dropping audio after first clip
6 September 2020, by marcmanI'm trying to concatenate a video collection that all should be the same type and format. It seems to work like expected when the original sources are the same type, but when they're different types the demuxer drops audio. I understand that the demux requires all inputs to have the same codecs, but I believe I am doing that already.


This is my workflow (pseudocode with Python-like for loop):


for i, video in enumerate(all_videos):
 # Call command for transcoding and filtering
 # I allow this command to be called on mp4, mov, and avi files
 # The point of this filter is:
 # (1) to superimpose a timestamp on the bottom right of the video
 # (2) to scale and pad the videos to a common output resolution (the specific numbers below are just copied from a video I ran, but they are filled in automatically for each given video by the rest of my script)
 # (3) To transcode all videos to the same common format
 ffmpeg \
 -y \
 -loglevel quiet \
 -stats \
 -i video_<i>.{mp4, mov, avi} \
 -vcodec libx264 \
 -acodec aac \
 -vf "scale=607:1080, pad=width=1920:height=1080:x=656:y=0:color=black, drawtext=expansion=strftime: basetime=$(date +%s -d'2020-08-27 16:42:26')000000 : fontcolor=white : text='%^b %d, %Y%n%l\\:%M%p' : fontsize=36 : y=1080-4*lh : x=1263-text_w-2*max_glyph_w" \
 tmpdir/video_<i>.mp4


# create file_list.txt, e.g.
#
# file '/abspath/to/tmpdir/video_1.mp4'
# file '/abspath/to/tmpdir/video_2.mp4'
# file '/abspath/to/tmpdir/video_3.mp4'
# ...


ffmpeg \
 -f concat \
 -safe 0 \
 -i file_list.txt \
 -c copy \
 all_videos.mp4
</i></i>


In my test case, my inputs are 3 videos in this order:


- 

- a camcorder video output in H.264+aac in a mp4
- an iphone video in mov format
- an iphone video in mp4 format








When I review each of the intermediate mp4-transcoded videos in
tmpdir
they all playback audio and video just fine and the filtering works as expected. However, when I review the final concatenated output, only the first clip (the camcorder video) has sound. When all the videos are from the camcorder, there is no audio issue—they all have sound.

When I output ffmpeg warnings and errors, the only thing that shows up is an expected warning about the timestamp:


[mp4 @ 0x55997ce85300] Non-monotonous DTS in output stream 0:1; previous: 5909504, current: 5430298; changing to 5909505. This may result in incorrect timestamps in the output file.
[mp4 @ 0x55997ce85300] Non-monotonous DTS in output stream 0:1; previous: 5909505, current: 5431322; changing to 5909506. This may result in incorrect timestamps in the output file.
[mp4 @ 0x55997ce85300] Non-monotonous DTS in output stream 0:1; previous: 5909506, current: 5432346; changing to 5909507. This may result in incorrect timestamps in the output file.
[mp4 @ 0x55997ce85300] Non-monotonous DTS in output stream 0:1; previous: 5909507, current: 5433370; changing to 5909508. This may result in incorrect timestamps in the output file.
...



What might I be doing wrong here? I'm testing in both the Ubuntu 20.04 "Videos" applications as well as VLC Player and both demonstrate the same problem. I'd prefer to use the demuxer if possible for speed as re-encoding during concatenation is quite expensive.


NOTE: This is a different issue than laid out here, in which some of the videos had no audio. In my case, all videos have both video and audio.