Ffmpeg open input error number 138

FFmpeg error code -138 on an http url, but I don't know what it means. *I'm trying to understand what this error code -138 means from ffmpeg. I am able to play the following url directly in...

FFmpeg error code -138 on an http url, but I don’t know what it means.

*I’m trying to understand what this error code -138 means from ffmpeg. I am able to play the following url directly in a web browser, as well as using the WPF MediaElement, but it is unable to play using FFME:

«http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4»

Please take a look at the small sample project that I attached. It is giving me a MediaFailed event with the error message:

Could not open ‘http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4’. Error -138: Error number -138 occurred
*

Issue Categories

  • Bug
  • Feature Request
  • Question
  • Not sure

Version Information

  • NuGet Package 4.0.270
  • Build From Master branch, Commit Enter commit id. Example: 704c482
  • Build from Branch Name, Commit Enter commit id. Example: 704c482

Steps to Reproduce

  1. Under the «imports» directory of the attachment, download and extract ffmpeg-4.1-win64-shared into the location specified in the «ffmpeg-4.1-win64-shared.txt» file
  2. Build the project as Debug x64 (restore the missing FFME packages)
  3. Run the app. You will see that after about 5 seconds, MediaFailed event will fire and display the following error message: Could not open ‘http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4’. Error -138: Error number -138 occurred

Expected Results

  • I expected the FFME MediaElement control to play the http URL mp4 file. The URL works if I copy/paste it directly into Chrome browser. I’ve also tested the URL using standard WPF MediaElement and it is able to play the mp4 file.

Sample Code

See attached sln/project (VS 2017, .NET 4.6.1) called «FfmeTestApp.zip»

XAML

<Window x:Class="FfmeTestApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:ffme="clr-namespace:Unosquare.FFME;assembly=ffme.win"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800" WindowState="Maximized">
    <Grid>
        <ffme:MediaElement x:Name="mediaElement" LoadedBehavior="Manual" Source="{Binding MediaUrl}"/>
        <TextBlock x:Name="textBlock" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="64" TextWrapping="Wrap">
            <TextBlock.Style>
                <Style TargetType="TextBlock">
                    <Style.Triggers>
                        <Trigger Property="Text" Value="{x:Null}">
                            <Setter Property="Visibility" Value="Collapsed"/>
                        </Trigger>
                    </Style.Triggers>
                </Style>
            </TextBlock.Style>
        </TextBlock>
    </Grid>
</Window>

C#

using System;
using System.ComponentModel;
using System.Windows;

namespace FfmeTestApp
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window, INotifyPropertyChanged
    {
        private Uri mediaUrl;

        public MainWindow()
        {
            InitializeComponent();

            this.MediaUrl = new Uri("http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4");
            this.DataContext = this;
            this.Loaded += OnLoaded;
            this.mediaElement.MediaFailed += OnMediaFailed;
            Unosquare.FFME.MediaElement.FFmpegDirectory = @".ffmpeg-4.1-win64-sharedbin";
        }

        public Uri MediaUrl { get { return this.mediaUrl; } set { this.mediaUrl = value; this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(MediaUrl))); } }

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            this.mediaElement.Play();
        }

        private void OnMediaFailed(object sender, ExceptionRoutedEventArgs e)
        {
            textBlock.Text = e.ErrorException.Message;
        }
    }
}

Command line ffplay

PS C:FfmeTestAppimportsffmpegffmpeg-4.1-win64-sharedbin> .ffplay.exe "http://commondatast
orage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4"
ffplay version 4.1 Copyright (c) 2003-2018 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20181017
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
[tcp @ 0000020e13b8d540] Connection to tcp://commondatastorage.googleapis.com:80 failed: Error number -138 occurred
http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4: Unknown error

PS C:FfmeTestAppimportsffmpegffmpeg-4.1-win64-sharedbin>

FfmeTestApp.zip
ffme_error

