
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (62)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 (...) -
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 (...)
Sur d’autres sites (9490)
-
FFMPEG failing to convert to ogv [closed]
25 juillet 2012, par Todd RI have several videos I'm trying to convert to mp4, swf and ogv. I've got the mp4 and swf's working, but ogv is failing and I'm not sure why. I understand all the arguments you can pass to ffmpeg, but feel like getting the correct ones is a huge guessing game. Any suggestions on what I can change to get this to work would be much appreciated.
Here's the command I'm using :
ffmpeg -i /private/var/tmp/phpU5KPR7 -y -s 330X240 -acodec libvorbis -vcodec libtheora outputpath/Videos/1.ogv 2>&1
And here are the results :
2012-07-24T19:05:11-07:00 INFO (6): Creating ogv for 1 returned 1:
2012-07-24T19:05:11-07:00 INFO (6): Array
(
[0] => ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
[1] => built on Nov 16 2011 19:56:59 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
[2] => configuration: --enable-libmp3lame --enable-libfaac --enable-libtheora --enable-libvorbis --enable-nonfree --disable-yasm
[3] => libavutil 51. 9. 1 / 51. 9. 1
[4] => libavcodec 53. 7. 0 / 53. 7. 0
[5] => libavformat 53. 4. 0 / 53. 4. 0
[6] => libavdevice 53. 1. 1 / 53. 1. 1
[7] => libavfilter 2. 23. 0 / 2. 23. 0
[8] => libswscale 2. 0. 0 / 2. 0. 0
[9] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/private/var/tmp/phpU5KPR7':
[10] => Metadata:
[11] => major_brand : 3gp4
[12] => minor_version : 768
[13] => compatible_brands: 3gp43gp6
[14] => Duration: 00:00:03.17, start: 0.000000, bitrate: 433 kb/s
[15] => Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
[16] => Stream #0.1(eng): Video: mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 411 kb/s, 13.87 fps, 15 tbr, 15k tbn, 15 tbc
[17] => WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
[18] => Incompatible sample format 'flt' for codec 'libfaac', auto-selecting format 's16'
[19] => [buffer @ 0x101001480] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[20] => [scale @ 0x101002560] w:352 h:288 fmt:yuv420p -> w:330 h:240 fmt:yuv420p flags:0x4
[21] => Output #0, mp4, to 'outputpath/Videos/1.mp4':
[22] => Metadata:
[23] => major_brand : 3gp4
[24] => minor_version : 768
[25] => compatible_brands: 3gp43gp6
[26] => encoder : Lavf53.4.0
[27] => Stream #0.0(eng): Video: mpeg4, yuv420p, 330x240 [PAR 8:9 DAR 11:9], q=2-31, 300 kb/s, 20 tbn, 20 tbc
[28] => Stream #0.1(eng): Audio: libfaac, 44100 Hz, 1 channels, s16, 0 kb/s
[29] => Stream mapping:
[30] => Stream #0.1 -> #0.0
[31] => Stream #0.0 -> #0.1
[32] => Press [q] to stop, [?] for help
[33] => Warning, using s16 intermediate sample format for resampling
[34] => frame= 62 fps= 0 q=6.4 Lsize= 253kB time=00:00:03.08 bitrate= 670.6kbits/s dup=18 drop=0
[35] => video:238kB audio:12kB global headers:0kB muxing overhead 1.096923%
[36] => ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
[37] => built on Nov 16 2011 19:56:59 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
[38] => configuration: --enable-libmp3lame --enable-libfaac --enable-libtheora --enable-libvorbis --enable-nonfree --disable-yasm
[39] => libavutil 51. 9. 1 / 51. 9. 1
[40] => libavcodec 53. 7. 0 / 53. 7. 0
[41] => libavformat 53. 4. 0 / 53. 4. 0
[42] => libavdevice 53. 1. 1 / 53. 1. 1
[43] => libavfilter 2. 23. 0 / 2. 23. 0
[44] => libswscale 2. 0. 0 / 2. 0. 0
[45] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/private/var/tmp/phpU5KPR7':
[46] => Metadata:
[47] => major_brand : 3gp4
[48] => minor_version : 768
[49] => compatible_brands: 3gp43gp6
[50] => Duration: 00:00:03.17, start: 0.000000, bitrate: 433 kb/s
[51] => Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
[52] => Stream #0.1(eng): Video: mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 411 kb/s, 13.87 fps, 15 tbr, 15k tbn, 15 tbc
[53] => Incompatible sample format 'flt' for codec 'libvorbis', auto-selecting format 's16'
[54] => [buffer @ 0x1010021a0] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[55] => [scale @ 0x101002520] w:352 h:288 fmt:yuv420p -> w:330 h:240 fmt:yuv420p flags:0x4
[56] => [libvorbis @ 0x101801e00] oggvorbis_encode_init: init_encoder failed
[57] => Output #0, ogg, to 'outputpath/Videos/1.ogv':
[58] => Stream #0.0(eng): Video: libtheora, yuv420p, 330x240 [PAR 8:9 DAR 11:9], q=2-31, 200 kb/s, 90k tbn, 15 tbc
[59] => Stream #0.1(eng): Audio: libvorbis, 8000 Hz, 1 channels, s16, 64 kb/s
[60] => Stream mapping:
[61] => Stream #0.1 -> #0.0
[62] => Stream #0.0 -> #0.1
[63] => Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
) -
downsizing multiple mpg files using ffmpeg.exe
14 septembre 2022, par user2799077I'm using ffmpeg.exe to process screen captures for a demo using MS Game Bar. Game Bar captures at a high frame rate at high resolution and the files are very large.


