
Recherche avancée
Autres articles (54)
-
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 ;
-
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (13246)
-
Revision 49619 : Pouvoir modifier le nom d’une saisie ou son type SQL : les modifications ...
14 juillet 2011, par marcimat@… — LogPouvoir modifier le nom d’une saisie ou son type SQL : les modifications sont bien prises en compte
-
FFMPEG and MSA1 Codec Issues when Converting WMV to MP4 Video
30 décembre 2023, par user136819I have a WMV video file (around 60 MB size, 01:23:00 length) and I'm running a Windows Server 2016 64-bit machine for testing.

As far as I know, this video file was recorded using Microsoft Live Meeting 2007 back in April 2010 and there is also an associated audio file (which I'm able to play).

I tried to play the video file on my machine using VLC player (latest update), however, I always see this weird MSA1 codec error :




So I tried to resolve this problem by downloading and installing the Combined-Community-Codec-Pack-64bit-2015-10-18, and using its MPC-HC 64-bit player to play the video...
I still couldn't get it to play ! Here are the logs shown by the MPC player :




WM ASF Reader::Raw Video 0

Media Type 0:
--------------------------
Video: MSA1 1440x900 5fps 164kbps

AM_MEDIA_TYPE: 
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {3141534D-0000-0010-8000-00AA00389B71}
formattype: FORMAT_VideoInfo {05589F80-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 0
bTemporalCompression: 1
lSampleSize: 0
cbFormat: 88

VIDEOINFOHEADER:
rcSource: (0,0)-(1440,900)
rcTarget: (0,0)-(1440,900)
dwBitRate: 164794
dwBitErrorRate: 0
AvgTimePerFrame: 2000000

BITMAPINFOHEADER:
biSize: 40
biWidth: 1440
biHeight: 900
biPlanes: 1
biBitCount: 16
biCompression: MSA1
biSizeImage: 66101
biXPelsPerMeter: 0
biYPelsPerMeter: 0
biClrUsed: 0
biClrImportant: 0

pbFormat:
0000: 00 00 00 00 00 00 00 00 a0 05 00 00 84 03 00 00 ........ ...„...
0010: 00 00 00 00 00 00 00 00 a0 05 00 00 84 03 00 00 ........ ...„...
0020: ba 83 02 00 00 00 00 00 80 84 1e 00 00 00 00 00 ºƒ......€„......
0030: 28 00 00 00 a0 05 00 00 84 03 00 00 01 00 10 00 (... ...„.......
0040: 4d 53 41 31 35 02 01 00 00 00 00 00 00 00 00 00 MSA15...........
0050: 00 00 00 00 00 00 00 00 ........



Since that didn't work, I tried installing the Microsoft MPEG-4 V1/2/3 VKI Codec for ASF files and still couldn't get the players to play the video and saw the same errors as above !


As a final attempt, I tried to convert this video to MP4 format using FFMPEG (version from 2020). Even this failed. Here are the logs :


D:\ffmpeg-20200403-52523b6-win64-static\bin>ffmpeg.exe -i input-video.wmv -c:v copy -c:a aac -q:a 100 output.mp4
ffmpeg version git-2020-04-03-52523b6 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200328
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 42.102 / 56. 42.102
 libavcodec 58. 77.101 / 58. 77.101
 libavformat 58. 42.100 / 58. 42.100
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 77.101 / 7. 77.101
 libswscale 5. 6.101 / 5. 6.101
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
[msa1 @ 000002505bb847c0] Image dimensions should be a multiple of 16.
[asf @ 000002505bb4b600] Failed to open codec in avformat_find_stream_info
[msa1 @ 000002505bb847c0] Image dimensions should be a multiple of 16.
Input #0, asf, from 'input-video.wmv':
 Metadata:
 WMFSDKNeeded : 0.0.0.0000
 WMFSDKVersion : 10.00.00.4072
 IsVBR : 0
 Duration: 01:22:49.28, start: 0.000000, bitrate: 96 kb/s
 Stream #0:0(ger): Video: msa1 (MSA1 / 0x3141534D), none, 1440x900, 164 kb/s, 5 tbr, 1k tbn, 1k tbc
[mp4 @ 000002505bb4ce40] Could not find tag for codec msa1 in stream #0, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Last message repeated 1 times

D:\ffmpeg-20200403-52523b6-win64-static\bin>



I wish to know, is there any other way I can convert this video to a more modern format so that I can play it on a modern machine and modern video player ?

What other codecs am I missing here ? (if so, where can I get them ?)

FYI, as mentioned earlier at the top, I'm only able to play the associated audio file...

I'm fairly new to all this stuff, so any help is appreciated.


Thanks in advance ! :)


-
Wav File encoded with FFMPEG has issues with codecs while playing using VLC Player
24 mai 2022, par user924702I want to convert raw PCM data(Taken from Android Phone mic) into a libGSM Wave file. After encoding into file, VLC player shows right codec information and duration but unable to play contents. Please help me to find what I am doing wrong.



Below is my code for encoding and header writing :



void EncodeTest(uint8_t *audioData, size_t audioSize)
{
 AVCodecContext *audioCodec;
 AVCodec *codec;
 uint8_t *buf; int bufSize, frameBytes;
 __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG,"Lets encode :%u with size %d\n",(int)audioData, (int)audioSize);
 //Set up audio encoder
 codec = avcodec_find_encoder(CODEC_ID_GSM);
 if (codec == NULL){
 __android_log_print(ANDROID_LOG_ERROR, DEBUG_TAG,"ERROR:: Unable to find encoder(CODEC_ID_GSM)");
 codec = avcodec_find_encoder(CODEC_ID_GSM);
 if (codec == NULL){
 __android_log_print(ANDROID_LOG_ERROR, DEBUG_TAG,"ERROR:: Unable to find encoder(CODEC_ID_GSM)");
 return;
 }
 }
 audioCodec = avcodec_alloc_context();
 audioCodec->channels = 1;
 audioCodec->sample_rate = 8000;
 audioCodec->sample_fmt = SAMPLE_FMT_S16;
 audioCodec->bit_rate = 13200;
 audioCodec->priv_data = gsm_create();

 switch(audioCodec->codec_id) {
 case CODEC_ID_GSM:
 audioCodec->frame_size = GSM_FRAME_SIZE;
 audioCodec->block_align = GSM_BLOCK_SIZE;
 int one = 1;
 gsm_option(audioCodec->priv_data, GSM_OPT_WAV49, &one);
 break;
 case CODEC_ID_GSM_MS: {
 int one = 1;
 gsm_option(audioCodec->priv_data, GSM_OPT_WAV49, &one);
 audioCodec->frame_size = 2*GSM_FRAME_SIZE;
 audioCodec->block_align = GSM_MS_BLOCK_SIZE;
 }
 }
 audioCodec->coded_frame= avcodec_alloc_frame();
 audioCodec->coded_frame->key_frame= 1;
 audioCodec->time_base = (AVRational){1, audioCodec->sample_rate};
 audioCodec->codec_type = CODEC_TYPE_AUDIO;

 if (avcodec_open(audioCodec, codec) < 0){
 __android_log_print(ANDROID_LOG_ERROR, DEBUG_TAG,"ERROR:: Unable to avcodec_open");
 return;
 }

 bufSize = FF_MIN_BUFFER_SIZE * 10;
 buf = (uint8_t *)malloc(bufSize);
 if (buf == NULL) return;
 frameBytes = audioCodec->frame_size * audioCodec->channels * 2;
 FILE *fileWrite = fopen(FILE_NAME,"w+b");
 if(NULL == fileWrite){
 __android_log_print(ANDROID_LOG_ERROR, DEBUG_TAG,"ERROR:: Unable to open file for reading.");
 }
 /*Write wave header*/
 WriteWav(fileWrite, 32505);/*Just for test*/

 /*Lets encode raw packet and write into file after header.*/
 __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG,"Lets Encode Actual Bytes");
 int nChunckSize = 0;
 while (audioSize >= frameBytes)
 {
 int packetSize;

 packetSize = avcodec_encode_audio(audioCodec, buf, bufSize, (short *)audioData);
 __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG,"Encoder returned %d bytes of data\n", packetSize);
 nChunckSize += packetSize;
 audioData += frameBytes;
 audioSize -= frameBytes;
 if(NULL != fileWrite){
 fwrite(buf, packetSize, 1, fileWrite);
 }
 else{
 __android_log_print(ANDROID_LOG_ERROR, DEBUG_TAG,"Unable to open file for writting... NULL");
 }
 }
 if(NULL != fileWrite){
 fclose(fileWrite);
 }
 __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG,"----- Done with nChunckSize: %d --- ",nChunckSize);
 __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG,"*****************************");
 wavReadnDisplayHeader(FILE_NAME);
 __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG,"*****************************");
 wavReadnDisplayHeader("/sdcard/Voicemail2.wav");
}




