
Recherche avancée
Médias (1)
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (112)
-
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 (13557)
-
TS Files packet corrupt
16 août 2023, par juniwhen I join a video file with an audio file in ffmpeg to form an MPEG-TS file apparently it works, but when I play it I get this Packet error and it keeps skipping some frames of the video


I'm using fragmented video and audio, and this command to join


CODE :


subprocess.run([
 "ffmpeg", "-y", "-i", _segment_output_v_, 
 "-i", _segment_output_a_, "-map", "0:v", "-streamid", "0:500",
 "-map", "1:a", "-streamid", "1:501",
 "-mpegts_pmt_start_pid", "100", "-c", "copy", "-copyts",
 _fragment_ts_
])



curiously if I do the process with encode by ffmpeg the video plays normally, but I would like to do it without encode


ERROR :


[hls @ 000001214d76f880] Opening 'HD_2000k.m3u8' for reading
[hls @ 000001214d76f880] Skip ('#EXT-X-VERSION:6')sq= 0B f=0/0
[hls @ 000001214d76f880] Opening '000.ts' for reading
[hls @ 000001214d76f880] Opening '001.ts' for reading
[NULL @ 000001214d7abf80] non-existing SPS 0 referenced in buffering period
[h264 @ 000001214d7ad440] non-existing SPS 0 referenced in buffering period
Input #0, hls, from 'master.m3u8':
 Duration: N/A, start: 53623.588444, bitrate: N/A
 Program 0
 Metadata:
 variant_bitrate : 0
 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn
 Metadata:
 variant_bitrate : 0
 Stream #0:1(por): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
 Metadata:
 variant_bitrate : 0
[http @ 000001214d774240] Opening 'HD_2000k.m3u8' for reading
[hls @ 000001214d76f880] Skip ('#EXT-X-VERSION:6') sq= 0B f=0/0
[http @ 000001214d776b40] Opening '002.ts' for reading
[mpegts @ 000001214d790200] Packet corrupt (stream = 0, dts = 4826658160).
[hls @ 000001214d76f880] Packet corrupt (stream = 0, dts = 4826655160).
[http @ 000001214d779440] Opening '003.ts' for reading
[hls @ 000001214d76f880] Opening '003.ts' for reading



I would like to join video and audio in ffmpeg in ts output format for playback in hls


-
MPEG-DASH MPD file not playing correctly
24 juin 2017, par CMOSSo I am working on generating a very simple MPD manifest file for my MPEG-DASH videos and I cannot figure out what is wrong. Here is my current manifest file
<?xml version="1.0" ?>
<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500S" type="static" mediapresentationduration="PT0H9M21.795S" maxsegmentduration="PT0H0M1.001S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011">
<period>
<baseurl>https://mysite/uploads/sources/resolution_640/bitrate_1400/</baseurl>
<adaptationset mimetype="video/mp4">
<contentcomponent contenttype="video"></contentcomponent>
<representation bandwidth="1400000">
<segmentlist duration="119">
<initialization sourceurl="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_0.mp4"></initialization>
<segmenturl media="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_1.mp4"></segmenturl>
<segmenturl media="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_2.mp4"></segmenturl>
<segmenturl media="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_3.mp4"></segmenturl>
</segmentlist>
</representation>
</adaptationset>
</period>
</mpd>This MPD file validates using every validator I can find. The urls for the segments are obscured for security reasons but they are all open, public and viewable individually. But when I try to run the manifest file, depending on the player I get. "No supported source found within manifest" or simply nothing happens.
Any idea how this could be wrong ? I am currently using media url’s as absolute paths but I have also tried paths relative to the BaseURL with no luck. Any info on how I can make a very simple MPEG-Dash manifest structure would be great. I am using FFMPEG to split my video up into 150 frame segments. Thanks !
-
How to convert mp4 files into mp3 on button click using ffmpeg/php ?
4 juin 2019, par flashI am working on a php code as shown below where I am converting mp4 files into mp3 using system command ffmpeg (in the case statement below).
<?php
$mp4_files = preg_grep('~\.(mp4)$~', scandir($src_dir));
foreach ($mp4_files as $f)
{
$parts = pathinfo($f);
switch ($parts['extension'])
{
case 'mp4' :
$filePath = $src_dir . DS . $f;
system('ffmpeg -i ' . $filePath . ' -map 0:2 -ac 1 ' . $destination_dir . DS . $parts['filename'] . '.mp3', $result); // Through this command conversion happens.
}
}
$mp3_files = preg_grep('/^([^.])/', scandir($destination_dir));
?>After conversion, mp3 files goes into destination_dir. If new mp4 file arrives in $src_dir, the conversion usually happen on refresh of a page.
Once the conversion is complete, I am parsing everything into table as shown below :
<table>
<tr>
<th style="width:8%; text-align:center;">House Number</th>
<th style="width:8%; text-align:center;">MP4 Name</th>
<th style="width:8%; text-align:center;">Action/Status</th>
</tr>
<?php
$mp4_files = array_values($mp4_files);
$mp3_files = array_values($mp3_files);
foreach ($programs as $key => $program) {
$file = $mp4_files[$key];
$file2 = $mp3_files[$key]; // file2 is in mp3 folder
?>
<tr>
<td style="width:5%; text-align:center;"><span style="border: 1px solid black; padding:5px;"><?php echo basename($file, ".mp4"); ?></span></td>
<td style="width:5%; text-align:center;"><span style="border: 1px solid black; padding:5px;"><?php echo basename($file); ?></span></td>
<td style="width:5%; text-align:center;"><button style="width:90px;" type="button" class="btn btn-outline-primary">Gotd>
</button></td></tr>
<?php } ?>
</table>Problem Statement :
I am wondering what changes I should make in the php code above that on click of a Go button, conversion of individual mp4 into mp3 happen.
On clicking of Go button, individual mp3 file (from an mp4) belonging to an individual row should go inside destination directory ($destination_dir).