Содержание

  1. FFmpeg error code -138 on an http url, but I don’t know what this means. #301
  2. Comments
  3. Issue Categories
  4. Version Information
  5. Steps to Reproduce
  6. Expected Results
  7. Sample Code
  8. Command line ffplay
  9. Error number -138 occurred #256
  10. Comments
  11. Log reporting «Error number -138» for a media source — but I’m OK with that
  12. DAveShillito
  13. FFmpeg reports Error number -138 occurred while playing youtube videos #7519
  14. Comments
  15. Important Information
  16. Reproduction steps
  17. Expected behavior
  18. Actual behavior
  19. Log file
  20. Sample files
  21. Connection to tcp://manifest.googlevideo.com:443 failed: Error number -138 occurred #30429
  22. Comments
  23. Footer

FFmpeg error code -138 on an http url, but I don’t know what this means. #301

*I’m trying to understand what this error code -138 means from ffmpeg. I am able to play the following url directly in a web browser, as well as using the WPF MediaElement, but it is unable to play using FFME:

Please take a look at the small sample project that I attached. It is giving me a MediaFailed event with the error message:

Issue Categories

  • Bug
  • Feature Request
  • Question
  • Not sure

Version Information

  • NuGet Package 4.0.270
  • Build From Master branch, Commit Enter commit id. Example: 704c482
  • Build from Branch Name, Commit Enter commit id. Example: 704c482

Steps to Reproduce

  1. Under the «imports» directory of the attachment, download and extract ffmpeg-4.1-win64-shared into the location specified in the «ffmpeg-4.1-win64-shared.txt» file
  2. Build the project as Debug x64 (restore the missing FFME packages)
  3. Run the app. You will see that after about 5 seconds, MediaFailed event will fire and display the following error message: Could not open ‘http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4’. Error -138: Error number -138 occurred

Expected Results

  • I expected the FFME MediaElement control to play the http URL mp4 file. The URL works if I copy/paste it directly into Chrome browser. I’ve also tested the URL using standard WPF MediaElement and it is able to play the mp4 file.

Sample Code

See attached sln/project (VS 2017, .NET 4.6.1) called «FfmeTestApp.zip»

Command line ffplay

The text was updated successfully, but these errors were encountered:

Wow, I am super blind! Looking again at the command line execution of ffplay, I can see the error was due to TCP error.

[tcp @ 0000020e13b8d540] Connection to tcp://commondatastorage.googleapis.com:80 failed: Error number -138 occurred
http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4: Unknown error

This tells me that the issue is because my workplace firewall is preventing ffmpeg from using that port. However, my browser (as well as the standard WPF MediaElement) is able to use that port, which is why it worked.

Источник

Error number -138 occurred #256

I recently set this on on my media server for use with Emby. Everything seems to connect fine but whenever I try to stream a channel, I get the following errors (in locast2plex).

Any help would be appreciated 😃

The text was updated successfully, but these errors were encountered:

locast2plex (L2P), after identifying what variant stream to acquire, uses ffmpeg internally to actually get the transport stream and pass it along

these messages are from that ffmpeg execution and not from the actual L2P code

I have not experienced this particular error code before but will be watching your post progress to find out more about it.

Error code -138 occurs when a connection timeout occurs. This primarily occurs when the TCP packets does not route to the destination address. If it did, then you would either get a connection refused or a connection established. Things that might cause this is a proxy server is in the way so direct comm is not possible. Another is when you have multiple IP addresses and is somehow bound to the wrong IP address. There may be others, but that is where you should start. You can try a few simple things from where the app is running.
telnet hls.locastnet.org 443
If you get a connection, then at least you personally have no routing issue. You can also run a wget command in unix with the url or try it from a browser is see if you can connect. If you can connect, then it is possible it is a configuration issue with locast2plex.

Can you see the last few L2P messages that were produced before the ffmpeg messages began?

It should look something like:
Determining best video stream for
maybe a line or two about found playlists, might mention variant streams
followed by will use xxxxx resolution at xxxxxxbps
followed by a log of the command — — [ ] «GET » 200

I am interested in what was

