[FFmpeg-user] conversion mp4 -> ts gives error: non-existing SPS 0 referenced in buffering period
Bernd Pfrommer
bernd.pfrommer at gmail.com
Tue May 24 15:34:13 CEST 2016
I am trying to concatenate several mp4 files together, but conversion
from mp4 to ts is producing a file with errors, and subsequent
concatenation attempts produce an erroneous output file as well.
Here is what I'm using for conversion:
ffmpeg -v warning -y -i seq2.mp4 -c copy -bsf:v h264_mp4toannexb -f
mpegts seq2.ts
(no error message, seems to work fine)
But the resulting .ts file gives error when I try to play it, or even
just ffprobe it, like so:
ffprobe -v warning -select_streams v -show_streams seq2.ts
[h264 @ 0x3a9e160] non-existing SPS 0 referenced in buffering period
Last message repeated 1 times
[h264 @ 0x3a9f9a0] non-existing SPS 0 referenced in buffering period
[STREAM]
.... more output here
[/STREAM]
Could somebody please advise?
Thanks!
Bernd
Some information on the original file (I only care about the video, not audio):
----------------------------------------------------------------------------------------------------
ffprobe -v warning -select_streams v -show_streams seq2.mp4
Unsupported codec with id 0 for input stream 2
Unsupported codec with id 0 for input stream 3
[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
coded_width=1920
coded_height=1088
has_b_frames=1
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuvj420p
level=41
color_range=pc
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
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/90000
start_pts=0
start_time=0.000000
duration_ts=24435411
duration=271.504567
bit_rate=44967066
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=8137
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=2016-04-08 13:44:12
TAG:language=eng
TAG:handler_name= GoPro AVC
TAG:encoder=GoPro AVC encoder
[/STREAM]
The converted file has this stream information:
-------------------------------------------------------------
ffprobe -v warning -select_streams v -show_streams seq2.ts
[h264 @ 0x34d9160] non-existing SPS 0 referenced in buffering period
Last message repeated 1 times
[h264 @ 0x34da9a0] non-existing SPS 0 referenced in buffering period
[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=[27][0][0][0]
codec_tag=0x001b
width=1920
height=1080
coded_width=1920
coded_height=1088
has_b_frames=1
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuvj420p
level=41
color_range=pc
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
timecode=N/A
refs=1
is_avc=false
nal_length_size=0
id=0x100
r_frame_rate=30000/1001
avg_frame_rate=30000/1001
time_base=1/90000
start_pts=126000
start_time=1.400000
duration_ts=24435411
duration=271.504567
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=8
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
[/STREAM]
More information about the ffmpeg-user
mailing list