
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (56)
-
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 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 (...) -
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 (7570)
-
FFMPEG : How to manually select video quality from mpd manifest ?
18 juin 2022, par DeoxysI want to ask what command should I use to select video quality from mpd manifest ?



mpd manifest link



https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6.mpd




Here, the mpd file :



<?xml version="1.0" encoding="utf-8"?>
<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediapresentationduration="PT7M59.240000S" minbuffertime="PT0S" maxsegmentduration="PT4S">
 <period duration="PT7M59.240000S">
 <adaptationset group="1" mimetype="audio/mp4" lang="en" contenttype="audio" minbandwidth="32000" maxbandwidth="64000">
<contentprotection schemeiduri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"></contentprotection><contentprotection schemeiduri="urn:mpeg:dash:mp4protection:2011" value="cenc"></contentprotection> <role schemeiduri="urn:mpeg:dash:role:2011" value="main"></role>
 <representation bandwidth="32000" audiosamplingrate="22050" codecs="mp4a.40.2">
 <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>
 <segmenttemplate timescale="10000000" initialization="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-init.mp4" media="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-$Time$.mp4">
 <segmenttimeline>
 <s t="0" d="36223129" r="1"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129" r="1"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129" r="1"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129" r="1"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129" r="1"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="3715193"></s>
 </segmenttimeline>
 </segmenttemplate>
 </representation>
 <representation bandwidth="64000" audiosamplingrate="22050" codecs="mp4a.40.2">
 <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>
 <segmenttemplate timescale="10000000" initialization="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-init.mp4" media="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-$Time$.mp4">
 <segmenttimeline>
 <s t="0" d="36223129" r="1"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129" r="1"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129" r="1"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129" r="1"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758731"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129" r="1"></s>
 <s d="35758730"></s>
 <s d="36223130"></s>
 <s d="35758730"></s>
 <s d="36223129"></s>
 <s d="3715193"></s>
 </segmenttimeline>
 </segmenttemplate>
 </representation>
 </adaptationset>
 <adaptationset group="2" framerate="25" mimetype="video/mp4" startwithsap="1" contenttype="video" par="16:9" minbandwidth="150119" maxbandwidth="5002530" minwidth="256" maxwidth="1920" minheight="144" maxheight="1080">
<contentprotection schemeiduri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"></contentprotection><contentprotection schemeiduri="urn:mpeg:dash:mp4protection:2011" value="cenc"></contentprotection> <role schemeiduri="urn:mpeg:dash:role:2011" value="main"></role>
 <segmenttemplate timescale="10000000" initialization="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-init.mp4" media="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-$Time$.mp4">
 <segmenttimeline>
 <s t="0" d="36000000" r="132"></s>
 <s d="4400000"></s>
 </segmenttimeline>
 </segmenttemplate>
 <representation bandwidth="150119" width="256" height="144" codecs="avc1.4d400c"></representation>
 <representation bandwidth="500565" width="640" height="360" codecs="avc1.4d401e"></representation>
 <representation bandwidth="1001193" width="854" height="480" codecs="avc1.4d401e"></representation>
 <representation bandwidth="2502286" width="1280" height="720" codecs="avc1.4d401f"></representation>
 <representation bandwidth="5002530" width="1920" height="1080" codecs="avc1.4d4028"></representation>
 </adaptationset>
 </period>
</mpd>




The video is not encrypted with DRM. When I tried to download with FFmpeg, success, but FFmpeg automatically select the worst quality (144p).



FFmpeg command I use :



ffmpeg -i https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6.mpd -c copy kiko1.mp4




Result from ffmpeg



ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
 configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
 libavutil 55. 78.100 / 55. 78.100
 libavcodec 57.107.100 / 57.107.100
 libavformat 57. 83.100 / 57. 83.100
 libavdevice 57. 10.100 / 57. 10.100
 libavfilter 6.107.100 / 6.107.100
 libavresample 3. 7. 0 / 3. 7. 0
 libswscale 4. 8.100 / 4. 8.100
 libswresample 2. 9.100 / 2. 9.100
 libpostproc 54. 7.100 / 54. 7.100
