
Recherche avancée
Autres articles (63)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (6690)
-
What is wrong with the following ffmpeg command
9 juin 2017, par BradWhat is wrong with the following ffmpeg command ? Originally this had
-sameq
instead of the-qscale:a 0
Command :
ffmpeg -loglevel debug -threads 4 -i sample-in.mpg -ss 00:00:01 -t 00:00:05 -f image2 -y sample-frames/frame%d.png -acodec copy -qscale:a 0 -y sample.mp3
Output
ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Jul 9 2013 04:36:42 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-ffplay
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging level) with argument 'debug'.
Reading option '-threads' ... matched as AVOption 'threads' with argument '4'.
Reading option '-i' ... matched as input file with argument 'sample-in.mpg'.
Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '00:00:01'.
Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '00:00:05'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'image2'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'sample-frames/frame%d.png' ... matched as output file.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'.
Reading option '-qscale:a' ... matched as option 'qscale' (use fixed quality scale (VBR)) with argument '0'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'sample.mp3' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set libav* logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Last message repeated 1 times
Successfully parsed a group of options.
Parsing a group of options: input file sample-in.mpg.
Successfully parsed a group of options.
Opening an input file: sample-in.mpg.
[mpeg @ 0x7ffb4a80f200] Format mpeg probed with size=16384 and score=52
[mpeg @ 0x7ffb4a80f200] File position before avformat_find_stream_info() is 0
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2500
[mpeg @ 0x7ffb4a80f200] Probe with size=2002, packets=1 detected mpegvideo with score=25
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2499
[mpeg @ 0x7ffb4a80f200] Probe with size=4043, packets=2 detected mpegvideo with score=25
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2498
[mpeg @ 0x7ffb4a80f200] Probe with size=6084, packets=3 detected mpegvideo with score=25
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2497
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2496
[mpeg @ 0x7ffb4a80f200] Probe with size=10166, packets=5 detected mpegvideo with score=25
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2495
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2494
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2493
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2492
[mpeg @ 0x7ffb4a80f200] Probe with size=18330, packets=9 detected mpegvideo with score=25
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2491
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2490
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2489
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2488
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2487
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2486
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2485
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2484
[mpeg @ 0x7ffb4a80f200] Probe with size=34658, packets=17 detected mpegvideo with score=25
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2483
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2482
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2481
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2480
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2479
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2478
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2477
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2476
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2475
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2474
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2473
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2472
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2471
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2470
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2469
[mpeg @ 0x7ffb4a80f200] probing stream 0 pp:2468
[mpeg @ 0x7ffb4a80f200] Probe with size=67266, packets=33 detected mpegvideo with score=51
[mpeg @ 0x7ffb4a80f200] probed stream 0
[mpeg @ 0x7ffb4a80f200] first_dts 86997 not matching first dts 93003 in the queue
Last message repeated 3 times
[mpeg @ 0x7ffb4a80f200] first_dts 86997 not matching first dts 108018 in the queue
Last message repeated 3 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 111600 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 135360 in the queue
Last message repeated 8 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 156960 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 180720 in the queue
Last message repeated 8 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 202320 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 226080 in the queue
Last message repeated 8 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 247680 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 271440 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 295200 in the queue
Last message repeated 8 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 316800 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 340560 in the queue
Last message repeated 8 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 362160 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 385920 in the queue
Last message repeated 8 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 407520 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 431280 in the queue
Last message repeated 8 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 452880 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 476640 in the queue
Last message repeated 8 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 498240 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] first_dts 90000 not matching first dts 522000 in the queue
Last message repeated 9 times
[mpeg @ 0x7ffb4a80f200] max_analyze_duration 5000000 reached at 5005000 microseconds
[mpeg @ 0x7ffb4a80f200] File position after avformat_find_stream_info() is 0
Input #0, mpeg, from 'sample-in.mpg':
Duration: 00:00:05.97, start: 1.000000, bitrate: 6827 kb/s
Stream #0:0[0x1e0], 152, 1/90000: Video: mpeg1video, yuv420p, 704x480 [SAR 200:219 DAR 880:657], 1001/30000, 104857 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
Stream #0:1[0x1c0], 211, 1/90000: Audio: mp2, 48000 Hz, stereo, s16p, 64 kb/s
Successfully opened the file.
Parsing a group of options: output file sample-frames/frame%d.png.
Applying option ss (set the start time offset) with argument 00:00:01.
Applying option t (record or transcode "duration" seconds of audio/video) with argument 00:00:05.
Applying option f (force format) with argument image2.
Successfully parsed a group of options.
Opening an output file: sample-frames/frame%d.png.
Successfully opened the file.
Parsing a group of options: output file sample.mp3.
Applying option acodec (force audio codec ('copy' to copy stream)) with argument copy.
Applying option qscale:a (use fixed quality scale (VBR)) with argument 0.
Successfully parsed a group of options.
Opening an output file: sample.mp3.
Successfully opened the file.
[buffer @ 0x7ffb4a411e40] Setting entry with key 'video_size' to value '704x480'
[buffer @ 0x7ffb4a411e40] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0x7ffb4a411e40] Setting entry with key 'time_base' to value '1/90000'
[buffer @ 0x7ffb4a411e40] Setting entry with key 'pixel_aspect' to value '200/219'
[buffer @ 0x7ffb4a411e40] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0x7ffb4a411e40] Setting entry with key 'frame_rate' to value '30000/1001'
[graph 0 input from stream 0:0 @ 0x7ffb4a411de0] w:704 h:480 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:200/219 sws_param:flags=2
[scale @ 0x7ffb4a414800] Setting 'w' to value '0'
[scale @ 0x7ffb4a414800] Setting 'h' to value '0'
[scale @ 0x7ffb4a414800] Setting 'flags' to value '0x4'
[auto-inserted scaler 0 @ 0x7ffb4a414740] w:0 h:0 flags:'0x4' interl:0
[format @ 0x7ffb4a42aa20] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[auto-inserted scaler 0 @ 0x7ffb4a414740] picking rgb24 out of 7 ref:yuv420p alpha:0
[auto-inserted scaler 0 @ 0x7ffb4a414740] w:704 h:480 fmt:yuv420p sar:200/219 -> w:704 h:480 fmt:rgb24 sar:200/219 flags:0x4
[png @ 0x7ffb4a831000] detected 4 logical cores
[mp3 @ 0x7ffb4a831600] Invalid audio stream. Exactly one MP3 audio stream is required.
Output #0, image2, to 'sample-frames/frame%d.png':
Metadata:
encoder : Lavf54.63.104
Stream #0:0, 0, 1/90000: Video: png, rgb24, 704x480 [SAR 200:219 DAR 880:657], 1001/30000, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Output #1, mp3, to 'sample.mp3':
Metadata:
encoder : Lavf54.63.104
Stream #1:0, 0, 1/90000: Audio: mp2, 48000 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg1video -> png)
Stream #0:1 -> #1:0 (copy)
Could not write header for output file #1 (incorrect codec parameters ?): Invalid argument
Statistics: 4542608 bytes read, 2 seeksI found the code above from : http://kwlug.org/node/854
I did a few edits removing the-sameq
and replacing it with-qscale:a 0
which probably is wrong. -
FFMPEG TimeCode synchronization
14 juin 2017, par SpadieriI have a problem with the length of a TS video file.
Use Hauppauge QuadTV HD video capture card,
ffprobe TS file
{
[STREAM]
index=0
codec_name=mpeg2video
codec_long_name=MPEG-2 video
profile=Main
codec_type=video
codec_time_base=1/25
codec_tag_string=[2][0][0][0]
codec_tag=0x0002
width=720
height=576
coded_width=0
coded_height=0
has_b_frames=1
sample_aspect_ratio=64:45
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=8
color_range=tv
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=tt
timecode=N/A
refs=1
id=0x201
r_frame_rate=25/1
avg_frame_rate=25/1
time_base=1/90000
start_pts=4090681690
start_time=45452.018778
duration_ts=323618400
duration=3595.760000
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
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
DISPOSITION:timed_thumbnails=0
[/STREAM]
[STREAM]
index=1
codec_name=mp2
codec_long_name=MP2 (MPEG audio layer 2)
profile=unknown
codec_type=audio
codec_time_base=1/48000
codec_tag_string=[4][0][0][0]
codec_tag=0x0004
sample_fmt=s16p
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=0x28b
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=4090672903
start_time=45451.921144
duration_ts=323585280
duration=3595.392000
bit_rate=192000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
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
DISPOSITION:timed_thumbnails=0
TAG:language=ita
[/STREAM]
[STREAM]
index=2
codec_name=dvb_teletext
codec_long_name=DVB teletext
profile=unknown
codec_type=subtitle
codec_tag_string=[6][0][0][0]
codec_tag=0x0006
width=N/A
height=N/A
id=0x241
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=4090655137
start_time=45451.723744
duration_ts=323611200
duration=3595.680000
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
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
DISPOSITION:timed_thumbnails=0
TAG:language=ita
[/STREAM]
[STREAM]
index=3
codec_name=mp2
codec_long_name=MP2 (MPEG audio layer 2)
profile=unknown
codec_type=audio
codec_time_base=1/48000
codec_tag_string=[4][0][0][0]
codec_tag=0x0004
sample_fmt=s16p
sample_rate=48000
channels=1
channel_layout=mono
bits_per_sample=0
id=0x2b7
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=4090668157
start_time=45451.868411
duration_ts=323589600
duration=3595.440000
bit_rate=64000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
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
DISPOSITION:timed_thumbnails=0
TAG:language=Oth
[/STREAM]
[STREAM]
index=4
codec_name=mp2
codec_long_name=MP2 (MPEG audio layer 2)
profile=unknown
codec_type=audio
codec_time_base=1/48000
codec_tag_string=[4][0][0][0]
codec_tag=0x0004
sample_fmt=s16p
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=0x2b8
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=4090663971
start_time=45451.821900
duration_ts=323585280
duration=3595.392000
bit_rate=192000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
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
DISPOSITION:timed_thumbnails=0
TAG:language=eng
[/STREAM]
[STREAM]
index=5
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=unknown
codec_tag_string=[5][0][0][0]
codec_tag=0x0005
id=0x7d2
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=4090655137
start_time=45451.723744
duration_ts=323644953
duration=3596.055033
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
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
DISPOSITION:timed_thumbnails=0
[/STREAM]
[STREAM]
index=6
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=unknown
codec_tag_string=[11][0][0][0]
codec_tag=0x000b
id=0xbb9
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=4090655137
start_time=45451.723744
duration_ts=323644953
duration=3596.055033
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
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
DISPOSITION:timed_thumbnails=0
[/STREAM]
}steps :
1°- demux con ProjectX
output :
video.m2v (25 fps)
audio.mp2ffmprobe video.m2v
{
[STREAM]
index=0
codec_name=mpeg2video
codec_long_name=MPEG-2 video
profile=Main
codec_type=video
codec_time_base=1/25
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
width=720
height=576
coded_width=0
coded_height=0
has_b_frames=1
sample_aspect_ratio=64:45
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=8
color_range=tv
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=progressive
timecode=N/A
refs=1
id=0x1e0
r_frame_rate=25/1
avg_frame_rate=25/1
time_base=1/90000
start_pts=48600
start_time=0.540000
duration_ts=322970400
duration=3588.560000
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
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
DISPOSITION:timed_thumbnails=0
[/STREAM]
}2° - Burn TimeCode with ffmpeg
CL : "
ffmpeg -i video.m2v -c:v mpeg2video -vf "drawtext=fontfile=courier.ttf: timecode='00\:00\:00\:00': r=25: x=10: y=10: fontcolor=white: box=1: fontsize=50: boxcolor=0x00000099" output.mpeg
"ffmpeg output:
{
ffmpeg version N-85604-g207e6de Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 61.100 / 55. 61.100
libavcodec 57. 93.100 / 57. 93.100
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 86.100 / 6. 86.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, mpegvideo, from 'R2_TG2_20170607_13001.m2v':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
[mpeg @ 00000000025eb760] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to 'output.mpeg':
Metadata:
encoder : Lavf57.72.101
Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc57.93.100 mpeg2video
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
[mpeg2video @ 0000000002625020] ac-tex damaged at 1 3027.24 bitrate= 879.1kbits/s speed= 39x
[mpeg2video @ 0000000002625020] Warning MVs not available
[mpeg2video @ 0000000002625020] concealing 45 DC, 45 AC, 45 MV errors in I frame
[mpeg2video @ 0000000002625020] Warning MVs not available56 bitrate= 846.8kbits/s speed=39.1x
[mpeg2video @ 0000000002625020] concealing 1 DC, 1 AC, 1 MV errors in B frame
frame=89714 fps=974 q=31.0 Lsize= 332412kB time=00:59:48.52 bitrate= 758.8kbits/s speed= 39x
video:329859kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.774119%
}As seen from the screenshots there are 14 frames of difference, and later rise to 35
Can frames be damaged and ffmpeg skip them ?
The video for the first 13 minutes is perfectly synchronized
3° - remux [output.mmpeg] with original audio [audio.mp2]
CL: "ffmpeg -i output.mpeg -i originalAudio.mp2 -c:a copy -c:v copy finalOutput.mpeg"
ffmpeg output:
{
ffmpeg version N-85604-g207e6de Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 61.100 / 55. 61.100
libavcodec 57. 93.100 / 57. 93.100
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 86.100 / 6. 86.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, mpeg, from 'output.mpeg':
Duration: 00:59:48.56, start: 0.540000, bitrate: 758 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
[mp3 @ 0000000002894980] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from 'R2_TG2_20170607_13001.mp2':
Duration: 00:59:48.55, start: 0.000000, bitrate: 192 kb/s
Stream #1:0: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
[mpeg @ 000000000289a880] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to 'finalOutput.mpeg':
Metadata:
encoder : Lavf57.72.101
Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpeg @ 000000000289a880] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
frame=89714 fps=26872 q=-1.0 Lsize= 417232kB time=00:59:48.52 bitrate= 952.5kbits/s speed=1.07e+003x
video:329859kB audio:84107kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.789151%
}FinalOutput.mpeg has the same frames as output.mpeg
I have several TransportStreams to process and everyone has a frame differencesomeone can help me to solve the problem ?
I need FinalOutput.mpeg to be aligned frame by frame with the original and necessarily the video must impress the timecode.
a possible solution would also be a replace "damaged" frame but I can not find out how to replace the skipped frames
EDIT :
i’ve tried to work from OriginalVideo.ts and extracted video with -map directly with FFMPEG but the result is the same
CL :
ffmpeg -i OriginalVideo.ts -map 0:0 -c:v copy output.h264
ffmpeg version N-85604-g207e6de Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 61.100 / 55. 61.100
libavcodec 57. 93.100 / 57. 93.100
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 86.100 / 6. 86.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[mpeg2video @ 0000000000dd4c20] Invalid frame dimensions 0x0.
Last message repeated 5 times
[mp2 @ 0000000000dd7e00] Header missing
[mp2 @ 0000000000dd8f20] Header missing
[mpeg2video @ 0000000000dd4c20] Invalid frame dimensions 0x0.
[mp2 @ 0000000000dd5b60] Header missing
[mpegts @ 0000000000dd25a0] PES packet size mismatch
Last message repeated 1 times
[mpegts @ 0000000000dd25a0] Could not find codec parameters for stream 5 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0000000000dd25a0] Could not find codec parameters for stream 6 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'R2_TG2_20170607_13001.ts':
Duration: 00:59:56.06, start: 45451.723744, bitrate: 5901 kb/s
Program 3402
Stream #0:0[0x201]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x28b](ita): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
Stream #0:2[0x241](ita): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:3[0x2b7](Oth): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, mono, s16p, 64 kb/s
Stream #0:4[0x2b8](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
Stream #0:5[0x7d2]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:6[0xbb9]: Unknown: none ([11][0][0][0] / 0x000B)
Output #0, h264, to 'output.h264':
Metadata:
encoder : Lavf57.72.101
Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=89746 fps=6083 q=-1.0 Lsize= 2131869kB time=00:59:55.64 bitrate=4857.1kbits/s speed= 244x
video:2131869kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%if i try to extract video in mpeg format FFMPEG retrive me following errors :
ffmpeg version N-85604-g207e6de Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 61.100 / 55. 61.100
libavcodec 57. 93.100 / 57. 93.100
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 86.100 / 6. 86.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[mpeg2video @ 0000000002824c20] Invalid frame dimensions 0x0.
Last message repeated 5 times
[mp2 @ 0000000002827e00] Header missing
[mp2 @ 0000000002828f20] Header missing
[mpeg2video @ 0000000002824c20] Invalid frame dimensions 0x0.
[mp2 @ 0000000002825b60] Header missing
[mpegts @ 00000000028225a0] PES packet size mismatch
Last message repeated 1 times
[mpegts @ 00000000028225a0] Could not find codec parameters for stream 5 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 00000000028225a0] Could not find codec parameters for stream 6 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'R2_TG2_20170607_13001.ts':
Duration: 00:59:56.06, start: 45451.723744, bitrate: 5901 kb/s
Program 3402
Stream #0:0[0x201]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x28b](ita): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
Stream #0:2[0x241](ita): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:3[0x2b7](Oth): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, mono, s16p, 64 kb/s
Stream #0:4[0x2b8](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
Stream #0:5[0x7d2]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:6[0xbb9]: Unknown: none ([11][0][0][0] / 0x000B)
File 'output.mpeg' already exists. Overwrite ? [y/N] y
[mpeg @ 000000000072bc80] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to 'output.mpeg':
Metadata:
encoder : Lavf57.72.101
Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=1218 size=11754=4752.0kbits/s speed= 229x
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=3247 size=11754
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=5288 size=11754
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=7329 size=11754
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=9370 size=11754
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=11411 size=11754
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=1862 size=17826
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=3891 size=17826
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=5932 size=17826
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=7973 size=17826
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=10014 size=17826
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=12055 size=17826
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=14096 size=17826
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=16137 size=17826
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=875 size=88109e=4684.9kbits/s speed= 239x
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=2904 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=4945 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=6986 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=9027 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=11068 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=13109 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=15150 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=17191 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=19232 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=21273 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=23314 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=25355 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=27396 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=29437 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=31478 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=33519 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=35560 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=37601 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=39642 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=41683 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=43724 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=45765 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=47806 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=49847 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=51888 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=53929 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=55970 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=58011 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=60052 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=62093 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=64134 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=66175 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=68216 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=70257 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=72298 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=74339 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=76380 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=78421 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=80462 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=82503 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=84544 size=88109
[mpeg @ 000000000072bc80] buffer underflow st=0 bufi=86585 size=88109
frame=89746 fps=5348 q=-1.0 Lsize= 2140734kB time=00:59:55.60 bitrate=4877.3kbits/s speed= 214x
video:2131869kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.415814% -
ffmpeg windows : how to run ffmpeg -i input -filter:v frei0r=pixeliz0r=0.02:0.02 output
7 octobre 2015, par yarekI run ffmpeg on Windows.
I try to run
ffmpeg -i input.avi -filter:v frei0r=pixeliz0r=0.02:0.02 ouput.avi
I have this error :
No such filter: 'frei0r
Error opening filters!When I run
ffmpeg.exe
I got :ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 7 2011 15:55:06 with gcc 4.5.3
configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --disable-outdev=sdl -
-pkg-config=pkg-configNote the
--enable-frei0r
above.Any idea where I can get the ffmpeg for windows with frei0r enabled and working ?