Tuesday, April 11, 2017

ffmpeg and yet more ffmpeg...

The thing never ends...
Still trying to rip a DVD with burnt in subs that plays Ok on the Roku 3...

This one works, creates an mkv file (of about 800 MB) with subs on it, but, the video doesn't play on the Roku 3 (it obviously plays on VLC, even the embedded subs):
/usr/local/bin/ffmpeg/ffmpeg -fflags +genpts\
 -i media/hictio/THEMOVIE_S1_D1/VIDEO_TS/VTS_06_1.VOB\
 -c:v copy -c:a copy -c:s copy /media/hictio/Lexar/THEMOVIE_S1_D1-TS_06_1.mkv

This one creates an mkv file (of nearly 3 GB [get a hold of that, dude!!!!]) but without subs on it; it plays ok on Roku3, even the different language audio tracks:
/usr/local/bin/ffmpeg/ffmpeg -i \
/media/hictio/THEMOVIE_S1_D1/VIDEO_TS/VTS_06_1.VOB\
 -map 0:v -map 0:a -c:v libx264 -crf 18 -vf yadif -c:a flac\
 /media/hictio/Lexar/THEMOVIE_S1_D1-TS_06_1.mkv

Labels: , , ,

Wednesday, July 20, 2016

ffmpeg and yet more ffmpeg...

Ahhh... By now you certainly know the drill.. The Roku 3 and those pesky mkv files that simply refuse to play sound...
But no fear! Once again, this ffmpeg snippet from the past saves the day!
This time, without the burned in subs, like this:

./ffmpeg -i "My Great Movie.mkv" -c:v copy -strict experimental -c:a aac -ac 2 -ab 448k "My Great Movie.mp4"

Labels: , , , , ,

Tuesday, May 31, 2016

ffmpeg: Transcode A Specific Audio Channel

Another one of the ffmpeg snippets I've used:

ffmpeg -i my-video.ISO -map 0:v:0 -map 0:a:2 -c:v libx264 -crf 19 -preset slow -c:a aac -strict experimental -b:a 192k -ac 2 my-video.mp4

This one will convert the ISO file onto an mp4 video, and on top of that will only save on the file the audio track number 2.
The info on how to select the audio track can be obtained from:

Input #0, mpeg, from 'my-video.ISO':
  Duration: 00:04:19.23, start: 4318.404233, bitrate: 5494 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x480 [SAR 32:27 DAR 16:9], max. 7500 kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:3[0x81]: Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s
    Stream #0:4[0x80]: Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s
    Stream #0:5[0x25]: Subtitle: dvd_subtitle
    Stream #0:6[0x24]: Subtitle: dvd_subtitle
    Stream #0:7[0x21]: Subtitle: dvd_subtitle
    Stream #0:8[0x20]: Subtitle: dvd_subtitle
    Stream #0:9[0x23]: Subtitle: dvd_subtitle
    Stream #0:10[0x22]: Subtitle: dvd_subtitle
    Stream #0:11[0x1d7]: Audio: mp2, 0 channels


Which you can get issuing a:

ffmpeg -i my-video.ISO

Labels: , , ,

Tuesday, April 26, 2016

Transcoding, ffmpeg, transcoding & more ffmepg

Well, I'm in the process of transcoding all the movies that don't play on my Roku to a format that will play without a hitch, using ffmpeg, of course.
it is a major PITA, yes, but the other option would be to use Plex, but at the moment I don't have a box to keep on a always on status, at least not one that has enough juice to make the transcoding on the fly and that, on top of that I can place some place on my house that doesn't break my ball on a daily basis.
So far this week I've transcoded:

  • The Pickup Artist
  • Silent Running
  • The Killing of a Chinese Bookie
  • Risky Business

Labels: , , ,

Friday, April 15, 2016

ffmpeg: From (soundless) mp4 to mp4

Used this to transcode a video file (an mp4, but nevertheless)  that played on the Roku3 without sound:

./ffmpeg -i My.Movie.mp4 -c:v copy -strict experimental -c:a aac -ac 2 -ab 256k My.Movie.2.mp4

It took less than 15 minutes to process the file on the T430.

Labels: , , ,

Wednesday, January 13, 2016

Another ffmpeg snip

Used this one to transcode a mkv file that played without sound on the Roku 3 (with the subs burned in):

./ffmpeg -i my.video.mkv -c:v copy -strict experimental -c:a aac -ac 2 -ab 256k -vf subtitles=my.video.mkv  my.video.mp4

Labels: , , , , , ,

Friday, October 30, 2015

Transcoding and More Transcoding...

And yet another ffmpeg go!
Converting videos so we can watch those on the Roku:

./ffmpeg -i video.avi -c:v libx264 -crf 19 -preset slow -c:a aac\
 -strict experimental -b:a 192k -ac 2 video.mp4

It took the T60p about 3 hours to convert the 760 MB video to mp4.

Labels: , , , , ,

Tuesday, September 08, 2015

Transcoding and More Transcoding...

Another go for ffmpeg...
This time I had to use a special flag for the audio, "-ac 2".
Without that one, the transcoding failed with the error:

[libvo_aacenc @0xb182fe0] Unable to set encoding parameters

So, I had to use this to trancode the whole movie:

ffmpeg -i my.movie.avi -b:v 2132k -b:a 384k -r 23.97\

-s 720x400 -ac 2 -vcodec mpeg4 my.movie.mp4

Labels: , , ,

Thursday, August 27, 2015

More Transcoding Fun!!!

Another one of those... More than nothing, as a (searchable) place holder for the ffmpeg options I've used.

ffmpeg -i "Hearts of Darkness.avi" -ab 128k -b 1200k\

 -r 23.97 -s 632x258 -vcodec mpeg4 Hearts-of-Darkness.mp4


Labels: , , , ,

Wednesday, June 18, 2014

Re-digitizing oldies

Been transcoding some "old" movie files of mine, so I can play those on the TV's built in player.
Tried using Handbrake to do the job, but it crapped out on every single video file I threw at it, so I eventually moved to ffmpeg.
Used my trusty T60p to do transcoding, it takes the lappie about 40 minutes to get an hour and half movie onto an mp4 file with an standard resolution of 600x320 or so.
This are the current options on ffmpeg:

ffmpeg -i "Vanishing point.avi" -ab 48k -b 2000k -r 25\
 -s 592x320 -vcodec mpeg4 Vanishing.Point.mp4

Labels: , , , , , , ,