NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 85 86 87 88 89 … 433 Next »
File Conversion MP4/MKV like to MPG via ffmpeg - need HELP

File Conversion MP4/MKV like to MPG via ffmpeg - need HELP
puck64
Offline

Member

Australia
Posts: 130
Threads: 24
Joined: Aug 2015
#1
2017-07-28, 07:04 AM
Hi All,

I need a little help converting an avc/aac ts file to mpeg/ac3 ts file.

Notice I am only extracting 2 minutes of video starting at 1 minute from the start.

The code I'm trying to use is ...
ffmpeg -t 00:02:00.000 -ss 00:01:00.000 -i %1 -vcodec mpeg2video -aspect 16:9 -profile:v 4 -level:v 6 -b:v 15000k -bufsize 25000k -maxrate 25000k -vf "scale=1920:1080,yadif=0:-1" -acodec ac3 -ab 448k -ar 48000 -ac 2 -f mpegts -y "%~n1.ts"

When I try and open it in VideoRedo 3 I get the following error message "No PIDs specified when trying to open a transport stream"

If I use the following code ...
ffmpeg -t 00:02:00.000 -ss 00:01:00.000 -i %1 -vcodec mpeg2video -aspect 16:9 -profile:v 4 -level:v 6 -b:v 15000k -bufsize 25000k -maxrate 25000k -vf "scale=1920:1080,yadif=0:-1" -acodec ac3 -ab 448k -ar 48000 -ac 2 -f vob -y "%~n1.mpg"

The screen bleeds messages like ...
[vob @ 00000000025c6040] buffer underflow st=1 bufi=916 size=1792
[vob @ 00000000025c6040] buffer underflow st=1 bufi=1139 size=1792
---------------------------->
[vob @ 00000000025c6040] buffer underflow st=1 bufi=436 size=1792
[vob @ 00000000025c6040] buffer underflow st=1 bufi=659 size=1792
[vob @ 00000000025c6040] buffer underflow st=1 bufi=882 size=1792
Last message repeated 47 times

VideoRedo 3 is happy with the file generated but I do not like blood :eek:

Any help getting the first command to work would be much appreciated. :o
Regards,
Mark

