[FFmpeg-user] Unable to change time base / tbn
landsberger at free.fr
landsberger at free.fr
Wed Dec 31 17:22:20 CET 2014
Hi again,
I'm having a second issue with this same file.
The duration of the audio and the video do not match in the source file, and it differs also in the output from FFMPEG.
How to make sure the duration of both streams match in the output?
I have tried the "-shortest" command with no effect.
I have removed a second using "-t", but "nb_frames" and "duration_ts" still did not match, though "duration" now did.
Thanks again for your great help!
VIDEO
start_pts=0
start_time=0.000000
duration_ts=719872
duration=56.240000
nb_frames=1406
AUDIO
start_pts=0
start_time=0.000000
duration_ts=2703360
duration=56.320000
nb_frames=2703360
---
ffprobe on input.mov
ffprobe version 2.4.2 Copyright (c) 2007-2014 the FFmpeg developers
built on Oct 8 2014 19:37:09 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/input.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
title : DVS Argentina Glacier (Raw)
encoder : Lavf56.4.101
comment : CANAL 9/CANAL 13 ARTEAR
copyright : Copyright 2012 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.
timecode : 09:59:51:24
Duration: 00:00:56.24, start: 0.000000, bitrate: 30343 kb/s
Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
handler_name : Gestionnaire d?alias Apple
Stream #0:1(eng): Data: none (tmcd / 0x64636D74)
Metadata:
handler_name : Gestionnaire d?alias Apple
timecode : 09:59:51:24
Stream #0:2(eng): Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, SAR 12:11 DAR 15:11, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
Metadata:
creation_time : 2014-12-31 14:42:08
handler_name : Gestionnaire d?alias Apple
encoder : Lavc56.1.100 dvvideo
timecode : 09:59:51:24
Unsupported codec with id 0 for input stream 1
[STREAM]
index=0
codec_name=pcm_s16le
codec_long_name=PCM signed 16-bit little-endian
profile=unknown
codec_type=audio
codec_time_base=1/48000
codec_tag_string=sowt
codec_tag=0x74776f73
sample_fmt=s16
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=16
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=2703360
duration=56.320000
bit_rate=1536000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=2703360
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:language=eng
[default @ 0x100843800] 1 invalid UTF-8 sequence(s) found in string 'Gestionnaire d?alias Apple', replaced with '�'
TAG:handler_name=Gestionnaire d�alias Apple
[/STREAM]
[STREAM]
index=1
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=data
codec_time_base=1/25
codec_tag_string=tmcd
codec_tag=0x64636d74
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/12800
start_pts=0
start_time=0.000000
duration_ts=719872
duration=56.240000
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=1
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
TAG:language=eng
TAG:handler_name=Gestionnaire d�alias Apple
TAG:timecode=09:59:51:24
[/STREAM]
[STREAM]
index=2
codec_name=dvvideo
codec_long_name=DV (Digital Video)
profile=unknown
codec_type=video
codec_time_base=1/25
codec_tag_string=dvcp
codec_tag=0x70637664
width=720
height=576
has_b_frames=0
sample_aspect_ratio=12:11
display_aspect_ratio=15:11
pix_fmt=yuv420p
level=-99
color_range=N/A
color_space=unknown
timecode=N/A
id=N/A
r_frame_rate=25/1
avg_frame_rate=25/1
time_base=1/12800
start_pts=0
start_time=0.000000
duration_ts=719872
duration=56.240000
bit_rate=28800000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=1406
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=2014-12-31 14:42:08
TAG:language=eng
TAG:handler_name=Gestionnaire d�alias Apple
TAG:encoder=Lavc56.1.100 dvvideo
TAG:timecode=09:59:51:24
[/STREAM]
---
ffmpeg -i '/input.mov' -video_track_timescale 25 -vcodec dvvideo -acodec pcm_s16le '/output.mov'
ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 8 2014 19:37:09 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/input.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
title : DVS Argentina Glacier (Raw)
encoder : Lavf56.4.101
comment : CANAL 9/CANAL 13 ARTEAR
copyright : Copyright 2012 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.
timecode : 09:59:51:24
Duration: 00:00:56.24, start: 0.000000, bitrate: 30343 kb/s
Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
handler_name : Gestionnaire d?alias Apple
Stream #0:1(eng): Data: none (tmcd / 0x64636D74)
Metadata:
handler_name : Gestionnaire d?alias Apple
timecode : 09:59:51:24
Stream #0:2(eng): Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, SAR 12:11 DAR 15:11, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
Metadata:
creation_time : 2014-12-31 14:42:08
handler_name : Gestionnaire d?alias Apple
encoder : Lavc56.1.100 dvvideo
timecode : 09:59:51:24
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
title : DVS Argentina Glacier (Raw)
timecode : 09:59:51:24
comment : CANAL 9/CANAL 13 ARTEAR
copyright : Copyright 2012 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.
encoder : Lavf56.4.101
Stream #0:0(eng): Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576 [SAR 12:11 DAR 15:11], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 2014-12-31 14:42:08
handler_name : Gestionnaire d?alias Apple
timecode : 09:59:51:24
encoder : Lavc56.1.100 dvvideo
Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
handler_name : Gestionnaire d?alias Apple
encoder : Lavc56.1.100 pcm_s16le
Stream mapping:
Stream #0:2 -> #0:0 (dvvideo (native) -> dvvideo (native))
Stream #0:0 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
frame= 57 fps=0.0 q=0.0 size= 8295kB time=00:00:02.28 bitrate=29803.9kbits/frame= 110 fps=107 q=0.0 size= 16289kB time=00:00:04.40 bitrate=30326.8kbits/frame= 166 fps=100 q=0.0 size= 24584kB time=00:00:06.65 bitrate=30257.0kbits/frame= 241 fps=112 q=0.0 size= 35550kB time=00:00:09.64 bitrate=30210.2kbits/frame= 277 fps= 94 q=0.0 size= 41025kB time=00:00:11.09 bitrate=30295.5kbits/frame= 332 fps= 94 q=0.0 size= 49172kB time=00:00:13.29 bitrate=30308.0kbits/frame= 388 fps= 92 q=0.0 size= 57467kB time=00:00:15.53 bitrate=30312.0kbits/frame= 455 fps= 96 q=0.0 size= 67392kB time=00:00:18.20 bitrate=30334.0kbits/frame= 530 fps=101 q=0.0 size= 78499kB time=00:00:21.20 bitrate=30333.3kbits/frame= 598 fps=104 q=0.0 size= 88574kB time=00:00:23.92 bitrate=30334.3kbits/frame= 665 fps=104 q=0.0 size= 98355kB time=00:00:26.60 bitrate=30290.4kbits/frame= 719 fps=104 q=0.0 size= 106497kB time=00:00:28.77 bitrate=30315.1kbits/frame= 796 fps=107 q=0.0 size= 117902kB time=00:00:31.84 bitrate=30334.5kbits/frame= 873 fps=110 q=0.0 size= 129306kB time=00:00:34.92 bitrate=30334.2kbits/frame= 941 fps=111 q=0.0 size= 139380kB time=00:00:37.65 bitrate=30324.1kbits/frame= 1010 fps=112 q=0.0 size= 149599kB time=00:00:40.40 bitrate=30334.6kbits/frame= 1082 fps=114 q=0.0 size= 160264kB time=00:00:43.28 bitrate=30334.7kbits/frame= 1156 fps=116 q=0.0 size= 171227kB time=00:00:46.24 bitrate=30334.9kbits/frame= 1217 fps=114 q=0.0 size= 180261kB time=00:00:48.68 bitrate=30333.1kbits/frame= 1291 fps=116 q=0.0 size= 191223kB time=00:00:51.64 bitrate=30335.0kbits/frame= 1363 fps=116 q=0.0 size= 201888kB time=00:00:54.52 bitrate=30335.0kbits/frame= 1406 fps=116 q=0.0 Lsize= 208296kB time=00:00:56.32 bitrate=30297.6kbits/s
video:197719kB audio:10560kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.008268%
---
ffprobe on output.mov :
ffprobe version 2.4.2 Copyright (c) 2007-2014 the FFmpeg developers
built on Oct 8 2014 19:37:09 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/output.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
title : DVS Argentina Glacier (Raw)
encoder : Lavf56.4.101
comment : CANAL 9/CANAL 13 ARTEAR
copyright : Copyright 2012 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.
Duration: 00:00:56.32, start: 0.000000, bitrate: 30297 kb/s
Stream #0:0(eng): Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, SAR 12:11 DAR 15:11, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
Metadata:
handler_name : DataHandler
encoder : Lavc56.1.100 dvvideo
timecode : 09:59:51:24
Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
handler_name : DataHandler
Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
Metadata:
handler_name : DataHandler
timecode : 09:59:51:24
Unsupported codec with id 0 for input stream 2
[STREAM]
index=0
codec_name=dvvideo
codec_long_name=DV (Digital Video)
profile=unknown
codec_type=video
codec_time_base=1/25
codec_tag_string=dvcp
codec_tag=0x70637664
width=720
height=576
has_b_frames=0
sample_aspect_ratio=12:11
display_aspect_ratio=15:11
pix_fmt=yuv420p
level=-99
color_range=N/A
color_space=unknown
timecode=N/A
id=N/A
r_frame_rate=25/1
avg_frame_rate=25/1
time_base=1/25
start_pts=0
start_time=0.000000
duration_ts=1406
duration=56.240000
bit_rate=28800000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=1406
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:language=eng
TAG:handler_name=DataHandler
TAG:encoder=Lavc56.1.100 dvvideo
TAG:timecode=09:59:51:24
[/STREAM]
[STREAM]
index=1
codec_name=pcm_s16le
codec_long_name=PCM signed 16-bit little-endian
profile=unknown
codec_type=audio
codec_time_base=1/48000
codec_tag_string=sowt
codec_tag=0x74776f73
sample_fmt=s16
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=16
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=2703360
duration=56.320000
bit_rate=1536000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=2703360
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:language=eng
TAG:handler_name=DataHandler
[/STREAM]
[STREAM]
index=2
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=data
codec_time_base=1/25
codec_tag_string=tmcd
codec_tag=0x64636d74
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/25
start_pts=0
start_time=0.000000
duration_ts=1406
duration=56.240000
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=1
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
TAG:language=eng
TAG:handler_name=DataHandler
TAG:timecode=09:59:51:24
[/STREAM]
----- Mail original -----
De: landsberger at free.fr
À: "FFmpeg user questions" <ffmpeg-user at ffmpeg.org>
Envoyé: Mercredi 31 Décembre 2014 12:23:41
Objet: Re: [FFmpeg-user] Unable to change time base / tbn
Worked! Thank you so much!
----- Mail original -----
De: "Carl Eugen Hoyos" <cehoyos at ag.or.at>
À: ffmpeg-user at ffmpeg.org
Envoyé: Mardi 30 Décembre 2014 10:17:52
Objet: Re: [FFmpeg-user] Unable to change time base / tbn
<landsberger <at> free.fr> writes:
> ffmpeg -i '/input.mov' -r 25 -vf settb=1/25
> -vcodec dvvideo -acodec pcm_s16le '/output.mov'
Please test "-video_track_timescale" (and
remove -r and the filter).
Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list