Using ffmpeg.exe I can process the files using :


ffmpeg.exe -i file.mpg file_l.mpg


And all is good but I'd like to create a bat file so I can do half a dozen or any in a folder all at once.


My Windows bat skills are poor and I've been trying to get it to work using something like this without success :


for %%f in (*.mp4) do (
 ren %%~nf%%~xf !fileNum!%%~xf
 set/a fileNum += 1



Can anyone help please


-
Python : Extracting device and lens information from video metadata
14 mai 2023, par cat_got_my_tongueI am interested in extracting device and lens information from videos. Specifically, make and model of the device and the focal length. I was able to do this successfully for still images using the
exifread
module and extract a whole bunch of very useful information :

image type : MPO
Image ImageDescription: Shot with DxO ONE
Image Make: DxO
Image Model: DxO ONE
Image Orientation: Horizontal (normal)
Image XResolution: 300
Image YResolution: 300
Image ResolutionUnit: Pixels/Inch
Image Software: V3.0.0 (2b448a1aee) APP:1.0
Image DateTime: 2022:04:05 14:53:45
Image YCbCrCoefficients: [299/1000, 587/1000, 57/500]
Image YCbCrPositioning: Centered
Image ExifOffset: 158
Thumbnail Compression: JPEG (old-style)
Thumbnail XResolution: 300
Thumbnail YResolution: 300
Thumbnail ResolutionUnit: Pixels/Inch
Thumbnail JPEGInterchangeFormat: 7156
Thumbnail JPEGInterchangeFormatLength: 24886
EXIF ExposureTime: 1/3
EXIF FNumber: 8
EXIF ExposureProgram: Aperture Priority
EXIF ISOSpeedRatings: 100
EXIF SensitivityType: ISO Speed
EXIF ISOSpeed: 100
EXIF ExifVersion: 0221
EXIF DateTimeOriginal: 2022:04:05 14:53:45
EXIF DateTimeDigitized: 2022:04:05 14:53:45
EXIF ComponentsConfiguration: CrCbY
EXIF CompressedBitsPerPixel: 3249571/608175
EXIF ExposureBiasValue: 0
EXIF MaxApertureValue: 212/125
EXIF SubjectDistance: 39/125
EXIF MeteringMode: MultiSpot
EXIF LightSource: Unknown
EXIF Flash: Flash did not fire
EXIF FocalLength: 1187/100
EXIF SubjectArea: [2703, 1802, 675, 450]
EXIF MakerNote: [68, 88, 79, 32, 79, 78, 69, 0, 12, 0, 0, 0, 21, 0, 3, 0, 5, 0, 2, 0, ... ]
EXIF SubSecTime: 046
EXIF SubSecTimeOriginal: 046
EXIF SubSecTimeDigitized: 046
EXIF FlashPixVersion: 0100
EXIF ColorSpace: sRGB
EXIF ExifImageWidth: 5406
EXIF ExifImageLength: 3604
Interoperability InteroperabilityIndex: R98
Interoperability InteroperabilityVersion: [48, 49, 48, 48]
EXIF InteroperabilityOffset: 596
EXIF FileSource: Digital Camera
EXIF ExposureMode: Auto Exposure
EXIF WhiteBalance: Auto
EXIF DigitalZoomRatio: 1
EXIF FocalLengthIn35mmFilm: 32
EXIF SceneCaptureType: Standard
EXIF ImageUniqueID: C01A1709306530020220405185345046
EXIF BodySerialNumber: C01A1709306530



Unfortunately, I have been unable to extract this kind of info from videos so far.


This is what I have tried so far, with the
ffmpeg
module :

import ffmpeg
from pprint import pprint

test_video = "my_video.mp4"
pprint(ffmpeg.probe(test_video)["streams"])



And the output I get contains a lot of info but nothing related to the device or lens, which is what I am looking for :


[{'avg_frame_rate': '30/1',
 'bit_rate': '1736871',
 'bits_per_raw_sample': '8',
 'chroma_location': 'left',
 'codec_long_name': 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
 'codec_name': 'h264',
 'codec_tag': '0x31637661',
 'codec_tag_string': 'avc1',
 'codec_time_base': '1/60',
 'codec_type': 'video',
 'coded_height': 1088,
 'coded_width': 1920,
 'display_aspect_ratio': '16:9',
 'disposition': {'attached_pic': 0,
 'clean_effects': 0,
 'comment': 0,
 'default': 1,
 'dub': 0,
 'forced': 0,
 'hearing_impaired': 0,
 'karaoke': 0,
 'lyrics': 0,
 'original': 0,
 'timed_thumbnails': 0,
 'visual_impaired': 0},
 'duration': '20.800000',
 'duration_ts': 624000,
 'has_b_frames': 0,
 'height': 1080,
 'index': 0,
 'is_avc': 'true',
 'level': 40,
 'nal_length_size': '4',
 'nb_frames': '624',
 'pix_fmt': 'yuv420p',
 'profile': 'Constrained Baseline',
 'r_frame_rate': '30/1',
 'refs': 1,
 'sample_aspect_ratio': '1:1',
 'start_pts': 0,
 'start_time': '0.000000',
 'tags': {'creation_time': '2021-05-08T13:23:20.000000Z',
 'encoder': 'AVC Coding',
 'handler_name': 'VideoHandler',
 'language': 'und'},
 'time_base': '1/30000',
 'width': 1920},
 {'avg_frame_rate': '0/0',
 'bit_rate': '79858',
 'bits_per_sample': 0,
 'channel_layout': 'stereo',
 'channels': 2,
 'codec_long_name': 'AAC (Advanced Audio Coding)',
 'codec_name': 'aac',
 'codec_tag': '0x6134706d',
 'codec_tag_string': 'mp4a',
 'codec_time_base': '1/48000',
 'codec_type': 'audio',
 'disposition': {'attached_pic': 0,
 'clean_effects': 0,
 'comment': 0,
 'default': 1,
 'dub': 0,
 'forced': 0,
 'hearing_impaired': 0,
 'karaoke': 0,
 'lyrics': 0,
 'original': 0,
 'timed_thumbnails': 0,
 'visual_impaired': 0},
 'duration': '20.864000',
 'duration_ts': 1001472,
 'index': 1,
 'max_bit_rate': '128000',
 'nb_frames': '978',
 'profile': 'LC',
 'r_frame_rate': '0/0',
 'sample_fmt': 'fltp',
 'sample_rate': '48000',
 'start_pts': 0,
 'start_time': '0.000000',
 'tags': {'creation_time': '2021-05-08T13:23:20.000000Z',
 'handler_name': 'SoundHandler',
 'language': 'und'},
 'time_base': '1/48000'}]



Are these pieces of info available for videos ? Should I be using a different package ?


Thanks.


Edit :


pprint(ffmpeg.probe(test_video)["format"])
gives

{'bit_rate': '1815244',
 'duration': '20.864000',
 'filename': 'my_video.mp4',
 'format_long_name': 'QuickTime / MOV',
 'format_name': 'mov,mp4,m4a,3gp,3g2,mj2',
 'nb_programs': 0,
 'nb_streams': 2,
 'probe_score': 100,
 'size': '4734158',
 'start_time': '0.000000',
 'tags': {'artist': 'Microsoft Game DVR',
 'compatible_brands': 'mp41isom',
 'creation_time': '2021-05-08T12:12:33.000000Z',
 'major_brand': 'mp42',
 'minor_version': '0',
 'title': 'Snipping Tool'}}