
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (69)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 (12166)
-
how play ogg/ape/wv/wma using ffmpeg
25 novembre 2013, par user2361120I'm trying decode ogg,ape,wma,wv file formats
I have posted the code below, but I'm having too much noise at the outputav_init_packet(&packet);
fmt_ctx = avformat_alloc_context();
if ((ret = avformat_open_input(&fmt_ctx, szfile, NULL, NULL)) < 0)
{
LOGE("Cannot open input file\n");
}
if ((ret = avformat_find_stream_info(fmt_ctx, NULL)) < 0)
{
LOGE("Cannot find stream information\n");
}
/* select the audio stream */
ret = av_find_best_stream(fmt_ctx, AVMEDIA_TYPE_AUDIO, -1, -1, &dec, 0);
if (ret < 0)
{
LOGE("Cannot find a audio stream in the input file\n");
}
audio_stream_index = ret;
dec_ctx = fmt_ctx->streams[audio_stream_index]->codec;
LOGE(" ogg code %d codec id%d\n",AV_CODEC_ID_VORBIS,dec_ctx->codec_id);
LOGE("avcodec_find_decoder\n");
dec = avcodec_find_decoder(dec_ctx->codec_id);
if (!dec) {
__android_log_print(ANDROID_LOG_INFO, "BroovPlayer", "avcodec_find_decoder failed %d Name:%s\n", dec_ctx->codec_id, dec_ctx->codec_name);
}
if ((ret = avcodec_open2(dec_ctx, dec, NULL)) < 0)
{
LOGE("Cannot open audio decoder\n");
}
//dec_ctx->sample_fmt = AV_SAMPLE_FMT_S16P;
LOGS("Stage 5 sample fmt %d",dec_ctx->sample_fmt);
LOGE("Stage 5");
LOGD("........%d", packet.size);
while (1)
{
if ((ret = av_read_frame(fmt_ctx, &packet)) < 0)
{
//LOGE("Stage........... %d",ret);
break;
}
if (packet.stream_index == audio_stream_index)
{
avcodec_get_frame_defaults(frame);
got_frame = 0;
// LOGE("file size=%d packet_index=%d",packet.size,packet.dts);
ret = avcodec_decode_audio4(dec_ctx, frame, &got_frame, &packet);
// LOGE("len=%d",ret);
if (ret < 0)
{
LOGE("Error decoding audio\n");
continue;
}
if (!got_frame) {
/* stop sending empty packets if the decoder is finished */
if (!packet.data && dec->capabilities & CODEC_CAP_DELAY)
//flush_complete = 1;
continue;
}
if (got_frame)
{
// LOGE("begin frame decode\n");
int data_size = av_samples_get_buffer_size(NULL, dec_ctx->channels,frame->nb_samples,dec_ctx->sample_fmt, 1);
// LOGE("after frame decode\n");
jbyte *bytes = (*env)->GetByteArrayElements(env, array, NULL);
memcpy(bytes, frame->data[0], data_size); //
(*env)->ReleaseByteArrayElements(env, array, bytes, 0);
(*env)->CallVoidMethod(env, obj,play, array, data_size);
}
packet.size -= ret;
packet.data += ret;
packet.pts = AV_NOPTS_VALUE;
}
}
av_free_packet(&packet);
when ,i am playing ogg/ape/wv audio file format .
please help me to minimize the noise, as less as possibleor if any other approach is there to decode these file formats then please let me know
thanks
-
Avplayer can not play streaming link from youtune on ios 7
12 septembre 2015, par thaitujimI have a problem. Im trying to play audio streamming from youtube response.
When i fecth youtube to get real Stream audio. And then i get real linkexample in this case is : "https://r6---sn-8qj-nbol.googlevideo.com/videoplayback?id=3c9bf82a23c991cb&itag=140&source=youtube&requiressl=yes&mv=m&ms=au&mm=31&gcr=vn&ratebypass=yes&mime=audio/mp4&gir=yes&clen=3662991&lmt=1394274529113749&dur=230.574&signature=232B6692726E12E9CFAEAC0C3990648710FCAE04.733EBD94E30ED230299CFA2E993577D656E18457&sver=3&fexp=907259,930666,932404,943909,947209,947215,948124,952302,952605,952901,953745,953913,957103,957105,957201&key=dg_yt0&upn=_bm8tftRoZM&mt=1415673491&ip= XXX.XXX.XXX.XXX &ipbits=0&expire=1415695122&sparams=ip,ipbits,expire,id,itag,source,requiressl,mv,ms,mm,gcr,ratebypass,mime,gir,clen,lmt,dur"
with itag = 140, this link contain only audio format.
and this problem here.
when i handle it by Avplayer, i work well on IOS 8 device. but on IOS 7 device. it’s not working. Does Anybody can help me fix it or give me any solution.my code is very simple.
self.mSongPlayer = [[AVPlayer alloc] initWithURL:urlAudio] ;
self.mSongPlayer play] ;with urlAudio link is this link above.
i tried with normal Stream link. example is : http://www.abstractpath.com/files/audiosamples/sample.mp3
and it work normaly on same ios7 and ios8.thanks everybody.
-
Laravel FFMpeg - FFMpeg cannot edit existing files in-place
28 septembre 2020, par wlaskovicAfter I wanted to upload a video in the queue was returned a failed job.


[2020-09-25 13:24:25][125] Processing: App\Jobs\ConvertVideoForStreaming <br /> [2020-09-25 13:24:26][125] Failed: App\Jobs\ConvertVideoForStreaming



So I've took from the DB failed_jobs table the response and run the following :


C:\ffmpeg\bin\ffmpeg.exe -y -i "C:\wamp64\www\laravel-stream\storage\app/public\WF3UL8fJTSE7BMxa.mp4" -threads 12 -vcodec libx264 -acodec libmp3lame -b:v 500k -refs 6 -coder 1 -sc_threshold 40 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k -vf "[in]scale=720:360 [out]" -pass 1 -passlogfile "C:\Users\wlask\AppData\Local\Temp\ffmpeg-passes5f6dd36a4519fd1fev/pass-5f6dd36a452c9" "C:\wamp64\www\laravel-stream\storage\app/public\WF3UL8fJTSE7BMxa.mp4"



Which returned the following :


ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 10.2.1 (GCC) 20200726
 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-libgsm --disable-w32threads --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. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\wamp64\www\laravel-stream\storage\app/public\WF3UL8fJTSE7BMxa.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: mp42mp41isomavc1
 creation_time : 2015-08-07T09:13:02.000000Z
 Duration: 00:00:30.53, start: 0.000000, bitrate: 411 kb/s
 Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], 301 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default)
 Metadata:
 creation_time : 2015-08-07T09:13:02.000000Z
 handler_name : L-SMASH Video Handler
 encoder : AVC Coding
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 112 kb/s (default)
 Metadata:
 creation_time : 2015-08-07T09:13:02.000000Z
 handler_name : L-SMASH Audio Handler





Output C :\wamp64\www\laravel-stream\storage\app/public\WF3UL8fJTSE7BMxa.mp4 same as Input #0 - exiting


FFmpeg cannot edit existing files in-place.




This was returned after i've run the command from DB failed jobs table return.


How should I solve this ?