(Remember not to forget that which you don' t need to know.)
Graham
Offline

Posting Freak

UK
Posts: 4,056
Threads: 102
Joined: Dec 2005
#2
2017-07-28, 09:50 AM
puck64 Wrote:The code I'm trying to use is ...
ffmpeg -t 00:02:00.000 -ss 00:01:00.000 -i %1 -vcodec mpeg2video -aspect 16:9 -profile:v 4 -level:v 6 -b:v 15000k -bufsize 25000k -maxrate 25000k -vf "scale=1920:1080,yadif=0:-1" -acodec ac3 -ab 448k -ar 48000 -ac 2 -f mpegts -y "%~n1.ts"

A wild guess ... would "mpeg" rather than "mpegts" (or some similar change) get a result?
p37307
Offline

Senior Member

Posts: 252
Threads: 46
Joined: Jul 2016
#3
2017-07-28, 10:33 AM (This post was last modified: 2017-07-28, 10:38 AM by p37307.)
puck64 Wrote:Hi All,

I need a little help converting an avc/aac ts file to mpeg/ac3 ts file.

Notice I am only extracting 2 minutes of video starting at 1 minute from the start.

Any help getting the first command to work would be much appreciated. :o


What I do is open the video in VLC and at the time I want to create a video clip (at minute 1 for your example) I just hit the "record" button and when I'm done (minute 2, for example. I hit the record button again to stop the clip recording. It saves it as an MPEG-1/2 TS with audio as A52 (Aka AC3).

Not sure if this could be an option for you


[ATTACHMENT NOT FOUND]
~Paul

If you haven't broken it at least once, you're not doing it right. :eek:
puck64
Offline

Member

Australia
Posts: 130
Threads: 24
Joined: Aug 2015
#4
2017-07-28, 12:36 PM
Thanks fellas.

VLC is not an option Sad and I had tried the -f mpeg Sad .
What I need is someone like Sub who can generate .ts files at will (NextPvr).

Looks like its back to reading the cryptic ffmpeg doco. "Not Happy Jan" :mad:
Regards,
Mark

(Remember not to forget that which you don' t need to know.)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2017-07-28, 06:31 PM
puck64 Wrote:What I need is someone like Sub who can generate .ts files at will (NextPvr).
Sorry - I'm not expert in ffmpeg. NextPVR doesn't use it for producing ts files, and never transcodes to MPEG2.

Quote:I need a little help converting an avc/aac ts file to mpeg/ac3 ts file.
Why would you want to do that? Seems like a backwards step. Most people would prefer to have the AVC/H.264 video.
puck64
Offline

Member

Australia
Posts: 130
Threads: 24
Joined: Aug 2015
#6
2017-07-29, 05:14 AM
sub Wrote:Sorry - I'm not expert in ffmpeg. NextPVR doesn't use it for producing ts files, and never transcodes to MPEG2.

Why would you want to do that? Seems like a backwards step. Most people would prefer to have the AVC/H.264 video.

Hi Sub,

Sorry to hear you are not an expert with FFmpeg, but that's what assuming does ... makes an ass out of --- and ME

Not a backward step, just sideways .... VideoRedo 3 does not understand AVC/H264 and AAC.
I have to convert them to MPEG / AC3 so I can Kill the ADS.

Last night I added "-mpegts_m2ts_mode 1 -mpegts_pmt_start_pid 0x0100 -mpegts_start_pid 0x0150" to the first command an VideoRedo says "Negarive Offset searching for PTS"

Looks like more reading.
Regards,
Mark

(Remember not to forget that which you don' t need to know.)
p37307
Offline

Senior Member

Posts: 252
Threads: 46
Joined: Jul 2016
#7
2017-07-29, 06:00 AM
puck64 Wrote:Not a backward step, just sideways ....

I'm just curious What your end purpose is?

You wanted 2 minutes in an earlier post.

What are you going to be doing with the finished converted video?
~Paul

If you haven't broken it at least once, you're not doing it right. :eek:
puck64
Offline

Member

Australia
Posts: 130
Threads: 24
Joined: Aug 2015
#8
2017-07-29, 07:30 AM
p37307 Wrote:I'm just curious What your end purpose is?

You wanted 2 minutes in an earlier post.

What are you going to be doing with the finished converted video?

Hi Paul,

I was extracting 2 minutes of video & audio to get a sample to run through VideoRedo as a test.

The aim is to be able to convert AVC/AAC or AVC/AC3 etc to MPEG/AC3 for editing.
Our HD Channels in AU broadcast in AVC + AC3 or MPG1 or AAC, 2 to 6 channels.

After editing I then convert the video to MP4 for later viewing, when there is nothing on.
Regards,
Mark

(Remember not to forget that which you don' t need to know.)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#9
2017-07-29, 02:32 PM
puck64 Wrote:Not a backward step, just sideways .... VideoRedo 3 does not understand AVC/H264 and AAC.

Given the loss of quality in each step, it is is backward. Sounds like your player is the weakest link, not sure why you can't just use NextPVR or Kodi with comskip.

Martin
p37307
Offline

Senior Member

Posts: 252
Threads: 46
Joined: Jul 2016
#10
2017-07-29, 09:10 PM
puck64 Wrote:Hi Paul,

I was extracting 2 minutes of video & audio to get a sample to run through VideoRedo as a test.

The aim is to be able to convert AVC/AAC or AVC/AC3 etc to MPEG/AC3 for editing.
Our HD Channels in AU broadcast in AVC + AC3 or MPG1 or AAC, 2 to 6 channels.

After editing I then convert the video to MP4 for later viewing, when there is nothing on.

If this is how you want to do it, try

Code:
ffmpeg.exe -t 00:02:00.000 -ss 00:01:00.000 -i %1 -target ntsc--dvd -aspect 16:9 -ac 2 "%~n1.ts"
Code:
ffmpeg.exe -t 00:02:00.000 -ss 00:01:00.000 -i %1 -target film-dvd -aspect 16:9 -ac 2 "%~n1.ts"


You can always play with the other ffmpeg settings to fine tune.

Personally, I use MCEBuddy with Comskip to remove the commercials and convert them to MP4's. Have done literally hundreds of recorded TV shows and movies without disappointment. It does it automatically with no interaction from me other than the initial setup. It takes the TS file, cuts the commercials exchanges the TS with a MP4 then archives the TS. I periodically check the MP4's for quality issues then delete the TS files. It also writes the show info into the video itself (Description, genre, year, series and episode number) which makes it nice.

Basically MCEBuddy is a simple GUI with settings for all the backend tools like Comskip, Handbrake and FFMPEG.
~Paul

If you haven't broken it at least once, you're not doing it right. :eek:
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  incorrect frequency in adelaide .ini file spin35 5 2,893 2023-02-01, 05:40 PM
Last Post: sub
  ts file shows length too long? SuttonWillow 2 1,829 2021-03-15, 01:56 PM
Last Post: mvallevand
  Unhandled Exception: file name too long (idiots at pbs made it super long) jobby99 1 1,351 2020-10-29, 09:40 PM
Last Post: mvallevand
  ts file shows length too long SamM 4 2,264 2020-10-06, 02:45 AM
Last Post: Ehrlichia
  EPG displaying small subset of xmltv file. Esteban 9 2,905 2020-07-18, 10:07 PM
Last Post: Esteban
  Max File Size jrockow 2 1,484 2020-04-21, 02:38 PM
Last Post: jrockow
  Skip causes fast-forward to the end of the file madbrain 9 3,720 2020-02-27, 10:24 PM
Last Post: Esch
  Be notified when EPG (xml file) is empty ? nonob 2 1,380 2020-02-14, 05:00 PM
Last Post: nonob
  Recording extra 0-byte .ts file seeker_ktf 6 2,587 2020-01-25, 08:40 PM
Last Post: seeker_ktf
  Pass M3U File from NextPVR to VLC/Other Mark-McG 3 5,457 2019-12-16, 10:26 AM
Last Post: Mark-McG

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode