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

Please support --recode-video ts or --recode-video mpegts #13991

Open
tv21 opened this issue Aug 22, 2017 · 2 comments
Open

Please support --recode-video ts or --recode-video mpegts #13991

tv21 opened this issue Aug 22, 2017 · 2 comments

Comments

@tv21
Copy link

@tv21 tv21 commented Aug 22, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.08.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.08.18

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

When downloading a video I often need to convert it to a .ts (transport stream) file, which requires an additional step, typically running something like

ffmpeg "original_file.mp4" -c copy "new_file.ts"

Since ffmpeg supports .ts files, it would be handy if the --recode-video option also allowed specifying ts or mpegts as an option. At present if you try to specify either --recode-video ts or --recode-video mpegts you get "youtube-dl: error: invalid video recode format specified".

What I am requesting may or may not be similar to issue #11498, I didn't fully understand that issue but what I am asking for is a way to re-encode ANY video downloaded from ANY supported site as a .ts file, without having to do an additional separate run of ffmpeg. Most supported sites don't offer a .ts file natively, so I think the only way to do this would be to recode the file. You already support recoding to several other formats, so why not .ts?

@tv21
Copy link
Author

@tv21 tv21 commented Dec 29, 2017

There is one other thing I have discovered. When you get the video from certain sites it is already in .ts format but sometimes in small chunks that would just need to be combined. In such cases the .ts file(s) often contain embedded ATSC closed captions that can be displayed with no problem by a standard ATSC television. However when the .ts files are converted to some other format, the closed captions are either lost, garbled, or converted to a non-embedded format in a separate file (if that option is used), all of which are useless to ATSC television sets. So having the ability to save files that originate in .ts format as .ts files would be a big help for the hearing-impaired.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 29, 2017

So having the ability to save files that originate in .ts format as .ts files would be a big help for the hearing-impaired.

you can use:

--hls-use-mpegts                 Use the mpegts container for HLS videos,
                                 allowing to play the video while
                                 downloading (some players may not be able
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.