Reuben Martin
Forum Replies Created
-
Reuben Martin
November 6, 2013 at 11:06 pm in reply to: [SOLVED] Setting video PID and audio PID. (MPEG-TS output)I’m remuxing an mp4 file (h264 && aac) to mpegts, and setting PIDs:
ffmpeg -i input.mp4 -codec:v copy -codec:a copy -streamid 0:50 -streamid 1:52 -bsf h264_mp4toannexb -f mpegts output.ts
-
Reuben Martin
November 6, 2013 at 7:28 pm in reply to: [SOLVED] Setting video PID and audio PID. (MPEG-TS output)Well, I ran a couple short tests to see what I would get. (I’ve never had to deal with situations where specific PID numbers were required.)
I didn’t have any issue using the streamid options to manually set PIDs for the elementary streams.
What version of ffmpeg are you using and what is the exact terminal command you are attempting to use?
Be aware that the ffmpeg syntax uses base-10 numbering when setting stream ids. So don’t get that confused with base-16. For instance the test streams I made would have 50 and 52 assigned to video and audio streams as you had mentioned, but examining the result with tstools, shows the stream IDs as 0032 and 0034 (the hexadecimal equivalent)
-
Reuben Martin
November 5, 2013 at 5:14 pm in reply to: [SOLVED] Setting video PID and audio PID. (MPEG-TS output)Reading your post a second time, I think I misunderstood what you are trying to ask.
“map” has to do with matching input streams to output streams.
“streamid” has more to do with specifying different settings as the codec level, not at the format level.
You might want to try the “stream_index” option which works at the format level since this is info you want to pass to the muxer, rather than the encoder.
-
Reuben Martin
November 5, 2013 at 4:53 pm in reply to: [SOLVED] Setting video PID and audio PID. (MPEG-TS output)There are muxing options available for mpeg-ts, among them the ability to set the PID values.
-
Reuben Martin
November 2, 2013 at 12:03 am in reply to: ffmpeg target ntsc-dvd bitrate-setting (-b) not workingBesides those 2 options, most other settings available to up the quality for mpeg2 have to do with motion detection. Although one other thing that can improve quality quite significantly is to flag the codec to use an interlaced DCT if your original source happens to be interlaced. (If your source is interlaced and you don’t force the codec to respect that, it can smear the video)
A quick place to start would be here:
FFMPEG FAQYou can use that as a starting place for options to look up and see what they do, and how you might what to deviate from the standard setting, in the general codec documentation.
-
Reuben Martin
November 1, 2013 at 3:40 am in reply to: ffmpeg target ntsc-dvd bitrate-setting (-b) not workingIf you must have your bitrate exactly at 8000k, you would have to do 2 pass encoding. FFmpeg won’t use that full 8000k when it doesn’t need to. It would just be a waste of space without any quality benefit.
If you want high quality, setting bitrate is a poor way to achieve that. There are many other settings with far bigger influence on quality than bitrate. I would leave the bitrate setting out entirely unless you are having to meet hardware requirements of some sort.
If you are trying to get higher quality, try something like
ffmpeg -i sourcefile.mov -target pal-dvd -qscale 2 -trellis 2 outputfile.mpg
-
Reuben Martin
September 27, 2013 at 10:21 pm in reply to: Is true, interlaced pulldown possible with ffmpeg/ffmbc? (i.e. 23.98p to 29.97i framerate conversion)For interlaced prores encoding add “-flags +ildct” (should work with kostya preres encoder, not sure about the others) Not very well documented at all.
The telecine filter is documented here: https://ffmpeg.org/ffmpeg-filters.html#telecine
-
It’s more than just a header. Individual frames have timestamps. You can change it with the setpts video filter. You can also do it in MP4Box using the rescale option (not well documented).
-
In theory, you can chop up itra-frame codecs (such as DNxHD) and splice them together without re-encoding. Codecs with I-P-B frames can only get cut on an intra frame. (a.k.a. key frame) In practise it’s more complicated than that since video frame timestamps have to be updated. So the ability to do that depends on the capability of the software. You should be able to do that with ffmpeg. However, if you’re looking for something with a GUI, you’re in the wrong place.
-
I’ve encoded video with the same settings and it plays back fine with ffplay. I have no way to know what is causing issues with MPC. I very rarely touch windows machines anymore, so I can’t help you.
Note that for the input frame rate, you will probably want to use “-r 30000/1001” rather than “-r 29.970”.