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

❓[Question] 小红书的录制文件只有PotPlayer能播,FFmpeg都不认 #857

Closed
1 task
najloa opened this issue Dec 25, 2024 · 14 comments
Closed
1 task
Labels
question Further information is requested

Comments

@najloa
Copy link

najloa commented Dec 25, 2024

⚠️ 搜索是否存在类似问题

  • 我已经搜索过issues,没有找到相似的问题

🔧 运行方式

直接运行的exe文件

🐍 如果是使用源代码运行,请选择你的Python环境版本

None

💻 请选择你的系统环境

Windows 10

🤔 问题详情

PotPlayer的录制视频太不优雅了,有什么更好方法吗?

@najloa najloa added the question Further information is requested label Dec 25, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: ❓[Question] Only PotPlayer can play the recorded files of Xiaohongshu, not FFmpeg.

⚠️ Search for similar problems

  • I have searched for issues and found no similar issues.

🔧 How to run

exe file to run directly

🐍 If you are running from source code, please select your Python environment version

None

💻 Please select your system environment

Windows 10

🤔 Question details

PotPlayer's video recording is too inelegant. Is there a better way?

@DouIce
Copy link

DouIce commented Dec 26, 2024

一样的困扰,有没有什么解决办法

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I have the same problem, is there any solution?

@ningsibuqu
Copy link

把最后几秒切掉就好了

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Just cut off the last few seconds.

@DouIce
Copy link

DouIce commented Dec 28, 2024

把最后几秒切掉就好了

用什么工具切最后几秒?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Just cut off the last few seconds

What tool do you use to cut the last few seconds?

@imovie7
Copy link

imovie7 commented Dec 29, 2024

我的小红书录下来的都是flv格式的,只有迅雷影音放得了,连pot都放不了,除了迅雷影音认得了其他所有软件都提示文件错误,咋搞?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


My Xiaohongshu recordings are all in flv format. Only Xunlei Video can play them, not even POTS. Except for Xunlei Video, all other software prompts file errors. What should I do?

@DouIce
Copy link

DouIce commented Dec 29, 2024

我的小红书录下来的都是flv格式的,只有迅雷影音放得了,连pot都放不了,除了迅雷影音认得了其他所有软件都提示文件错误,咋搞?
不知道诶,我录的flv可以用pot播放

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


My Xiaohongshu recordings are all in flv format. Only Xunlei Video can play them, not even pot. Except for Xunlei Video, all other software prompts file errors. What should I do?
I don’t know, the flv I recorded can be played using pot

@Max-Tortoise
Copy link
Contributor

Max-Tortoise commented Jan 16, 2025

是的,我自己也遇到了这个问题,最终解决方法如下:
1.等官方FFmpeg发布新的版本,这样其他播放器可以解码flv里的hevc;
2.使用最新build的ffmpeg https://github.com/BtbN/FFmpeg-Builds/releases 转码(换格式或者换编码),这样其他播放器就能正常播放

我自己猜测的原因如下:

  1. 首先可以肯定的是小红书的FLV直播流采用的视频编码是HEVC,在PotPlayer里面按下Tab可以查看视频编码信息。
  2. 使用命令行ffmpeg -i 'http://live.xhscdn.com/live/xxx.flv' ,会提示Video codec (c) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. 并且显示videoc是12 Stream #0:1: Video: hevc ([12][0][0][0] / 0x000C), none, 6144 kb/s, 30 fps, 1k tbn
  3. 在网上搜索到一个帖子,里面提到了要魔改ffmpeg,具体方法是在flv.h里面添加FLV_CODECID_HEVC = 12 Reference
  4. ffmpeg的仓库 ,发现flv.h已经在上周被修改了https://github.com/FFmpeg/FFmpeg/blob/4f3c9f2f03378a08692a26532bc3146414717f8c/libavformat/flv.h#L122
    FFmpeg/FFmpeg@b76053d
  5. 用了https://github.com/BtbN/FFmpeg-Builds/releases 里下的ffmpeg,可以正常使用命令行录制。需要转码可以使用这个ffmpeg-master-latest-win64-gpl-shared

@ihmily

@najloa
Copy link
Author

najloa commented Jan 17, 2025

是的,我自己也遇到了这个问题,最终解决方法如下: 1.等官方FFmpeg发布新的版本,这样其他播放器可以解码flv里的hevc; 2.使用最新build的ffmpeg https://github.com/BtbN/FFmpeg-Builds/releases 转码(换格式或者换编码),这样其他播放器就能正常播放

我自己猜测的原因如下:

  1. 首先可以肯定的是小红书的FLV直播流采用的视频编码是HEVC,在PotPlayer里面按下Tab可以查看视频编码信息。
  2. 使用命令行ffmpeg -i 'http://live.xhscdn.com/live/xxx.flv' ,会提示Video codec (c) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. 并且显示videoc是12 Stream #0:1: Video: hevc ([12][0][0][0] / 0x000C), none, 6144 kb/s, 30 fps, 1k tbn
  3. 在网上搜索到一个帖子,里面提到了要魔改ffmpeg,具体方法是在flv.h里面添加FLV_CODECID_HEVC = 12 Reference
  4. ffmpeg的仓库 ,发现flv.h已经在上周被修改了https://github.com/FFmpeg/FFmpeg/blob/4f3c9f2f03378a08692a26532bc3146414717f8c/libavformat/flv.h#L122
    FFmpeg/FFmpeg@b76053d
  5. 用了https://github.com/BtbN/FFmpeg-Builds/releases 里下的ffmpeg,可以正常使用命令行录制。需要转码可以使用这个ffmpeg-master-latest-win64-gpl-shared

@ihmily

谢谢,这个解答太棒了。

@najloa najloa closed this as completed Jan 17, 2025
@DouIce
Copy link

DouIce commented Jan 17, 2025

是的,我自己也遇到了这个问题,最终解决方法如下: 1.等官方FFmpeg发布新的版本,这样其他播放器可以解码flv里的hevc; 2.使用最新build的ffmpeg https://github.com/BtbN/FFmpeg-Builds/releases 转码(换格式或者换编码),这样其他播放器就能正常播放

我自己猜测的原因如下:

  1. 首先可以肯定的是小红书的FLV直播流采用的视频编码是HEVC,在PotPlayer里面按下Tab可以查看视频编码信息。
  2. 使用命令行ffmpeg -i 'http://live.xhscdn.com/live/xxx.flv' ,会提示Video codec (c) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. 并且显示videoc是12 Stream #0:1: Video: hevc ([12][0][0][0] / 0x000C), none, 6144 kb/s, 30 fps, 1k tbn
  3. 在网上搜索到一个帖子,里面提到了要魔改ffmpeg,具体方法是在flv.h里面添加FLV_CODECID_HEVC = 12 Reference
  4. ffmpeg的仓库 ,发现flv.h已经在上周被修改了https://github.com/FFmpeg/FFmpeg/blob/4f3c9f2f03378a08692a26532bc3146414717f8c/libavformat/flv.h#L122
    FFmpeg/FFmpeg@b76053d
  5. 用了https://github.com/BtbN/FFmpeg-Builds/releases 里下的ffmpeg,可以正常使用命令行录制。需要转码可以使用这个ffmpeg-master-latest-win64-gpl-shared

@ihmily

实测有效,感谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants