
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (25)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (4675)
-
Bash script doesn't read entire line
4 octobre 2019, par Miguel AlatorreFirst off, I am in the early stages of learning bash shell scripting, so I apologize if I say / do anything that doesn’t make sense.
Currently, I’m trying to have an SBC, a Khadas VIM3 specifically, run a python script to find and label faces in any given video from a local server. Currently, I need to reduce the frame rate and resolution of the video, which is where the bash script comes into play. I need to automate this process and thought I’d do it using a bash script and crontab.
The file paths are found and output into a file from a separate script, and are read by the bash script. The problem comes when I try and call ffmpeg to use the file paths.The Code :
pathFile="/home/khadas/Documents/paths"
while IFS= read -r line
do
ffmpeg -i "$line" -vf scale=960:540 -y "$line"
cp "$line" ./
done < $pathFileThe resulting error :
: No such file or directoryalRecognition/10/14-53.h264+/20-509-26-10-14-53.mp4
cp: cannot stat '/home/khadas/Downloads/FacialRecognition/10/14-53.h264+/20-509-26-10-14-53.mp4'$'\r': No such file or directoryExample of the paths file (There will be hundreds of entries) :
/home/khadas/Downloads/FacialRecognition/10/14-42.h264+/20-509-26-10-14-42.mp4
/home/khadas/Downloads/FacialRecognition/10/59-06.h264+/20-509-26-10-59-06.mp4
/home/khadas/Downloads/FacialRecognition/10/36-28.h264+/20-509-26-10-36-28.mp4
/home/khadas/Downloads/FacialRecognition/10/14-53.h264+/20-509-26-10-14-53.mp4When using a trimmed down version, the script works as expected. Could it be an issue with the length of the lines ? Any help is much appreciated.
-
Output file #0 does not contain any stream , Webm VP9 live streaming
30 août 2019, par SalemThe source video I use is H264 m3u8 live stream and this is the command I tried
ffmpeg -re -i "http://sorce.com/live.m3u8" -c:v libvpx-vp9 -s 480x360 -keyint_min 60\
-g 60 -speed 5 -tile-columns 4 -frame-parallel 1 -threads 8 -static-thresh 0 \
-max-intra-rate 300 -deadline realtime -lag-in-frames 0 -error-resilient 1 \
-b:v 300k -c:a libvorbis -b:a 64k -ar 44100 -f webm_chunk -audio_chunk_duration 2000 \
-header "/var/www/example.com/live/glass_360.hdr" -chunk_start_index 1 \
/var/www/example.com/live/glass_360_%d.chkI pickup this code from wkiki.webmproject.org
this is command full logffmpeg version N-94564-gaac382e Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/root/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfribidi --enable-nonfree
libavutil 56. 33.100 / 56. 33.100
libavcodec 58. 55.100 / 58. 55.100
libavformat 58. 30.100 / 58. 30.100
libavdevice 58. 9.100 / 58. 9.100
libavfilter 7. 58.100 / 7. 58.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, mpegts, from 'http://sorce.com/live.m3u8':
Duration: N/A, start: 3860.014278, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1600x900 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 121 kb/s
Output #0, webm_chunk, to '/var/www/example.com/live/glass_360_%d.chk':
Output file #0 does not contain any streammost of the time I got this error message
[libvorbis @ 0x5617bae0c240] encoder setup failed Error initializing
output stream 0:1 -- Error while opening encoder for output stream
#0:1 - maybe incorrect parameters such as bit_rate, rate, width or heightHere is FFMPEG command output
Input #0, mpegts, from 'http://sorce.com/live.m3u8':
Duration: N/A, start: 1369.000978, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 127 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> vp9 (libvpx-vp9))
Stream #0:1 -> #0:1 (aac (native) -> vorbis (libvorbis))I already add video map before video and audio coding argue but I got same error
-map 0:v:0 -c:v libvpx-vp9 and -map 0:a:0 -c:a libvorbis
I tried new broadcast command it works first after I disable the audio
VP9_DASH_PARAMS="-tile-columns 4 -frame-parallel 1 -speed 6" && \
ffmpeg -y -re -i http://sorce.com/live.m3u8 -c:v libvpx-vp9 -s 480x360 -b:v 150k \
-keyint_min 150 -g 150 ${VP9_DASH_PARAMS} -an -f webm -dash 1 \
video_1280x720_500k.webm && sleep 1 && ffmpeg -f webm_dash_manifest \
-i video_1280x720_500k.webm -c copy -f webm_dash_manifest - \ adaptation_sets "id=0" manifest.mpdSource
this command didn’t createmanifest.mpd
it created onlyvideo_1280x720_500k.webm
==Edit==
I write new command (exactly as web wiki said )and everything works perfectly now
VP9_LIVE_PARAMS=" -tile-columns 4 -frame-parallel 1 -threads 4 -static-thresh 0 -max-intra-rate 300 -deadline good -speed 5 -slices 0 -row-mt 1 -lag-in-frames 0 -error-resilient 1" ; \
ffmpeg -loglevel 0 -re -i http://sorce.com/live.m3u8 \
-map 0:v -pix_fmt yuv420p -c:v libvpx-vp9 -s 480x360 -r 23.976 -keyint_min 60 -g 60 ${VP9_LIVE_PARAMS} -b:v 300k \
-f webm_chunk -header "/var/www/example.com/live/glass_360.hdr" -chunk_start_index 1 \
/var/www/example.com/live/glass_360_%d.chk \
-map 0:a -c:a libvorbis -b:a 64k \
-f webm_chunk -audio_chunk_duration 2000 -header /var/www/example.com/live/glass_171.hdr \
-chunk_start_index 1 /var/www/example.com/live/glass_171_%d.chkthis is command to generate .mpd file
ffmpeg -y -f webm_dash_manifest -live 1 \
-i /var/www/example.com/live/glass_360.hdr \
-f webm_dash_manifest -live 1 \
-i /var/www/example.com/live/glass_171.hdr \
-c copy -map 0 -map 1 \
-f webm_dash_manifest -live 1 \
-adaptation_sets "id=0,streams=0 id=1,streams=1" \
-chunk_start_index 1 -chunk_duration_ms 2000 \
-time_shift_buffer_depth 7200 -minimum_update_period 7200 \
/var/www/example.com/live/glass_live_manifest.mpdand this is
webtest.html
file<code class="echappe-js"><script src='http://stackoverflow.com/feeds/tag/dash.all.min.js'></script>
-
ffmpeg : Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_pad_5
26 mars 2019, par rsswtmrThis shouldn’t be that hard. I’m trying to combine three disparate video sources. I’m upscaling them to a consistent 1280x720 frame, with black backgrounds for letterboxing, and trying to concatenate to the output file. The two input files are show segments, and the bumper is a random commercial that goes in the middle.
On an iMac Pro, System 10.14.3, ffmpeg 4.1.1. The command I’m trying to make work is :
ffmpeg -y -hide_banner -i "input1.mkv" -i "bumper.mkv" -i "input2.mkv" -filter_complex '[0:v]scale=1280x720:force_original_aspect_ratio=increase[v0],pad=1280x720:max(0\,(ow-iw)/2):max(0\,(oh-ih)/2):black[v0]; [1:v]scale=1280x720:force_original_aspect_ratio=increase[v1],pad=1280x720:max(0\,(ow-iw)/2):max(0\,(oh-ih)/2):black[v1]; [2:v]scale=1280x720:force_original_aspect_ratio=increase[v2],pad=1280x720:max(0\,(ow-iw)/2):max(0\,(oh-ih)/2):black[v2]; [v0][0:a][v1][1:a][v2][2:a]concat=n=3:v=1:a=1 [outv] [outa]' -map "[outv]" -map "[outa]" 'output.mkv'
The resulting frame I get back is :
[h264 @ 0x7fbec9000600] [verbose] Reinit context to 720x480, pix_fmt: yuv420p
[info] Input #0, matroska,webm, from 'input1.mkv':
[info] Metadata:
[info] encoder : libebml v0.7.7 + libmatroska v0.8.1
[info] creation_time : 2009-07-20T01:33:54.000000Z
[info] Duration: 00:12:00.89, start: 0.000000, bitrate: 1323 kb/s
[info] Stream #0:0(eng): Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 708x480 (720x480) [SAR 10:11 DAR 59:44], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
[info] Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 160 kb/s (default)
[info] Metadata:
[info] title : English AC3
[info] Stream #0:2(eng): Subtitle: subrip
[h264 @ 0x7fbec9019a00] [verbose] Reinit context to 304x240, pix_fmt: yuv420p
[info] Input #1, matroska,webm, from 'bumper.mkv':
[info] Metadata:
[info] CREATION_TIME : 2019-03-15T15:16:00Z
[info] ENCODER : Lavf57.7.2
[info] Duration: 00:00:18.18, start: 0.000000, bitrate: 274 kb/s
[info] Stream #1:0: Video: h264 (Main), 1 reference frame, yuv420p(tv, smpte170m/smpte170m/bt709, progressive, left), 302x232 (304x240) [SAR 1:1 DAR 151:116], 29.97 fps, 29.97 tbr, 1k tbn, 180k tbc (default)
[info] Stream #1:1: Audio: aac (LC), 44100 Hz, stereo, fltp, delay 2111 (default)
[info] Metadata:
[info] title : Stereo
[error] Truncating packet of size 3515 to 1529
[h264 @ 0x7fbec9014600] [verbose] Reinit context to 704x480, pix_fmt: yuv420p
[h264 @ 0x7fbec9014600] [info] concealing 769 DC, 769 AC, 769 MV errors in I frame
[matroska,webm @ 0x7fbec9011e00] [error] Read error at pos. 50829 (0xc68d)
[info] Input #2, matroska,webm, from 'input2.mkv':
[info] Metadata:
[info] encoder : libebml v0.7.7 + libmatroska v0.8.1
[info] creation_time : 2009-07-19T22:37:48.000000Z
[info] Duration: 00:10:07.20, start: 0.000000, bitrate: 1391 kb/s
[info] Stream #2:0(eng): Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 704x480 [SAR 10:11 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
[info] Stream #2:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 160 kb/s (default)
[info] Metadata:
[info] title : English AC3
[info] Stream #2:2(eng): Subtitle: subrip
[Parsed_scale_0 @ 0x7fbec8716540] [verbose] w:1280 h:720 flags:'bilinear' interl:0
[Parsed_scale_2 @ 0x7fbec8702480] [verbose] w:1280 h:720 flags:'bilinear' interl:0
[Parsed_scale_4 @ 0x7fbec8702e40] [verbose] w:1280 h:720 flags:'bilinear' interl:0
[fatal] Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_pad_5
[AVIOContext @ 0x7fbec862bfc0] [verbose] Statistics: 104366 bytes read, 2 seeks
[AVIOContext @ 0x7fbec870a100] [verbose] Statistics: 32768 bytes read, 0 seeks
[AVIOContext @ 0x7fbec87135c0] [verbose] Statistics: 460284 bytes read, 2 seeksI have no idea what
Parsed_pad_5
means. I GoogledCannot find a matching stream for unlabeled input pad
and found absolutely no explanation, anywhere. I’m a relative ffmpeg newbie. Before I start rooting around in the source code, can anyone point me in the right direction ? Thanks in advance.