[FFmpeg-trac] #4091(undetermined:new): Unable Mux to mpegts using an HLS stream
FFmpeg
trac at avcodec.org
Fri Nov 7 16:26:12 CET 2014
#4091: Unable Mux to mpegts using an HLS stream
-------------------------------------+-------------------------------------
Reporter: BlackDream | Type: defect
Status: new | Priority: important
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
{{{
ffmpeg -i
"http://video23.fra01.hls.twitch.tv/hls69/hotshotgg_11681581744_161216111/chunked
/index-
live.m3u8?token=id=811310623639913253,bid=11681581744,exp=1415456667,node=video23-1.fra01.hls.justin.tv,nname=video23.fra01,fmt=chunked&sig=ff44bc201ed90617892fabd165fbf2af3d11fac9"
-codec copy -f mpegts /tmp/test.ts
}}}
{{{
ffmpeg version N-41933-gc11f731- http://johnvansickle.com/ffmpeg/
Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 7 2014 01:22:26 with gcc 4.8 (Debian 4.8.3-13)
configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-
libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-
libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-
libass --enable-gnutls --cc=gcc-4.8
libavutil 54. 11.100 / 54. 11.100
libavcodec 56. 12.100 / 56. 12.100
libavformat 56. 12.101 / 56. 12.101
libavdevice 56. 2.100 / 56. 2.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, hls,applehttp, from
'http://video23.fra01.hls.twitch.tv/hls69/hotshotgg_11681581744_161216111/chunked
/index-
live.m3u8?token=id=811310623639913253,bid=11681581744,exp=1415456667,node=video23-1.fra01.hls.justin.tv,nname=video23.fra01,fmt=chunked&sig=ff44bc201ed90617892fabd165fbf2af3d11fac9':
Duration: N/A, start: 20962.069200, bitrate: 196 kb/s
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz,
stereo, fltp, 196 kb/s
Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv,
bt709/bt709/iec61966-2-1), 1280x720, 45 fps, 45 tbr, 90k tbn, 90 tbc
Stream #0:2: Data: timed_id3 (ID3 / 0x20334449)
File '/tmp/test.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to '/tmp/test.ts':
Metadata:
encoder : Lavf56.12.101
Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1280x720,
q=2-31, 45 fps, 90k tbn, 45 tbc
Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo,
196 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x30c12a0] H.264 bitstream malformed, no startcode found, use
the video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v
h264_mp4toannexb' option with ffmpeg)
av_interleaved_write_frame(): Invalid data found when processing input
[mpegts @ 0x30c12a0] H.264 bitstream malformed, no startcode found, use
the video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v
h264_mp4toannexb' option with ffmpeg)
frame= 3 fps=0.0 q=-1.0 Lsize= 0kB time=00:00:00.06 bitrate=
0.0kbits/s
video:77kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Conversion failed!
}}}
However, even if i entered the -bsf:v h264_mp4toannexb filter the restream
doesnt start. (and it shouldn't tell to import the filter as the
containers are the same).
Using the following command:
{{{
ffmpeg -i "url" -c:a copy -c:v copy -f matroska pipe:1 | ffmpeg -i - -c
copy -bsf:v h264_mp4toannexb -f mpegts test.ts
}}}
the restream started successfully. However it doesn't work when i directly
mux it to mpegts.
Thank you
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4091>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list