
Recherche avancée
Autres articles (13)
-
Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur
8 février 2011, parLa visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
Configuration de la boite multimédia
Dès (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (2317)
-
What ffmpeg output format (-f) do I use for two-pass encoding of mkv files
16 mai 2020, par Mav-TekI recently backed up one of my Blu-ray movies and it is about 36 GB. Using ffmpeg to get info from the video, it is in h.264 in an mkv container. I want to shrink the file size using h.265 compression and targeting a bitrate of 4 Mbits/s so that I can stream it while I am away from my home over my Plex server. My upload speed is limited to 5 Mb/s.



Although I could easily do this with simple software, I want to learn more coding. I have found the proper ffmpeg code two do a two-pass encoding, but in all examples I have found, they use an output format of mp4 but state that "you need to specify an output format (with -f) that matches the output format you will use in pass 2." I assume my "output format" is mkv, but that does not allow my code to run. Can someone explain to me what is meant by output format and what I should be using to encode this from h264 to h265 in a mkv container ?



ffmpeg -y -i input.mkv -c:v libx265 -b:v 4M -x265-params pass=1 -an -f mkv /dev/null && \ ffmpeg -i "Arrival (2016).mkv" -c:v libx265 -b:v 4M -x265-params pass=2 -c:a copy output.mkv 




Also, in order to make this work on my windows PC, I am trying to learn how to edit some of the arguments to allow it to work in Powershell. I believe this is how I would do that :



(ffmpeg -y -i input.mkv -c:v libx265 -b:v 4M -x265-params pass=1 -an -f mkv NUL) -AND (^ ffmpeg -i "Arrival (2016).mkv" -c:v libx265 -b:v 4M -x265-params pass=2 -c:a copy output.mkv)



-
Flutter_ffmpeg : At least one output file must be specified
22 mars 2020, par Jehonadab OkpukoroI’m trying to crop a video with Flutter_ffmpeg package using this
-i $inputPath -filter:v "crop=80:60:200:100" -c $outputPath
, but I’m having this error messageRunning FFmpeg with arguments: [-i, /data/user/0/com.timz/app_flutter/Movies/flutter_test/1584827688309.mp4, -filter:v, crop=80:60:200:100, -c, /data/user/0/com.timz/cache/output.mp4].
I/flutter (20728): ffmpeg version git-2020-01-25-fd11dd500
I/flutter (20728): Copyright (c) 2000-2020 the FFmpeg developers
I/flutter (20728):
I/flutter (20728): built with Android (5220042 based on r346389c) clang version 8.0.7 (https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf643d27dbca1bb228957008617) (https://android.googlesource.com/toolchain/llvm 3c393fe7a7e13b0fba4ac75a01aa683d7a5b11cd) (based on LLVM 8.0.7svn)
I/flutter (20728): configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disa
I/flutter (20728): libavutil 56. 38.100 / 56. 38.100
I/flutter (20728): libavcodec 58. 65.102 / 58. 65.102
I/flutter (20728): libavformat 58. 35.101 / 58. 35.101
I/flutter (20728): libavdevice 58. 9.103 / 58. 9.103
I/flutter (20728): libavfilter 7. 70.101 / 7. 70.101
I/flutter (20728): libswscale 5. 6.100 / 5. 6.100
I/flutter (20728): libswresample 3. 6.100 / 3. 6.100
I/flutter (20728): Trailing option(s) found in the command: may be ignored.
D/flutter-ffmpeg(20728): FFmpeg exited with rc: 1
I/flutter (20728): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/data/user/0/com.timz/app_flutter/Movies/flutter_test/1584827688309.mp4':
I/flutter (20728): Metadata:
I/flutter (20728): major_brand :
I/flutter (20728): mp42
I/flutter (20728):
I/flutter (20728): minor_version :
I/flutter (20728): 0
I/flutter (20728):
I/flutter (20728): compatible_brands:
I/flutter (20728): isommp42
I/flutter (20728):
I/flutter (20728): creation_time :
I/flutter (20728): 2020-03-21T21:54:56.000000Z
I/flutter (20728):
I/flutter (20728): com.android.version:
I/flutter (20728): 9
I/flutter (20728):
I/flutter (20728): Duration:
I/flutter (20728): 00:00:07.17
I/flutter (20728): , start:
I/flutter (20728): 0.000000
I/flutter (20728): , bitrate:
I/flutter (20728): 3870 kb/s
I/flutter (20728):
I/flutter (20728): Stream #0:0
I/flutter (20728): (eng)
I/flutter (20728): : Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 720x480, 3854 kb/s
I/flutter (20728): , SAR 1:1 DAR 3:2
I/flutter (20728): ,
I/flutter (20728): 29.44 fps,
I/flutter (20728): 29.83 tbr,
I/flutter (20728): 90k tbn,
I/flutter (20728): 180k tbc
I/flutter (20728): (default)
I/flutter (20728):
I/flutter (20728): Metadata:
I/flutter (20728): rotate :
I/flutter (20728): 270
I/flutter (20728):
I/flutter (20728): creation_time :
I/flutter (20728): 2020-03-21T21:54:56.000000Z
I/flutter (20728):
I/flutter (20728): handler_name :
I/flutter (20728): VideoHandle
I/flutter (20728):
I/flutter (20728): Side data:
I/flutter (20728):
I/flutter (20728): displaymatrix: rotation of 90.00 degrees
I/flutter (20728):
I/flutter (20728): Stream #0:1
I/flutter (20728): (eng)
I/flutter (20728): : Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 12 kb/s
I/flutter (20728): (default)
I/flutter (20728):
I/flutter (20728): Metadata:
I/flutter (20728): creation_time :
I/flutter (20728): 2020-03-21T21:54:56.000000Z
I/flutter (20728):
I/flutter (20728): handler_name :
I/flutter (20728): SoundHandle
I/flutter (20728):
I/flutter (20728): At least one output file must be specifiedI’ve been cracking my head with this for the past two days, kindly share your thoughts on what might wrong.
-
ffmpeg : Convert a legally purchased video on Google
24 avril 2020, par HeycavaI've bought a video on the Google Play Store. I need to have it on my computer in order to edit it for a video montage. But Google says "Important : You cannot download movies and TV shows onto a PC, Mac, and other laptops or computers."



The video has a YouTube link. As I paid for it, I can watch it. I've managed to get the video part and the audio thanks to some web tools.
The video is a .webm file and the audio a .m4a file.



I can hear the audio with VLC but I can't watch the video. Even if VLC displays "21:42" for the timecode.



Here are informations for the webm file (from MediaInfo) :



General
Complete name : XXX\videoplayback.webm
Format : WebM
Format version : Version 4 / Version 2
File size : 357 MiB
Duration : 21 min 42 s
Overall bit rate : 2 301 kb/s
Writing application : google/video-file
Writing library : google/video-file

Video
ID : 1
Format : VP9
Codec ID : V_VP9
Duration : 21 min 42 s
Bit rate : 2 203 kb/s
Width : 854 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Bits/(Pixel*Frame) : 0.224
Stream size : 342 MiB (96%)
Language : English
Default : Yes
Forced : No




It seems to be a good video file.



I wanted to convert it with some video converters but none of them works. So I've tried to download ffmpeg, I renamed the video to "video.webm" and tried a lot of commands. But none of them worked.



Here are informations from ffprobe command :



C:\Users\XXX\Downloads\ffmpeg-20200424-a501947-win64-static\bin>ffprobe -i video.webm




Results :



ffprobe version git-2020-04-24-a501947 Copyright (c) 2007-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200328
 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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 42.102 / 56. 42.102
 libavcodec 58. 81.100 / 58. 81.100
 libavformat 58. 42.101 / 58. 42.101
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 79.100 / 7. 79.100
 libswscale 5. 6.101 / 5. 6.101
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
[vp9 @ 00000284720d5f40] Invalid frame marker
 Last message repeated 111 times
[vp9 @ 00000284720d5f40] Profile 4 is not yet supported
[vp9 @ 00000284720d5f40] Invalid frame marker
 Last message repeated 6 times
[matroska,webm @ 00000284720cd840] decoding for stream 0 failed
[matroska,webm @ 00000284720cd840] Could not find codec parameters for stream 0 (Video: vp9 (Profile 0), none, 854x480): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'video.webm':
 Metadata:
 encoder : google/video-file
 Duration: 00:21:42.05, start: 0.000000, bitrate: 2301 kb/s
 Stream #0:0(eng): Video: vp9 (Profile 0), none, 854x480, SAR 1:1 DAR 427:240, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc (default)
 Metadata:
 enc_key_id : [24 characters I prefer not to display]




If ever I initiate a conversion, I get :



[vp9 @ 0000019038a80980] Invalid frame marker
[vp9 @ 0000019038c0fe40] Invalid frame marker
[vp9 @ 0000019038c193c0] Invalid frame marker
[vp9 @ 0000019038c1e780] Invalid frame marker
[vp9 @ 0000019038c29100] Invalid frame marker
[vp9 @ 0000019038c324c0] Invalid frame marker
[vp9 @ 0000019038c3d480] Invalid frame marker
[vp9 @ 0000019038c47280] Invalid frame marker
Error while decoding stream #0:0: Invalid data found when processing input
[vp9 @ 0000019038c4c080] Invalid frame marker
Error while decoding stream #0:0: Invalid data found when processing input
[vp9 @ 0000019038a80980] Invalid frame marker




etc.
Then :



Error while decoding stream #0:0: Resource temporarily unavailable
 Last message repeated 243 times
Error while decoding stream #0:0: Resource temporarily unavailabletrate= -0.0kbits/s speed=N/A
 Last message repeated 306 times
Error while decoding stream #0:0: Resource temporarily unavailabletrate= -0.0kbits/s speed=N/A
 Last message repeated 190 times




I've already checked on the Internet solutions for the raised issues :



- 

- Invalid frame marker
- unspecified pixel format
- Consider increasing the value for the 'analyzeduration' and 'probesize' options









But it didn't work in my case.



Obviously, I can watch the video on YouTube when I'm logged into my purchase account. I presume they have a high level security algorithm, that's why I can't do nothing. Mayve there is something with the "enc_key_id" in the metadata, they get it and the video can only be read with it. I don't know.



I find it unacceptable not to be able to use freely my purchased videos.



Would anyone have an idea ?