
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (14)
-
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 -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...)
Sur d’autres sites (5204)
-
Flutter ffmpeg kit : Invalid size error when trying to scale video
27 juillet 2023, par veryepicdudeI'm trying to resize a video to match instagram's video format requirements. I'm using the
ffmpeg_kit_flutter_full_gpl: ^5.1.0
package to do so and this is the function I'm calling :

Future<void> resizeVideo(String input, String output) async {

 final command = '-i $input -c:v libx264 -aspect 16:9 -crf 18 -vf "scale=iw*min(1280/iw\,720/ih):ih*min(1280/iw\,720/ih),pad=1280:720:(1280-iw)/2:(720-ih)/2" -fpsmax 60 -preset ultrafast -c:a aac -b:a 128k -ac 1 -use_editlist false -ar 48000 -pix_fmt yuv420p -movflags +faststart -t 59 -y $output';
 final session = await FFmpegKit.execute(command);
 print("resize done with ${await session.getReturnCode()}");
}
</void>


However I get this error every time :


Stream #0:0[0x1](und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 60 kb/s (default)
 Metadata:
 creation_time : 2023-07-27T15:30:28.000000Z
 handler_name : Core Media Audio
 vendor_id : [0][0][0][0]
 Stream #0:1[0x2](und): Video: hevc (hvc1 / 0x31637668), yuv420p(tv, smpte170m/bt709/bt709), 720x1280, 2085 kb/s, 30 fps, 30 tbr, 600 tbn (default)
 Metadata:
 creation_time : 2023-07-27T15:30:28.000000Z
 handler_name : Core Media Video
 vendor_id : [0][0][0][0]
Stream mapping:
 Stream #0:1 -> #0:0 (hevc (native) -> h264 (libx264))
 Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[Parsed_scale_0 @ 0x2834a53f0] Invalid size 'iw*min(1280/iw'
[AVFilterGraph @ 0x28278e3a0] Error initializing filter 'scale'[AVFilterGraph @ 0x28278e3a0] with args 'iw*min(1280/iw'[AVFilterGraph @ 0x28278e3a0] 
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:1
[aac @ 0x105334290] Qavg: 461.613
[aac @ 0x105334290] 2 frames left in the queue on closing



Removing the scale filter makes the function work fine, but it fails the instagram video requirements listed here.
Any help will be greatly appreciated.


-
Fatal error reading PNG image file : Invalid IHDR data (gdk-pixbuf-error-quark, 0), when using ffmpeg and wxWidgets
20 mai 2023, par Dhairya Guptafor my C++ project I am using CMake + conan for my project on ubuntu20.04. The config files is as follows


conanfile.py


from conan import ConanFile
from conan.tools.cmake import cmake_layout

class TrajectronRecipe(ConanFile):
 name='trajectron'
 version='0.0.2'

 license = 'GPL3'
 topics = ('gui', 'video', 'interactive')

 settings = ('os', 'compiler', 'build_type', 'arch')
 generators = (
 'CMakeDeps', 
 'CMakeToolchain'
 )

 def requirements(self):
 self.requires('cmake/3.26.3') # build manager
 self.requires('spdlog/1.11.0') # logger
 self.requires('ffmpeg/5.1')
 
 def build_requirements(self):
 if self.settings.os != 'Windows':
 self.tool_requires("cmake/3.26.3")

 def layout(self):
 # print(f'[settings build] {str(self.settings.build_type)}')
 self.folders.build = f'{str(self.settings.build_type)}'
 self.folders.generators = ''
 # cmake_layout(self)



CMakeLists.txt


cmake_minimum_required(VERSION 3.26 FATAL_ERROR)
set(CXX_STANDARD_REQUIRED ON)
set(CXX_STANDARD 20)
set(CMAKE_CXX_COMPILER /usr/bin/g++-10)
set(CMAKE_CXX_FLAGS "${wxWidgets_CXX_FLAGS}")

project(
 Trajectron
 VERSION 0.0.2
 DESCRIPTION "GUI app to map out trajectories of objects in real time videos"
 LANGUAGES CXX
)
cmake_language(GET_MESSAGE_LOG_LEVEL VERBOSE)

#### external packages
find_package(fmt REQUIRED)
find_package(spdlog REQUIRED)
find_package(wxWidgets REQUIRED gl core base OPTIONAL_COMPONENTS net)
include("${wxWidgets_USE_FILE}")
find_package(ffmpeg REQUIRED)

#### target
add_executable(trajectron 
 main.cpp
 src/app.cpp
 src/base_frame.cpp
 src/sys_file_dir_frame.cpp
 src/panels/video_stage.cpp
 src/panels/control.cpp
 src/panels/frame_list.cpp
 src/events/import_event.cpp
 src/video_processor.cpp
)

target_include_directories(trajectron PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(trajectron PUBLIC spdlog::spdlog)
target_link_libraries(trajectron PUBLIC ffmpeg::ffmpeg)

if(wxWidgets_FOUND)
 target_link_libraries(trajectron PRIVATE ${wxWidgets_LIBRARIES})
else(wxWidgets_FOUND)
 message("wxWidgets not found!")
endif(wxWidgets_FOUND)



when i make the project as follows it build sucessfully with conan and ffmpeg


cmake -G "Unix Makefiles" -S . -B build -DCMAKE_TOOLCHAIN_FILE=dependencies/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug
cd build/
cmake --build



when i run it
./build/trajectron
the application launches successfully. But when i click a button to open a wxFilectrl frame, it crashes with the following output
(https://i.stack.imgur.com/YKtfL.png)

**This only happens when i have used **
find_package(ffmpeg REQUIRED)
andtarget_link_libraries(trajectron PUBLIC ffmpeg::ffmpeg)
otherwise it works properly.

if you want to see the code for more context : https://github.com/dhairyagupta2603/trajectron


I have tried running the executable for the project using sudo as well as updated the mime database

sudo update-mime-database /usr/share/mime
. Note that I am using GTk v3 and have used wxWidgets as a separate install on system as it was not available as a conan package

-
Scalable Video Stream Processing and Redirection in the Cloud - More Efficient Alternatives to RTMP ?
18 juillet 2023, par dumbQuestionsI'm currently working on a project that involves processing and redirecting video streams from multiple users in real time.


Here's how my current implementation works :


- 

-
Users send their video streams to an RTMP server.


-
I use OpenCV to connect to the source RTMP server and capture the video stream.
The video frames are processed using OpenCV.


-
I then use FFmpeg to forward the processed video stream to another RTMP server.










I want to deploy it with cloud providers, but I'm worried that RTMP servers might not be the best choice for scalability, especially with increasing users. I'm seeking recommendations for efficiently implementing such video stream processing and redirection with good scalability. Is my current implementation somewhat viable, is there a better solution ?


Ideally, I'm looking for solutions that can handle a large number of concurrent video streams and provide low latency


Is there a cloud-based alternative to the RTMP-based approach that can meet these requirements and offer better scalability and efficiency ? Any insights, experiences, or recommendations are greatly appreciated. Thank you !


-