When you start L2P, can you go to a browser and enter :6077/help
which is not a valid L2P command but is known to return a 501 not implemented.
Please note that should be replaced by the ip address of where L2P is running,
like 192.168.1.10 or some such.

your hls.locastnet.org interests me, as I cannot find that string in the L2P source code. I had a quick look at the URLs that are used to get playlists in my own dma and they do not have hls within them.

Can you share some of your configuration? Are you using Docker? Be sure to obscure your userid and password.

I don’t run EMBY, so that is a black box to me.

L2P works well for me and I have had very few issues after running it six months or so. Let’s see if we can get it working for you, too.

I did not know that these posts throw away anything inside lessthan and greaterthan, which will make my previous post a little hard to determine, since I used that a few times. It should be obvious where I meant to put ip address, like before the :6077, and if it is not, then post again and we’ll try again.

Well. It works now lol

I didn’t change anything. I got tired of messing with it and let it sit overnight and now everything is working.

Источник

DAveShillito

New Member

I just checked my log file and I noticed I’m constantly getting messages such as.

15:19:14.747: error: Connection to tcp://192.168.1.152:4747 failed: Error number -138 occurred
15:19:14.747: MP: Failed to open media: ‘http://192.168.1.152:4747/video’
15:19:17.244: error: Connection to tcp://192.168.1.250:4747 failed: Error number -138 occurred
15:19:18.511: error: Connection to tcp://192.168.1.51:80 failed: Error number -138 occurred
15:19:18.511: MP: Failed to open media: ‘http://192.168.1.51/webcam/?action=stream’
15:19:29.917: error: Connection to tcp://192.168.1.152:4747 failed: Error number -138 occurred
15:19:29.917: MP: Failed to open media: ‘http://192.168.1.152:4747/video’
15:19:32.423: error: Connection to tcp://192.168.1.250:4747 failed: Error number -138 occurred
15:19:33.579: error: Connection to tcp://192.168.1.51:80 failed: Error number -138 occurred
15:19:33.579: MP: Failed to open media: ‘http://192.168.1.51/webcam/?action=stream’

These are all sources using DroidCam on a phone, and the phone is not currently broadcasting, or cameras pointing to 3D printers, which are currently turned off.

Having this in the log is not really a problem, other than it could be hiding other real issues inside the spam, so it would be nice if I could keep my log tidy.

I suspect I could «Close File when inactive», but this will give me a delay when I show the source, and I like to have them slide into veiw.
Is there a way of preventing the log message from appearing, but still allowing the feed to be quickly shown when it is available?

Источник

FFmpeg reports Error number -138 occurred while playing youtube videos #7519

Important Information

Provide following Information:

  • Windows Version Win10 1909(18363.693)
  • Source of the mpv binary https://sourceforge.net/projects/mpv-player-windows

Reproduction steps

Run mpv «https://www.youtube.com/watch?v=sY3peHvDN8I» —ytdl-raw-options-append=proxy=»http://127.0.0.1:1080″ —script-opts=ytdl_hook-try_ytdl_first=yes —no-config

I have to use a proxy, or I can’t even visit youtube

With youtube-dl(2020.03.06), I can download the video

I have read some similar issues like unosquare/ffmediaelement#301 and ytdl-org/youtube-dl#18178 and tried to solve it by changing firewall settings but it doesn’t work

Expected behavior

The video can be played

Actual behavior

FFmpeg reports error

Log file

Sample files

Any youtube video like this

The text was updated successfully, but these errors were encountered:

Unless something changed recently, IIRC the youtube-dl proxy settings don’t apply to the ffmpeg http downloader which mpv uses. Try setting a $https_proxy var before launching mpv.

Yes, it will work if I set an environment variable.

This is useful for geo-restricted URLs. After youtube-dl parsing, some URLs also require a proxy for playback, so this can pass that proxy information to mpv.
[cplayer] Set property: file-local-options/stream-lavf-o=<«http_proxy»:»http://127.0.0.1:1080″> -> 1

