
Recherche avancée
Autres articles (89)
-
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 -
Initialisation de MediaSPIP (préconfiguration)
20 février 2010, parLors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
Dans un premier temps il active ou désactive des options de SPIP qui ne le (...) -
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 (6636)
-
Bulk Conversion Of Kubuntu Master Video Folder Using FFmpeg ?
12 janvier 2019, par Sarah SzaboI have an old archive of videos (Around 400GB/1024 files) that are heavily structured due to the program that created them at the time.
There is a single folder called
master
that contains many other folders for specific events that were recorded. I was thinking of usingfor i in *.vob; do ffmpeg -i "$i" "${i%.*}.mp4"; done
(From another SO user’s answer on another question), but this is insufficient since the .vob files aren’t all in themaster
folder are are instead in different folders inmaster
.Furthermore, the .vob titles are nonsense (And even worse overlapping ! Video 1 (In Folder 1), Video 1 (In Folder 2) so they can’t all be named the same thing in the same folder if I joined all of them.
My question is can I do a tree traversal of
master
using a script (I’m running KDE) that takes each.vob
files and converts it using somthing similar tofor i in *.vob; do ffmpeg -i "$i" "${i%.*}.mp4"; done
inmaster
, but with the name of the folder instead of the name of the file ?So, if we were in the
Assault On The Control Room
folder and convertedVideo 1
andVideo 2
, could this outputAssault On The Control Room 1
andAssault On The Control Room 2
and move the converted file to/somefilepath/master2
that contains all the converted files ?The labels would obviously be set using ffmpeg and a for loop, but my scripting skills aren’t up to this task yet.
EDIT 0 : Output of
shopt -s globstar; for v1 in **/*.vob; do v2=$(awk -F'/' '{print "/somefilepath/master2/" $(NF-1) " - " $NF ".mp4"}' <<< "$v1"); ffmpeg -i "$v1" "$v2"; done
sarah@ConvergentRefuge:/media/sarah/SENTINEL/Master$ shopt -s globstar; for v1 in **/*.vob; do v2=$(awk -F'/' '{print "/media/sarah/SENTINEL/Videos/NewMaster" $(NF-1) " - " $NF ".mp4"}' <<< "$v1"); ffmpeg -i "$v1" "$v2"; done
ffmpeg version N-91290-g6129b13 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/home/sarah/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/sarah/ffmpeg_build/include --extra-ldflags=-L/home/sarah/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/sarah/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 20.102 / 58. 20.102
libavformat 58. 17.100 / 58. 17.100<br />
libavdevice 58. 4.101 / 58. 4.101<br />
libavfilter 7. 25.100 / 7. 25.100<br />
libswscale 5. 2.100 / 5. 2.100<br />
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
**/*.vob: No such file or directory
-
Why would I receive input/output error with testsrc ffmpeg ?
5 mars 2021, par Dave SteinI am trying to write an integration test which requires actually RTMP streaming to a 3rd party service. How to generate an RTMP test stream using ffmpeg command ? seems like the right answer, however I can't get it to work.



As a baseline, without RTMP,
ffmpeg -f lavfi -i testsrc -t 30 -pix_fmt yuv420p test.mp4
works.


ffmpeg -f lavfi -i testsrc -t 30 -pix_fmt yuv420p -f flv rtmp://mylocation
gives me the errorrtmp://mylocation: Input/output error



I should note that the URL is valid, otherwise I get an error saying it can't open a connection.



I also tried
ffmpeg -f lavfi -i testsrc -pix_fmt yuv420p -f flv rtmp://mylocatiom
. I had read that if you don't supply time, it goes on forever and thought I might need that for an RTMP stream. I got the same error.


Here is full output from last attempt, with added params as suggested by @Gyan below, along with verbose logging.



ffmpeg -loglevel verbose -f lavfi -i testsrc -pix_fmt yuv420p -f flv -c:v libx264 -g 50 rtmp://myhost:1935/identifier
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
 built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gpl --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-opencl --enable-videotoolbox
 libavutil 56. 22.100 / 56. 22.100
 libavcodec 58. 35.100 / 58. 35.100
 libavformat 58. 20.100 / 58. 20.100
 libavdevice 58. 5.100 / 58. 5.100
 libavfilter 7. 40.101 / 7. 40.101
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 3.100 / 5. 3.100
 libswresample 3. 3.100 / 3. 3.100
 libpostproc 55. 3.100 / 55. 3.100
[Parsed_testsrc_0 @ 0x7fddf34022c0] size:320x240 rate:25/1 duration:-1.000000 sar:1/1
Input #0, lavfi, from 'testsrc':
 Duration: N/A, start: 0.000000, bitrate: N/A
 Stream #0:0: Video: rawvideo, 1 reference frame (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
[tcp @ 0x7fddf3404880] Starting connection attempt to {theIP} port 1935
[tcp @ 0x7fddf3404880] Successfully connected to {theIP} port 1935
rtmp://myhost:1935/identifier: Input/output error




Updating to
debug
added some more data like this before error :


[tcp @ 0x7fc4e1601a00] Starting connection attempt to 34.224.30.155 port 1935
[tcp @ 0x7fc4e1601a00] Successfully connected to 34.224.30.155 port 1935
[rtmp @ 0x7fc4e1411200] Handshaking...
[rtmp @ 0x7fc4e1411200] Type answer 3
[rtmp @ 0x7fc4e1411200] Server version 3.0.1.1
[rtmp @ 0x7fc4e1411200] Proto = rtmp, path = /identifier, app = identifier, fname = 
[rtmp @ 0x7fc4e1411200] Window acknowledgement size = 2500000
[rtmp @ 0x7fc4e1411200] Max sent, unacked = 2500000
[rtmp @ 0x7fc4e1411200] New incoming chunk size = 4096
[rtmp @ 0x7fc4e1411200] Releasing stream...
[rtmp @ 0x7fc4e1411200] FCPublish stream...
[rtmp @ 0x7fc4e1411200] Creating stream...
[rtmp @ 0x7fc4e1411200] Sending publish command for ''
rtmp://myhost:1935/identifier: Input/output error




Sending publish command for ''
is suspect, but not sure what to do about that.

-
ffmpeg for android, out of memory on decoding rotate mp4 file with openh264
29 octobre 2018, par da queVersion
- ffmpeg : 4.0.2
- openh264 : 1.8.0
Problem
I try to trim a
.mp4
file whichmetadata
info contains rotate info, but I failed with the error information.The file stream info :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2018-10-09T09:40:53.000000Z
location : +39.8983+116.4145/
location-eng : +39.8983+116.4145/
com.android.version: 6.0
Duration: 00:00:10.56, start: 0.000000, bitrate: 8671 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 8563 kb/s, SAR 1:1 DAR 16:9, 30.01 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
rotate : 180
creation_time : 2018-10-09T09:40:53.000000Z
handler_name : VideoHandle
Side data:
displaymatrix: rotation of -180.00 degrees
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2018-10-09T09:40:53.000000Z
handler_name : SoundHandleffmpeg cmd
ffmpeg -y -i 1.mp4 -threads 4 -b:v 2000k -vcodec libopenh264 -acodec copy -ss 0 -t 3 -f mp4 -movflags faststart -strict -2 ./output.mp4
result
Error reinitializing filters!
Failed to inject frame into filter network: Out of memory
Error while processing the decoded data for stream #0:0Then I found this answer : ffmpeg-for-android-out-of-memory, after i added
-noautorotate
command to my cmd, the video is trimmed successful.If I use
-vcodec copy
instead of-vcodec libopenh264
, the result also is ok, I wonder if there is a bug whenlibopenh264
decode with ffmpeg’s autorotate function.I wipe the video’s rotate info from metadata with
-metadata:s:v:0
command, the newly video can be trimmed successful with the origin cmd :(