{"id":605,"date":"2012-01-06T21:24:03","date_gmt":"2012-01-06T21:24:03","guid":{"rendered":"http:\/\/cdblog.cdstealer.com\/?p=605"},"modified":"2012-07-25T20:17:38","modified_gmt":"2012-07-25T19:17:38","slug":"cli-video-ripping","status":"publish","type":"post","link":"https:\/\/cdblog.cdstealer.com\/?p=605","title":{"rendered":"CLI Video Ripping."},"content":{"rendered":"<p>Gui are fine and well, but sometime you just can't beat the command line.\u00a0 Here are a few examples.<\/p>\n<p>First, make sure you have mplayer installed correctly.\u00a0 Below is what I have:<\/p>\n<pre>[ebuild\u00a0\u00a0 R\u00a0\u00a0 ~] media-video\/mplayer-1.0_rc4_p20120105\u00a0 USE=\"X a52 alsa ass bluray cddb cdio cdparanoia cpudetection dts dv dvd dvdnav enca encode faac faad gif iconv jpeg live mmx mp3 network openal opengl osdmenu png pulseaudio quicktime rar real rtc shm speex sse sse2 ssse3 theora toolame tremor truetype twolame unicode vdpau vorbis x264 xscreensaver xv xvid xvmc -3dnow -3dnowext -aalib (-altivec) (-aqua) -bidi -bindist -bl -bs2b -debug -dga -directfb -doc -dvb (-dxr3) (-esd) -fbcon -ftp -ggi -gsm -ipv6 -jack -joystick -jpeg2k -ladspa -libcaca -libmpeg2 -lirc -lzo -mad -md5sum -mmxext -mng -nas -nut -oss -pnm -pvr -radio -rtmp -samba -sdl -tga -v4l (-vidix) (-win32codecs) -xanim -xinerama -zoran\" VIDEO_CARDS=\"-mga -s3virge -tdfx\" 0 kB<\/pre>\n<p>An example of ripping a DVD could be:<\/p>\n<pre>mencoder dvd:\/\/1 -dvd-device \/dev\/sr0 -aid 128 -nosub -info srcform=\"DVD ripped by cdstealer\" -oac faac -ovc x264 -o \"\/home\/cdstealer\/Desktop\/full_metal_jacket.avi\"<\/pre>\n<p>But this won't play on a PS3 or Xbox.<\/p>\n<pre>mencoder dvd:\/\/1 -dvd-device \/dev\/sr0 -aid 128 -nosub -info srcform=\"DVD ripped by cdstealer\" -oac faac -faacopts mpeg=4 -ovc lavc -lavcopts vcodec=mpeg4 -ffourcc mp4v -o \"full_metal_retards.mp4\"<\/pre>\n<p>This will create an MP4 format file that will play :)<\/p>\n<p>You can also dump and decode the DVD using<\/p>\n<pre>mplayer dvd:\/\/1 -dumpstream -dumpfile ~\/Desktop\/file.mpg<\/pre>\n<p>This will create a \"lossless\" copy of which you can transcode using mencoder, ffmpeg et al.<\/p>\n<p>These encoders have a VAST array of options:-<br \/>\n<a title=\"ffmpeg options\" href=\"http:\/\/ffmpeg.org\/ffmpeg.html\" target=\"_blank\">http:\/\/ffmpeg.org\/ffmpeg.html<\/a><br \/>\n<a title=\"mencoder options\" href=\"http:\/\/www.mplayerhq.hu\/DOCS\/HTML\/en\/mencoder.html\" target=\"_blank\">http:\/\/www.mplayerhq.hu\/DOCS\/HTML\/en\/mencoder.html<\/a><\/p>\n<p>PS3 supported video formats:<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Memory Stick Video Format<\/strong><\/li>\n<li>MPEG-4 SP (AAC LC)<\/li>\n<li>H.264\/MPEG-4 AVC High Profile AAC LC<\/li>\n<li>MPEG-2 TS H.264\/MPEG-4 AVC, AAC LC<\/li>\n<li><strong>MP4 file format<\/strong><\/li>\n<li>H.264\/MPEG-4 AVC High Profile (AAC LC)<\/li>\n<li>MPEG-1 (MPEG Audio Layer 2)<\/li>\n<li>MPEG-2 PS (MPEG2 Audio Layer 2, AAC LC, AC3(Dolby Digital), LPCM)<\/li>\n<li>MPEG-2 TS MPEG2 Audio Layer 2, AC3 Dolby Digital, AAC LC<\/li>\n<li>MPEG-2 TS H.264\/MPEG-4 AVC, AAC LC<\/li>\n<li><strong>AVI<\/strong><\/li>\n<li>Motion JPEG (Linear PCM)<\/li>\n<li>Motion JPEG (\u03bc-Law)<\/li>\n<li>AVCHD .m2ts \/ .mts<\/li>\n<li><strong>DivX<\/strong><\/li>\n<li><strong>WMV<\/strong><\/li>\n<li>VC-1 WMA Standard V2<\/li>\n<\/ul>\n<p>eg<br \/>\nffmpeg -i file.mkv -vcodec libx264 -acodec copy file.mp4<\/p>\n<pre>Input #0, matroska,webm, from 'file.mkv':\r\nDuration: 00:23:42.88, start: 0.000000, bitrate: 2489 kb\/s\r\nStream #0:0(eng): Video: h264 (High 10), yuv420p10le, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)\r\nStream #0:1(eng): Audio: aac, 48000 Hz, 5.1, s16 (default)\r\nStream #0:2(jpn): Audio: aac, 48000 Hz, stereo, s16\r\nStream #0:3(eng): Subtitle: text (default)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Gui are fine and well, but sometime you just can't beat the command line.\u00a0 Here are a few examples. First, make sure you have mplayer installed correctly.\u00a0 Below is what I have: [ebuild\u00a0\u00a0 R\u00a0\u00a0 ~] media-video\/mplayer-1.0_rc4_p20120105\u00a0 USE=\"X a52 alsa ass bluray cddb cdio cdparanoia cpudetection dts dv dvd dvdnav enca encode faac faad gif iconv &hellip; <a href=\"https:\/\/cdblog.cdstealer.com\/?p=605\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">CLI Video Ripping.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[38,18,109,108,110],"class_list":["post-605","post","type-post","status-publish","format-standard","hentry","category-gentoo","tag-dvd","tag-linux","tag-mencoder","tag-mplayer","tag-rip"],"_links":{"self":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=605"}],"version-history":[{"count":8,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/605\/revisions"}],"predecessor-version":[{"id":653,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/605\/revisions\/653"}],"wp:attachment":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}