encoding DV video with dummy audio

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

encoding DV video with dummy audio

Alex-277
I am trying to create a NTSC DV file from a set of png images.  Given
the source files, I have no audio track, so ffmpeg does not encode the file.

Is there a way to create a silent/dummy audio track for the DV file?

Here's the output:


FFmpeg version SVN-r11218, Copyright (c) 2000-2007 Fabrice Bellard, et al.
   configuration: --enable-gpl --enable-pp --enable-libvorbis
--enable-liba52 --enable-libgsm --enable-libmp3lame --enable-pthreads
   libavutil version: 49.6.0
   libavcodec version: 51.49.0
   libavformat version: 52.2.0
   built on Dec 15 2007 09:20:44, gcc: 4.1.3 20070929 (prerelease)
(Ubuntu 4.1.2-16ubuntu2)
Input #0, image2, from 'frames/out.%08d.png':
   Duration: 00:01:33.3, start: 0.000000, bitrate: N/A
     Stream #0.0: Video: png, rgb24, 320x240 [PAR 0:1 DAR 0:1], 29.97 tb(r)
File 'out1.dv' already exists. Overwrite ? [y/N] y
Output #0, dv, to 'out1.dv':
     Stream #0.0: Video: dvvideo, yuv411p, 320x240 [PAR 0:1 DAR 0:1],
q=2-31, 200 kb/s, 29.97 tb(c)
Stream mapping:
   Stream #0.0 -> #0.0
[dv @ 0x84215b4]Can't initialize DV format!
Make sure that you supply exactly two streams:
      video: 25fps or 29.97fps, audio: 2ch/48Khz/PCM
      (50Mbps allows an optional second audio stream)
Could not write header for output file #0 (incorrect codec parameters ?)

Thanks,

Alex


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: encoding DV video with dummy audio

Hervé-4
Alex a écrit :
> I am trying to create a NTSC DV file from a set of png images.  Given
> the source files, I have no audio track, so ffmpeg does not encode the file.
>
> Is there a way to create a silent/dummy audio track for the DV file?
>
> Here's the output:

and what is the command line?


> FFmpeg version SVN-r11218, Copyright (c) 2000-2007 Fabrice Bellard, et al.
>    configuration: --enable-gpl --enable-pp --enable-libvorbis
> --enable-liba52 --enable-libgsm --enable-libmp3lame --enable-pthreads
>    libavutil version: 49.6.0
>    libavcodec version: 51.49.0
>    libavformat version: 52.2.0
>    built on Dec 15 2007 09:20:44, gcc: 4.1.3 20070929 (prerelease)
> (Ubuntu 4.1.2-16ubuntu2)
> Input #0, image2, from 'frames/out.%08d.png':
>    Duration: 00:01:33.3, start: 0.000000, bitrate: N/A
>      Stream #0.0: Video: png, rgb24, 320x240 [PAR 0:1 DAR 0:1], 29.97 tb(r)
> File 'out1.dv' already exists. Overwrite ? [y/N] y
> Output #0, dv, to 'out1.dv':
>      Stream #0.0: Video: dvvideo, yuv411p, 320x240 [PAR 0:1 DAR 0:1],
> q=2-31, 200 kb/s, 29.97 tb(c)
> Stream mapping:
>    Stream #0.0 -> #0.0
> [dv @ 0x84215b4]Can't initialize DV format!
> Make sure that you supply exactly two streams:
>       video: 25fps or 29.97fps, audio: 2ch/48Khz/PCM
>       (50Mbps allows an optional second audio stream)
> Could not write header for output file #0 (incorrect codec parameters ?)
>
> Thanks,
>
> Alex
>

bye

Hervé
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: encoding DV video with dummy audio

Alex-277
Herv?e wrote:
> Alex a écrit :
>> I am trying to create a NTSC DV file from a set of png images.  Given
>> the source files, I have no audio track, so ffmpeg does not encode the file.
>>
>> Is there a way to create a silent/dummy audio track for the DV file?
>>
>> Here's the output:
>
> and what is the command line?

