
Recherche avancée
Autres articles (64)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 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
Sur d’autres sites (12784)
-
How do I live transcode a wmv file for playback in html5 player ?
14 octobre 2018, par stevenI’ve been working at this for quite awhile and still haven’t found a solution that works. I need a way to live convert (transcode) a .wmv file for playback in a html5 web player.
I have a linux server (Apache) setup to stream video files through an html5 web player (Video.js) designed for Chrome and Firefox browsers. The file types I am dealing with are .mp4 (H.264), .mkv, and .wmv. The good news for me is that I can deal with mp4 and mkv natively, however I can’t play wmv. Also, I have to deal with a lot of files, change periodically, and can be quite large.
After doing a lot of research and reading many times how you can’t stream wmv directly, I came to the realization that I had two options. Either convert the file to a supported format or live transcode a file for use in the web player. Due to the amount of files and their size (and periodically changing) converting the file is simply not feasible. So I am stuck with live streaming/transcoding. I figured ffmpeg would be the way to go, but I have yet to figure out how to get ffmpeg to live stream into the html5 player.
So how do I take an existing .wmv file and live stream it in an html5 player ?
The things I’ve tried so far :
Tried creating a m3u8 playlist and hoping it would magically work.
ffmpeg -i "hello.wmv" -s 640x480 -c:v libx264 -f ssegment -hls_flags delete_segments -segment_list playlist.m3u8 -segment_list_type hls -segment_list_size 10 -segment_list_flags +live -segment_time 10 out_%6d.ts
Simply copying to mp4 and streaming while ffmpeg still progressing. Obviously didn’t work.
ffmpeg -i "hello.wmv" -vcodec copy video.mp4
Converting to webm format and streaming webm while ffmpeg still progressing. This actually did show the video for a few seconds in the html player :
ffmpeg -i "hello.wmv" -codec:a libvorbis -codec:v libvpx -b:a 128k -b:v 1200k video.webm
Ffmpeg is not required to be used (was thinking of vlc as well), the html5 player is required. Completely converting then streaming isn’t a viable option because file sizes can be too large and change periodically. What command/program can I use to stream the file for playback in the html player ?
-
How do I run FFmpeg functions like avformat_version() or avformat_configuration() in a simple C project ? 0x000007b error
19 juillet 2023, par Alan ThomsonI have compiled FFmpeg with shared libraries and linked it to my C project via CMake. Everything seems fine as I can run
av_version_info();
in my C code and print the output with no issue. However, once I start using other simple commands likeavformat_version();
oravformat_configuration();
, my program crashes with no debugging output.

What could be causing this ? I am on Windows and using Qt Creator as my IDE by the way.


Here's main.c :


#include 

#include <libavutil></libavutil>avutil.h>
#include <libavformat></libavformat>avformat.h>
#include <libavutil></libavutil>avassert.h>

int main()
{
 const char* info1 = av_version_info();
 const int info2 = avformat_version();
 const char* info3 = avformat_configuration();
 printf(info1);
 printf("%d", info2);
 printf(info3);

 return 0;
}



Here's my CMakeLists.txt :


cmake_minimum_required(VERSION 3.5)

project(PlainCApp LANGUAGES C)

add_executable(PlainCApp main.c)

target_include_directories(PlainCApp
 PUBLIC
 C:/FFmpeg
)

target_link_libraries(PlainCApp
 PUBLIC
 C:/FFmpeg/libavformat/avformat.lib
 C:/FFmpeg/libavcodec/avcodec.lib
 C:/FFmpeg/libavutil/avutil.lib
 C:/FFmpeg/libswscale/swscale.lib
 C:/FFmpeg/libswresample/swresample.lib
# C:/FFmpeg/libavdevice/avdevice.lib
# C:/FFmpeg/libavfilter/avfilter.lib
# C:/FFmpeg/libpostproc/postproc.lib
)

install(TARGETS PlainCApp
 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)



I tried looking into FFmpeg source to understand what could be causing this discrepancy. I also tried recompiling FFmpeg and downloading a newer version. None of this helped. The program still crashed :




However, good news is, it compiles with gcc inside MinGW just fine :

gcc main.c -o main -I C:/FFmpeg -L C:/FFmpeg/libavutil -lavutil -L C:/FFmpeg/libavformat -lavformat
outputs as expected.

-
how to choose ffmpeg video mp3 audio version id ?
7 juin 2013, par UlteriorI am having issues on ffmpeg encoded video files audio tracks. My encoded video contains ID for audio track as extracted from mediainfo :
I use CODEC_ID_MP3 in guess_format "mov" container for quicktime
Audio
ID : 2
Format : MPEG Audio
Format version : Version 2
Format profile : Layer 3
Codec ID : .mp3
Duration : 2s 916ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 1 channel
Sampling rate : 16.0 KHz
Compression mode : Lossy
Stream size : 45.3 KiB (2%)
Language : EnglishThis is not recognized on a vanilla codecless installation of windows 7, only played by k-lite codec libmad
I have noticed, that another test file contains similar mp3 track and is played by media player OK :
Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Mode extension : MS Stereo
Codec ID : 6B
Duration : 1mn 9s
Bit rate mode : Constant
Bit rate : 320 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 2.67 MiB (38%)
Writing library : LAME3.98The difference I noticed is in Format version number and Codec ID, which is Version 2 from ffmpeg output - I couldnt locate this version setting in ffmpeg source files, so my question is - is there a way to influence this format version identificator and set the codec id as in above playable video ?