I thought the proxy was set by mistake according to the manual and log(may because of my poor English).
Is it worth noting in the manual?

Источник

Connection to tcp://manifest.googlevideo.com:443 failed: Error number -138 occurred #30429

youtube-dl -f best https://www.youtube.com/watch?v=D4_G9DMwMzA
[youtube] D4_G9DMwMzA: Downloading webpage
[youtube] D4_G9DMwMzA: Downloading m3u8 information
[youtube] D4_G9DMwMzA: Downloading MPD manifest
[download] Destination: Billboard hot 100 This Week�ADELE, Maroon 5, Bilie Eilish, Taylor Swift, Sam Smith, Rihana�Pop Hits 2021-12-26 10_58-D4_G9DMwMzA.mp4
ffmpeg version 2021-12-23-git-60ead5cd68-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11.2.0 (Rev2, Built by MSYS2 project)
configuration: —enable-gpl —enable-version3 —enable-static —disable-w32threads —disable-autodetect —enable-fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —enable-gmp —enable-lzma —enable-zlib —enable-libsrt —enable-libssh —enable-libzmq —enable-avisynth —enable-sdl2 —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxvid —enable-libaom —enable-libopenjpeg —enable-libvpx —enable-libass —enable-libfreetype —enable-libfribidi —enable-libvidstab —enable-libvmaf —enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-d3d11va —enable-dxva2 —enable-libmfx —enable-libgme —enable-libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —enable-libtheora —enable-libvo-amrwbenc —enable-libgsm —enable-libopencore-amrnb —enable-libopus —enable-libspeex —enable-libvorbis —enable-librubberband
libavutil 57. 13.100 / 57. 13.100
libavcodec 59. 15.100 / 59. 15.100
libavformat 59. 10.100 / 59. 10.100
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 20.100 / 8. 20.100
libswscale 6. 1.102 / 6. 1.102
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
[tcp @ 0000022bfcc81c40] Connection to tcp://manifest.googlevideo.com:443 failed: Error number -138 occurred
https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1640509111/ei/V9rHYcZNiZuBA86-hdAB/ip/52.68.230.224/id/D4_G9DMwMzA.1/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/hls_chunk_host/rr1—sn-oguelnle.googlevideo.com/playlist_duration/30/manifest_duration/30/gcr/jp/vprv/1/playlist_type/DVR/initcwndbps/7550/mh/fY/mip/54.150.222.57/mm/44/mn/sn-oguelnle/ms/lva/mv/m/mvi/1/pl/22/dover/11/keepalive/yes/fexp/24001373,24007246/mt/1640487160/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,live,sgoap,sgovp,playlist_duration,manifest_duration,gcr,vprv,playlist_type/sig/AOq0QJ8wRAIgU1ceOATgW4TLOdkfDphUfu50B7vrmupYqhWHlu7tyH8CIF1DCAW2ht_9zvWA6ejB3aiswsDa4FG699ajYcwKB-gh/lsparams/hls_chunk_host,initcwndbps,mh,mip,mm,mn,ms,mv,mvi,pl/lsig/AG3C_xAwRQIhAJcul0ph_xiTCvmZlypxX0Ezd3UZdkU-7f8GUDz1EjFDAiBpUT_oBQnV-1ETPWtip7PeTOS-zuV1W1na8KYD0dARWw%3D%3D/playlist/index.m3u8: Unknown error

Why can’t I download it?Please help me thanks

The text was updated successfully, but these errors were encountered:

Doesn’t reproduce here. Maybe your network or temporary server problem.
Try Google. There are some reports about that error.

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

2013-12-23 It works now. All I did was go into my ESET Firewall rules and give full access to the gameoverlayui.exe file in the root folder where Steam was installed. Cool thx again for the …
From steamcommunity.com
See details »

2022-11-20I suggest you to run ffmpeg in command line instead of running code in ffmpeg-python especially when your video is large. This command line will finish the job in a blink. And here it is: ffmpeg …
From github.com
See details »


