
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (79)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation" -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (10877)
-
ffmpeg after converting avi to mp4 need wait till video loads in flash player 100% otherwise video is buffering
28 octobre 2013, par Xenos TrojanowiczSo if fixed all issues with my ffmpeg journey now I just need that after converting videos they play in flash player instantly and no need to wait till video loeaded 100% I use :
if ($success_msg) {
$tmp_parts = explode('.', $file['name']);
$ext = array_pop($tmp_parts);
$ext = strtolower($ext);
if($ext == "avi" && $convert_avi == true) {
$convert_source = _VIDEOS_DIR_PATH.$new_name;
$conv_name = substr(md5($file['name'].rand(1,888)), 2, 10).".mp4";
$converted_file = _VIDEOS_DIR_PATH.$conv_name;
$ffmpeg_command = 'ffmpeg -i '.$convert_source.' -acodec libfaac -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 '.$converted_file;
echo exec($ffmpeg_command);
$sql = "UPDATE pm_temp SET url = '".$conv_name."' WHERE url = '".$new_name."' LIMIT 1";
$result = @mysql_query($sql);
unlink($convert_source);
}
echo $success_msg;
}To convert videos
EDIT #1 ffmpeg concole output with faststart function :
root@1tb:~# ffmpeg -i sample.avi -movflags faststart -acodec libfaac -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 consample.mp4
ffmpeg version 0.7.15, Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 22 2013 07:18:58 with gcc 4.4.5
configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
[mp3 @ 0x15389100] Header missing
[mpeg4 @ 0x15386dc0] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from 'sample.avi':
Metadata:
encoder : VirtualDubMod 1.5.10.2 (build 2540/release)
Duration: 00:01:01.81, start: 0.000000, bitrate: 1194 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x352 [PAR 1:1 DAR 20:11], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s
[MOV/3GP/MP4/3G2 muxer @ 0x15386c80] [Eval @ 0x7ffffec71230] Undefined constant or missing '(' in 'faststart'
[MOV/3GP/MP4/3G2 muxer @ 0x15386c80] Unable to parse option value "faststart"
Invalid value 'movflags' for option 'faststart' -
ffmpeg stream encoding out produce a stream shows different program on each start
15 octobre 2018, par Ryan PhilipI am using ffmpeg for almost one year, my stream recently started behaving badly.
The lines on ffmpeg screen started running crazy fast when restreaming it, causing more CPU (with no encoding). I have mapped the stream to select only one stream. But the problem is even with mapping I am getting different program each time when it is played.
Also each program it is playing for less than a minute. There is no specific error message showing on ffmpeg screen. Only the output is behaving badly.
I even tried ffmpeg version 3.3, 3.4 and 4.0 with same results.
It has so many resolution streams, so i selected only 33 (video) and 34 (audio), the ones with highest resolution.
ffmpeg -i "http://insourceip/stream.m3u8" -err_detect explode -c copy -map 0:33? -map 0:34? -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 out/music.m3u8
Please help me with this.
Below is the output : the one after (No longer receiving playlist 8) start running crazy when started.
Program 11
Metadata:
variant_bitrate : 1088000
Stream #0:33: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x480 [SAR 12:11 DAR 16:11], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 1088000
Stream #0:34: Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, stereo, fltp
Metadata:
variant_bitrate : 1088000
Stream #0:35: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 1088000
[hls @ 0x7a64120] Opening '/music1.ts' for writing
Output #0, hls, to '/music.m3u8':
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x480 [SAR 12:11 DAR 16:11], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
Metadata:
variant_bitrate : 1088000
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, stereo, fltp
Metadata:
variant_bitrate : 1088000
Stream #0:2: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 1088000
Stream mapping:
Stream #0:33 -> #0:0 (copy)
Stream #0:34 -> #0:1 (copy)
Stream #0:35 -> #0:2 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 0x3d57120] No longer receiving playlist 10
[hls,applehttp @ 0x3d57120] No longer receiving playlist 1
[hls,applehttp @ 0x3d57120] No longer receiving playlist 3
[hls,applehttp @ 0x3d57120] No longer receiving playlist 5
[hls,applehttp @ 0x3d57120] No longer receiving playlist 7
[hls,applehttp @ 0x3d57120] No longer receiving playlist 9
[hls,applehttp @ 0x3d57120] No longer receiving playlist 0
[hls,applehttp @ 0x3d57120] No longer receiving playlist 2
[hls,applehttp @ 0x3d57120] No longer receiving playlist 4
[hls,applehttp @ 0x3d57120] No longer receiving playlist 6
[hls,applehttp @ 0x3d57120] No longer receiving playlist 8
***[hls,applehttp @ 0x3d57120] Opening 'FORMATED/i/MUSIC_1@13394/segment153957897_1_av-b.ts' for reading
[hls,applehttp @ 0x3d57120] Opening 'FORMATED/i/MUSIC_1@13394/segment153957898_1_av-b.ts' for reading
[hls @ 0x7a64120] Opening '/music2.ts' for writing
[hls @ 0x7a64120] Opening '/music.m3u8.tmp' for writing
[hls,applehttp @ 0x3d57120] Opening 'FORMATED/i/MUSIC_1@13394/segment153957899_1_av-b.ts' for reading
[hls @ 0x7a64120] Opening '/music3.ts' for writing*** -
Is there a way a video can be encoded on its own when uploaded into server
18 février 2013, par user1914374Below is my code where it uploads a file into a server and stores the names of each uploaded file into the db :
<?php
// connect to the database
include('connect.php');
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
die();
}
if ($_FILES['fileVideo']['error'] === UPLOAD_ERR_OK) {
$result = 0;
if( file_exists("VideoFiles/".$_FILES['fileVideo']['name'])) {
$parts = explode(".",$_FILES['fileVideo']['name']);
$ext = array_pop($parts);
$base = implode(".",$parts);
$n = 2;
while( file_exists("VideoFiles/".$base."_".$n.".".$ext)) $n++;
$_FILES['fileVideo']['name'] = $base."_".$n.".".$ext;
move_uploaded_file($_FILES["fileVideo"]["tmp_name"],
"VideoFiles/" . $_FILES["fileVideo"]["name"]);
$result = 1;
}
else
{
move_uploaded_file($_FILES["fileVideo"]["tmp_name"],
"VideoFiles/" . $_FILES["fileVideo"]["name"]);
$result = 1;
}
$videosql = "INSERT INTO Video (VideoFile)
VALUES (?)";
if (!$insert = $mysqli->prepare($videosql)) {
// Handle errors with prepare operation here
}
//Assign the variable
$vid = 'VideoFiles/'.$_FILES['fileVideo']['name'];
//Dont pass data directly to bind_param store it in a variable
$insert->bind_param("s",$vid);
$insert->execute();
$id = $mysqli->insert_id;
if ($insert->errno) {
// Handle query error here
}
$insert->close();
}else{
echo "Upload was not successful";
}
?>
<code class="echappe-js"><script language="javascript" type="text/javascript"><br />
window.top.stopVideoUpload(&lt;?php echo $result; ?>,&#39;&lt;?php echo $id; ?>&#39;, &#39;&lt;?php echo $_FILES[&#39;fileVideo&#39;][&#39;name&#39;]; ?>&#39;);<br />
</script>Now I am using a jwplayer and it requires video files to match video formats on this page :
So I need to be able to encode files automatically on the server when the file is uploaded into the server. I do not want the user to try and encode a video file manually by themseleves, I want it done automatically. But my question is how can I get automatic server side file encoding to work ?
I have a demo showing how a video file is uploaded : DEMO
To use Demo :
-
Click on
Add Question
button and file input will appear in table -
Click on upload straightaway and you will see a simple validation stating which video file format are allowed (this is simply done by checking video file extension)
-
Browse for a video file, select and then click on
Upload
and wait for upload to finish (I recommend a short video file for saving time). When file is uploaded it will display success message and video file is uploaded into server,
-