
Recherche avancée
Autres articles (104)
-
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 (14676)
-
How can I generate encoded HEVC bitstream using ffmpeg ?
31 octobre 2014, par jgmaoI am able to encoded YUV file to mp4 using HEVC :
ffmpeg.exe -f rawvideo -s 1920x1080 -pix_fmt yuv420p -i input.yuv -c:v hevc -r 30 -x265-params crf=27 -vframes 300 -an -y test.mp4
Here is the mp4box -info test.mp4 shows :
* Movie Info *
Timescale 1000 - Duration 00:00:10.000
1 track(s)
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand isom - version 512
Created: UNKNOWN DATE Modified: UNKNOWN DATE File has no MPEG4 IOD/OD
iTunes Info:
Encoder Software: Lavf56.11.100
Track # 1 Info - TrackID 1 - TimeScale 15360 - Media Duration 00:00:10.000 Track has 1 edit lists: track duration is 00:00:10.000 Media Info: Language "Undetermined" - Type "vide:hev1" - 300 samples Visual Track layout: x=0 y=0 width=1920 height=1080 MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x23 HEVC Video - Visual Size 1920 x 1080
HEVC Info: Profile Main @ Level 5 - Chroma Format 1
NAL Unit length bits: 32 - general profile compatibility 0x60000000
Parameter Sets: 1 VPS 1 SPS 1 PPS
SPS resolution 1920x1080
Bit Depth luma 8 - Chroma 8 - 1 temporal layersBut how can I get the decodeble bit stream ? I tried
mp4box -raw 1 test.mp4 -out out.bin
It gives :
Extracting MPEG-H HEVC stream to hevc
But the out.bin couldn’t be decoded by HM or elecard.
Thanks
-
how to add duration to mjpeg or how to make mjpeg faster
10 octobre 2014, par n2v2rda2i have ip-cam mjpeg that i made and it have total 240 frames
encode souce is
ffmpeg.exe -framerate 25 -i c :\%06d.jpg\ -s 1920x1080 -qscale 1 -vcodec mjpeg -r 25 C :\result.mjpg -ynow i want to play result.mjpg by mjpeg player i made
my problem
1. i can't get mjpeg's play time or duration time
2. playing is slower then other movie player so i want to sync it and play more fasterbelow is ffprobe result
Input #0, mjpeg, from 'result.mjpg':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg), 1920x1080, 25 tbr, 1200k tbn, 25 tbcbelow is result added -show_frame
[FRAME]
media_type=video
key_frame=1
pkt_pts=720000
pkt_pts_time=0.600000
pkt_dts=720000
pkt_dts_time=0.600000
best_effort_timestamp=720000
best_effort_timestamp_time=0.600000
pkt_duration=48000
pkt_duration_time=0.040000
pkt_pos=4731406
pkt_size=313289
width=1920
height=1080
pix_fmt=yuvj444p
sample_aspect_ratio=333:320
pict_type=I
coded_picture_number=0
display_picture_number=0
interlaced_frame=0
top_field_first=0
repeat_pict=0
[/FRAME]ffprobe show me there are Duration : N/A, bitrate : N/A
how do i set Duration and bitrate
is there any encode-option i have to set ?when i decode mjpeg like below
i can’t get duration just 0
AVFormatContext* pFC;
int ret;
pFC = avformat_alloc_context();
ret = avformat_open_input(&pFC, filename, NULL, NULL);
if (ret < 0) {
// fail .
}
ret = avformat_find_stream_info(pFC, NULL);
if (ret < 0) {
// fail
}
printf("duration %ld", pFC->duration); <----- only 0 -
How can I read all the data from a pipe and prevent it from closing ?
23 septembre 2014, par slhckI’m trying to read raw YUV data from a compressed file using
ffmpeg
and pipes with Python.
The ffmpeg command correctly spits out frames as raw YUV data, and I’m reading it like this :def read_from_pipe(pipe, amount):
raw = pipe.stdout.read(amount)
pipe.stdout.flush()
return raw
pipe_ref = subprocess.Popen('ffmpeg -i "' + input + '" -r 30 -c:v rawvideo -pix_fmt yuv420p -an -f rawvideo -t 5 -',
shell = True,
stdout = subprocess.PIPE,
bufsize=1920*1080*3*2)
frame_num = 0
while True:
data = read_from_pipe(pipe_ref, width*height*3)
# no more data
if (len(data) != width*height*3))
return results
image = extract_image_data(data, width, height)
# do something with image, put it into "results" and print frame / SSIM values to console
frame_num += 1The problem is, as soon as ffmpeg is done converting all frames, my program stops. Since the program is a little slower than ffmpeg, it will stop receiving data and exit.
Basically, for example, I can only work up to frame 30, then ffmpeg finishes at frame 60, and my program also exits. The command line output would say :
Frame=25 SSIM=0.990472732391
Frame=26 SSIM=0.98359411819
Frame=27 SSIM=0.981074433586
Frame=28 SSIM=0.97850843075
frame= 60 fps= 27 q=0.0 Lsize= 182250kB time=00:00:02.00 bitrate=746496.0kbits/s dup=12 drop=0
video:182250kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.000000%
Frame=29 SSIM=0.977698849804
frame= 60 fps= 27 q=0.0 Lsize= 182250kB time=00:00:02.00 bitrate=746496.0kbits/s dup=12 drop=0
video:182250kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.000000%How can I get it to work on all frames that are output by ffmpeg ? Or is there any other easier way of obtaining the raw YUV data from any file if not through a pipe ? (I need it to work concurrently)