Header Writing :



/** Writes WAV headers */
void WriteWav(FILE *f, long int bytes)
{
 /* quick and dirty */
 fwrite("RIFF",sizeof(char),4,f); /* 0-3 */ //RIFF
 PutNum(bytes+44-8,f,1,4); /* 4-7 */ //ChunkSize
 fwrite("WAVEfmt ",sizeof(char),8,f); /* 8-15 */ //WAVE Header + FMT header
 PutNum(16,f,1,4); /* 16-19 */ //Size of the fmt chunk
 PutNum(49,f,1,2); /* 20-21 */ //Audio format, 49=libgsm wave, 1=PCM,6=mulaw,7=alaw, 257=IBM Mu-Law, 258=IBM A-Law, 259=ADPCM
 PutNum(1,f,1,2); /* 22-23 */ //Number of channels 1=Mono 2=Sterio
 PutNum(8000,f,1,4); /* 24-27 */ //Sampling Frequency in Hz 
 PutNum(2*8000,f,1,4); /* 28-31 */ //bytes per second /Sample/persec
 PutNum(2,f,1,2); /* 32-33 */ // 2=16-bit mono, 4=16-bit stereo 
 PutNum(16,f,1,2); /* 34-35 */ // Number of bits per sample
 fwrite("data",sizeof(char),4,f); /* 36-39 */ 
 PutNum(bytes,f,1,4); /* 40-43 */ //Sampled data length 
}




Please help....