
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (54)
-
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 is the first MediaSPIP stable release.
Its official release date is June 21, 2013 and is announced here.
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (11011)
-
Show portrait video to landscape on Videojs player as HLS ffmpeg Laravel
11 décembre 2020, par TwistCodeI am currently using the ffmpeg library through laravel sdk. For the landscape videos I have no problem with the scaling filters application, but with the portrait videos I need the video to look like the thumbnail below :




But when I play the video, the player is distorted.




Note : It should be noted that when I work with horizontal scales, the player looks good, but the video is distorted.






this is my PHP Laravel code implementation


FFMpeg::FromDisk('local')->open($this->media)
 ->exportForHLS()
 ->setSegmentLength(6) // optional
 /*
 ->addFormat($lowBitrate, function ($media) {
 $media->addFilter(function ($filters, $in, $out) {
 $filters->custom($in, 'scale=854x480,setsar=1,setdar=16:9', $out); // $in, $parameters, $out

 });
 })*/
 // Portrait test
 ->addFormat($lowBitrate, function ($media) { 
 $media->addFilter(function ($filters, $in, $out) {
 // $filters->custom($in, "scale='w=min(720,trunc((480*33/40*dar)/2+0.5)*2):h=min(480,trunc((704*40/33/dar)/2+0.5)*2)',pad='w=720:h=480:x=(ow-iw)/2:y=(oh-ih)/2',setsar='r=40/33'", $out); // $in, $parameters, $out
 $filters->custom($in, "scale=239:-1", $out); // $in, $parameters, $out
 });
 })
 /*
 ->addFormat($midBitrate, function ($media) {
 $media->scale(1280, 720);
 })
 ->addFormat($highBitrate, function ($media) {
 $media->scale(1920, 1080);
 })*/
 ->save("public/hls/$video->id/$video->hash_name.m3u8");



This is the command that runs at the server level for portrait videos.




[2020-12-10 17:48:17] local.INFO : ffmpeg running command
'/usr/bin/ffmpeg' '-y' '-threads' '12' '-i'
'/home/vagrant/homesteadprojects/maquillate/storage/app/videos_directory/pexels-cottonbro-6054875.mp4'
'-filter_complex' '[0]scale=640 :-2[v0]' '-map' '[v0]' '-vcodec'
'libx264' '-b:v' '1200k' '-g' '48' '-hls_playlist_type' 'vod'
'-hls_time' '6' '-hls_segment_filename'
'/home/vagrant/homesteadprojects/maquillate/storage/app/public/hls/35/NXp9waz4AO5Q14Lu6T3JbjSRY496RrtiPGIz6IOJ_0_1200_%05d.ts'
'-acodec' 'aac' '-b:a' '128k'
'/home/vagrant/homesteadprojects/maquillate/storage/app/public/hls/35/NXp9waz4AO5Q14Lu6T3JbjSRY496RrtiPGIz6IOJ_0_1200.m3u8'




I don't really know if my problem is at the server or frontend level, but I would greatly appreciate any contribution.


-
Using ffmpeg with libfdk-aac, encoding HE-AAC v1 and mono actually, but in decoding ffmpeg show HE-AAC v2 and stereo [closed]
13 novembre 2024, par olojzygffmpeg encode command :




ffmpeg -i aac_128000_f32le_22050_1.wav -c:a libfdk_aac -profile:a
aac_he -b:a 64k -channels 1 test.aac




output :


[aist#0:0/pcm_s16le @ 000001d38ecfe340] Guessed Channel Layout: mono
 Input #0, wav, from 'aac_128000_f32le_22050_1.wav': Duration: 00:00:06.48, bitrate: 359 kb/s
 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
 Stream mapping:
 Stream #0:0 -> #0:0 (pcm_s16le (native) -> aac (libfdk_aac)) 
 Press [q] to stop, [?] for help Output #0, adts, to 'test.aac':
 Metadata:
 encoder : Lavf61.7.100 
 Stream #0:0: Audio: aac (HE-AAC), 22050 Hz, mono, s16, 64 kb/s
 Metadata:
 encoder : Lavc61.19.100 libfdk_aac 
[out#0/adts @ 000001d38ecf8680] video:0KiB audio:53KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.000000%
 size= 53KiB time=00:00:06.47 bitrate= 67.0kbits/s speed= 296x



but decode this test.aac, I think HE-AAC and mono is corrent, but it show HE-AAC v2 and stereo, why ?
decode command :




ffmpeg -i test.aac -f null -




decode output :


[aac @ 0000020ffcab3d40] Estimating duration from bitrate, this may be inaccurate
 Input #0, aac, from 'test.aac': Duration: 00:00:06.78, bitrate: 63 kb/s
 Stream #0:0: Audio: aac (HE-AACv2), 22050 Hz, stereo, fltp, 63 kb/s
 Stream mapping:
 Stream #0:0 -> #0:0 (aac (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help Output
#0, null, to 'pipe:':
 Metadata:
 encoder : Lavf61.7.100
 Stream #0:0: Audio: pcm_s16le, 22050 Hz, stereo, s16, 705 kb/s
 Metadata:
 encoder : Lavc61.19.100 pcm_s16le
[out#0/null @ 0000020ffcac8bc0] video:0KiB audio:584KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
size=N/A time=00:00:06.78 bitrate=N/A speed=1.6e+03x



what happened ? test.aac is also displayed as 2 channels in Audition. But 1 channel is displayed in MediaInfo, and ADTS header is corrent :




channel_configuration : 1 (0x1) - (3 bits)




-
fate : update fate tests after master:291ad12ea2d1 : ffprobe : show probe_score in the...
1er septembre 2013, par Michael Niedermayerfate : update fate tests after master:291ad12ea2d1 : ffprobe : show probe_score in the format section
Signed-off-by : Michael Niedermayer <michaelni@gmx.at>