Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spvkgn opened this issue Feb 7, 2015 · 2 comments
Closed

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

spvkgn opened this issue Feb 7, 2015 · 2 comments

Comments

@spvkgn
Copy link

@spvkgn spvkgn commented 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())

@dstftw
Copy link
Collaborator

@dstftw dstftw commented 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 dstftw closed this Feb 11, 2015
@spvkgn
Copy link
Author

@spvkgn spvkgn commented Feb 11, 2015

Thank you for the tip! Works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.