Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-22-2009, 02:40 PM
|
#1
|
LQ Newbie
Registered: May 2009
Posts: 2
Rep:
|
how do you convert .avi or anything to .ts?
I am pulling my hair out trying to get this done, so please please any tips welcome
so i have downloaded a film .avi i need to convert it to dreambox format .ts so i can ftp to dm hdd
i have tried
ffmpeg -i BMW.wmv -vcodec copy -acodec copy -f mpegts BMW.ts
this is the output
xxxxxxxx@desktop:~/Desktop/BMW$ ffmpeg -i BMW.wmv -vcodec copy -acodec copy -f mpegts BMW.ts
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-neon --disable-altivec --disable-vis --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Apr 10 2009 23:18:41, gcc: 4.3.3
Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #0, asf, from 'BMW.wmv':
Duration: 00:04:49.74, start: 3.000000, bitrate: 1346 kb/s
Stream #0.0: Audio: wmav2, 44100 Hz, stereo, s16, 128 kb/s
Stream #0.1: Video: wmv2, yuv420p, 720x300, 1177 kb/s, 29.97 tbr, 1k tbn, 1k tbc
Output #0, mpegts, to 'BMW.ts':
Stream #0.0: Video: wmv2, yuv420p, 720x300, q=2-31, 1177 kb/s, 90k tbn, 1k tbc
Stream #0.1: Audio: wmav2, 44100 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
[mpegts @ 0x9d0c9a0]dts < pcr, TS is invalid
frame= 3281 fps=2134 q=-1.0 size= 20857kB time=109.05 bitrate=1566.8kbits/s frame= 5234 fps=2569 q=-1.0 size= 28574kB time=173.97 bitrate=1345.5kbits/s frame= 6615 fps=2607 q=-1.0 size= 37258kB time=220.31 bitrate=1385.4kbits/s frame= 8028 fps=2641 q=-1.0 size= 45500kB time=267.35 bitrate=1394.2kbits/s frame= 8765 fps=2547 q=-1.0 Lsize= 51563kB time=292.43 bitrate=1444.5kbits/s
video:41781kB audio:4581kB global headers:0kB muxing overhead 11.216906%
my tv is 16.9 if this helps
thanks
|
|
|
05-22-2009, 03:08 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,728
|
Quote:
Originally Posted by iwannalearn
I am pulling my hair out trying to get this done, so please please any tips welcome
so i have downloaded a film .avi i need to convert it to dreambox format .ts so i can ftp to dm hdd
i have tried
ffmpeg -i BMW.wmv -vcodec copy -acodec copy -f mpegts BMW.ts
this is the output
xxxxxxxx@desktop:~/Desktop/BMW$ ffmpeg -i BMW.wmv -vcodec copy -acodec copy -f mpegts BMW.ts
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-neon --disable-altivec --disable-vis --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Apr 10 2009 23:18:41, gcc: 4.3.3
Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #0, asf, from 'BMW.wmv':
Duration: 00:04:49.74, start: 3.000000, bitrate: 1346 kb/s
Stream #0.0: Audio: wmav2, 44100 Hz, stereo, s16, 128 kb/s
Stream #0.1: Video: wmv2, yuv420p, 720x300, 1177 kb/s, 29.97 tbr, 1k tbn, 1k tbc
Output #0, mpegts, to 'BMW.ts':
Stream #0.0: Video: wmv2, yuv420p, 720x300, q=2-31, 1177 kb/s, 90k tbn, 1k tbc
Stream #0.1: Audio: wmav2, 44100 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
[mpegts @ 0x9d0c9a0]dts < pcr, TS is invalid
frame= 3281 fps=2134 q=-1.0 size= 20857kB time=109.05 bitrate=1566.8kbits/s frame= 5234 fps=2569 q=-1.0 size= 28574kB time=173.97 bitrate=1345.5kbits/s frame= 6615 fps=2607 q=-1.0 size= 37258kB time=220.31 bitrate=1385.4kbits/s frame= 8028 fps=2641 q=-1.0 size= 45500kB time=267.35 bitrate=1394.2kbits/s frame= 8765 fps=2547 q=-1.0 Lsize= 51563kB time=292.43 bitrate=1444.5kbits/s
video:41781kB audio:4581kB global headers:0kB muxing overhead 11.216906%
my tv is 16.9 if this helps
thanks
|
Hmm...the .ts is a new one for me. From what I read, it appears to be a 'stream container' (transport stream or ".TS"), wrapped around an MPEG file.
Try to convert the .WMV to an MPEG2 file (you appear to be comfortable with ffmpeg, so I'm not going there..  ), then try this:
Code:
mencoder -of mpeg -ovc copy -oac copy -o BMW.mpg BMW.ts
That'll just put a 'wrapper' around the stream, and does no encoding. Give it a shot....
|
|
|
05-22-2009, 07:04 PM
|
#3
|
Member
Registered: Apr 2009
Posts: 107
Rep:
|
I would also be interested to know if that did work.
Linux Archive
Last edited by soleilarw; 06-18-2009 at 04:11 AM.
|
|
|
05-22-2009, 08:33 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Quote:
ffmpeg -i BMW.wmv -vcodec copy -acodec copy -f mpegts BMW.ts
|
The codec used for a wmv container will be wrong. You are trying to copy the video stream as is to an mpeg container.
There is no .ts format extension listed in "ffmpeg -formats". What is dm hdd?
According to this web site, .ts is for mpeg2 transport streams. So use "-vcodec mpeg2video -f mpegts". If using -y BMW.ts doesn't work, you may need to use BMW.mpg and rename it afterwards. Look on the site's instructions on the bit rates they accept.
---
Using Google I found out that you are talking about a PVR. I was thinking it was a web site you were uploading to.
You may be able to send mpeg files. I don't know where the .ts extension comes from. The spec sheet I read says it will play mpeg2 and mp4 files.
You may also want to resize and pad the video so it is a legal 16/9 format. If you use the "-aspect 16:9" argument, ffmpeg may adjust the pixel aspect ratio. Maybe this would be enough.
Last edited by jschiwal; 05-22-2009 at 08:44 PM.
|
|
|
05-23-2009, 12:46 PM
|
#5
|
LQ Newbie
Registered: May 2009
Posts: 2
Original Poster
Rep:
|
ok here is how it works well
i just tested
ffmpeg -y -threads 2 -i "input.avi" -ab 128k -b 2500k -r 25 -maxrate 8000k -bufsize 1000k -vcodec mpeg2video -s 4cif -acodec mp2 -map 0:0 -map 0:1 "output.ts"
with thanks to
Jose Catre-Vandis
Regards
|
|
|
03-30-2017, 12:52 PM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,728
|
Quote:
Originally Posted by keenbeen
I recommend Avdshare Video Converter which can batch Convert AVI to TS to Convert TS to AVI.
|
And I recommend against advertising in the forums against rules. And that's a Mac and Windows-only product, so posting it here does nothing to help the original poster with their question.
Thread reported.
|
|
|
03-30-2017, 11:49 PM
|
#7
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,543
|
Quote:
Originally Posted by TB0ne
Hmm...the .ts is a new one for me. From what I read, it appears to be a 'stream container' (transport stream or ".TS"), wrapped around an MPEG file.
|
I don't think any "containing" is involved. " Dreambox" is used as a sort of a generic term within the DVB FTA satellite community. All three of my satellite receivers record files with a .ts suffix. Some can be played directly by VLC or SMplayer, while others can't without first migrating them into a common container format.
|
|
|
All times are GMT -5. The time now is 11:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|