
Recherche avancée
Autres articles (16)
-
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Les thèmes de MediaSpip
4 juin 20133 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
Thèmes MediaSPIP
3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)
Sur d’autres sites (2067)
-
ffmpeg seek calculating wrong byte range ?
12 mars 2020, par user4455I’m running into an issue while trying to extract thumbnails from a movie file at a specific timestamp. Generally I’ve had no issues with this, but I’ve come across a set of movie files that are getting an error about the byte range requested (416 Requested Range Not Satisfiable).
The odd thing is that the server is correctly returning the content length in the partial content request, yet when it requests the movie file it requests a length that exceeds that.
This is a bit over my head, so I’m not sure what could be happening here. Any insight would be great.
The Command :
/usr/bin/ffmpeg -y -ss 1400 -i 'https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4' -qscale:v 2 -f image2 -vframes 1 -filter:v 'scale=192:108' -loglevel debug /data/www/storage/test.jpg 2>&1
The Error :
[https @ 0x22e1e00] header='HTTP/1.1 416 Requested Range Not Satisfiable'
[https @ 0x22e1e00] http_code=416
[https @ 0x22e1e00] HTTP error 416 Requested Range Not SatisfiableSource File Size :
1776706045 bytes
Source Content Duration :
2897.624271
Partial Content Request :
[https @ 0x22e1e00] header='HTTP/1.1 206 Partial Content'
[https @ 0x22e1e00] http_code=206
[https @ 0x22e1e00] header='x-amz-id-2: 4J1pgHExIUA0GxIxSBmGJjrRqliHbsIjXeuGzVfTlaaoVXbyZI5FQNma8fGaifcovkXfxJev5yU='
[https @ 0x22e1e00] header='x-amz-request-id: 78B3BDBB0356EF40'
[https @ 0x22e1e00] header='Date: Wed, 16 Dec 2015 23:51:29 GMT'
[https @ 0x22e1e00] header='x-amz-meta-content-length: 2898'
[https @ 0x22e1e00] header='x-amz-meta-cb-modifiedtime: Tue, 15 Dec 2015 17:59:51 GMT'
[https @ 0x22e1e00] header='Last-Modified: Wed, 16 Dec 2015 23:44:59 GMT'
[https @ 0x22e1e00] header='ETag: "6341a8022630667a8070a83575e542e7-27"'
[https @ 0x22e1e00] header='Accept-Ranges: bytes'
[https @ 0x22e1e00] header='Content-Range: bytes 0-1776706044/1776706045'
[https @ 0x22e1e00] header='Content-Type: video/mp4'
[https @ 0x22e1e00] header='Content-Length: 1776706045'
[https @ 0x22e1e00] header='Server: AmazonS3'
[https @ 0x22e1e00] header='Connection: close'FFmpeg Request :
request: GET /my-bucket/mymoviefile.mp4 HTTP/1.1
User-Agent: Lavf/56.25.101
Accept: */*
Range: bytes=1781732960-
Connection: close
Host: s3-us-west-2.amazonaws.com
Icy-MetaData: 1Entire Log :
# /usr/bin/ffmpeg -y -ss 1400 -i 'https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4' -qscale:v 2 -f image2 -vframes 1 -filter:v 'scale=192:108' -loglevel debug /data/www/storage/test.jpg 2>&1
ffmpeg version 2.6.4 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '1400'.
Reading option '-i' ... matched as input file with argument 'https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4'.
Reading option '-qscale:v' ... matched as option 'qscale' (use fixed quality scale (VBR)) with argument '2'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'image2'.
Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '1'.
Reading option '-filter:v' ... matched as option 'filter' (set stream filtergraph) with argument 'scale=192:108'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '/data/www/storage/test.jpg' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4.
Applying option ss (set the start time offset) with argument 1400.
Successfully parsed a group of options.
Opening an input file: https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4.
[https @ 0x22e1e00] request: GET /my-bucket/mymoviefile.mp4 HTTP/1.1
User-Agent: Lavf/56.25.101
Accept: */*
Range: bytes=0-
Connection: close
Host: s3-us-west-2.amazonaws.com
Icy-MetaData: 1
[https @ 0x22e1e00] header='HTTP/1.1 206 Partial Content'
[https @ 0x22e1e00] http_code=206
[https @ 0x22e1e00] header='x-amz-id-2: 4J1pgHExIUA0GxIxSBmGJjrRqliHbsIjXeuGzVfTlaaoVXbyZI5FQNma8fGaifcovkXfxJev5yU='
[https @ 0x22e1e00] header='x-amz-request-id: 78B3BDBB0356EF40'
[https @ 0x22e1e00] header='Date: Wed, 16 Dec 2015 23:51:29 GMT'
[https @ 0x22e1e00] header='x-amz-meta-content-length: 2898'
[https @ 0x22e1e00] header='x-amz-meta-cb-modifiedtime: Tue, 15 Dec 2015 17:59:51 GMT'
[https @ 0x22e1e00] header='Last-Modified: Wed, 16 Dec 2015 23:44:59 GMT'
[https @ 0x22e1e00] header='ETag: "6341a8022630667a8070a83575e542e7-27"'
[https @ 0x22e1e00] header='Accept-Ranges: bytes'
[https @ 0x22e1e00] header='Content-Range: bytes 0-1776706044/1776706045'
[https @ 0x22e1e00] header='Content-Type: video/mp4'
[https @ 0x22e1e00] header='Content-Length: 1776706045'
[https @ 0x22e1e00] header='Server: AmazonS3'
[https @ 0x22e1e00] header='Connection: close'
[https @ 0x22e1e00] header=''
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x22e1740] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x22e1740] ISO: File Type Major Brand: mp42
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x22e1740] Before avformat_find_stream_info() pos: 1647960 bytes read:1652200 seeks:0
[h264 @ 0x22e92c0] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x22e1740] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x22e1740] After avformat_find_stream_info() pos: 1862326 bytes read:1878504 seeks:0 frames:16
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: isommp41avc1
creation_time : 2015-11-18 02:34:41
Duration: 00:48:17.70, start: 0.000000, bitrate: 4905 kb/s
Stream #0:0(und), 15, 1/2997: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 1001/60000, 9994 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc (default)
Metadata:
creation_time : 2015-11-18 02:34:41
handler_name : ?Apple Video Media Handler
Stream #0:1(und), 1, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
creation_time : 2015-11-18 02:34:41
handler_name : ?Apple Sound Media Handler
Successfully opened the file.
Parsing a group of options: output file /data/www/storage/test.jpg.
Applying option qscale:v (use fixed quality scale (VBR)) with argument 2.
Applying option f (force format) with argument image2.
Applying option vframes (set the number of video frames to output) with argument 1.
Applying option filter:v (set stream filtergraph) with argument scale=192:108.
Successfully parsed a group of options.
Opening an output file: /data/www/storage/test.jpg.
Successfully opened the file.
detected 2 logical cores
[Parsed_scale_0 @ 0x22cd4c0] Setting 'w' to value '192'
[Parsed_scale_0 @ 0x22cd4c0] Setting 'h' to value '108'
[Parsed_scale_0 @ 0x22cd4c0] Setting 'flags' to value '0x4'
[Parsed_scale_0 @ 0x22cd4c0] w:192 h:108 flags:'0x4' interl:0
[graph 0 input from stream 0:0 @ 0x22ccfe0] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0x22ccfe0] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 0x22ccfe0] Setting 'time_base' to value '1/2997'
[graph 0 input from stream 0:0 @ 0x22ccfe0] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x22ccfe0] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x22ccfe0] Setting 'frame_rate' to value '2997/100'
[graph 0 input from stream 0:0 @ 0x22ccfe0] w:1920 h:1080 pixfmt:yuv420p tb:1/2997 fr:2997/100 sar:1/1 sws_param:flags=2
[format @ 0x2798640] compat: called with args=[yuvj420p|yuvj422p|yuvj444p]
[format @ 0x2798640] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p'
[AVFilterGraph @ 0x22cda60] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed
[Parsed_scale_0 @ 0x22cd4c0] picking yuvj420p out of 3 ref:yuv420p alpha:0
[swscaler @ 0x22c3c80] deprecated pixel format used, make sure you did set range correctly
[Parsed_scale_0 @ 0x22cd4c0] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:192 h:108 fmt:yuvj420p sar:1/1 flags:0x4
[mjpeg @ 0x2854e20] intra_quant_bias = 96 inter_quant_bias = 0
[mjpeg @ 0x28716c0] intra_quant_bias = 96 inter_quant_bias = 0
[mjpeg @ 0x2795320] intra_quant_bias = 96 inter_quant_bias = 0
Output #0, image2, to '/data/www/storage/test.jpg':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: isommp41avc1
encoder : Lavf56.25.101
Stream #0:0(und), 0, 100/2997: Video: mjpeg, yuvj420p(pc, left), 192x108 [SAR 1:1 DAR 16:9], 100/2997, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
Metadata:
creation_time : 2015-11-18 02:34:41
handler_name : ?Apple Video Media Handler
encoder : Lavc56.26.100 mjpeg
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[https @ 0x22e1e00] request: GET /my-bucket/mymoviefile.mp4 HTTP/1.1
User-Agent: Lavf/56.25.101
Accept: */*
Range: bytes=1781732960-
Connection: close
Host: s3-us-west-2.amazonaws.com
Icy-MetaData: 1
[https @ 0x22e1e00] header='HTTP/1.1 416 Requested Range Not Satisfiable'
[https @ 0x22e1e00] http_code=416
[https @ 0x22e1e00] HTTP error 416 Requested Range Not Satisfiable
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x22e1740] stream 0, offset 0x6a331660: partial file
https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4: Invalid data found when processing input
[output stream 0:0 @ 0x22d7500] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4):
Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded;
Input stream #0:1 (audio): 0 packets read (0 bytes);
Total: 0 packets (0 bytes) demuxed
Output file #0 (/data/www/storage/test.jpg):
Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes);
Total: 0 packets (0 bytes) muxed
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x27ab100] Statistics: 1878504 bytes read, 0 seeksFFprobe Result :
# /usr/bin/ffprobe -show_format -show_streams -i 'https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4'
ffprobe version 2.6.4 Copyright (c) 2007-2015 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: isommp41avc1
creation_time : 2015-11-18 02:34:41
Duration: 00:48:17.70, start: 0.000000, bitrate: 4905 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 9994 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc (default)
Metadata:
creation_time : 2015-11-18 02:34:41
handler_name : ?Apple Video Media Handler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
creation_time : 2015-11-18 02:34:41
handler_name : ?Apple Sound Media Handler
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=1001/60000
codec_tag_string=avc1
codec_tag=0x31637661
width=1920
height=1080
has_b_frames=1
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=40
color_range=tv
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
timecode=N/A
refs=3
is_avc=1
nal_length_size=4
id=N/A
r_frame_rate=2997/100
avg_frame_rate=2997/100
time_base=1/2997
start_pts=0
start_time=0.000000
duration_ts=8684300
duration=2897.664331
bit_rate=9994429
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=86843
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
TAG:creation_time=2015-11-18 02:34:41
TAG:language=und
TAG:handler_name=Apple Video Media Handler
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/48000
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/48000
start_pts=0
start_time=0.000000
duration_ts=139085965
duration=2897.624271
bit_rate=192002
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=135828
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
TAG:creation_time=2015-11-18 02:34:41
TAG:language=und
TAG:handler_name=Apple Sound Media Handler
[/STREAM]
[FORMAT]
filename=https://s3-us-west-2.amazonaws.com/my-bucket/mymoviefile.mp4
nb_streams=2
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=2897.695000
size=1776706045
bit_rate=4905156
probe_score=100
TAG:major_brand=mp42
TAG:minor_version=1
TAG:compatible_brands=isommp41avc1
TAG:creation_time=2015-11-18 02:34:41
[/FORMAT] -
ffmpeg- number of frames
11 juin 2018, par ST94I am streaming live feed of a webcam from PC A to PC B, both connected to a router. I am streaming the video using ffmpeg and I have the output of the commands I use at A and B as follows,
Started at Mon Jun 11 12:51:46 CDT 2018
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 526453.330073, bitrate: 147456 kb/s
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg2video (native))
Stream #0:0 -> #1:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
No pixel format specified, yuv422p for MPEG-2 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
Output #0, mpegts, to 'tcp://172.16.0.169:50000':
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 640x480, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc
Metadata:
encoder : Lavc57.89.100 mpeg2video
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
[Parsed_showinfo_0 @ 0x5633adea81c0] config in time_base: 1/1000000, frame_rate: 30/1
[Parsed_showinfo_0 @ 0x5633adea81c0] config out time_base: 0/0, frame_rate: 0/0
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 0 pts: 0 pts_time:0 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:059C8C1C plane_checksum:[059C8C1C] mean:[128 ] stdev:[28.1 ]
No pixel format specified, yuv422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x5633ade11c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x5633ade11c00] profile High 4:2:2, level 3.0, 4:2:2 8-bit
[libx264 @ 0x5633ade11c00] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #1, mp4, to '/home/sana/Desktop/sender_new/sender_mp4/tcp10wf.mp4':
Metadata:
encoder : Lavf57.71.100
Stream #1:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv422p, 640x480, q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc57.89.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 1 pts: 32000 pts_time:0.032 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:A8C0B7F7 plane_checksum:[A8C0B7F7] mean:[125 ] stdev:[27.6 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 2 pts: 63999 pts_time:0.063999 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:F8EAFA02 plane_checksum:[F8EAFA02] mean:[125 ] stdev:[27.6 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 3 pts: 96003 pts_time:0.096003 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:8349B90A plane_checksum:[8349B90A] mean:[124 ] stdev:[27.6 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 4 pts: 132004 pts_time:0.132004 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:B67CB4C2 plane_checksum:[B67CB4C2] mean:[124 ] stdev:[27.6 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 5 pts: 164003 pts_time:0.164003 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:E05C3BA2 plane_checksum:[E05C3BA2] mean:[124 ] stdev:[27.6 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 6 pts: 195998 pts_time:0.195998 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:2C9F5E9C plane_checksum:[2C9F5E9C] mean:[123 ] stdev:[27.6 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 7 pts: 232070 pts_time:0.23207 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:46521311 plane_checksum:[46521311] mean:[122 ] stdev:[28.1 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 8 pts: 264011 pts_time:0.264011 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:C7B37767 plane_checksum:[C7B37767] mean:[122 ] stdev:[28.3 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 9 pts: 296061 pts_time:0.296061 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:6C1E0DF5 plane_checksum:[6C1E0DF5] mean:[123 ] stdev:[27.6 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 10 pts: 332007 pts_time:0.332007 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:7EDC1257 plane_checksum:[7EDC1257] mean:[124 ] stdev:[26.2 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 11 pts: 364006 pts_time:0.364006 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:F47CF25B plane_checksum:[F47CF25B] mean:[124 ] stdev:[26.7 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 12 pts: 396007 pts_time:0.396007 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:34BEAC53 plane_checksum:[34BEAC53] mean:[124 ] stdev:[27.5 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 13 pts: 432049 pts_time:0.432049 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:44B21C5E plane_checksum:[44B21C5E] mean:[124 ] stdev:[28.1 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 14 pts: 464006 pts_time:0.464006 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:B9449349 plane_checksum:[B9449349] mean:[123 ] stdev:[28.5 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 15 pts: 496010 pts_time:0.49601 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:51C6DCE5 plane_checksum:[51C6DCE5] mean:[123 ] stdev:[28.8 ]
frame= 16 fps=0.0 q=19.1 q=0.0 size= 92kB time=00:00:00.43 bitrate=1742.3kbits/s speed=0.857x
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 16 pts: 532019 pts_time:0.532019 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:AD50363E plane_checksum:[AD50363E] mean:[123 ] stdev:[28.9 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 17 pts: 564008 pts_time:0.564008 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:6F75F7A5 plane_checksum:[6F75F7A5] mean:[123 ] stdev:[28.9 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 18 pts: 596009 pts_time:0.596009 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:B3B4DD3A plane_checksum:[B3B4DD3A] mean:[123 ] stdev:[28.9 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 19 pts: 632005 pts_time:0.632005 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:AF98B81C plane_checksum:[AF98B81C] mean:[123 ] stdev:[28.9 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 20 pts: 664012 pts_time:0.664012 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:BD809E30 plane_checksum:[BD809E30] mean:[123 ] stdev:[28.9 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 21 pts: 696073 pts_time:0.696073 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:30C0816F plane_checksum:[30C0816F] mean:[123 ] stdev:[29.0 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 22 pts: 732013 pts_time:0.732013 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:BC8498BA plane_checksum:[BC8498BA] mean:[123 ] stdev:[28.9 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 23 pts: 764070 pts_time:0.76407 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:6828551A plane_checksum:[6828551A] mean:[123 ] stdev:[29.0 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 24 pts: 796014 pts_time:0.796014 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:2C381775 plane_checksum:[2C381775] mean:[123 ] stdev:[29.0 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 25 pts: 832024 pts_time:0.832024 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:B21BA7D8 plane_checksum:[B21BA7D8] mean:[123 ] stdev:[29.0 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 26 pts: 864011 pts_time:0.864011 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:3F170D6F plane_checksum:[3F170D6F] mean:[123 ] stdev:[29.1 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 27 pts: 896015 pts_time:0.896015 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:4F982F14 plane_checksum:[4F982F14] mean:[123 ] stdev:[29.2 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 28 pts: 932073 pts_time:0.932073 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:0BD2826C plane_checksum:[0BD2826C] mean:[123 ] stdev:[29.2 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 29 pts: 964016 pts_time:0.964016 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:1C82D871 plane_checksum:[1C82D871] mean:[123 ] stdev:[29.4 ]
[Parsed_showinfo_0 @ 0x5633adea81c0] n: 30 pts: 996013 pts_time:0.996013 pos: -1 fmt:yuyv422 sar:0/1 s:640x480 i:P iskey:1 type:I checksum:073C2E08 plane_checksum:[073C2E08] mean:[123 ] stdev:[29.4 ]
frame= 31 fps= 31 q=15.3 q=0.0 size= 115kB time=00:00:00.93 bitrate=1012.0kbits/s speed=0.924x
......................................
......................................
video:2301kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x5633ade11c00] frame I:6 Avg QP:20.14 size: 16164
[libx264 @ 0x5633ade11c00] frame P:356 Avg QP:22.44 size: 1117
[libx264 @ 0x5633ade11c00] frame B:1053 Avg QP:23.78 size: 221
[libx264 @ 0x5633ade11c00] consecutive B-frames: 0.7% 0.1% 0.2% 98.9%
[libx264 @ 0x5633ade11c00] mb I I16..4: 29.9% 53.6% 16.5%
[libx264 @ 0x5633ade11c00] mb P I16..4: 0.6% 0.7% 0.1% P16..4: 22.6% 1.7% 2.1% 0.0% 0.0% skip:72.3%
[libx264 @ 0x5633ade11c00] mb B I16..4: 0.0% 0.1% 0.0% B16..8: 8.6% 0.3% 0.0% direct: 0.1% skip:90.9% L0:38.6% L1:59.1% BI: 2.3%
[libx264 @ 0x5633ade11c00] 8x8 transform intra:54.6% inter:81.7%
[libx264 @ 0x5633ade11c00] coded y,uvDC,uvAC intra: 48.8% 63.6% 21.7% inter: 0.9% 6.4% 0.1%
[libx264 @ 0x5633ade11c00] i16 v,h,dc,p: 5% 21% 2% 71%
[libx264 @ 0x5633ade11c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 21% 12% 7% 7% 6% 9% 8% 8%
[libx264 @ 0x5633ade11c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 29% 9% 4% 6% 5% 10% 5% 4%
[libx264 @ 0x5633ade11c00] i8c dc,h,v,p: 54% 17% 23% 7%
[libx264 @ 0x5633ade11c00] Weighted P-Frames: Y:1.7% UV:0.8%
[libx264 @ 0x5633ade11c00] ref P L0: 65.0% 4.9% 21.3% 8.8% 0.0%
[libx264 @ 0x5633ade11c00] ref B L0: 90.2% 8.5% 1.3%
[libx264 @ 0x5633ade11c00] ref B L1: 95.3% 4.7%
[libx264 @ 0x5633ade11c00] kb/s:123.38and output at B is as follows,
`enter code here`Input #0, mpegts, from 'tcp://172.16.0.169:50000?listen':
Duration: N/A, start: 1.433333, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (4:2:2) ([2][0][0][0] / 0x0002), yuv422p(tv, progressive), 640x480 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 90k tbn, 60 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[Parsed_showinfo_0 @ 0x564b15967460] config in time_base: 1/90000, frame_rate: 30/1
[Parsed_showinfo_0 @ 0x564b15967460] config out time_base: 0/0, frame_rate: 0/0
[Parsed_showinfo_0 @ 0x564b15967460] n: 0 pts: 0 pts_time:0 pos: 564 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:1 type:I checksum:C4C468FE plane_checksum:[D95CF033 55257422 E595049A] mean:[116 133 135 ] stdev:[53.9 21.2 24.8 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] side data - unknown side data type 12 (8 bytes)
No pixel format specified, yuv422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x564b1590fd80] using SAR=1/1
[libx264 @ 0x564b1590fd80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x564b1590fd80] profile High 4:2:2, level 3.0, 4:2:2 8-bit
[libx264 @ 0x564b1590fd80] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/home/sana/Desktop/receiver_new/receiver_new_mp4/tcp10wf.mp4':
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv422p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc57.89.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[Parsed_showinfo_0 @ 0x564b15967460] n: 1 pts: 3000 pts_time:0.0333333 pos: 160740 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:1 type:I checksum:ABE94737 plane_checksum:[9EBD5B29 764AF3E3 D38AF80D] mean:[217 128 130 ] stdev:[29.5 2.8 4.3 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 2 pts: 6000 pts_time:0.0666667 pos: 180480 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:E0B4988D plane_checksum:[4E367382 03AEE4B1 318F404B] mean:[216 128 130 ] stdev:[30.3 3.5 3.4 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] side data - unknown side data type 12 (8 bytes)
[Parsed_showinfo_0 @ 0x564b15967460] n: 3 pts: 9000 pts_time:0.1 pos: 197588 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:1 type:I checksum:B1C91876 plane_checksum:[AB0F6A6E 6CC6578E E607566B] mean:[132 129 128 ] stdev:[41.4 3.3 3.2 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 4 pts: 12000 pts_time:0.133333 pos: 229736 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:8BA7FB44 plane_checksum:[5DEF68EE E8213305 17EB5F51] mean:[132 129 128 ] stdev:[41.4 3.3 3.2 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 5 pts: 15000 pts_time:0.166667 pos: 231804 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:AD4C2994 plane_checksum:[24819277 A69D34D4 B3CD623A] mean:[132 129 128 ] stdev:[41.4 3.3 3.2 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 6 pts: 18000 pts_time:0.2 pos: 232556 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:7AD4A9FF plane_checksum:[F2328134 6200B528 45A97394] mean:[109 129 128 ] stdev:[40.2 3.0 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 7 pts: 21000 pts_time:0.233333 pos: 244588 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:942BD05A plane_checksum:[5ABAA382 B8B0B726 FD1B75A3] mean:[109 129 128 ] stdev:[40.2 3.0 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 8 pts: 24000 pts_time:0.266667 pos: 245528 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:78F6F66E plane_checksum:[4C33C2B1 E905BB7E 064B7830] mean:[109 129 128 ] stdev:[40.2 3.0 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 9 pts: 27000 pts_time:0.3 pos: 246092 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:637EFB0B plane_checksum:[D25DC425 30A7BD43 069D7994] mean:[109 129 128 ] stdev:[40.2 3.0 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 10 pts: 30000 pts_time:0.333333 pos: 246656 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:9E78061E plane_checksum:[9C27CBE2 DB4ABF7E 267D7AA0] mean:[109 129 128 ] stdev:[40.2 3.0 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 11 pts: 33000 pts_time:0.366667 pos: 247220 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:08E014FD plane_checksum:[69E7D8AA B0E2C07F 6F557BB6] mean:[109 129 128 ] stdev:[40.2 3.0 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 12 pts: 36000 pts_time:0.4 pos: 247784 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:87DA207B plane_checksum:[2E59E1CF 3AABC10A D1E97D84] mean:[109 129 128 ] stdev:[40.2 3.0 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 13 pts: 39000 pts_time:0.433333 pos: 248348 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:914F3267 plane_checksum:[EBC0F215 BD45C2D3 AC0A7D61] mean:[109 129 128 ] stdev:[40.2 3.0 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 14 pts: 42000 pts_time:0.466667 pos: 248912 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:9948509D plane_checksum:[CC2F0C83 ED75C5A9 210E7E62] mean:[109 129 128 ] stdev:[40.2 3.0 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] side data - unknown side data type 12 (8 bytes)
[Parsed_showinfo_0 @ 0x564b15967460] n: 15 pts: 45000 pts_time:0.5 pos: 249852 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:1 type:I checksum:2910004A plane_checksum:[534C140D 40CEE6CC 4EF70562] mean:[109 129 128 ] stdev:[40.2 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 16 pts: 48000 pts_time:0.533333 pos: 263200 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:6BBB211A plane_checksum:[78712F93 80CAE91F A3100859] mean:[109 129 128 ] stdev:[40.2 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 17 pts: 51000 pts_time:0.566667 pos: 263952 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:ACF52F6A plane_checksum:[B1EB3C80 4FC8E9A1 9CED093A] mean:[109 129 128 ] stdev:[40.2 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 18 pts: 54000 pts_time:0.6 pos: 264328 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:18206027 plane_checksum:[31466208 09F60A1D 12DAF3F3] mean:[113 129 128 ] stdev:[40.6 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 19 pts: 57000 pts_time:0.633333 pos: 268276 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:64B67919 plane_checksum:[685A7A8E 3EC50A6E 33B6F40E] mean:[113 129 128 ] stdev:[40.6 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 20 pts: 60000 pts_time:0.666667 pos: 268652 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:2EDF8D96 plane_checksum:[C5478D34 E97E0AD1 A102F582] mean:[113 129 128 ] stdev:[40.6 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 21 pts: 63000 pts_time:0.7 pos: 269216 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:26113995 plane_checksum:[17BE2921 F51A1C4A C9D2F41B] mean:[114 129 128 ] stdev:[40.9 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 22 pts: 66000 pts_time:0.733333 pos: 272224 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:CAA9871C plane_checksum:[943974ED 7B351CE2 0458F53E] mean:[114 129 128 ] stdev:[40.9 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 23 pts: 69000 pts_time:0.766667 pos: 272788 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:C0C1DBB3 plane_checksum:[C2FEC442 0FE01EA7 057AF8BB] mean:[114 129 128 ] stdev:[40.8 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 24 pts: 72000 pts_time:0.8 pos: 273728 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:924A4994 plane_checksum:[833C2885 BD2A22BB B2DBFE45] mean:[115 129 128 ] stdev:[40.8 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 25 pts: 75000 pts_time:0.833333 pos: 274668 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:9451D3A0 plane_checksum:[169CAC73 177C25E0 C23E014D] mean:[115 129 128 ] stdev:[40.7 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 26 pts: 78000 pts_time:0.866667 pos: 275232 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:49A639A2 plane_checksum:[4DF60BD9 821F2A4F 108D037A] mean:[115 129 128 ] stdev:[40.7 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] side data - unknown side data type 12 (8 bytes)
[Parsed_showinfo_0 @ 0x564b15967460] n: 27 pts: 81000 pts_time:0.9 pos: 276172 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:1 type:I checksum:FC6359F1 plane_checksum:[B3915D35 4B0DE947 7F961366] mean:[116 129 128 ] stdev:[40.3 2.9 3.1 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 28 pts: 84000 pts_time:0.933333 pos: 286700 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:B39C9D3F plane_checksum:[34749CEA BA34EAFC E248154A] mean:[116 129 128 ] stdev:[40.2 2.9 3.1 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 29 pts: 87000 pts_time:0.966667 pos: 287264 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:97FED800 plane_checksum:[300AD70C 0EBEEB31 DEE515B4] mean:[116 129 128 ] stdev:[40.2 2.9 3.0 ]
[Parsed_showinfo_0 @ 0x564b15967460] side data - pan/scan
[Parsed_showinfo_0 @ 0x564b15967460] n: 30 pts: 90000 pts_time:1 pos: 287828 fmt:yuv422p sar:1/1 s:640x480 i:P iskey:0 type:P checksum:B278FBDC plane_checksum:[6094F812 B757EBEF 839F17CC] mean:[116 129 128 ] stdev:[40.2 2.9 3.0 ]
................................
..................................
frame= 1415 fps= 34 q=-1.0 Lsize= 1047kB time=00:00:47.06 bitrate= 182.2kbits/s speed=1.12x
video:1032kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.490835%
[libx264 @ 0x55b73dba9fc0] frame I:6 Avg QP:16.30 size: 9839
[libx264 @ 0x55b73dba9fc0] frame P:591 Avg QP:20.05 size: 1380
[libx264 @ 0x55b73dba9fc0] frame B:818 Avg QP:22.29 size: 221
[libx264 @ 0x55b73dba9fc0] consecutive B-frames: 20.8% 5.2% 3.0% 71.0%
[libx264 @ 0x55b73dba9fc0] mb I I16..4: 47.5% 49.8% 2.8%
[libx264 @ 0x55b73dba9fc0] mb P I16..4: 1.7% 4.8% 0.2% P16..4: 12.0% 2.2% 2.9% 0.0% 0.0% skip:76.1%
[libx264 @ 0x55b73dba9fc0] mb B I16..4: 0.2% 0.4% 0.0% B16..8: 14.5% 0.2% 0.0% direct: 0.4% skip:84.3% L0:60.3% L1:39.3% BI: 0.5%
[libx264 @ 0x55b73dba9fc0] 8x8 transform intra:67.9% inter:92.5%
[libx264 @ 0x55b73dba9fc0] coded y,uvDC,uvAC intra: 44.0% 48.3% 1.9% inter: 1.5% 3.6% 0.1%
[libx264 @ 0x55b73dba9fc0] i16 v,h,dc,p: 20% 61% 14% 5%
[libx264 @ 0x55b73dba9fc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 22% 52% 2% 0% 0% 1% 1% 7%
[libx264 @ 0x55b73dba9fc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 52% 33% 8% 2% 1% 1% 1% 1% 1%
[libx264 @ 0x55b73dba9fc0] i8c dc,h,v,p: 47% 23% 28% 3%
[libx264 @ 0x55b73dba9fc0] Weighted P-Frames: Y:0.3% UV:0.2%
[libx264 @ 0x55b73dba9fc0] ref P L0: 82.7% 6.2% 7.6% 3.5% 0.0%
[libx264 @ 0x55b73dba9fc0] ref B L0: 71.7% 22.3% 6.1%
[libx264 @ 0x55b73dba9fc0] ref B L1: 93.6% 6.4%
[libx264 @ 0x55b73dba9fc0] kb/s:179.05`I have skipped few lines of output as there are many frames. So if you see at the end of output on both A and B sides and look at the number of I, P and B frames,the number of P and B frames on receiver B is more than that at sender A. Can anyone please tell me why there is a change in the number of frames ?
-
Not all portions of video play well after concatenation
24 septembre 2018, par srgbndNode.JS 8.11.4, fluent-ffmpeg 2.1.2
I need to concatenate random portions of the same length of different videos in one video file. The concatenation proceeds without errors. But when I play the final concatenated file I see some portions playing well with sound, others have video "frozen" but sounds playing.
What’s the problem ? I want all portions playing well in the final concatenated file.
Concatenation config :
trex@cave:/media/trex/safe1/Development/app$ head concat_config.txt
file /media/trex/safe1/Development/app/videos/test/417912400.mp4
inpoint 145
outpoint 155
file /media/trex/safe1/Development/app/videos/test/440386842.mp4
inpoint 59
outpoint 69
file /media/trex/safe1/Development/app/videos/test/417912400.mp4
inpoint 144
outpoint 154
...In total, I have 16 portions of 2 videos. Duration of a portion is 10 sec. In the future the number of video files and portions will be much bigger.
trex@cave:/media/trex/safe1/Development/app$ ls -lh videos/test/
total 344M
-rw-r--r-- 1 trex trex 90M set 23 12:19 417912400.mp4
-rw-r--r-- 1 trex trex 254M set 23 12:19 440386842.mp4JavaScript code for the concatentaion :
const fs = require('fs');
const path = require('path');
const _ = require('lodash');
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffprobePath = require('@ffprobe-installer/ffprobe').path;
const ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegPath);
ffmpeg.setFfprobePath(ffprobePath);
function getMetadata(absPathToFile) {
return new Promise(function (resolve, reject) {
ffmpeg.ffprobe(absPathToFile, function(err, metadata) {
if (err) {
reject('get video meta: ' + err.toString());
}
resolve(metadata);
});
});
}
async function getFormat(files) {
const pArray = files.map(async f => {
const meta = await getMetadata(f);
meta.format.short_filename = meta.format.filename.split('/').pop();
return meta.format;
});
return await Promise.all(pArray);
}
function getSliceValues(duration, max = 10) {
max = duration < max ? duration * 0.5 : max; // sec
const start = _.random(0, duration * 0.9);
const end = start + max > duration ? duration : start + max;
return `inpoint ${Math.floor(start)}\noutpoint ${Math.floor(end)}\n`;
}
function addPath(arr, aPath) {
return arr.map(e => path.join(aPath, e));
}
function createConfig(meta) {
return meta.map(video => `file ${video.filename}\n${getSliceValues(video.duration)}`).join('');
}
function duplicateMeta(meta) {
for (let i = 0; i < 3; i++) {
meta.push(...meta);
}
return _.shuffle(meta);
}
const videoFolder = path.join(__dirname, 'videos/test');
const finalVideo = 'final_video.mp4';
const configFile = 'concat_config.txt';
// main
(async () => {
let videos = addPath(fs.readdirSync(videoFolder), videoFolder);
let meta = await getFormat(videos);
meta = duplicateMeta(meta); // get multiple portions of videos
fs.writeFileSync(configFile, createConfig(meta));
const mpeg = ffmpeg();
mpeg.input(configFile)
.inputOptions(['-f concat', '-safe 0'])
.outputOptions('-c copy')
.save(finalVideo);
})();Video files formats :
{ streams:
[ { index: 0,
codec_name: 'h264',
codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
profile: 'High',
codec_type: 'video',
codec_time_base: '1001/60000',
codec_tag_string: 'avc1',
codec_tag: '0x31637661',
width: 1920,
height: 1080,
coded_width: 1920,
coded_height: 1088,
has_b_frames: 2,
sample_aspect_ratio: '1:1',
display_aspect_ratio: '16:9',
pix_fmt: 'yuv420p',
level: 40,
color_range: 'tv',
color_space: 'bt709',
color_transfer: 'bt709',
color_primaries: 'bt709',
chroma_location: 'left',
field_order: 'unknown',
timecode: 'N/A',
refs: 1,
is_avc: 'true',
nal_length_size: 4,
id: 'N/A',
r_frame_rate: '30000/1001',
avg_frame_rate: '30000/1001',
time_base: '1/30000',
start_pts: 0,
start_time: 0,
duration_ts: 4936900,
duration: 164.563333,
bit_rate: 4323409,
max_bit_rate: 'N/A',
bits_per_raw_sample: 8,
nb_frames: 4932,
nb_read_frames: 'N/A',
nb_read_packets: 'N/A',
tags: [Object],
disposition: [Object] },
{ index: 1,
codec_name: 'aac',
codec_long_name: 'AAC (Advanced Audio Coding)',
profile: 'LC',
codec_type: 'audio',
codec_time_base: '1/48000',
codec_tag_string: 'mp4a',
codec_tag: '0x6134706d',
sample_fmt: 'fltp',
sample_rate: 48000,
channels: 2,
channel_layout: 'stereo',
bits_per_sample: 0,
id: 'N/A',
r_frame_rate: '0/0',
avg_frame_rate: '0/0',
time_base: '1/48000',
start_pts: 0,
start_time: 0,
duration_ts: 7899120,
duration: 164.565,
bit_rate: 256000,
max_bit_rate: 263232,
bits_per_raw_sample: 'N/A',
nb_frames: 7714,
nb_read_frames: 'N/A',
nb_read_packets: 'N/A',
tags: [Object],
disposition: [Object] } ],
format:
{ filename: '/media/trex/safe1/Development/app/videos/test/417912400.mp4',
nb_streams: 2,
nb_programs: 0,
format_name: 'mov,mp4,m4a,3gp,3g2,mj2',
format_long_name: 'QuickTime / MOV',
start_time: 0,
duration: 164.565,
size: 94298844,
bit_rate: 4584150,
probe_score: 100,
tags:
{ major_brand: 'mp42',
minor_version: '0',
compatible_brands: 'mp42mp41isomavc1',
creation_time: '2015-09-21T19:11:21.000000Z' } },
chapters: [] }
{ streams:
[ { index: 0,
codec_name: 'h264',
codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
profile: 'High',
codec_type: 'video',
codec_time_base: '1001/48000',
codec_tag_string: 'avc1',
codec_tag: '0x31637661',
width: 2560,
height: 1440,
coded_width: 2560,
coded_height: 1440,
has_b_frames: 2,
sample_aspect_ratio: '1:1',
display_aspect_ratio: '16:9',
pix_fmt: 'yuv420p',
level: 51,
color_range: 'tv',
color_space: 'bt709',
color_transfer: 'bt709',
color_primaries: 'bt709',
chroma_location: 'left',
field_order: 'unknown',
timecode: 'N/A',
refs: 1,
is_avc: 'true',
nal_length_size: 4,
id: 'N/A',
r_frame_rate: '24000/1001',
avg_frame_rate: '24000/1001',
time_base: '1/24000',
start_pts: 0,
start_time: 0,
duration_ts: 4206200,
duration: 175.258333,
bit_rate: 11891834,
max_bit_rate: 'N/A',
bits_per_raw_sample: 8,
nb_frames: 4202,
nb_read_frames: 'N/A',
nb_read_packets: 'N/A',
tags: [Object],
disposition: [Object] },
{ index: 1,
codec_name: 'aac',
codec_long_name: 'AAC (Advanced Audio Coding)',
profile: 'LC',
codec_type: 'audio',
codec_time_base: '1/48000',
codec_tag_string: 'mp4a',
codec_tag: '0x6134706d',
sample_fmt: 'fltp',
sample_rate: 48000,
channels: 2,
channel_layout: 'stereo',
bits_per_sample: 0,
id: 'N/A',
r_frame_rate: '0/0',
avg_frame_rate: '0/0',
time_base: '1/48000',
start_pts: 0,
start_time: 0,
duration_ts: 8414160,
duration: 175.295,
bit_rate: 256000,
max_bit_rate: 262152,
bits_per_raw_sample: 'N/A',
nb_frames: 8217,
nb_read_frames: 'N/A',
nb_read_packets: 'N/A',
tags: [Object],
disposition: [Object] } ],
format:
{ filename: '/media/trex/safe1/Development/app/videos/test/440386842.mp4',
nb_streams: 2,
nb_programs: 0,
format_name: 'mov,mp4,m4a,3gp,3g2,mj2',
format_long_name: 'QuickTime / MOV',
start_time: 0,
duration: 175.295,
size: 266214940,
bit_rate: 12149345,
probe_score: 100,
tags:
{ major_brand: 'mp42',
minor_version: '0',
compatible_brands: 'mp42mp41isomavc1',
creation_time: '2015-11-15T19:30:49.000000Z' } },
chapters: [] }