Video Encoding

From Cygnus Alpha
Jump to: navigation, search

Video Encoding

Convert MPEG TS to PS using ffmpeg

Copy video and both audio streams

ffmpeg -map 0.0:0.0 -map 0.1:0.1 -map 0.2:0.2 -i MPEG_TRANSPORT_STREAM.ts -target pal-dvd -vcodec copy -acodec copy MPEG_PROGRAMME_STREAM.mpeg -acodec copy -newaudio

Copy Video and First audio stream

ffmpeg -map 0.0:0.0 -map 0.1:0.1 -i $ts_file -target pal-dvd -vcodec copy -acodec copy $ps_file -acodec copy

Extend the analysis time

ffmpeg -analyzeduration 60000000 -map 0.0:0.0 -map 0.1:0.1 -i $ts_file -target pal-dvd -vcodec copy -acodec copy $ps_file -acodec copy

analyzeduration is in microseconds. Use this if you get 'max_analyze_duration reached'

V4L & KWorld 310u

  • sudo apt-get install ivtv-utils
  • sudo apt-get install mplayer2
  • v4l2-ctl -i 1
  • mplayer tv:// -tv driver=v4l2: device=/dev/video0

Links I like