«ERROR NUMBER -138 OCCURRED» WHEN CONNECTING TO A STREAM

2022-11-20Troubleshooting. Ensure that the Viewer PC can communicate with the PC host where the stream is being served from. If the source is a Sender, and the Sender is running on a PC …
From support.immersaview.com
See details »


FFMPEG HAS A RETURN CODE OF 139 — UNIVERSAL MEDIA SERVER …

2015-05-23 How Ask For Support Remember, Debug Log’s Can/Will Help and Explain your issues, we’re not mind reader’s but here to help OS’s I Use And Can Assist With: Windows …
From universalmediaserver.com
See details »


FFMPEG RTMP LISTEN NOT WORKING CORRECTLY: CONNECTION …

2020-08-11 Im trying to convert rtmp into an HLS stream using ffmpeg as the rtmp server. In the docs they mention that providing -listen 1 makes ffmpeg act as an rtmp server yet the …
From video.stackexchange.com
See details »


FFMPEG REPORTS ERROR NUMBER -138 OCCURRED WHILE …

2020-03-11 Yes, it will work if I set an environment variable. This is useful for geo-restricted URLs. After youtube-dl parsing, some URLs also require a proxy for playback, so this can …
From github.com
See details »


FFMPEG: ERROR CODES

2012-10-26 #define AVERROR_BSF_NOT_FOUND (-MKTAG(0xF8,’B’,’S’,’F’)) Bitstream filter not found. Definition at line 47 of file error.h.. Referenced by av_strerror(), and init().
From ffmpeg.org
See details »


FFMPEG: ERROR CODES

2012-10-26 #define AVERROR_DEMUXER_NOT_FOUND (-MKTAG(0xF8,’D’,’E’,’M’)) Demuxer not found. Definition at line 50 of file error.h.. Referenced by av_strerror().
From ffmpeg.org
See details »


ASP.NET FFMPEG VIDEO CONVERSION RECEIVING ERROR: «ERROR NUMBER

2010-05-01 4. I am attempting to integrate FFMPEG into my asp.net website. The process I am trying to complete is to upload a video, check if it is .avi, .mov, or .wmv and then convert this …
From stackoverflow.com
See details »


STEAM ERROR CODE -137 AND -138 ‘FAILED TO LOAD WEBPAGE’ — APPUALS

2022-05-06 Accessing the Steam Settings Menu. Once you’re inside the Settings menu, select Web Browser from the vertical menu on the left. Next, move to the right section, click on …
From appuals.com
See details »


MANUAL FFMPEG ERROR · ISSUE #138 · …

2014-05-20 Hi, First, this will make my daily work a huge breeze. I owe you beers on top of beers when I finally find you, or whatever your poison will be. However, there seems to be a …
From github.com
See details »


ERRORS – FFMPEG

2019-05-22 This message is often overlooked by users and is caused by improper option placement. Placement of options matters, and trailing options are often ignored. Placement is …
From trac.ffmpeg.org
See details »


RECORDING RANDOMLY STOPPING ERROR NUMBER -10054 OCCURRED

2021-04-14 I’ve ran several tests on one encoder (not sure if the other has the same idiosyncrasy ) and it seems to be after ten minutes it falls over, not exactly to the second.
From obsproject.com
See details »


FFMPEG: ERROR CODES

2012-10-26 Unknown error, typically from an external library. #define : AV_ERROR_MAX_STRING_SIZE 64: #define : av_err2str(errnum) …
From ffmpeg.org
See details »


HOW CAN I FIND OUT WHAT THIS FFMPEG ERROR CODE MEANS?

2022-11-20Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research! But avoid …. Asking for help, clarification, …
From stackoverflow.com
See details »


Related Search


Понравилась статья? Поделить с друзьями:
  • Ff на материнской плате x99 ошибка huanan
  • Far cry 3 как изменить язык озвучки
  • Fetch сервер сообщает об ошибке err auth login failure or pop3 disabled try later
  • Far cry 2 как изменить масштаб карты
  • Fell error 404 sans