Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

How can I play libvorbis(ogg) streams received with udp?

Discussions about problems encountered using ffplay.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

How can I play libvorbis(ogg) streams received with udp?

Postby crisman » Thu Mar 30, 2017 3:27 am

please help me.

ffmpeg
ffmpeg -f dshow -i audio="virtual-audio-capturer" -codec:a libvorbis -b:a 128k -ac 2 -ar 48000 -f mpegts udp://127.0.0.1:1111

ffplay
ffplay -codec:a libvorbis -b:a 128k -ar 48000 -ac 2 udp://127.0.0.1:1111

not playing audio.

Other codecs play back working, example below.
aac working
ffmpeg -f dshow -i audio="virtual-audio-capturer" -codec:a aac -b:a 128k -ac 2 -ar 48000 -f mpegts udp://127.0.0.1:1111
ffplay -codec:a aac -b:a 128k -ar 48000 -ac 2 udp://127.0.0.1:1111

opus codec working
ffmpeg -f dshow -i audio="virtual-audio-capturer" -codec:a libopus -b:a 128k -ac 2 -ar 48000 -f mpegts udp://127.0.0.1:1111
ffplay -codec:a libopus -b:a 128k -ar 48000 -ac 2 udp://127.0.0.1:1111

mp3 working
ffmpeg -f dshow -i audio="virtual-audio-capturer" -codec:a mp3 -b:a 128k -ac 2 -ar 48000 -f mpegts udp://127.0.0.1:1111
ffplay -codec:a mp3 -b:a 128k -ar 48000 -ac 2 udp://127.0.0.1:1111


why libvorbis not working?
transport success, but can not played, i thinks.


// not woring ffplay displayed log
ffplay.exe -loglevel debug -codec:a vorbis -b:a 128k -ar 48000 -ac 2 -sync audio -i udp://127.0.0.1:1111
ffplay version N-83781-g3016e91 Copyright (c) 2003-2017 the FFmpeg developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 48.100 / 55. 48.100
libavcodec 57. 82.102 / 57. 82.102
libavformat 57. 66.103 / 57. 66.103
libavdevice 57. 3.100 / 57. 3.100
libavfilter 6. 74.100 / 6. 74.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
[udp @ 0000000000b68700] No default whitelist set sq= 0B f=0/0
[udp @ 0000000000b68700] end receive buffer size reported is 65536
[mpegts @ 0000000000b68ac0] Format mpegts probed with size=2048 and score=50
[mpegts @ 0000000000b68ac0] stream=0 stream_type=6 pid=100 prog_reg_desc=
[mpegts @ 0000000000b68ac0] Before avformat_find_stream_info() pos: 0 bytes read:8208 seeks:0 nb_streams:1
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2500
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2499
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2498
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2497
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2496
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2495
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2494= 0B f=0/0
[mpegts @ 0000000000b68ac0] Probe with size=10038, packets=7 detected mp3 with score=1
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2493= 0B f=0/0
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2492= 0B f=0/0
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2491= 0B f=0/0
[mpegts @ 0000000000b68ac0] Probe with size=18321, packets=10 detected mp3 with score=1
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2490= 0B f=0/0
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2489= 0B f=0/0
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2488= 0B f=0/0
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2487= 0B f=0/0
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2486= 0B f=0/0
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2485= 0B f=0/0
[mpegts @ 0000000000b68ac0] probing stream 0 pp:2484= 0B f=0/0
crisman
 
Posts: 1
Joined: Thu Mar 30, 2017 3:06 am

Return to ffplay

Who is online

Users browsing this forum: No registered users and 0 guests