Quantcast

Encoding with multiple Audio tracks

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Encoding with multiple Audio tracks

Markus Forster
Hi,

i want to re-encode a Bluray movie into .h264 with a less bitrate and i want
to keep all audio- and subtitle-tracks in the original
.m2ts file.

My question is now, how can i select all audio and subtitle tracks? At the
moment, only the 1st video- and audio-tracks will be selected and i can't
find a command line parameter to do this. The encoding itself is no problem,
seems to work fine...

My command line now:

ffmpeg -i ../movie/BDMV/STREAM/00011.m2ts -acodec ac3 -ac 6 -ab 256K
-newaudio -vcodec libx264 -s hd1080 -b 12M  -vpre hq -threads 0
/home/markus/movie.ts -v 3

FFmpeg version SVN-r21448, Copyright (c) 2000-2010 Fabrice Bellard, et al.
  built on Jan 25 2010 10:51:50 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration: --enable-gpl --enable-version3 --enable-nonfree
--enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad
--enable-libx264 --enable-libxvid --enable-x11grab
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.48. 0 / 52.48. 0
  libavformat   52.47. 0 / 52.47. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 9. 0 /  0. 9. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mpegts @ 0x8adc3a0]MAX_READ_SIZE:5000000 reached
[NULL @ 0x8af3db0]start time is not set in av_estimate_timings_from_pts
[NULL @ 0x8af4500]start time is not set in av_estimate_timings_from_pts
[NULL @ 0x8af4c50]start time is not set in av_estimate_timings_from_pts
[NULL @ 0x8af53d0]start time is not set in av_estimate_timings_from_pts
[NULL @ 0x8af5b20]start time is not set in av_estimate_timings_from_pts
[NULL @ 0x8af62d0]start time is not set in av_estimate_timings_from_pts

Seems stream 0 codec frame rate differs from container frame rate: 47.95
(48000/1001) -> 23.98 (24000/1001)

Seems stream 14 codec frame rate differs from container frame rate: 47.95
(48000/1001) -> 23.98 (24000/1001)
Input #0, mpegts, from '../movie/BDMV/STREAM/00011.m2ts':
  Duration: 01:58:02.11, start: 11.608978, bitrate: 37578 kb/s
  Program 1
    Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
23.97 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0.1[0x1100]: Audio: truehd, 48000 Hz, 6 channels, s32
    Stream #0.2[0x1100]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Stream #0.3[0x1101]: Audio: truehd, 48000 Hz, 6 channels, s32
    Stream #0.4[0x1101]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Stream #0.5[0x1102]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.6[0x1103]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.7[0x1200]: Subtitle: pgssub
    Stream #0.8[0x1201]: Subtitle: pgssub
    Stream #0.9[0x1202]: Subtitle: pgssub
    Stream #0.10[0x1203]: Subtitle: pgssub
    Stream #0.11[0x1204]: Subtitle: pgssub
    Stream #0.12[0x1205]: Subtitle: pgssub
    Stream #0.13[0x1a00]: Data: 0x00a2
    Stream #0.14[0x1b00]: Video: h264, yuv420p, 720x480 [PAR 40:33 DAR
20:11], 23.97 fps, 23.98 tbr, 90k tbn, 47.95 tbc

Thank you for help :)

cheers,

Markus
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [FFmpeg-user] Encoding with multiple Audio tracks

James Darnley
2010/1/25 Markus Forster <[hidden email]>:

> Hi,
>
> i want to re-encode a Bluray movie into .h264 with a less bitrate and i want
> to keep all audio- and subtitle-tracks in the original
> .m2ts file.
>
> My question is now, how can i select all audio and subtitle tracks? At the
> moment, only the 1st video- and audio-tracks will be selected and i can't
> find a command line parameter to do this. The encoding itself is no problem,
> seems to work fine...
>

Several -newaudio and -newsubtitle options.  They need to be placed
after the output file.  You set the encoding options for those streams
before the -new* option.  So your command line should look like:
ffmpeg -i INPUT [output options] OUTPUT [audio options] -newaudio
[subtitle options] -newsubtitle
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Loading...