
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (94)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (12548)
-
How to add or generate a missing keyframe at the beginning of converted video in FFMPEG ?
21 décembre 2022, par Jindrich VavruskaThere is a MP4 file representing a downloaded stream transmission from which I want to extract a program that starts after the beginning and ends before end of this MP4 file. I cut the unwanted parts off by two simple ffmpeg 'conversions'. In the first step, I cut off the tail :


ffmpeg -i stream_record.mp4 -c copy -t 1:26:33.15 cut_record.mp4



The second step is to cut off the unwanted beginning, but here I run into problems. E.g. after


ffmpeg -i cut_record.mp4 -c copy -ss 02:36 final_record.mp4



I quite often get a file with no video in the beginning (up to 6 seconds), only audio is playing. This is because after skipping the time specified in
-ss
option there is no keyframe in the video stream and it takes up to those 6 seconds to find the first one. Unfortunately, my desired part of the downloaded stream quite seldom starts with a keyframe, and I must keep some part of the video preceding my program to maintain video integrity in the beginning of the file.

Is there a method in FFMPEG to add something (e.g. black rectangle) as the first keyframe right at the start of the copied video stream ? I mean, other than completely recoding the video stream (I would like to keep the
-c copy
parameter in the process) ?

I could probably achieve the desired result using Openshot Editor - but it recodes the video and audio, takes relatively long time and consumes much CPU and memory resources.


-
how to record camera to file while encoding stream to v4l2-loopback device ?
3 février 2021, par JonatasSo i have this logitech c920 camera 1920x1080 h264 capable and i would like to record the camera to file while at the same time copying/encoding the stream to a loopback device so the camera can be still used by other apps.
here is the code i got so far :


ffmpeg -report -f alsa -i hw:CARD=C920,DEV=0 -r 1500 -s 1920x1080 -f v4l2 -vcodec h264 \
-i /dev/video1 -copyinkf -vcodec copy /home/jonatas/Videos/2021-02-01185658.mp4 \ 
-f v4l2 /dev/video0



error :


Unknown V4L2 pixel format equivalent for yuvj420p
Could not write header for output file #1 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 1:0 -- 



some info on /dev/video0(loopbackdevice) :


v4l2-ctl -d /dev/video0

 Device Caps : 0x05208003
 Video Capture
 Video Output
 Video Memory-to-Memory
 Read/Write
 Streaming
 Extended Pix Format
Priority: 0
Video input : 0 (loopback: ok)
Video output: 0 (loopback in)
Format Video Output:
 Width/Height : 1280/720
 Pixel Format : 'YUYV' (YUYV 4:2:2)
 Field : None
 Bytes per Line : 2560
 Size Image : 1843200
 Colorspace : sRGB
 Transfer Function : Default (maps to sRGB)
 YCbCr/HSV Encoding: Default (maps to ITU-R 601)
 Quantization : Default (maps to Limited Range)
 Flags : 
Streaming Parameters Video Capture:
 Frames per second: 30.000 (30/1)
 Read buffers : 8
Streaming Parameters Video Output:
 Frames per second: 30.000 (30/1)
 Write buffers : 8

User Controls

 keep_format 0x0098f900 (bool) : default=0 value=0
 sustain_framerate 0x0098f901 (bool) : default=0 value=0
 timeout 0x0098f902 (int) : min=0 max=100000 step=1 default=0 value=0
 timeout_image_io 0x0098f903 (bool) : default=0 value=0



some info on my camera in /dev/video1


v4l2-ctl -d /dev/video1 --all
Driver Info:
 Driver name : uvcvideo
 Card type : HD Pro Webcam C920
 Bus info : usb-0000:00:14.0-7.2
 Driver version : 5.4.78
 Capabilities : 0x84a00001
 Video Capture
 Metadata Capture
 Streaming
 Extended Pix Format
 Device Capabilities
 Device Caps : 0x04200001
 Video Capture
 Streaming
 Extended Pix Format
Media Driver Info:
 Driver name : uvcvideo
 Model : HD Pro Webcam C920
 Serial : EC6C336F
 Bus info : usb-0000:00:14.0-7.2
 Media version : 5.4.78
 Hardware revision: 0x00000011 (17)
 Driver version : 5.4.78
Interface Info:
 ID : 0x03000002
 Type : V4L Video
Entity Info:
 ID : 0x00000001 (1)
 Name : HD Pro Webcam C920
 Function : V4L2 I/O
 Flags : default
 Pad 0x01000007 : 0: Sink
 Link 0x0200001f: from remote pad 0x100000a of entity 'Processing 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
 Width/Height : 1280/720
 Pixel Format : 'H264' (H.264)
 Field : None
 Bytes per Line : 2560
 Size Image : 1843200
 Colorspace : sRGB
 Transfer Function : Default (maps to sRGB)
 YCbCr/HSV Encoding: Default (maps to ITU-R 601)
 Quantization : Default (maps to Full Range)
 Flags : 
Crop Capability Video Capture:
 Bounds : Left 0, Top 0, Width 1280, Height 720
 Default : Left 0, Top 0, Width 1280, Height 720
 Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 1280, Height 720, Flags: 
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1280, Height 720, Flags: 
Streaming Parameters Video Capture:
 Capabilities : timeperframe
 Frames per second: 30.000 (30/1)
 Read buffers : 0
 brightness 0x00980900 (int) : min=0 max=255 step=1 default=128 value=128
 contrast 0x00980901 (int) : min=0 max=255 step=1 default=128 value=128
 saturation 0x00980902 (int) : min=0 max=255 step=1 default=128 value=128
 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1
 gain 0x00980913 (int) : min=0 max=255 step=1 default=0 value=255
 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2
 0: Disabled
 1: 50 Hz
 2: 60 Hz
 white_balance_temperature 0x0098091a (int) : min=2000 max=6500 step=1 default=4000 value=3233 flags=inactive
 sharpness 0x0098091b (int) : min=0 max=255 step=1 default=128 value=128
 backlight_compensation 0x0098091c (int) : min=0 max=1 step=1 default=0 value=0
 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3
 1: Manual Mode
 3: Aperture Priority Mode
 exposure_absolute 0x009a0902 (int) : min=3 max=2047 step=1 default=250 value=333 flags=inactive
 exposure_auto_priority 0x009a0903 (bool) : default=0 value=0
 pan_absolute 0x009a0908 (int) : min=-36000 max=36000 step=3600 default=0 value=0
 tilt_absolute 0x009a0909 (int) : min=-36000 max=36000 step=3600 default=0 value=0
 focus_absolute 0x009a090a (int) : min=0 max=250 step=5 default=0 value=0
 focus_auto 0x009a090c (bool) : default=1 value=0
 zoom_absolute 0x009a090d (int) : min=100 max=500 step=1 default=100 value=100



if i remove the 3rd line of my script the camera records the stream of video and sound to the file flawless. i tried diferent things for the 3rd line as -vcodec and something to do with pix-format flag to YUYV without success.
Is it possible to achieve this with just one ffmpeg process ?
Will the sound be made available to the loopback device also ?
How to transcode it to the proper pixel format used by loopback device ?


-
UDP to MP4 transcoding via ffmpeg
30 juillet 2013, par Andrew J. FreyerI have not been able go find any substantial documentation to answer this question, so please forgive me if this is a simple question.
Quite simply, I am trying to transcode a UDP video stream to a live MP4 stream with ffmpeg.
I have been unable to successfully implement either step here. Any help or advice is appreciated.