我的数据库在postgres中进入哪里?(Where did my database go in postgres?)
postgres拒绝工作。 我使用9.2和一个新手。
我创建了一个数据库。 我列出并且不在那里? 没有错误! 它去了哪里? 它创造过吗?
postgres-# creatdb test postgres-# \list List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+----------+----------+-------------+-------------+----------------------- postgres | postgres | UTF8 | en_PH.UTF-8 | en_PH.UTF-8 | template0 | postgres | UTF8 | en_PH.UTF-8 | en_PH.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_PH.UTF-8 | en_PH.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres (3 rows) postgres-# postgres@ubuntu:/home/ubuntu$ psql -h 127.0.0.1 -U postgres -d test Password for user postgres: psql: FATAL: database "test" does not exist
postgres refuses to work. I am using 9.2 and a newbie.
I create a database. I list and its not there? There is no error! Where did it go? Was it ever created?
postgres-# creatdb test postgres-# \list List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+----------+----------+-------------+-------------+----------------------- postgres | postgres | UTF8 | en_PH.UTF-8 | en_PH.UTF-8 | template0 | postgres | UTF8 | en_PH.UTF-8 | en_PH.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_PH.UTF-8 | en_PH.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres (3 rows) postgres-# postgres@ubuntu:/home/ubuntu$ psql -h 127.0.0.1 -U postgres -d test Password for user postgres: psql: FATAL: database "test" does not exist
原文:https://stackoverflow.com/questions/18627003
最满意答案
您的格式表示采用720p以下的最佳视频流,并将其与最佳音频流混合在一起。 但是,在这种情况下,所讨论的直播流似乎没有单独的数据流,只有一个带有图片和音频的数据流。
为了支持这些类型的视频,请在您的格式中添加该格式(
best[height<=?720]'
)到您的格式规格中:youtube-dl -f 'bestvideo[height<=?720]+bestaudio/best[height<=?720]' Ij2rYpNxXgM
如果您始终需要720p或更低的视频,您还可以将
-f 'bestvideo[height<=?720]+bestaudio/best[height<=?720]'
写入配置文件中,以便您不必键入它一直都在。Your format says to take the best video-only stream below 720p and mux it together with the best audio stream. However, in this case, the live stream in question does not seem to have individual streams, just one stream with picture and audio.
To support these kinds of videos, add that format (
best[height<=?720]'
in your case) to your format specification:youtube-dl -f 'bestvideo[height<=?720]+bestaudio/best[height<=?720]' Ij2rYpNxXgM
If you always want videos in 720p or less, you can also write
-f 'bestvideo[height<=?720]+bestaudio/best[height<=?720]'
into a configuration file so you don't have to type it out all the time.
相关问答
更多-
我会将param声明为local ,这样你就不会在url之后附加url了... 您可以尝试将这个很棒的函数添加到.zshrc : funfun() { local _fun1="$_fun1 fun1!" _fun2="$_fun2 fun2!" echo "1 says: $_fun1" echo "2 says: $_fun2" } 观察事物;) 编辑(解释): 在获取shell脚本时,您将其添加到当前环境中,这就是您可以运行您定义的那 ...
-
您正在寻找对音频流的缓冲访问(录制或播放),iOS通过Audio Queue Services提供它( AVAudioRecorder太高级别),因此当音频缓冲区被填满时,iOS会使用队列中的填充缓冲区调用您的callback ,你用它做一些事情(将它保存到磁盘,将其写入基于C#的流,发送到播放音频队列[扬声器]等...),并且通常将其放回队列中以便重复使用。 像这样的东西开始录制到音频缓冲区queue : var recordFormat = new AudioStreamBasicDescription ...
-
对不起,我发现了错误。 我忘了添加管道来写文件。 这是代码中缺少的部分。 var output = path.join(path.resolve('.'), info.filename); video.pipe(fs.createWriteStream(output)); 我将使用github中完整工作应用程序的链接编辑此答案。 我还没上传。 最好! Sorry, I found the error. I was forgetting to add the pipe to write the file. t ...
-
将参数传递给youtube-dl(Pass a parameter to youtube-dl)[2022-09-27]
你需要的选项是ignoreerrors 查看从命令行参数映射到“in-code”的最简单方法是查看cli规范 。 它基于内置的optparse lib,并且正在寻找dest参数。 Option you need is ignoreerrors Easiest way to see mapping from command-line params to "in-code" is to look into cli spec. Its based on build-in optparse lib, and you ... -
如果你真的想要格式22,那么确实传入format键22 。 如果22不可用,您可以使用/best回退到最佳视频格式: ydl_opts = { 'format': '22/best', ... If you really want format 22, then indeed, pass in a format key of 22. You can use /best to fall back to the best video format if 22 is not available: ...
-
你是不对的,你不能简单地使任何函数异步。 您的问题假定youtube-dl需要ffmpeg才能工作。 它并不完全正确,它可以通过自己的方式下载单个流,AFAIK ffmpeg仅用于将这些流(视频+音频+可能是字幕)复用到一个文件。 如果你使用ffmpeg,从性能的角度来看并不是很多,因为如果它是通过子进程使用的(很可能就是这种情况),那么至少会有一个完整的进程用于完成工作。 与子进程的交互也可以非阻塞方式完成 - 请参阅https://docs.python.org/3/library/asyncio-su ...
-
要选择视频质量,首先使用-F选项列出可用格式,这是一个示例, youtube-dl -F http://www.youtube.com/watch?v=P9pzm5b6FFY 这是输出 [youtube] Setting language [youtube] P9pzm5b6FFY: Downloading webpage [youtube] P9pzm5b6FFY: Downloading video info webpage [youtube] P9pzm5b6FFY: Extracting vide ...
-
您的格式表示采用720p以下的最佳视频流,并将其与最佳音频流混合在一起。 但是,在这种情况下,所讨论的直播流似乎没有单独的数据流,只有一个带有图片和音频的数据流。 为了支持这些类型的视频,请在您的格式中添加该格式( best[height<=?720]' )到您的格式规格中: youtube-dl -f 'bestvideo[height<=?720]+bestaudio/best[height<=?720]' Ij2rYpNxXgM 如果您始终需要720p或更低的视频,您还可以将-f 'bestvide ...
-
每秒轮询一次并为进度条设置动画。 Poll only every second and animate the progress bar.
-
ffmpeg不是Python模块。 查看FFmpegExtractAudioPP类中的youtube-dl代码。 它使用这个调用来确定可执行文件是否存在。 它检查你的当前路径: subprocess.Popen([exe, '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() 您需要下载ffmpeg的Windows版本并将它们放在当前路径中,可能确保它们名称末尾没有.exe 。 ffmpeg is not a ...