
Recherche avancée
Autres articles (15)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (6449)
-
Mencoder error - merging two video files with same fps, resolution and codec failed
26 mai 2020, par EstatisticsMencoder error in linux - merging two video files with same fps, resolution and video and audio codec failed.



These video files had different fps ratios, video codecs, and Audio codecs but same resolution. I made them to have the same codec by using the below ffmpeg command line per video :



ffmpeg -i D1_vid.mp4 -c:v libx264 -refs 3 -x264-params b-pyramid=2 -acodec aac -b:a 327680 D1_video.mp4




However, even i made them to have many other aspects the same ones (e.g. ref frames) according to MediaInfo, they failed to merged under Mencoder :



` mencoder -oac pcm -ovc copy -o video_out.avi D1_video.mp4 D2_video.mp4




It is the different overall bit rate ? How I fix that maintaining all other aspects that are presented by MediaInfo in Linux equal ?






output by Mencoder



MEncoder 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
success: format: 0 data: 0x0 - 0x2be37eba
libavformat version 57.83.100 (external)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f70ecf872a0]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 1280x720 24bpp 29.583 fps 4278.2 kbps (522.2 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1280x720 fps:29.583 ftime:=0.0338
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 57.107.100 (external)
AUDIO: 48000 Hz, 1 ch, floatle, 239.1 kbit/15.57% (ratio: 29890->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
videocodec: framecopy (1280x720 24bpp fourcc=34363248)
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:1301.6s 38506f (99%) 1492.89fps Trem: 0min 784mb A-V:0.020 [4278:767]
success: format: 0 data: 0x0 - 0x208dfde4
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f70ecf872a0]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang eng
VIDEO: [H264] 1280x720 24bpp 29.583 fps 3085.4 kbps (376.6 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1280x720 fps:29.583 ftime:=0.0338
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 1 ch, floatle, 220.0 kbit/14.32% (ratio: 27498->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
videocodec: framecopy (1280x720 24bpp fourcc=34363248)
videocodec: framecopy (1280x720 24bpp fourcc=34363248)

All video files must have identical fps, resolution, and codec for -ovc copy.



-
Batch resizing videos to specific resolution with ffmpeg
9 juin 2020, par tjkI need to resize all mp4 videos in a folder to a specific resolution. It is a vertical video that must be exactly 360x640px. Input videos can be of different resolutions, aspect ratios, vertical or horizontal. I am very new to this and so far I only got to this :



for i in *.mp4; do ffmpeg -i "$i" -vf "scale='if(gt(a*sar,16/9),360,640*iw*sar/ih)':'if(gt(a*sar,16/9),360*ih/iw/sar,640)',pad=360:640:(ow-iw)/2:(oh-ih)/2,setsar=1" "converted/${i%.*}.mp4"; done




When running this with 16 videos one of them (400x672px) won't resize with this error in log :



[Parsed_pad_1 @ 0x7fd760548c00] Input area -10:0:370:640 not within the padded area 0:0:360:640 or zero-sized
[Parsed_pad_1 @ 0x7fd760548c00] Failed to configure input pad on Parsed_pad_1
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[aac @ 0x7fd76280da00] Qavg: 15546.137
[aac @ 0x7fd76280da00] 2 frames left in the queue on closing




Please help to fix this.


-
Edited video produces smaller image that original, even with higher resolution
10 juillet 2020, par cepermanI've a .ts format recording from my Humax, which completely fills the window horizontally when played with VLC. In full-screen it fills the screen horizontally in letterbox style, and the same on the TV when played through my PS/3. All good so far.


This is the ffprobe output :


Duration: 02:16:37.72, start: 74238.902878, bitrate: 2554 kb/s
Stream #0:0[0x931]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 704x576 [SAR 16:11 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc



I used ffmpeg to change the audio track :


ffmpeg -i movie.ts -c:v libx264 -c:a ac3 -crf 20 -map 0:v:0 -map 0:a:1 movie.mp4



and produced an .mp4 which also plays correctly.


ffprobe :


Duration: 02:16:37.68, start: 0.005333, bitrate: 1129 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 704x576 [SAR 16:11 DAR 16:9], 932 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)



However, if I edit it using OpenShot, I cannot find any export format that produces an image that fills the window horizontally in the same way, regardless of what resolution or aspect ratio I use.


Example : export format "DV/DVD Widescreen PAL (720x576)" produces this (sample) file :


Duration: 00:00:39.12, start: 0.040000, bitrate: 563 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576, 477 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)



OpenShot appears not to set the AR, so it initially shows in VLC in 5:4 aspect, but even changing the VLC AR to the maximum of 2.39:1 does not stretch it fully from side-to-side.


I've used ffmpeg to experiment with changing the aspect ratio, changing the resolution, and setting the SAR and DAR, all without success.


This can't be a resolution issue, as I've exported 720p and 1080i, plenty of pixels but all produce roughly the same result - a small image that doesn't fill the window, and ditto on the TV. The original recording is only 704x576 but fills the window. Also the aspect ratio of the original recording is 16:9 (VLC agrees) but the actual measured AR of the screen image is closer to 2.04:1.


I'm hoping that while this could be an OpenShot issue, the cause of the problem should be visible to ffprobe and perhaps fixable with ffmpeg. Help wil be appreciated.