Transcoding BlueRay (.m2ts) to .ts

About encoding, codec settings, muxers and filter usage
amar
Blank Cone
Blank Cone
Posts: 14
Joined: 14 Jul 2010 14:09

Transcoding BlueRay (.m2ts) to .ts

Postby amar » 19 Feb 2014 15:00

I have some BlueRay movies and I want to view them on different devices (e.g. mobile tablet). So I need an acceptable file size (5 GB instead of 35 GB) and a file format that can be used on different devices. But I don't want to loose too much quality. To reach that goal, I have to do the following:
- transcode the video stream
- keep only my favorite audio streams (e.g. EN and FR)
- keep only my favorite subtitles (e.g. EN and FR)

I use the latest version of VLC (currently 2.1.3 32 Bit) on Windows 8.1 (64 Bit) and execute the following command:

Code: Select all

vlc.exe sourcefile.m2ts -I dummy -vvv --file-logging --logfile=transcode.log --sout-all --sout-x264-cabac --sout-x264-qp=20 --sout-x264-keyint=50 --sout-avcodec-strict=-2 --sout-standard-dst=destinationfile.ts --sout "#transcode{vcodec=h264,venc=x264,acodec=mp4a,ab=128}:standard{access=file,mux=ts}" vlc://quit
I run into the following Problems:

1. I can not keep my favorite audio streams: The option --sout-all gives me all audio streams but I want only EN and FR. And the option --audio-track=5 let me only choose either EN or FR but not both.

2. The same issue existes with the subtitles.

3. There seems to be a problem with the audio transcoding: The log says:

Code: Select all

[aac @ 03752960] Unsupported number of channels: 8 [aac @ 03752960] Channel layout '7.1' with 8 channels does not match number of s pecified channels 2
4. The subtitles can not be included in the ts file. The log says "main error: cannot create packetizer output (bdpg)". I also tried to transcode the subtitles by adding the command senc=dvbs but without success: it reports the error "dvbsub encoder error: chroma RGBA not supported"

Has anybody an idea how to solve these issues? I think that my use case is "common enough" so that a powerful tool like vlc should be able to handle this, I can't figure out how...
Thanks for your help.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Transcoding BlueRay (.m2ts) to .ts

Postby Jean-Baptiste Kempf » 19 Feb 2014 21:18

1. You can use #select , but it might be broken
2. indeed. But they don't take that much space.
3. our encoder only support 6 channels, IIRC.
4. Indeed, this is not supported. File an enhancement request.

To be honest, you should use handbrake, not VLC for this.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

amar
Blank Cone
Blank Cone
Posts: 14
Joined: 14 Jul 2010 14:09

Re: Transcoding BlueRay (.m2ts) to .ts

Postby amar » 20 Feb 2014 14:59

Thanks for this advice, I tried HandBrake and it works fine for this purpose!


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 2 guests