[RUTV] can't output stream to stdout #3970

Closed
opened 2026-02-21 01:44:28 -05:00 by deekerman · 2 comments
Owner

Originally created by @spvkgn on GitHub (Feb 7, 2015).

Can you please take a look into this issue with live streams from http://live.russia.tv/
Output stream to stdout not works.

youtube-dl -v http://live.russia.tv/index/index/channel_id/1 -o -
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://live.russia.tv/index/index/channel_id/1', '-o', '-']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.02.06
[debug] Python version 2.7.3 - Linux-3.2.0-69-generic-pae-i686-with-LinuxMint-13-maya
[debug] exe versions: ffmpeg 2.4.2, ffprobe 2.4.2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 1: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 1: Downloading webpage
[generic] 1: Extracting information
[RUTV] 2961: Downloading JSON
[RUTV] 2961: Downloading m3u8 information
[debug] Invoking downloader on u'http://i.vgtrk.cdnvideo.ru/rr2/smil:rtp_r1_rr.smil/chunklist_w1799110893_b1600000.m3u8?auth=vh&cast_id=2961'
[download] Destination: -
ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 11 2014 21:19:37 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/home/pavel/apps --extra-cflags=-I/home/pavel/apps/ffmpeg_build/include --extra-ldflags=-L/home/pavel/apps/ffmpeg_build/lib --disable-debug --disable-ffserver --extra-libs=-ldl --enable-gpl --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-openssl --enable-libbluray --enable-avisynth --enable-libfreetype --enable-libsoxr
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, hls,applehttp, from 'http://i.vgtrk.cdnvideo.ru/rr2/smil:rtp_r1_rr.smil/chunklist_w1799110893_b1600000.m3u8?auth=vh&cast_id=2961':
Duration: N/A, start: 91707.934311, bitrate: 62 kb/s
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Data: timed_id3 (ID3 / 0x20334449)
Stream #0:1: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:2: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 62 kb/s
[mp4 @ 0xb175200] muxer does not support non seekable output
Output #0, mp4, to 'pipe:':
Metadata:
encoder : Lavf56.4.101
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 90k tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 62 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:2 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

ERROR: ffmpeg exited with code 1
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/main.py", line 19, in
youtube_dl.main()
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 382, in main
_real_main(argv)
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 372, in _real_main
retcode = ydl.download(all_urls)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1353, in download
res = self.extract_info(url)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 630, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 683, in process_ie_result
extra_info=extra_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 630, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 676, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1111, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1286, in process_info
success = dl(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1261, in dl
return fd.download(name, info)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 316, in download
return self.real_download(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 51, in real_download
self.report_error('%s exited with code %d' % (program, retval))
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 151, in report_error
self.ydl.report_error(_args, *_kargs)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 505, in report_error
self.trouble(error_message, tb)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 467, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

Originally created by @spvkgn on GitHub (Feb 7, 2015). Can you please take a look into this issue with live streams from http://live.russia.tv/ Output stream to stdout not works. youtube-dl -v http://live.russia.tv/index/index/channel_id/1 -o - [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-v', 'http://live.russia.tv/index/index/channel_id/1', '-o', '-'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2015.02.06 [debug] Python version 2.7.3 - Linux-3.2.0-69-generic-pae-i686-with-LinuxMint-13-maya [debug] exe versions: ffmpeg 2.4.2, ffprobe 2.4.2, rtmpdump 2.4 [debug] Proxy map: {} [generic] 1: Requesting header WARNING: Falling back on generic information extractor. [generic] 1: Downloading webpage [generic] 1: Extracting information [RUTV] 2961: Downloading JSON [RUTV] 2961: Downloading m3u8 information [debug] Invoking downloader on u'http://i.vgtrk.cdnvideo.ru/rr2/smil:rtp_r1_rr.smil/chunklist_w1799110893_b1600000.m3u8?auth=vh&cast_id=2961' [download] Destination: - ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers built on Oct 11 2014 21:19:37 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/home/pavel/apps --extra-cflags=-I/home/pavel/apps/ffmpeg_build/include --extra-ldflags=-L/home/pavel/apps/ffmpeg_build/lib --disable-debug --disable-ffserver --extra-libs=-ldl --enable-gpl --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-openssl --enable-libbluray --enable-avisynth --enable-libfreetype --enable-libsoxr 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, hls,applehttp, from 'http://i.vgtrk.cdnvideo.ru/rr2/smil:rtp_r1_rr.smil/chunklist_w1799110893_b1600000.m3u8?auth=vh&cast_id=2961': Duration: N/A, start: 91707.934311, bitrate: 62 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Data: timed_id3 (ID3 / 0x20334449) Stream #0:1: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:2: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 62 kb/s [mp4 @ 0xb175200] muxer does not support non seekable output Output #0, mp4, to 'pipe:': Metadata: encoder : Lavf56.4.101 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 90k tbc Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 62 kb/s Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #0:2 -> #0:1 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument ERROR: ffmpeg exited with code 1 File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module> youtube_dl.main() File "/usr/local/bin/youtube-dl/youtube_dl/**init**.py", line 382, in main _real_main(argv) File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 372, in _real_main retcode = ydl.download(all_urls) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1353, in download res = self.extract_info(url) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 630, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 683, in process_ie_result extra_info=extra_info) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 630, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 676, in process_ie_result return self.process_video_result(ie_result, download=download) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1111, in process_video_result self.process_info(new_info) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1286, in process_info success = dl(filename, info_dict) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1261, in dl return fd.download(name, info) File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 316, in download return self.real_download(filename, info_dict) File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 51, in real_download self.report_error('%s exited with code %d' % (program, retval)) File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 151, in report_error self.ydl.report_error(_args, *_kargs) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 505, in report_error self.trouble(error_message, tb) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 467, in trouble tb_data = traceback.format_list(traceback.extract_stack())
Author
Owner

@dstftw commented on GitHub (Feb 11, 2015):

This is not possible with mp4. You can stream rtmp by specifying a concrete format:
youtube-dl -v http://live.russia.tv/index/index/channel_id/1 -f rtmp-1600 -o -

@dstftw commented on GitHub (Feb 11, 2015): This is [not possible with mp4](http://stackoverflow.com/questions/25411836/ffmpeg-doesnt-work-with-mp4-and-stdout). You can stream rtmp by specifying a concrete format: `youtube-dl -v http://live.russia.tv/index/index/channel_id/1 -f rtmp-1600 -o -`
Author
Owner

@spvkgn commented on GitHub (Feb 11, 2015):

Thank you for the tip! Works like a charm.

@spvkgn commented on GitHub (Feb 11, 2015): Thank you for the tip! Works like a charm.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#3970
No description provided.