[dash @ 0x562ae2e98000] Opening '[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-avc1_150119=5-init.mp4[/URL]' for reading [dash @ 0x562ae2e98000] Could not read complete fragment.
[dash @ 0x562ae2e98000] Opening '[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-avc1_150119=5-0.mp4[/URL]' for reading
[dash @ 0x562ae2e98000] Opening '[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-mp4a_32000_eng=6-init.mp4[/URL]' for reading [dash @ 0x562ae2e98000] Could not read complete fragment.
[dash @ 0x562ae2e98000] Opening '[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-mp4a_32000_eng=6-0.mp4[/URL]' for reading
[aac @ 0x562ae32ced00] channel element 2.3 is not allocated
[h264 @ 0x562ae32cc500] top block unavailable for requested intra mode -1
[h264 @ 0x562ae32cc500] error while decoding MB 0 0, bytestream 38
[h264 @ 0x562ae32cc500] concealing 144 DC, 144 AC, 144 MV errors in I frame
Input #0, dash, from '[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6.mpd[/URL]':
 Duration: 00:07:59.00, start: 0.000000, bitrate: 0 kb/s 
Program 0
 Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 256x144 [SAR 1:1 DAR 16:9], 153 kb/s, 25 fps, 25 tbr, 10000k tbn, 50 tbc 
 Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 32 kb/s
Output #0, mp4, to 'kiko1.mp4': 
 Metadata: 
 encoder : Lavf57.83.100 
 Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 256x144 [SAR 1:1 DAR 16:9], q=2-31, 153 kb/s, 25 fps, 25 tbr, 10000k tbn, 10000k tbc
Stream mapping: 
 Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[dash @ 0x562ae2e98000] Opening '[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-mp4a_32000_eng=6-36223129.mp4[/URL]' for reading
[dash @ 0x562ae2e98000] Opening '[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-avc1_150119=5-36000000.mp4[/URL]' for reading
....
....
frame=11978 fps= 99 q=-1.0 Lsize= 8891kB time=00:07:59.08 bitrate= 152.0kbits/s speed=3.97x
video:8779kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.269990%




Tried youtube-dl & streamlink but failed.
So, I use FFmpeg because it success to download the video and audio. I have read FFmpeg documentation but I have no idea what command should I use.
What command should I use to select another quality ? (ex : audio 64 kbps, video : 720p)





Note : just change (dot) to
.