Whoops, I missed that with my cut & paste.  Here it is:

ffmpeg -s 720x480 -r 29.97  -i frames/out.%08d.png out2.dv

--Alex

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: encoding DV video with dummy audio

Hervé-4
Alex a écrit :

> Herv?e wrote:
>> Alex a écrit :
>>> I am trying to create a NTSC DV file from a set of png images.  Given
>>> the source files, I have no audio track, so ffmpeg does not encode the file.
>>>
>>> Is there a way to create a silent/dummy audio track for the DV file?
>>>
>>> Here's the output:
>> and what is the command line?
>
> Whoops, I missed that with my cut & paste.  Here it is:
>
> ffmpeg -s 720x480 -r 29.97  -i frames/out.%08d.png out2.dv
>
> --Alex

try with this:
ffmpeg -s 720x480 -r 29.97 -i frames/out.%08d.png -target ntsc-dv out2.dv

explanation: you have no audio from input and the dv extension just say
"hey, write the output stream to dv-video-codec" (and not to dv stream ;) ).

PS: I didn't verify my command, but it should be ok
bye

Hervé
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: encoding DV video with dummy audio

Stefano Sabatini
In reply to this post by Alex-277
On date Saturday 2007-12-15 10:06:38 -0500, Alex encoded:

> Herv?e wrote:
> > Alex a écrit :
> >> I am trying to create a NTSC DV file from a set of png images.  Given
> >> the source files, I have no audio track, so ffmpeg does not encode the file.
> >>
> >> Is there a way to create a silent/dummy audio track for the DV file?
> >>
> >> Here's the output:
> >
> > and what is the command line?
>
> Whoops, I missed that with my cut & paste.  Here it is:
>
> ffmpeg -s 720x480 -r 29.97  -i frames/out.%08d.png out2.dv

Check -na, or maybe you have to create a silent track then mux it in
the output file (check the archive for how to do it).

Regards.
--
ffmpeg-user random tip #12
One minute of pure video noise with ffmpeg:
ffmpeg -t 60 -s qcif -f rawvideo -pix_fmt rgb24 -r 25 -i /dev/urandom \
    -y noise.mpeg
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: encoding DV video with dummy audio

Roman V. Shaposhnik

On Dec 15, 2007, at 9:05 AM, Stefano Sabatini wrote:

> On date Saturday 2007-12-15 10:06:38 -0500, Alex encoded:
>> Herv?e wrote:
>>> Alex a écrit :
>>>> I am trying to create a NTSC DV file from a set of png images.  
>>>> Given
>>>> the source files, I have no audio track, so ffmpeg does not  
>>>> encode the file.
>>>>
>>>> Is there a way to create a silent/dummy audio track for the DV  
>>>> file?
>>>>
>>>> Here's the output:
>>>
>>> and what is the command line?
>>
>> Whoops, I missed that with my cut & paste.  Here it is:
>>
>> ffmpeg -s 720x480 -r 29.97  -i frames/out.%08d.png out2.dv
>
> Check -na, or maybe you have to create a silent track then mux it in
> the output file (check the archive for how to do it).

   Bingo! I usually create silent track with -f pcm16le -i /dev/zero

Thanks,
Roman.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: encoding DV video with dummy audio

Alex-277
Roman Shaposhnik wrote:
> On Dec 15, 2007, at 9:05 AM, Stefano Sabatini wrote:
> [snip]
>> Check -na, or maybe you have to create a silent track then mux it in
>> the output file (check the archive for how to do it).
>
>    Bingo! I usually create silent track with -f pcm16le -i /dev/zero

Thanks for the tips Stefano and Roman.  You're definitely cutting down
my command line argument trial and error time. :)

Cheers,

--Alex

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user