
Recherche avancée
Autres articles (10)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (1658)
-
Trouble trimming video by frame number with ffmpeg
8 décembre 2023, par jgore200377I want to trim/split a video with ffmpeg using frames. The reason why is because I am using a Shot Transition Detection model which returns a probability of transition for every frame in the video.


Using timestamps to cut the video has yielded bad results as the precision is not 100%.


Ive tried this command which just outputs the entire video which is DEFINITELY not what I want


ffmpeg -i video.mp4 -vf "trim=start_frame=100:end_frame=200,setpts=PTS-STARTPTS" -c:a copy output.mp4



Ive also tried using python bindings with ffmpeg-python


import ffmpeg

input_file = ffmpeg.input('video.mp4')
output_file = ffmpeg.output(input_file.trim(start_frame=1300, end_frame=1500), 'test_output.mp4')
ffmpeg.run(output_file)



This doesnt work either and outputs a video with half of it being still with unpredictable length



Ive visited some other sites but none seem to have this nailed down and it would be much appreciated if someone can answer how to use frames to trim/split a video with ffmpeg.


-
ffmpeg copies and restreams HLS/TS stream to RTP/Janus but fails on HLS/fMP4 stream
6 juin 2024, par puterboyI am using
go2rtc
to generate HLS streams to stream video from a PiCamera v3 running on an RPi5 for use in Octoprint.

I also need to copy and restream the HLS stream to an RTP Janus server for Spaghetti detection.


ffmpeg
works fine on an HLS/TS (H264) stream but fails on a similar HLS/fMP4 (H264, H265, AAC) stream — however, for quality reasons, I would prefer to use an HLS/fMP4 stream.

Specifically, I am running the following :


ffmpeg -re -i -an -c:v copy -an -f rtp rtp://127.0.0.1:17732?pkt_size=1300```



It streams properly forever when STREAM_URL is in HLS/TS format but fails when in HLS/fMP4 format after about 3-4 frames.


Running
ffprobe
gives the following :

HLS/TS :


Duration: N/A, start: 0.000000, bitrate: N/A
 Program 0
 Metadata:
 variant_bitrate : 192000
 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1536x864, 15 tbr, 90k tbn
 Metadata:
 variant_bitrate : 192000



HLS/fMP4 :


Duration: N/A, start: 0.000000, bitrate: 1248005 kb/s
 Program 0
 Metadata:
 variant_bitrate : 192000
 Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1536x864, 1248005 kb/s, 90k tbr, 90k tbn (default)
 Metadata:
 variant_bitrate : 192000
 major_brand : iso5
 minor_version : 512
 compatible_brands: iso5iso6mp41



- 

- Why does
ffmpeg
succeed on a HLS/TS stream but fail on an HLS/fMP4 stream ? - Are there any parameters or simple envelope filters I can add to
ffmpeg
that will allow it to succeed on HLS/fMP4 streams, short of a computationally intensive re-transcoding ?






- Why does