
Recherche avancée
Autres articles (48)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
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 -
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 (...)
Sur d’autres sites (11010)
-
The -t option of ffplay won't stop playback
27 avril 2015, par bleahyJust getting started with ffmpeg and ffplay. I do this :
ffplay -t 5 somesong.mp3
and it gets to about 5 seconds and then just starts making a clicking noise ?I’m using the latest version I just downloaded from their site.
(Windows 7 64-bit)
-
trying to play corrupted mpeg-ts video using android video view
20 avril 2015, par asafbi am having issue playing partial content of mepg-ts files
the video files cannot be changed / reformatted / remuxed etc
server setup :
contains mpeg-ts video files with h264/acc
has script that when requested using parameters returns on of the videos "cut"
according to parameters-player :
(i have no problem playing the full videos "uncut")
i am trying to play this using android videoview,
during researching i have found that vlc is the only player able to play the "cut" videos (aka windows mediaplayer, google exoplayer and chrome html5 video player are unable to play)
running vlc at debug mode revealed error when playing cut video :
ts error : MPEG-4 descriptor not found
remuxing the partial content using ffmepg fixes the videosolutions tried till now :
1.tried remuxing on the fly using android MediaExtractor and MediaMuxer - but then found out that its not possiable doing that on the fly and anyway that MediaExtractor is unable to open "cut" video
2.tried getting the first 10K of the full video and then append them to the rest of the "cut" video - the behvior stays the same (vlc able to play while rest wont)video files info :
General
Count : 278
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
ID : 55427
ID : 55427 (0xD883)
Count of video streams : 1
Count of audio streams : 1
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Audio_Format_List : AAC
Audio_Format_WithHint_List : AAC
Audio codecs : AAC LC
Complete name : 20150416-12.mpg
File name : 20150416-12
File extension : mpg
Format : MPEG-TS
Format : MPEG-TS
Format/Extensions usually used : ts m2t m2s m4t m4s ts tp trp
Commercial name : MPEG-TS
Internet media type : video/MP2T
Codec : MPEG-TS
Codec : MPEG-TS
Codec/Extensions usually used : ts m2t m2s m4t m4s ts tp trp
File size : 338329600
File size : 323 MiB
File size : 323 MiB
File size : 323 MiB
File size : 323 MiB
File size : 322.7 MiB
Duration : 27322.311111
Duration : 27s 322ms
Duration : 27s 322ms
Duration : 27s 322ms
Duration : 00:00:27.322
Overall bit rate : 1567617
Overall bit rate : 1 568 Kbps
Delay : 5542662.322222
Delay : 1h 32mn
Delay : 1h 32mn 22s 662ms
Delay : 1h 32mn
Delay : 01:32:22.662
File last modification date : UTC 2015-04-16 09:29:29
File last modification date (local) : 2015-04-16 12:29:29Video
Count : 205
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
ID : 68
ID : 68 (0x44)
Menu ID : 1
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : Baseline@L3.0
Format settings : 3 Ref Frames
Format settings, CABAC : No
Format settings, CABAC : No
Format settings, ReFrames : 3
Format settings, ReFrames : 3 frames
Format settings, GOP : M=1, N=25
Internet media type : video/H264
Codec ID : 27
Codec : AVC
Codec : AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec/Url : http://developers.videolan.org/x264.html
Codec profile : Baseline@L3.0
Codec settings : 3 Ref Frames
Codec settings, CABAC : No
Codec_Settings_RefFrames : 3
Duration : 4100
Duration : 4s 100ms
Duration : 4s 100ms
Duration : 4s 100ms
Duration : 00:00:04.100
Nominal bit rate : 1300000
Nominal bit rate : 1 300 Kbps
Width : 704
Width : 704 pixels
Height : 576
Height : 576 pixels
Pixel aspect ratio : 1.455
Display aspect ratio : 1.778
Display aspect ratio : 16:9
Frame rate : 25.000
Frame rate : 25.000 fps
Frame count : 102
Standard : PAL
Resolution : 8
Resolution : 8 bits
Colorimetry : 4:2:0
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Interlacement : PPF
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.128
Writing library : x264 - core 115
Writing library : x264 core 115
Writing library/Name : x264
Writing library/Version : core 115
Encoding settings : cabac=0 / ref=3 / deblock=1:0:0 / analyse=0x1:0x11 / me=dia / subme=1 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=25 / keyint_min=2 / scenecut=40 / intra_refresh=0 / rc_lookahead=5 / rc=cbr / mbtree=1 / bitrate=1300 / ratetol=10.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=1300 / vbv_bufsize=2000 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00Audio
Count : 173
Count of stream of this kind : 1
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 0
ID : 69
ID : 69 (0x45)
Menu ID : 1
Menu ID : 1 (0x1)
Format : AAC
Format/Info : Advanced Audio Codec
Commercial name : AAC
Format version : Version 4
Format profile : LC
Muxing mode : ADTS
Codec ID : 15
Codec : AAC LC
Codec : AAC LC
Duration : 27322
Duration : 27s 322ms
Duration : 27s 322ms
Duration : 27s 322ms
Duration : 00:00:27.322
Bit rate mode : VBR / VBR
Bit rate mode : Variable / Variable
Minimum bit rate : 99375
Minimum bit rate : 99.4 Kbps
Maximum bit rate : 159750
Maximum bit rate : 160 Kbps
Channel(s) : 2
Channel(s) : 2 channels
Channel positions : Front : L R
Channel positions : 2/0/0
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 1311456
Compression mode : Lossy
Compression mode : Lossyi prefer finding solution without the need of NDK
anyone has an idea how to tackle this issue ?
Thanks -
FFMPEG Decoding - Memory Leak
1er mai 2013, par SpamdarkDeveloping an application for a test, I encountered an error. Meanwhile the packets were proccessed, I got a very horrible problem, a memory leak.
The av_free_packet is applied correctly, I think (See the code). When I run the app, the memory grows up to 500MB meanwhile it's playing the audio file, that's not normal. VLC or WMplayer (Windows Media Player) just wastes 30/20mb reading that file.
Here is the code :
static AVPacket pkt;
static uint8_t *audio_pkt_data = NULL;
static int audio_pkt_size = 0;
static AVFrame frame;
static bool first_time = true;
if(first_time){
first_time=false;
}
int len1, data_size = 0;
for(;;){
bool do_rt = false;
while(audio_pkt_size > 0){
int obt_frame = 0;
len1 = avcodec_decode_audio4(_audio_ccontext,&frame,&obt_frame,&pkt);
if(len1 < 0){
audio_pkt_size = 0;
break;
}
audio_pkt_data+=len1;
audio_pkt_size-=len1;
if(obt_frame){
data_size = av_samples_get_buffer_size(NULL,channel_count,sample_fr,_audio_ccontext->sample_fmt,1);
memcpy((int16_t*)audio_buf,frame.data[0],data_size);
}
if(data_size <= 0){
continue;
}
do_rt = true;
}
if(pkt.data){
//MessageBox(0,"hi","Hi",MB_OK); // This is only for test if the app si reaching this av_free_packet
av_free_packet(&pkt);
}
if(do_rt){
return data_size;
}
// Try to get a new packet
if(!audio_packets.empty()){
WaitForSingleObject(Queue_Audio_Mutex,INFINITE);
pkt = *audio_packets.front();
audio_packets.pop();
ReleaseMutex(Queue_Audio_Mutex);
audio_pkt_size = pkt.size;
audio_pkt_data = pkt.data;
}else{
return -1;
}
}
return 0;
}I would appreciate your help. Thank you very much.