-
How to access docker container from another container
5 mars 2020, par M PConsider this solution
Ubuntu 18.04 -
Installed docker -
Created openlitespeed container -
Created ffmpeg container -In my host this command is ok :
$ docker exec -it ffmpeg-container ffmpeg -version
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
but How to access in openlitespeed container to ffmpeg container with php code ?
<?php
$code='docker exec -it ffmpeg-container ffmpeg -version';
echo exec($code); -
FFMPEG - Why can't i record a video for more than 10 seconds ?
12 février 2020, par gabrielI’m developing a screen recorder for windows with python but for some reason i can’t record the video for more than 10 seconds.However i can record the audio for more than 10 seconds.
Also i’m using :FFMPEG - to record the video with mp4 extension
PYAUDIO - to record the sound
TKINTER - to design the GUI
Since the problem is with the video recording i will leave the code that i used with ffmpeg :
"""
cmdGen.py generates ffmpeg commands to record your screen
"""
import os
class cmdGen:
def __init__(self):
self.fps = 60
self.source = "desktop"
self.encoder = 'mpeg4'
self.hwaccel = None
self.drawMouse = 1
self.enableWebcam = False
self.audList = 0
def config(self,
fps=None,source=None,encoder=None,
hwaccel='unchanged',drawMouse=None,
webcam=None,audList=None):
if fps: self.fps = fps
if source: self.source = source
if encoder: self.encoder = encoder
if hwaccel != 'unchanged': self.hwaccel = hwaccel
if drawMouse: self.drawMouse = 0 if not self.drawMouse else 1
if webcam: self.enableWebcam = bool(webcam)
if audList: self.audList = audList
def setSource(self,isWindow,windowName=""):
if not isWindow:
self.source = "desktop"
else:
self.source = "title="+windowName
def setFps(self,fps):
self.fps = fps
def setEncode(self,encoder):
self.encoder = encoder
def getCmd(self,filename):
print("ACK")
finalCmd = ["ffmpeg.exe","-f","gdigrab"]
finalCmd.extend(['-i',self.source])
finalCmd.extend(['-framerate',str(self.fps)])
finalCmd.extend(['-c:v',self.encoder])
if self.encoder == 'mpeg4':
finalCmd.extend(['-q:v','7'])
if self.hwaccel:
finalCmd.extend(['-hwaccel',self.hwaccel])
finalCmd.extend(['-draw_mouse',str(self.drawMouse)])
finalCmd.extend(["-y", filename])
print(finalCmd)
return finalCmd
def getCvtCmd(self,filename):
# if self.rcchecked.get():
# self.mergeProcess = subprocess.Popen(args= ["ffmpeg","-i",'tmp/tmp.mkv','-i','tmp/tmp.wav','-i','tmp/webcamtmp.mkv','-filter_complex','[2:v] scale=640:-1 [inner]; [0:0][inner] overlay=0:0 [out]',"-shortest",'-map','[out]','-y',"ScreenCaptures/"+self.filename])
# else:
# self.mergeProcess = subprocess.Popen(args= ["ffmpeg","-i",'tmp/tmp.mkv','-i','tmp/tmp.wav',"-shortest",'-y',"ScreenCaptures/"+self.filename], startupinfo=startupinfo)
print("ACK")
finalCmd = ["ffmpeg.exe"]
finalCmd.extend(['-i','tmp/tmp.mkv'])
for i in range(len(self.audList)):
finalCmd.extend(['-i','tmp/tmp_'+str(i)+'.wav'])
if len(self.audList) > 0:
finalCmd.extend(['-filter_complex','amerge=inputs='+str(len(self.audList)),'-ac',str(len(self.audList))])
# finalCmd.extend(['-c:v',self.encoder])
if self.enableWebcam:
finalCmd.extend(['-i','tmp/webcamtmp.mkv','-filter_complex','[2:v] scale=640:-1 [inner]; [0:0][inner] '
'overlay=0:0 [out]','-map','[out]'])
#finalCmd.extend(['-shortest'])
finalCmd.extend(["-y", filename])
print(finalCmd)
return finalCmd
if __name__ == "__main__":
cg = cmdGen()
cg.setEncode("h264_nvenc")
cg.setFps(60)
cg.setSource(False)
print(cg.getCmd("tmp"))Thanks guys
Full log trying to record 1 minute :
C:\Users\FabianoFreitas\AppData\Local\Programs\Python\Python37\python.exe C:/Users/FabianoFreitas/Desktop/PowerShare-v2.0/screenRecorder.py
ACK
['ffmpeg.exe', '-f', 'gdigrab', '-i', 'desktop', '-framerate', '60', '-c:v', 'mpeg4', '-q:v', '7', '-draw_mouse', '1', '-y', 'tmp/tmp.mkv']
* recording
ACK
['ffmpeg.exe', '-i', 'tmp/tmp.mkv', '-i', 'tmp/tmp_0.wav', '-filter_complex', 'amerge=inputs=1', '-ac', '1', '-y', 'Videos/ScreenCapture24.mp4']
* done recording
ffmpeg version git-2020-02-05-e6891d1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 39.100 / 56. 39.100
libavcodec 58. 67.101 / 58. 67.101
libavformat 58. 37.100 / 58. 37.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 74.100 / 7. 74.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, matroska,webm, from 'tmp/tmp.mkv':
Metadata:
ENCODER : Lavf58.37.100
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mpeg4 (Simple Profile), yuv420p, 2560x1080 [SAR 1:1 DAR 64:27], 29.97 fps, 29.97 tbr, 1k tbn, 30k tbc (default)
Metadata:
ENCODER : Lavc58.67.101 mpeg4
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, wav, from 'tmp/tmp_0.wav':
Duration: 00:01:09.08, bitrate: 1411 kb/s
Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
Stream #1:0 (pcm_s16le) -> amerge (graph 0)
amerge (graph 0) -> Stream #0:0 (aac)
Stream #0:0 -> #0:1 (mpeg4 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[Parsed_amerge_0 @ 00000218cb4c1640] No channel layout for input 1
[libx264 @ 00000218cb4acdc0] using SAR=1/1
[libx264 @ 00000218cb4acdc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 00000218cb4acdc0] profile High, level 5.0, 4:2:0, 8-bit
[libx264 @ 00000218cb4acdc0] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'Videos/ScreenCapture24.mp4':
Metadata:
encoder : Lavf58.37.100
Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s
Metadata:
encoder : Lavc58.67.101 aac
Stream #0:1: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 2560x1080 [SAR 1:1 DAR 64:27], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc (default)
Metadata:
encoder : Lavc58.67.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
[matroska,webm @ 00000218cb44af00] File ended prematurely
frame= 297 fps=113 q=-1.0 Lsize= 2325kB time=00:01:09.07 bitrate= 275.8kbits/s dup=22 drop=0 speed=26.2x
video:1713kB audio:591kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.900237%
[aac @ 00000218cb4ab780] Qavg: 24995.135
[libx264 @ 00000218cb4acdc0] frame I:4 Avg QP:15.13 size:199596
[libx264 @ 00000218cb4acdc0] frame P:85 Avg QP:21.15 size: 9466
[libx264 @ 00000218cb4acdc0] frame B:208 Avg QP:24.93 size: 725
[libx264 @ 00000218cb4acdc0] consecutive B-frames: 5.1% 2.7% 6.1% 86.2%
[libx264 @ 00000218cb4acdc0] mb I I16..4: 48.0% 45.3% 6.7%
[libx264 @ 00000218cb4acdc0] mb P I16..4: 1.6% 1.9% 0.8% P16..4: 1.4% 0.4% 0.3% 0.0% 0.0% skip:93.7%
[libx264 @ 00000218cb4acdc0] mb B I16..4: 0.1% 0.1% 0.0% B16..8: 3.0% 0.1% 0.0% direct: 0.0% skip:96.6% L0:51.2% L1:48.3% BI: 0.6%
[libx264 @ 00000218cb4acdc0] 8x8 transform intra:44.4% inter:69.1%
[libx264 @ 00000218cb4acdc0] coded y,uvDC,uvAC intra: 23.8% 27.4% 19.5% inter: 0.2% 0.3% 0.1%
[libx264 @ 00000218cb4acdc0] i16 v,h,dc,p: 54% 45% 1% 0%
[libx264 @ 00000218cb4acdc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 20% 41% 2% 2% 1% 2% 1% 5%
[libx264 @ 00000218cb4acdc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 35% 17% 2% 3% 3% 4% 2% 4%
[libx264 @ 00000218cb4acdc0] i8c dc,h,v,p: 61% 25% 11% 2%
[libx264 @ 00000218cb4acdc0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 00000218cb4acdc0] ref P L0: 68.0% 6.3% 16.6% 9.1%
[libx264 @ 00000218cb4acdc0] ref B L0: 70.2% 23.7% 6.1%
[libx264 @ 00000218cb4acdc0] ref B L1: 91.1% 8.9%
[libx264 @ 00000218cb4acdc0] kb/s:1415.80